nanosleep: Avoid guessing wrong when cross-compiling to Linux.
[gnulib.git] / ChangeLog
1 2012-05-05  Bruno Haible  <bruno@clisp.org>
2
3         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
6         or 'guessing no (mishandles large arguments)'.
7
8 2012-05-05  Bruno Haible  <bruno@clisp.org>
9
10         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
11         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
12         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
13         set gl_cv_func_link_follows_symlink to "guessing no".
14
15 2012-05-05  Bruno Haible  <bruno@clisp.org>
16
17         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
18         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
19         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
20         "guessing no".
21         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
22
23 2012-05-05  Bruno Haible  <bruno@clisp.org>
24
25         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
26         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
27         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28         set gl_cv_struct_dirent_d_ino to "guessing yes".
29
30 2012-05-05  Bruno Haible  <bruno@clisp.org>
31
32         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
33         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
34         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35         "guessing yes".
36
37 2012-05-05  Bruno Haible  <bruno@clisp.org>
38
39         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
40         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
41         compiling to a glibc system, set gl_cv_func_signbit and
42         gl_cv_func_signbit_gcc to "guessing yes".
43
44 2012-05-05  Bruno Haible  <bruno@clisp.org>
45
46         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
47         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
48         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
49         to "guessing yes".
50         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
51         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
52
53 2012-05-05  Bruno Haible  <bruno@clisp.org>
54
55         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
56         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
57         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
58         gl_cv_func_realpath_works to "guessing yes".
59
60 2012-05-05  Bruno Haible  <bruno@clisp.org>
61
62         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
63         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
64         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
65
66 2012-05-04  Bruno Haible  <bruno@clisp.org>
67
68         Tweak last commit.
69         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
70         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
71
72 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
73
74         unistd_h: make it easier to avoid sys_types_h
75         This is useful for Emacs, which has its own method of porting to
76         Windows, and which therefore does not need the sys_types_h module.
77         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
78         code moved here from gl_SYS_TYPES_H.
79         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
80         using the code directly.
81         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
82         gl_SYS_TYPES_H.
83         * modules/sys_types (Files):
84         * modules/unistd (Files): Add m4/off_t.m4.
85
86 2012-05-03  Bruno Haible  <bruno@clisp.org>
87
88         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
89         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
90         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
91         "guessing yes" or "guessing no".
92         (gl_FUNC_LSTAT): Update.
93         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
94         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
95         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
96
97 2012-05-03  Bruno Haible  <bruno@clisp.org>
98
99         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
100         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
101         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
102         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
103         cross-compiling, choose the first alternative on glibc systems.
104         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
105
106 2012-05-03  Bruno Haible  <bruno@clisp.org>
107
108         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
109         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
110         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
111
112 2012-05-03  Bruno Haible  <bruno@clisp.org>
113
114         chown: Avoid "guessing no" when cross-compiling to glibc systems.
115         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
116
117 2012-05-03  Bruno Haible  <bruno@clisp.org>
118
119         Avoid "guessing no" guesses when cross-compiling to glibc systems.
120         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
121         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
122         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
123         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
124         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
125         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
126         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
127         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
128         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
129         compiling to glibc systems, set gl_cv_func_chown_slash_works,
130         gl_cv_func_chown_ctime_works to "guessing yes".
131         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
132         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
133         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
134         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
135         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
137         compiling to glibc systems, set gl_cv_func_open_directory_works to
138         "guessing yes".
139         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
140         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
141         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
142         "guessing yes".
143         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
144         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
145         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
146         compiling to glibc systems, set gl_cv_func_floorf_ieee to
147         "guessing yes".
148         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
149         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
150         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
151         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
152         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
153         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
154         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
155         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
156         "guessing yes".
157         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
158         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
159         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
160         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
161         "guessing yes".
162         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
163         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
164         "guessing yes".
165         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
166         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
167         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
168         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
169         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
170         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
171         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
172         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
173         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
174         compiling to glibc systems, set gl_cv_func_log10f_ieee to
175         "guessing yes".
176         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
177         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
178         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
179         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
180         "guessing yes".
181         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
182         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
183         "guessing yes".
184         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
185         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
186         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
187         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
188         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
189         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
190         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
191         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
192         compiling to glibc systems, set gl_cv_func_mkfifo_works to
193         "guessing yes".
194         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
195         compiling to glibc systems, set gl_cv_func_mknod_works to
196         "guessing yes".
197         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
198         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
199         "guessing yes".
200         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
201         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
202         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
203         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
204         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
205         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
206         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
207         compiling to glibc systems, set gl_cv_func_svid_putenv to
208         "guessing yes".
209         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
210         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
211         "guessing yes".
212         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
213         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
214         "guessing yes".
215         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
216         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
217         to "guessing yes".
218         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
219         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
220         to "guessing yes".
221         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_rmdir_works to
223         "guessing yes".
224         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
225         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
226         gl_cv_func_unlink_parent_fails to "guessing yes".
227         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
228         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
229         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
230         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
231         gl_cv_func_rename_dest_works to "guessing yes".
232         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
233         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
235         compiling to glibc systems, set gl_cv_func_roundf_ieee to
236         "guessing yes".
237         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
238         compiling to glibc systems, set gl_cv_func_roundl_ieee to
239         "guessing yes".
240         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
241         compiling to glibc systems, set gl_cv_func_setenv_works to
242         "guessing yes".
243         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
244         compiling to glibc systems, set gl_cv_func_unsetenv_works to
245         "guessing yes".
246         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
247         compiling to glibc systems, set gl_cv_func_sleep_works to
248         "guessing yes".
249         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
250         compiling to glibc systems, set gl_cv_func_stat_file_slash to
251         "guessing yes".
252         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
253         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
254         "guessing yes".
255         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
256         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
257         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
258         compiling to glibc systems, set gl_cv_func_truncf_ieee to
259         "guessing yes".
260         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
261         compiling to glibc systems, set gl_cv_func_truncl_ieee to
262         "guessing yes".
263         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
264         compiling to glibc systems, set gl_cv_func_usleep_works to
265         "guessing yes".
266         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
267         compiling to glibc systems, set gl_cv_func_futimesat_works to
268         "guessing yes".
269
270 2012-05-03  Bruno Haible  <bruno@clisp.org>
271
272         Say "guessing yes" or "guessing no" when cross-compiling.
273         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
274         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
276         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
277         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
278         am_cv_func_working_getline to "guessing yes" or "guessing no".
279         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
280         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
281         (gl_FUNC_MEMMEM): When cross-compiling, set
282         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
284         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
286         set gl_cv_func_strcasestr_works_always to "guessing yes" or
287         "guessing no".
288         (gl_FUNC_STRCASESTR): When cross-compiling, set
289         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
290         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
291         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
292         (gl_FUNC_STRSTR): When cross-compiling, set
293         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
294         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
295         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
296         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
297         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
298
299 2012-05-01  Bruno Haible  <bruno@clisp.org>
300
301         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
302         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
303         * build-aux/reloc-ldflags: Likewise.
304         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
305
306 2012-05-01  Bruno Haible  <bruno@clisp.org>
307
308         gnulib-tool: Remove transitional code.
309         * gnulib-tool: Don't warn about --import with 0 arguments any more.
310         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
311
312 2012-05-01  Bruno Haible  <bruno@clisp.org>
313
314         getcwd: Fix misindentation.
315         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
316
317 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
318
319         exclude: process exclude and include directives in order
320         This restores the pre-2009 behavior, and is part of a fix of a
321         grep bug reported by Quentin Arce in
322         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
323         * lib/exclude.c (struct exclude): Remove 'tail' member.
324         (new_exclude_segment): Prepend the new segment instead of appending.
325         Return void, since that's now more convenient.
326         (file_pattern_matches): Renamed from excluded_file_pattern_p.
327         (file_name_matches): Renamed from excluded_file_name_p.
328         (file_pattern_matches, file_name_matches):
329         Return true if the pattern matches, not if it excludes.
330         All callers changed.
331         (excluded_file_name): Process the list in reverse order;
332         since the list is now reversed this restores the pre-2009 behavior.
333         (add_exclude): Adjust to new reversed-order list.  Use local var
334         rather than macro, for clarity.
335         * tests/test-exclude7.sh: Adjust to corrected behavior.
336
337         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
338         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
339         it's not possible here.  Handle the case of \ at end of pattern
340         without dumping core.
341         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
342
343         _Noreturn: future-proof non-GNU and non-MSVC compilers
344         * build-aux/snippet/_Noreturn.h (_Noreturn):
345         * m4/gnulib-common.m4 (gl_COMMON_BODY):
346         Do not define _Noreturn if __STDC_VERSION__ indicates this is
347         C11 or later.  This is more likely to work with random future C
348         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
349         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
350
351         exclude: handle wildcards with FNM_EXTMATCH
352         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
353         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
354         comment that "has wildcards" really means "has or may have
355         wildcards".  Simplify by avoiding the need to call strcspn.
356
357 2012-04-29  Bruno Haible  <bruno@clisp.org>
358
359         gnulib-tool: Fix list of authors.
360         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
361
362 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
363
364         bootstrap: support Automake-NG in $buildreq
365         * bootstrap (check_versions): Handle automake and aclocal from
366         Automake-NG specially.  They can be specified as respectively
367         the "automake-ng" and "aclocal-ng" requirements.
368
369 2012-04-25  Eric Blake  <eblake@redhat.com>
370
371         bootstrap: only force latest Makefile.in.in for gettext module
372         * build-aux/bootstrap (with_gettext): Only install latest
373         Makefile.in.in for projects requesting bleeding edge gettext.
374
375 2012-04-22  Bruno Haible  <bruno@clisp.org>
376
377         doc: Mention reason for replacement on glibc/Linux systems.
378         * doc/posix-functions/dprintf.texi: Mention the problem with special
379         'long double' values.
380         * doc/posix-functions/fprintf.texi: Likewise.
381         * doc/posix-functions/printf.texi: Likewise.
382         * doc/posix-functions/snprintf.texi: Likewise.
383         * doc/posix-functions/sprintf.texi: Likewise.
384         * doc/posix-functions/vdprintf.texi: Likewise.
385         * doc/posix-functions/vfprintf.texi: Likewise.
386         * doc/posix-functions/vprintf.texi: Likewise.
387         * doc/posix-functions/vsnprintf.texi: Likewise.
388         * doc/posix-functions/vsprintf.texi: Likewise.
389         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
390         platforms with F_DUPFD_CLOEXEC problems.
391         * doc/posix-functions/glob.texi: Mention which platforms are affected
392         by the problem with symbolic links.
393         * doc/posix-functions/linkat.texi: Mention the problem with
394         AT_SYMLINK_FOLLOW on Linux.
395
396 2012-04-22  Bruno Haible  <bruno@clisp.org>
397
398         pwrite: Don't replace on all platforms.
399         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
400
401 2012-04-22  Bruno Haible  <bruno@clisp.org>
402
403         rint* tests: Avoid gcc warnings.
404         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
405         * tests/test-rintf.c (INFINITY, NAN): Likewise.
406         * tests/test-rintl.c (INFINITY, NAN): Likewise.
407
408 2012-04-21  Bruno Haible  <bruno@clisp.org>
409
410         users.txt: Update.
411         * users.txt: Add freedink, wdiff. Update URLs for projects that have
412         switched from CVS to git, bzr, or svn.
413
414 2012-04-21  Bruno Haible  <bruno@clisp.org>
415
416         Large File Support for native Windows platforms.
417
418         * m4/largefile.m4 (gl_LARGEFILE): New macro.
419         * modules/largefile (configure.ac): Require gl_LARGEFILE.
420
421         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
422         type.
423         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
424         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
425         * doc/posix-headers/sys_types.texi: Mention the effect of the
426         'largefile' module.
427
428         * lib/fcntl.in.h: Add comments about off_t.
429         * modules/fcntl-h (Depends-on): Add sys_types.
430
431         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
432         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
433         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
434         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
435         * modules/unistd (Depends-on): Add sys_types.
436         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
437
438         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
439         instead of lseek.
440         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
441         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
442         * modules/lseek (Depends-on): Add sys_types.
443
444         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
445         msvc-nothrow.h.
446         (SetFileSize): New function.
447         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
448         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
449         if Large File Support is requested.
450         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
451         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
452
453         * lib/stdio.in.h: Add comments about off_t.
454         * modules/stdio (Depends-on): Add sys_types.
455
456         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
457         instead of ftello.
458         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
459         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
460         (gl_PREREQ_FTELLO): New macro.
461         * modules/ftello (Depends-on): Add sys_types.
462         (configure.ac): Incoke gl_PREREQ_FTELLO.
463
464         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
465         instead of fseeko.
466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
467         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
468         (gl_PREREQ_FSEEKO): New macro.
469         * modules/fseeko (Depends-on): Add sys_types.
470         (configure.ac): Invoke gl_PREREQ_FSEEKO.
471
472         * lib/sys_stat.in.h: Add comments about off_t.
473         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
474         64-bit integer for st_size in 'struct stat'.
475         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
476         Define _GL_WINDOWS_64_BIT_ST_SIZE.
477         * modules/sys_stat (Depends-on): Add sys_types.
478         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
479
480         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
481         instead of stat or _stat.
482
483         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
484         'struct _stati64' instead of fstat and 'struct stat'.
485         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
486         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
487
488         Reported by Ray Satiro <raysatiro@yahoo.com>.
489
490 2012-04-19  Eric Blake  <eblake@redhat.com>
491
492         bootstrap: accommodate older libtool
493         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
494         Reported by Daniel P. Berrange.
495
496 2012-04-19  Jim Meyering  <meyering@redhat.com>
497
498         announce-gen: avoid failure due to lack of Digest::SHA1
499         Even with the preferred Digest::SHA available, this script
500         would fail when the backup module, Digest::SHA1, was not installed.
501         * build-aux/announce-gen: Quote the conditional use of "use".
502         Reported by Reuben Thomas in:
503         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
504
505         bootstrap: don't let a user's CDPATH setting affect this script
506         When CDPATH is set, cd will sometimes generate output.
507         When "cd" is run in a subshell whose output matters, that
508         surprising-to-some output can cause malfunction.
509         Unsetting CDPATH turns off this shell "feature."
510         * build-aux/bootstrap (CDPATH): Unset.
511         Reported by Reuben Thomas in:
512         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
513         and inspired by his patch here:
514         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
515
516 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
517         and Jim Meyering  <meyering@redhat.com>
518
519         maint.mk: catch "see @xref{}" and similar
520         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
521         prohibit "See also @xref{", "Also see @pxref{", and similar.
522
523 2012-04-16  Jim Meyering  <meyering@redhat.com>
524
525         bootstrap: really use gnulib's po/Makefile.in.in
526         * build-aux/bootstrap: Correct the source file name in previous change.
527         Reported by Akim Demaille.
528
529         configmake: correct minor inconsistency in Makefile rule
530         * modules/configmake (Makefile.am): All other rules like this one
531         run the final "mv -f ..." in the same backslash-continued command
532         as the one that does everything else.  This one put the mv -f ...
533         command on a separate, non-backslash-continued line.
534         Make it like the others.
535
536         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
537         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
538         the one from gettext.  Reported by Akim Demaille.
539
540 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
541
542         Fix recursion of install-* into po directories.
543         Bison's install-pdf bug reported by Hans Aberg at
544         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
545         * build-aux/po/Makefile.in.in (install-dvi, install-html)
546         (install-info, install-pdf, install-ps): New targets.
547
548 2012-04-16  Jim Meyering  <meyering@redhat.com>
549
550         maint: avoid spurious "make sc_maint" failure
551         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
552         exempt all *.class file names, for lib/javaversion.class.
553
554 2012-04-15  Bruno Haible  <bruno@clisp.org>
555
556         lseek: Make configure test independent of environment.
557         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
558         Windows, we know that lseek() on pipes is broken; skip the runtime
559         test.
560
561 2012-04-14  Bruno Haible  <bruno@clisp.org>
562
563         stat: Bypass buggy override in mingw64.
564         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
565         * lib/stat.c (stat) [mingw64]: Define to _stat.
566         * doc/posix-functions/stat.texi: Mention mingw64 bug.
567
568 2012-04-14  Bruno Haible  <bruno@clisp.org>
569
570         pathmax: Fix compilation error on MSVC 9.
571         * modules/pathmax (Depends-on): Add unistd.
572
573 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
574
575         README: document pointer comparison assumption
576         * README (Portability guidelines): Document assumption about
577         pointer comparisons, in response to a recent bug-gnulib comment by
578         Jeffrey Kegler.
579
580 2012-04-12  Bruno Haible  <bruno@clisp.org>
581
582         Tests for module 'getrusage'.
583         * modules/getrusage-tests: New file.
584         * tests/test-getrusage.c: New file.
585
586         New module 'getrusage'.
587         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
588         warn-on-use.h.
589         (getrusage): New declaration.
590         * lib/getrusage.c: New file.
591         * m4/getrusage.m4: New file.
592         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
593         is declared.
594         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
595         HAVE_GETRUSAGE.
596         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
597         snippet/c++defs, snippet/warn-on-use.
598         (Makefile.am): Update generation of sys/resource.h. Substitute
599         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
600         * modules/getrusage: New file.
601         * doc/posix-functions/getrusage.texi: Mention the new module.
602
603 2012-04-12  Bruno Haible  <bruno@clisp.org>
604
605         Tests for module 'sys_resource'.
606         * modules/sys_resource-tests: New file.
607         * tests/test-sys_resource.c: New file.
608
609         New module 'sys_resource'.
610         * lib/sys_resource.in.h: New file.
611         * m4/sys_resource_h.m4: New file.
612         * modules/sys_resource: New file.
613         * doc/posix-headers/sys_resource.texi: Mention the new module.
614
615 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
616
617         ioctl: Fix compilation error on mingw.
618         * lib/ioctl.c: Include <windows.h>.
619         Also reported by Ray Satiro <raysatiro@yahoo.com>.
620
621 2012-04-04  Jim Meyering  <meyering@redhat.com>
622
623         regex: correct #pragma guard expression
624         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
625         not 4.3.  Correct its cpp guard expression.
626
627 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
628
629         regex: remove unnecessary type punning
630         Problem reported by Vladimir Serbinenko in
631         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
632         * lib/regex.h (struct re_pattern_buffer): Change the type of
633         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
634         Fix comment to match code.
635         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
636         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
637         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
638         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
639         (set_regs):
640         Omit no-longer-necessary casts.
641
642 2012-04-03  Bruno Haible  <bruno@clisp.org>
643
644         Tests for module 'ilogbl'.
645         * modules/ilogbl-tests: New file.
646         * tests/test-ilogbl.c: New file.
647
648         New module 'ilogbl'.
649         * lib/math.in.h (ilogbl): New declaration.
650         * lib/ilogbl.c: New file.
651         * m4/ilogbl.m4: New file.
652         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
654         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
655         Split sed invocation, to avoid the limit of 100 substitutions of
656         HP-UX 'sed'.
657         * modules/ilogbl: New file.
658         * tests/test-math-c++.cc: Check the declaration of ilogbl.
659         * doc/posix-functions/ilogbl.texi: Mention the new module.
660
661 2012-04-03  Bruno Haible  <bruno@clisp.org>
662
663         Tests for module 'ilogbf'.
664         * modules/ilogbf-tests: New file.
665         * tests/test-ilogbf.c: New file.
666
667         New module 'ilogbf'.
668         * lib/math.in.h (ilogbf): New declaration.
669         * lib/ilogbf.c: New file.
670         * m4/ilogbf.m4: New file.
671         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
673         REPLACE_ILOGBF.
674         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
675         REPLACE_ILOGBF.
676         * modules/ilogbf: New file.
677         * tests/test-math-c++.cc: Check the declaration of ilogbf.
678         * doc/posix-functions/ilogbf.texi: Mention the new module.
679
680 2012-04-03  Bruno Haible  <bruno@clisp.org>
681
682         Tests for module 'ilogb'.
683         * modules/ilogb-tests: New file.
684         * tests/test-ilogb.c: New file.
685         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
686         tests/test-logb-ieee.h.
687
688         New module 'ilogb'.
689         * lib/math.in.h (ilogb): New declaration.
690         * lib/ilogb.c: New file.
691         * m4/ilogb.m4: New file.
692         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
694         REPLACE_ILOGB.
695         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
696         REPLACE_ILOGB.
697         * modules/ilogb: New file.
698         * tests/test-math-c++.cc: Check the declaration of ilogb.
699         * doc/posix-functions/ilogb.texi: Mention the new module.
700
701 2012-04-03  Bruno Haible  <bruno@clisp.org>
702
703         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
704         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
705         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
706         (main): Check their values.
707         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
708         problem.
709
710 2012-04-03  Bruno Haible  <bruno@clisp.org>
711
712         Tests for module 'logbl-ieee'.
713         * modules/logbl-ieee-tests: New file.
714         * tests/test-logbl-ieee.c: New file.
715
716         New module 'logbl-ieee'.
717         * modules/logbl-ieee: New file.
718
719         Tests for module 'logb-ieee'.
720         * modules/logb-ieee-tests: New file.
721         * tests/test-logb-ieee.c: New file.
722
723         New module 'logb-ieee'.
724         * modules/logb-ieee: New file.
725
726         Tests for module 'logbf-ieee'.
727         * modules/logbf-ieee-tests: New file.
728         * tests/test-logbf-ieee.c: New file.
729         * tests/test-logb-ieee.h: New file.
730
731         New module 'logbf-ieee'.
732         * modules/logbf-ieee: New file.
733
734 2012-04-03  Bruno Haible  <bruno@clisp.org>
735
736         Tests for module 'logbl'.
737         * modules/logbl-tests: New file.
738         * tests/test-logbl.c: New file.
739
740         New module 'logbl'.
741         * lib/math.in.h (logbl): New declaration.
742         * lib/logbl.c: New file.
743         * m4/logbl.m4: New file.
744         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
746         REPLACE_LOGBL.
747         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
748         REPLACE_LOGBL.
749         * modules/logbl: New file.
750         * tests/test-math-c++.cc: Check the declaration of logbl.
751         * doc/posix-functions/logbl.texi: Mention the new module.
752
753 2012-04-02  Bruno Haible  <bruno@clisp.org>
754
755         Tests for module 'logbf'.
756         * modules/logbf-tests: New file.
757         * tests/test-logbf.c: New file.
758
759         New module 'logbf'.
760         * lib/math.in.h (logbf): New declaration.
761         * lib/logbf.c: New file.
762         * m4/logbf.m4: New file.
763         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
765         REPLACE_LOGBF.
766         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
767         REPLACE_LOGBF.
768         * modules/logbf: New file.
769         * tests/test-math-c++.cc: Check the declaration of logbf.
770         * doc/posix-functions/logbf.texi: Mention the new module.
771
772 2012-04-02  Bruno Haible  <bruno@clisp.org>
773
774         logb tests: More tests.
775         * tests/test-logb.h: New file, based on tests/test-logb.c and
776         tests/test-frexp.h.
777         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
778         (main): Just invoke test_function.
779         * modules/logb-tests (Files): Add tests/test-logb.h,
780         tests/minus-zero.h, tests/randomd.c.
781         (Makefile.am): Add randomd.c to test_logb_SOURCES.
782
783         logb: Provide replacement and workarounds.
784         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
785         is 1.
786         * lib/logb.c: New file.
787         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
788         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
790         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
791         * modules/logb (Files): Add lib/logb.c.
792         (Depends-on): Add isfinite, frexp, isnand.
793         (configure.ac): Compile the replacement code logb.c if needed.
794         * tests/test-math-c++.cc: Check the declaration of logb.
795         * doc/posix-functions/logb.texi: Mention the replacement and the bug
796         with subnormal numbers.
797
798 2012-04-02  Bruno Haible  <bruno@clisp.org>
799
800         log10* tests: Speed up.
801         * tests/test-log10.h (test_function): Reduce amount of random numbers
802         to test.
803
804 2012-04-01  Bruno Haible  <bruno@clisp.org>
805
806         logf-ieee: Fix test whether logf works.
807         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
808
809 2012-04-01  Bruno Haible  <bruno@clisp.org>
810
811         log10l: Work around log10l-ieee test failure on IRIX 6.5.
812         * lib/log10l.c: Include <float.h>
813         (log10l): On IRIX, normalize the +Infinity value.
814         * modules/log10l (Depends-on): Add 'float'.
815         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
816         +Infinity.
817
818         log10f-ieee: Work around test failure on NetBSD 5.1.
819         * m4/log10f-ieee.m4: New file.
820         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
821         test whether log10f works with a negative argument. Replace it if not.
822         * lib/log10f.c (log10f): For negative arguments, return NaN.
823         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
824         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
825         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
826
827         log10f-ieee: Work around test failure on Solaris 9.
828         * modules/log10f-ieee (Depends-on): Add log10-ieee.
829         (configure.ac): Require gl_FUNC_LOG10F.
830
831         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
832         * m4/log10-ieee.m4: New file.
833         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
834         whether log10 works with a negative argument. Replace it if not.
835         * lib/log10.c (log10): For negative arguments, return NaN.
836         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
837         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
838         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
839
840         Tests for module 'log10l-ieee'.
841         * modules/log10l-ieee-tests: New file.
842         * tests/test-log10l-ieee.c: New file.
843
844         New module 'log10l-ieee'.
845         * modules/log10l-ieee: New file.
846
847         Tests for module 'log10-ieee'.
848         * modules/log10-ieee-tests: New file.
849         * tests/test-log10-ieee.c: New file.
850
851         New module 'log10-ieee'.
852         * modules/log10-ieee: New file.
853
854         Tests for module 'log10f-ieee'.
855         * modules/log10f-ieee-tests: New file.
856         * tests/test-log10f-ieee.c: New file.
857         * tests/test-log10-ieee.h: New file.
858
859         New module 'log10f-ieee'.
860         * modules/log10f-ieee: New file.
861
862 2012-04-01  Bruno Haible  <bruno@clisp.org>
863
864         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
865         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
866         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
867         workaround.
868         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
869         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
871         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
872         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
873         (Depends-on): Update conditions.
874         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
875         IRIX 6.5, OSF/1 5.1 problems.
876
877 2012-04-01  Bruno Haible  <bruno@clisp.org>
878
879         log10f: Work around OSF/1 5.1 bug.
880         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
881         * lib/log10f.c (log10f): If logf exists, use it and provide just the
882         workaround.
883         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
884         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
886         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
887         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
888         (Depends-on): Update conditions.
889         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
890
891 2012-04-01  Bruno Haible  <bruno@clisp.org>
892
893         log10: Work around OSF/1 5.1 bug.
894         * lib/math.in.h (log10): New declaration.
895         * lib/log10.c: New file.
896         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
897         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
898         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
900         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
901         * modules/log10 (Files): Add lib/log10.c.
902         (Depends-on): Add math.
903         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
904         * tests/test-math-c++.cc: Check the declaration of log10.
905         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
906
907 2012-03-31  Bruno Haible  <bruno@clisp.org>
908
909         log10l tests: More tests.
910         * modules/log10l-tests (Files): Add tests/test-log10l.h,
911         tests/minus-zero.h, tests/randoml.c.
912         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
913         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
914         (main): Invoke test_function.
915
916         log10f tests: More tests.
917         * modules/log10f-tests (Files): Add tests/test-log10.h,
918         tests/minus-zero.h, tests/randomf.c.
919         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
920         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
921         (main): Invoke test_function.
922
923         log10 tests: More tests.
924         * tests/test-log10.h: New file.
925         * modules/log10-tests (Files): Add tests/test-log10.h,
926         tests/minus-zero.h, tests/randomd.c.
927         (Makefile.am): Add randomd.c to test_log10_SOURCES.
928         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
929         (main): Invoke test_function.
930
931 2012-03-31  Simon Josefsson  <simon@josefsson.org>
932
933         fflush: Fix syntax error.
934         * lib/fflush.c: Include unused-parameter.h, needed for
935         _GL_UNUSED_PARAMETER.
936         * modules/fflush (Depends-on): Add snippet/unused-parameter.
937
938 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
939
940         regex: pacify GCC when compiling GRUB
941         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
942         a diagnostic.  Reported by Vladimir Serbinenko in
943         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
944
945 2012-03-29  Eric Blake  <eblake@redhat.com>
946
947         stdio: don't assume gets any more
948         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
949         support.
950         * modules/stdio (Makefile.am): Likewise.
951         * lib/stdio-read.c (gets): Likewise.
952         * tests/test-stdio-c++.cc: Likewise.
953         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
954         * lib/stdio.in.h (gets): Make warning occur in more places.
955         * doc/posix-functions/gets.texi (gets): Update documentation.
956         Reported by Christer Solskogen.
957
958         maint.mk: fix syntax checks without exclusions
959         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
960         Reported by Daniel P. Berrange.
961
962         strerror_r: avoid compiler warning
963         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
964         level.
965
966         fflush: avoid compiler warning
967         * lib/fflush.c (update_fpos_cache): Mark variables that are
968         potentially unused.
969
970 2012-03-25  Bruno Haible  <bruno@clisp.org>
971
972         Tests for module 'localeconv'.
973         * modules/localeconv-tests: New file.
974         * tests/test-localeconv.c: New file.
975
976         New module 'localeconv'.
977         * lib/locale.in.h (localeconv): New declaration.
978         * lib/localeconv.c: New file.
979         * m4/localeconv.m4: New file.
980         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
981         REPLACE_LOCALECONV.
982         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
983         REPLACE_LOCALECONV.
984         * modules/localeconv: New file.
985         * modules/nl_langinfo (Depends-on): Add localeconv.
986         * modules/human (Depends-on): Likewise.
987         * doc/posix-functions/localeconv.texi: Mention the new module.
988
989 2012-03-25  Bruno Haible  <bruno@clisp.org>
990
991         locale: Provide a complete 'struct lconv'.
992         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
993         'struct lconv' does not contain int_p_cs_precedes.
994         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
995         * doc/posix-headers/locale.texi: Update.
996
997         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
998         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
999         * doc/posix-headers/locale.texi: Update.
1000
1001         locale: Provide a working 'struct lconv'.
1002         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1003         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1004         'struct lconv' does not even contain decimal_point.
1005         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1006         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1007         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1008         * doc/posix-headers/locale.texi: Mention the problems with
1009         'struct lconv'.
1010         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1011
1012 2012-03-24  Bruno Haible  <bruno@clisp.org>
1013
1014         Enable common subexpression optimization in GCC.
1015         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1016         macros.
1017         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1018         GCC attribute 'const'.
1019         (uc_locale_language): Declare with GCC attribute 'pure'.
1020         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1021         with GCC attribute 'const'.
1022         * lib/unictype.in.h (uc_is_general_category_withtable,
1023         uc_combining_class, uc_combining_class_name,
1024         uc_combining_class_long_name, uc_bidi_class_name,
1025         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1026         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1027         uc_decimal_value, uc_digit_value, uc_numeric_value,
1028         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1029         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1030         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1031         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1032         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1033         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1034         Declare with GCC attribute 'const'.
1035         (uc_general_category_name, uc_general_category_long_name,
1036         uc_general_category_byname, uc_general_category,
1037         uc_is_general_category, uc_combining_class_byname,
1038         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1039         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1040         Declare with GCC attribute 'pure'.
1041         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1042         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1043         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1044         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1045         with GCC attribute 'pure'.
1046         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1047         'const'.
1048         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1049         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1050         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1051         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1052         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1053         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1054         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1055         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1056         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1057         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1058         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1059         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1060         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1061         GCC attribute 'pure'.
1062         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1063         'const'.
1064         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1065         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1066         u32_strwidth): Declare with GCC attribute 'pure'.
1067
1068         Enable common subexpression optimization in GCC.
1069         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1070         (alphasort): Declare with GCC attribute 'pure'.
1071         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1072         (atoll): Declare with GCC attribute 'pure'.
1073         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1074         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1075         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1076         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1077         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1078         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1079         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1080
1081 2012-03-24  Bruno Haible  <bruno@clisp.org>
1082
1083         gnulib-tool: Avoid unintended error output from 'cmp'.
1084         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1085         "cmp -s", not "cmp > /dev/null".
1086
1087 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1088
1089         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1090
1091         It's not just Automake versions < 1.9b that creates an empty
1092         pkgdatadir at installation time if pkgdata_DATA is specified
1093         to empty; modern automake versions do this as well, at least
1094         until automake 1.11.4 (not yet released at the moment of writing,
1095         but soon to appear).  That behaviour was generally considered a
1096         feature rather than a bug, at least until this discussion:
1097         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1098
1099         See also automake bugs #10997 and #11030.
1100
1101         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1102         reference to relevant automake bug numbers.
1103         (func_emit_tests_Makefile_am): Likewise.
1104
1105 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1106
1107         announce-gen: use Digest::SHA when possible
1108         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1109         back to Digest::SHA1 if necessary.
1110
1111 2012-03-20  Jim Meyering  <meyering@redhat.com>
1112
1113         tests: avoid gcc warnings about argv vs. const initializers
1114         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1115         warnings about discarding 'const' qualifier from pointer target type.
1116         * tests/test-posix_spawn2.c (main): Likewise.
1117
1118 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1119
1120         README-release: simplify slightly
1121         * top/README-release: Run "git checkout master" only once.
1122
1123 2012-03-15  Mark Wielaard  <mark@klomp.org>
1124
1125         git-merge-changelog: add specific example on how to use with hg.
1126         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1127
1128 2012-03-18  Mark Wielaard  <mark@klomp.org>
1129
1130         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1131
1132 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1133
1134         git-version-gen: don't let "prefix" envvar cause trouble
1135         * build-aux/git-version-gen (prefix): Initialize properly,
1136         so as not to use a value specified via the environment.
1137         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1138
1139 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1140
1141         regex: diagnose too-large repeat counts in EREs
1142         Previously, the code did not diagnose the too-large repeat count
1143         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1144         as if it were 'b\{1000000000}', which is unexpected.
1145         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1146         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1147         is a reasonable one for this problem.  Another option would be to
1148         create a new REG_OVERFLOW error for repeat counts that are too large.
1149         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1150         count is too large, so that the caller can distinguish the two cases.
1151         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1152         "Too large" return code, and that repeat counts are one example of this.
1153
1154 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1155
1156         doc: some glibc x32 integer width issues
1157         * doc/posix-headers/sys_types.texi (sys/types.h):
1158         * doc/posix-headers/time.texi (time.h):
1159         Mention that glibc x32 does not conform to POSIX in a couple of
1160         areas related to integer widths.
1161
1162 2012-03-15  Bruno Haible  <bruno@clisp.org>
1163
1164         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1165         * lib/fma.c (VOLATILE): New macro.
1166         (FUNC): Use it to work around a GCC compiler bug.
1167
1168 2012-03-13  Bruno Haible  <bruno@clisp.org>
1169
1170         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1171         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1172         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1173         REPLACE_HYPOTL to 1.
1174         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1175
1176 2012-03-13  Bruno Haible  <bruno@clisp.org>
1177
1178         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1179         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1180         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1181         REPLACE_REMAINDERL to 1.
1182         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1183         bug.
1184
1185 2012-03-13  Bruno Haible  <bruno@clisp.org>
1186
1187         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1188         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1189         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1190         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1191         too big rounding errors.
1192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1193         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1194         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1195         (Depends-on): Update conditions.
1196         * tests/test-sqrtl.c (my_ldexpl): New function.
1197         (main): Add test of a particular value.
1198         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1199
1200 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1201
1202         doc: Update timer_* platform portability notes.
1203         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1204         that always return ENOSYS.
1205         * doc/posix-functions/timer_delete.texi: Likewise.
1206         * doc/posix-functions/timer_gettime.texi: Likewise.
1207         * doc/posix-functions/timer_settime.texi: Likewise.
1208
1209 2012-03-13  Bruno Haible  <bruno@clisp.org>
1210
1211         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1212         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1213         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1214         REPLACE_CBRTL to 1.
1215         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1216
1217 2012-03-13  Bruno Haible  <bruno@clisp.org>
1218
1219         remainderl: Avoid compilation error on AIX >= 5.2.
1220         * lib/math.in.h (remainderl): Undefine macro from the system header.
1221
1222 2012-03-13  Bruno Haible  <bruno@clisp.org>
1223
1224         Avoid compilation errors with MSVC option -fp:strict.
1225         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1226         * lib/cbrtf.c: Likewise.
1227         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1228
1229 2012-03-12  Bruno Haible  <bruno@clisp.org>
1230
1231         uninorm: Don't crash in out-of-memory conditions.
1232         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1233         gracefully.
1234         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1235         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1236
1237 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1238
1239         quote: fix syntax-check
1240         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1241         also exports quote_quoting_options.
1242
1243 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1244
1245         Collapse list of copyright years to ranges.  See
1246         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1247         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1248         build-aux/csharpexec.sh.in, build-aux/gnupload,
1249         build-aux/install-reloc, build-aux/javacomp.sh.in,
1250         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1251         build-aux/move-if-change, build-aux/reloc-ldflags,
1252         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1253
1254 2012-03-11  Bruno Haible  <bruno@clisp.org>
1255
1256         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1257         * m4/log2f-ieee.m4: New file.
1258         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1259         whether log2f works with a minus zero argument. Replace it if not.
1260         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1261         (Depends-on): Add log2-ieee.
1262         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1263         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1264
1265         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1266         * m4/log2-ieee.m4: New file.
1267         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1268         whether log2 works with a minus zero argument. Replace it if not.
1269         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1270         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1271         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1272
1273         Tests for module 'log2l-ieee'.
1274         * modules/log2l-ieee-tests: New file.
1275         * tests/test-log2l-ieee.c: New file.
1276
1277         New module 'log2l-ieee'.
1278         * modules/log2l-ieee: New file.
1279
1280         Tests for module 'log2-ieee'.
1281         * modules/log2-ieee-tests: New file.
1282         * tests/test-log2-ieee.c: New file.
1283
1284         New module 'log2-ieee'.
1285         * modules/log2-ieee: New file.
1286
1287         Tests for module 'log2f-ieee'.
1288         * modules/log2f-ieee-tests: New file.
1289         * tests/test-log2f-ieee.c: New file.
1290         * tests/test-log2-ieee.h: New file.
1291
1292         New module 'log2f-ieee'.
1293         * modules/log2f-ieee: New file.
1294
1295 2012-03-11  Bruno Haible  <bruno@clisp.org>
1296
1297         Tests for module 'log2l'.
1298         * modules/log2l-tests: New file.
1299         * tests/test-log2l.c: New file.
1300
1301         New module 'log2l'.
1302         * lib/math.in.h (log2l): New declaration.
1303         * lib/log2l.c: New file.
1304         * m4/log2l.m4: New file.
1305         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1307         REPLACE_LOG2L.
1308         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1309         REPLACE_LOG2L.
1310         * modules/log2l: New file.
1311         * tests/test-math-c++.cc: Check the declaration of log2l.
1312         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1313         and OSF/1 problems.
1314
1315 2012-03-11  Bruno Haible  <bruno@clisp.org>
1316
1317         Tests for module 'log2f'.
1318         * modules/log2f-tests: New file.
1319         * tests/test-log2f.c: New file.
1320
1321         New module 'log2f'.
1322         * lib/math.in.h (log2f): New declaration.
1323         * lib/log2f.c: New file.
1324         * m4/log2f.m4: New file.
1325         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1327         REPLACE_LOG2F.
1328         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1329         REPLACE_LOG2F.
1330         * modules/log2f: New file.
1331         * tests/test-math-c++.cc: Check the declaration of log2f.
1332         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1333         and OSF/1 and Cygwin problems.
1334
1335 2012-03-11  Bruno Haible  <bruno@clisp.org>
1336
1337         Tests for module 'log2'.
1338         * modules/log2-tests: New file.
1339         * tests/test-log2.c: New file.
1340         * tests/test-log2.h: New file.
1341
1342         New module 'log2'.
1343         * lib/math.in.h (log2): New declaration.
1344         * lib/log2.c: New file.
1345         * m4/log2.m4: New file.
1346         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1348         REPLACE_LOG2.
1349         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1350         REPLACE_LOG2.
1351         * modules/log2: New file.
1352         * tests/test-math-c++.cc: Check the declaration of log2.
1353         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1354         and OSF/1 and Cygwin problems.
1355
1356 2012-03-11  Bruno Haible  <bruno@clisp.org>
1357
1358         exp2* tests: More tests.
1359         * tests/test-exp2.h (test_function): Test all integral arguments that
1360         don't need to overflow or denormalized numbers.
1361         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1362         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1363         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1364
1365 2012-03-10  Bruno Haible  <bruno@clisp.org>
1366
1367         log1pl-ieee: Work around test failure on AIX 7.1.
1368         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1369
1370         log1pl-ieee: Work around test failure on IRIX 6.5.
1371         * m4/log1pl-ieee.m4: New file.
1372         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1373         test whether log1pl works with a minus zero argument. Replace it if
1374         not.
1375         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1377         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1378         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1379         (Depends-on): Update conditions.
1380         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1381         m4/signbit.m4.
1382         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1383         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1384
1385         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1386         * m4/log1pf-ieee.m4: New file.
1387         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1388         test whether log1pf works with a minus zero argument. Replace it if
1389         not.
1390         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1391         m4/signbit.m4.
1392         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1393         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1394
1395         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1396         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1397         (configure.ac): Require gl_FUNC_LOG1PF.
1398
1399         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1400         * m4/log1p-ieee.m4: New file.
1401         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1402         whether log1p works with a minus zero argument. Replace it if not.
1403         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1405         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1406         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1407         (Depends-on): Update conditions.
1408         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1409         m4/signbit.m4.
1410         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1411         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1412
1413         Tests for module 'log1pl-ieee'.
1414         * modules/log1pl-ieee-tests: New file.
1415         * tests/test-log1pl-ieee.c: New file.
1416
1417         New module 'log1pl-ieee'.
1418         * modules/log1pl-ieee: New file.
1419
1420         Tests for module 'log1p-ieee'.
1421         * modules/log1p-ieee-tests: New file.
1422         * tests/test-log1p-ieee.c: New file.
1423
1424         New module 'log1p-ieee'.
1425         * modules/log1p-ieee: New file.
1426
1427         Tests for module 'log1pf-ieee'.
1428         * modules/log1pf-ieee-tests: New file.
1429         * tests/test-log1pf-ieee.c: New file.
1430         * tests/test-log1p-ieee.h: New file.
1431
1432         New module 'log1pf-ieee'.
1433         * modules/log1pf-ieee: New file.
1434
1435 2012-03-10  Bruno Haible  <bruno@clisp.org>
1436
1437         Tests for module 'log1pl'.
1438         * modules/log1pl-tests: New file.
1439         * tests/test-log1pl.c: New file.
1440
1441         New module 'log1pl'.
1442         * lib/math.in.h (log1pl): New declaration.
1443         * lib/log1pl.c: New file.
1444         * m4/log1pl.m4: New file.
1445         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1447         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1448         * modules/log1pl: New file.
1449         * tests/test-math-c++.cc: Check the declaration of log1pl.
1450         * doc/posix-functions/log1pl.texi: Mention the new module.
1451
1452 2012-03-10  Bruno Haible  <bruno@clisp.org>
1453
1454         Tests for module 'log1pf'.
1455         * modules/log1pf-tests: New file.
1456         * tests/test-log1pf.c: New file.
1457
1458         New module 'log1pf'.
1459         * lib/math.in.h (log1pf): New declaration.
1460         * lib/log1pf.c: New file.
1461         * m4/log1pf.m4: New file.
1462         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1464         REPLACE_LOG1PF.
1465         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1466         REPLACE_LOG1PF.
1467         * modules/log1pf: New file.
1468         * tests/test-math-c++.cc: Check the declaration of log1pf.
1469         * doc/posix-functions/log1pf.texi: Mention the new module.
1470
1471 2012-03-10  Bruno Haible  <bruno@clisp.org>
1472
1473         log1p tests: More tests.
1474         * tests/test-log1p.h: New file.
1475         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1476         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1477         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1478         (main): Invoke test_function.
1479
1480         log1p: Provide replacement for Minix and MSVC.
1481         * lib/math.in.h (log1p): New declaration.
1482         * lib/log1p.c: New file.
1483         * m4/log1p.m4: New file.
1484         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1486         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1487         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1488         (Depends-on): Add math, isnand, log, round.
1489         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1490         HAVE_LOG1P is 0.
1491         * tests/test-math-c++.cc: Check the declaration of log1p.
1492         * doc/posix-functions/log1p.texi: Mention the replacement.
1493
1494 2012-03-10  Bruno Haible  <bruno@clisp.org>
1495
1496         math tests: Small simplification.
1497         * tests/test-exp.h (test_function): Use the same err_bound for
1498         'double' on platforms with sizeof (long double) == sizeof (double)
1499         than on platforms with sizeof (long double) > sizeof (double).
1500         * tests/test-exp2.h (test_function): Likewise.
1501         * tests/test-expm1.h (test_function): Likewise.
1502         * tests/test-log.h (test_function): Likewise.
1503
1504 2012-03-10  Bruno Haible  <bruno@clisp.org>
1505
1506         Fix some comments.
1507         * lib/expl.c: Fix an ambiguous comment.
1508         * lib/expm1.c: Likewise.
1509         * lib/expm1l.c: Likewise.
1510         * lib/exp2.c: Likewise.
1511         * lib/exp2l.c: Likewise.
1512
1513 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         regex: allow inclusion of <regex.h> before <limits.h>
1516         Without this patch, portable programs had to include <limits.h> before
1517         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1518         I ran into this problem with a test version of GNU grep on Solaris 8.
1519         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1520         This is done conditionally so that this change can be merged
1521         back to glibc.
1522         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1523         using the included regex.
1524
1525         fts: depend on fdopendir
1526         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1527         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1528         problem was introduced when fdopendir was split out.
1529
1530 2012-03-10  Bruno Haible  <bruno@clisp.org>
1531
1532         Remove unused variables.
1533         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1534         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1535
1536 2012-03-10  Bruno Haible  <bruno@clisp.org>
1537
1538         isnanf-nolibm: Fix last commit.
1539         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1540
1541         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1542         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1543
1544 2012-03-10  Bruno Haible  <bruno@clisp.org>
1545
1546         logf-ieee: Work around test failure on NetBSD 5.1.
1547         * m4/logf-ieee.m4: New file.
1548         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1549         whether logf works with a negative argument. Replace it if not.
1550         * lib/logf.c (logf): For negative arguments, return NaN.
1551         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1552         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1553         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1554
1555         logf-ieee: Work around test failure on Solaris 9.
1556         * modules/logf-ieee (Depends-on): Add log-ieee.
1557         (configure.ac): Require gl_FUNC_LOGF.
1558
1559         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1560         * m4/log-ieee.m4: New file.
1561         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1562         log works with a negative argument. Replace it if not.
1563         * lib/log.c (log): For negative arguments, return NaN.
1564         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1565         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1566         * doc/posix-functions/log.texi: Mention the log-ieee module.
1567
1568         Tests for module 'logl-ieee'.
1569         * modules/logl-ieee-tests: New file.
1570         * tests/test-logl-ieee.c: New file.
1571
1572         New module 'logl-ieee'.
1573         * modules/logl-ieee: New file.
1574
1575         Tests for module 'log-ieee'.
1576         * modules/log-ieee-tests: New file.
1577         * tests/test-log-ieee.c: New file.
1578
1579         New module 'log-ieee'.
1580         * modules/log-ieee: New file.
1581
1582         Tests for module 'logf-ieee'.
1583         * modules/logf-ieee-tests: New file.
1584         * tests/test-logf-ieee.c: New file.
1585         * tests/test-log-ieee.h: New file.
1586
1587         New module 'logf-ieee'.
1588         * modules/logf-ieee: New file.
1589
1590 2012-03-10  Bruno Haible  <bruno@clisp.org>
1591
1592         log: Fix bug introduced on 2012-03-09.
1593         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1594
1595 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1596
1597         timer-time: link explicitly with pthreads on glibc
1598         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1599         to support static linking, when newer glibc is
1600         detected, as that contains pthread emulation of
1601         POSIX timer functions where required.
1602         * modules/timer-time: Depend on threadlib to
1603         pull in the appropriate library to link.
1604
1605 2012-03-10  Bruno Haible  <bruno@clisp.org>
1606
1607         log* tests: More tests.
1608         * tests/test-log.h: New file.
1609         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1610         (main): Invoke test_function.
1611         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1612         (main): Invoke test_function.
1613         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1614         (main): Invoke test_function.
1615         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1616         tests/randomd.c.
1617         (Makefile.am): Add randomd.c to test_log_SOURCES.
1618         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1619         tests/randomf.c.
1620         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1621         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1622         tests/randoml.c.
1623         (Depends-on): Add 'float'.
1624         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1625
1626 2012-03-09  Bruno Haible  <bruno@clisp.org>
1627
1628         logl: Work around OSF/1 5.1 bug.
1629         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1630         * lib/logl.c (logl): If logl exists, use it and provide just the
1631         workaround.
1632         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1633         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1635         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1636         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1637         (Depends-on): Update conditions.
1638         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1639
1640 2012-03-09  Bruno Haible  <bruno@clisp.org>
1641
1642         logf: Work around OSF/1 5.1 bug.
1643         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1644         * lib/logf.c (logf): If logf exists, use it and provide just the
1645         workaround.
1646         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1647         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1649         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1650         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1651         (Depends-on): Update conditions.
1652         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1653
1654 2012-03-09  Bruno Haible  <bruno@clisp.org>
1655
1656         log: Work around OSF/1 5.1 bug.
1657         * lib/math.in.h (log): New declaration.
1658         * lib/log.c: New file.
1659         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1660         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1661         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1663         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1664         * modules/log (Files): Add lib/log.c.
1665         (Depends-on): Add math.
1666         (configure.ac): If REPLACE_LOG is 1, compile an override.
1667         * tests/test-math-c++.cc: Check the declaration of log.
1668         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1669
1670 2012-03-09  Jim Meyering  <meyering@redhat.com>
1671
1672         readtokens.c: adjust wording in a comment
1673         * lib/readtokens.c: Insert omitted "that" in a comment.
1674
1675 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1676
1677         modechange: add notations +40, 00440, etc.
1678         * lib/modechange.c (mode_compile): Support new notations
1679         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1680
1681 2012-03-08  Bruno Haible  <bruno@clisp.org>
1682
1683         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1684         * m4/exp2l-ieee.m4: New file.
1685         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1686         test whether exp2l works with a NaN argument and with a negative
1687         infinity argument. Replace it if not.
1688         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1690         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1691         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1692         (Depends-on): Update conditions.
1693         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1694         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1695         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1696
1697         Tests for module 'exp2l-ieee'.
1698         * modules/exp2l-ieee-tests: New file.
1699         * tests/test-exp2l-ieee.c: New file.
1700
1701         New module 'exp2l-ieee'.
1702         * modules/exp2l-ieee: New file.
1703
1704         Tests for module 'exp2-ieee'.
1705         * modules/exp2-ieee-tests: New file.
1706         * tests/test-exp2-ieee.c: New file.
1707
1708         New module 'exp2-ieee'.
1709         * modules/exp2-ieee: New file.
1710
1711         Tests for module 'exp2f-ieee'.
1712         * modules/exp2f-ieee-tests: New file.
1713         * tests/test-exp2f-ieee.c: New file.
1714         * tests/test-exp2-ieee.h: New file.
1715
1716         New module 'exp2f-ieee'.
1717         * modules/exp2f-ieee: New file.
1718
1719 2012-03-08  Bruno Haible  <bruno@clisp.org>
1720
1721         Tests for module 'exp2l'.
1722         * modules/exp2l-tests: New file.
1723         * tests/test-exp2l.c: New file.
1724
1725         New module 'exp2l'.
1726         * lib/math.in.h (exp2l): New declaration.
1727         * lib/exp2l.c: New file.
1728         * lib/expl-table.c: New file, extracted from lib/expl.c.
1729         * lib/expl.c (gl_expl_table): New declaration.
1730         (expl): Remove expl_table. Update reference.
1731         * m4/exp2l.m4: New file.
1732         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1734         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1735         * modules/exp2l: New file.
1736         * modules/expl (Files): Add lib/expl-table.c.
1737         (configure.ac): Compile also expl-table.c.
1738         * tests/test-math-c++.cc: Check the declaration of exp2l.
1739         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1740         problem.
1741
1742 2012-03-08  Bruno Haible  <bruno@clisp.org>
1743
1744         Tests for module 'exp2f'.
1745         * modules/exp2f-tests: New file.
1746         * tests/test-exp2f.c: New file.
1747
1748         New module 'exp2f'.
1749         * lib/math.in.h (exp2f): New declaration.
1750         * lib/exp2f.c: New file.
1751         * m4/exp2f.m4: New file.
1752         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1754         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1755         * modules/exp2f: New file.
1756         * tests/test-math-c++.cc: Check the declaration of exp2f.
1757         * doc/posix-functions/exp2f.texi: Mention the new module and the
1758         IRIX problem.
1759
1760 2012-03-08  Bruno Haible  <bruno@clisp.org>
1761
1762         Tests for module 'exp2'.
1763         * modules/exp2-tests: New file.
1764         * tests/test-exp2.c: New file.
1765         * tests/test-exp2.h: New file.
1766
1767         New module 'exp2'.
1768         * lib/math.in.h (exp2): New declaration.
1769         * lib/exp2.c: New file.
1770         * m4/exp2.m4: New file.
1771         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1773         REPLACE_EXP2.
1774         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1775         REPLACE_EXP2.
1776         * modules/exp2: New file.
1777         * tests/test-math-c++.cc: Check the declaration of exp2.
1778         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1779         and OpenBSD problems.
1780
1781 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         savedir: fix comment typo
1784         * lib/savedir.c (savedirstream): Fix typo in comment.
1785
1786 2012-03-08  Bruno Haible  <bruno@clisp.org>
1787
1788         test-readtokens.c: use const; remove unwarranted cast
1789         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1790
1791 2012-03-08  Bruno Haible  <bruno@clisp.org>
1792
1793         fmal: Avoid compilation error on AIX.
1794         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1795         AIX 5.2..7.1.
1796
1797 2012-03-08  Bruno Haible  <bruno@clisp.org>
1798
1799         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1800         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1801         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1802         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1803         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1804         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1805         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1806
1807 2012-03-08  Bruno Haible  <bruno@clisp.org>
1808
1809         remainderf: Override buggy system function on IRIX 6.5.
1810         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1811         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1812         when it exists.
1813         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1814
1815 2012-03-08  Jim Meyering  <meyering@redhat.com>
1816
1817         test-readtokens.c: avoid const-related compilation warnings
1818         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1819
1820 2012-03-07  Jim Meyering  <meyering@redhat.com>
1821             Bruno Haible  <bruno@clisp.org>
1822
1823         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1824         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1825         tests/randomd.c.
1826         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1827         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1828         tests/randoml.c.
1829         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1830
1831 2012-03-07  Bruno Haible  <bruno@clisp.org>
1832
1833         expm1l: Avoid compilation error on AIX.
1834         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1835         AIX 5.2..7.1.
1836
1837 2012-03-07  Bruno Haible  <bruno@clisp.org>
1838
1839         expm1l: Don't override undeclared system function on IRIX 6.5.
1840         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1841         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1842         it exists. Set HAVE_DECL_EXPM1L.
1843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1844         HAVE_EXPM1L.
1845         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1846         HAVE_EXPM1L.
1847         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1848
1849 2012-03-07  Bruno Haible  <bruno@clisp.org>
1850
1851         remainderl: Don't override undeclared system function on IRIX 6.5.
1852         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1853         HAVE_REMAINDERL.
1854         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1855         declared when it exists. Set HAVE_DECL_REMAINDERL.
1856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1857         not HAVE_REMAINDERL.
1858         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1859         HAVE_REMAINDERL.
1860         * doc/posix-functions/remainderl.texi: Mention missing declaration
1861         problem.
1862
1863 2012-03-07  Bruno Haible  <bruno@clisp.org>
1864
1865         rintf: Don't override undeclared system function on IRIX 6.5.
1866         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1867         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1868         exists. Set HAVE_DECL_RINTF.
1869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1870         HAVE_RINTF.
1871         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1872         HAVE_RINTF.
1873         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1874
1875 2012-03-07  Bruno Haible  <bruno@clisp.org>
1876
1877         roundl: Avoid compilation error on AIX.
1878         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1879         AIX 5.2..7.1.
1880
1881 2012-03-07  Bruno Haible  <bruno@clisp.org>
1882
1883         roundl: Don't override undeclared system function on IRIX 6.5.
1884         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1885         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1886         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1887         * modules/roundl (configure.ac): For replacement code, test
1888         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1889         (Depends-on): Update conditions.
1890         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1891
1892 2012-03-07  Bruno Haible  <bruno@clisp.org>
1893
1894         roundf: Don't override undeclared system function on IRIX 6.5.
1895         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1896         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1897         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1898         * modules/roundf (configure.ac): For replacement code, test
1899         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1900         (Depends-on): Update conditions.
1901         * modules/roundf-ieee (Depends-on): Update conditions.
1902         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1903
1904 2012-03-07  Bruno Haible  <bruno@clisp.org>
1905
1906         round: Don't override undeclared system function on IRIX 6.5.
1907         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1908         argument.
1909         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1910         also when it is not declared. Set HAVE_ROUND. For replacement code,
1911         test HAVE_ROUND, not HAVE_DECL_ROUND.
1912         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1913         not HAVE_DECL_ROUND.
1914         (Depends-on): Update conditions.
1915         * modules/round-ieee (Depends-on): Update conditions.
1916         * doc/posix-functions/round.texi: Mention the IRIX problem.
1917
1918 2012-03-07  Bruno Haible  <bruno@clisp.org>
1919
1920         copysignf: Don't override undeclared system function on IRIX 6.5.
1921         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1922         HAVE_COPYSIGNF.
1923         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1924         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1926         not HAVE_COPYSIGNF.
1927         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1928         HAVE_COPYSIGNF.
1929         * doc/posix-functions/copysignf.texi: Mention missing declaration
1930         problem.
1931
1932 2012-03-07  Jim Meyering  <meyering@redhat.com>
1933
1934         readtokens: add tests
1935         * modules/readtokens-tests: New file.
1936         * tests/test-readtokens.c: New file.
1937
1938 2012-03-07  Jim Meyering  <meyering@redhat.com>
1939
1940         quotearg: the module must now include quote.h
1941         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1942         So must the module.
1943         * modules/quotearg (Files): Add quote.h.
1944
1945 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1946
1947         readtokens: avoid core dumps with unusual calling patterns
1948         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1949         * lib/readtokens.c: Include limits.h.
1950         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1951         (readtoken): Don't cache the delimiters; the cache code was buggy
1952         if !delim && saved_delim, or if the new n_delim differs from the old.
1953         Also, it wasn't thread-safe.
1954
1955 2012-03-07  Bruno Haible  <bruno@clisp.org>
1956
1957         quote: Adhere to common module description layout.
1958         * modules/quote (Makefile.am): Add back empty section.
1959
1960 2012-03-06  Akim Demaille  <demaille@gostai.com>
1961
1962         quote: fuse into quotearg
1963         This patch is made for the benefit of Bison.
1964         quote does not leave the choice of the quoting style to the user.
1965         quoting_style provides poor customizability, yet quoting_options,
1966         which is very rich, is hidden inside quotearg.c.  So in order to
1967         allow quote customization, move its implementation to quotearg.c.
1968         * lib/quote.c: Remove.
1969         * modules/quote: Adjust.
1970         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1971         warning: provide all the members of literal structs.
1972         (quote_quoting_options): New.
1973         (quote, quote_n): Import implementation from quote.c.
1974         * lib/quote.h: Import the comments from quote.c.
1975         (quote_quoting_options): New.
1976
1977 2012-03-06  Bruno Haible  <bruno@clisp.org>
1978
1979         Tests for module 'expm1l-ieee'.
1980         * modules/expm1l-ieee-tests: New file.
1981         * tests/test-expm1l-ieee.c: New file.
1982
1983         New module 'expm1l-ieee'.
1984         * modules/expm1l-ieee: New file.
1985
1986         Tests for module 'expm1f-ieee'.
1987         * modules/expm1f-ieee-tests: New file.
1988         * tests/test-expm1f-ieee.c: New file.
1989
1990         New module 'expm1f-ieee'.
1991         * modules/expm1f-ieee: New file.
1992
1993         Tests for module 'expm1-ieee'.
1994         * modules/expm1-ieee-tests: New file.
1995         * tests/test-expm1-ieee.c: New file.
1996         * tests/test-expm1-ieee.h: New file.
1997
1998         New module 'expm1-ieee'.
1999         * modules/expm1-ieee: New file.
2000         * m4/expm1-ieee.m4: New file.
2001         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2002         whether expm1 works with a minus zero argument. Replace it if not.
2003         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2005         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2006         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2007         (Depends-on): Update conditions.
2008         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2009         AIX problem.
2010
2011 2012-03-06  Bruno Haible  <bruno@clisp.org>
2012
2013         Work around expm1f bug on IRIX 6.5.
2014         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2015         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2016         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2017         not work.
2018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2019         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2020         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2021         (Depends-on): Update conditions.
2022         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2023
2024 2012-03-06  Bruno Haible  <bruno@clisp.org>
2025
2026         Tests for module 'expm1l'.
2027         * modules/expm1l-tests: New file.
2028         * tests/test-expm1l.c: New file.
2029
2030         New module 'expm1l'.
2031         * lib/math.in.h (expm1l): New declaration.
2032         * lib/expm1l.c: New file.
2033         * m4/expm1l.m4: New file.
2034         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2036         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2037         * modules/expm1l: New file.
2038         * tests/test-math-c++.cc: Check the declaration of expm1l.
2039         * doc/posix-functions/expm1l.texi: Mention the new module.
2040
2041 2012-03-06  Bruno Haible  <bruno@clisp.org>
2042
2043         Tests for module 'expm1f'.
2044         * modules/expm1f-tests: New file.
2045         * tests/test-expm1f.c: New file.
2046
2047         New module 'expm1f'.
2048         * lib/math.in.h (expm1f): New declaration.
2049         * lib/expm1f.c: New file.
2050         * m4/expm1f.m4: New file.
2051         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2053         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2054         * modules/expm1f: New file.
2055         * tests/test-math-c++.cc: Check the declaration of expm1f.
2056         * doc/posix-functions/expm1f.texi: Mention the new module.
2057
2058 2012-03-06  Bruno Haible  <bruno@clisp.org>
2059
2060         Tests for module 'expm1'.
2061         * modules/expm1-tests: New file.
2062         * tests/test-expm1.c: New file.
2063         * tests/test-expm1.h: New file.
2064
2065         New module 'expm1'.
2066         * lib/math.in.h (expm1): New declaration.
2067         * lib/expm1.c: New file.
2068         * m4/expm1.m4: New file.
2069         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2071         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2072         * modules/expm1: New file.
2073         * tests/test-math-c++.cc: Check the declaration of expm1.
2074         * doc/posix-functions/expm1.texi: Mention the new module.
2075
2076 2012-03-06  Bruno Haible  <bruno@clisp.org>
2077
2078         math: Ensure declarations of math functions.
2079         * modules/acosf (Depends-on): Add 'extensions'.
2080         * modules/asinf (Depends-on): Likewise.
2081         * modules/atan2f (Depends-on): Likewise.
2082         * modules/atanf (Depends-on): Likewise.
2083         * modules/cbrt (Depends-on): Likewise.
2084         * modules/cbrtf (Depends-on): Likewise.
2085         * modules/cbrtl (Depends-on): Likewise.
2086         * modules/copysignf (Depends-on): Likewise.
2087         * modules/copysignl (Depends-on): Likewise.
2088         * modules/cosf (Depends-on): Likewise.
2089         * modules/coshf (Depends-on): Likewise.
2090         * modules/expf (Depends-on): Likewise.
2091         * modules/fabsf (Depends-on): Likewise.
2092         * modules/fabsl (Depends-on): Likewise.
2093         * modules/fmaf (Depends-on): Likewise.
2094         * modules/fmal (Depends-on): Likewise.
2095         * modules/fmodf (Depends-on): Likewise.
2096         * modules/fmodl (Depends-on): Likewise.
2097         * modules/frexpf (Depends-on): Likewise.
2098         * modules/frexpl (Depends-on): Likewise.
2099         * modules/hypot (Depends-on): Likewise.
2100         * modules/hypotf (Depends-on): Likewise.
2101         * modules/hypotl (Depends-on): Likewise.
2102         * modules/ldexpf (Depends-on): Likewise.
2103         * modules/ldexpl (Depends-on): Likewise.
2104         * modules/log10f (Depends-on): Likewise.
2105         * modules/log10l (Depends-on): Likewise.
2106         * modules/log1p (Depends-on): Likewise.
2107         * modules/logb (Depends-on): Likewise.
2108         * modules/logf (Depends-on): Likewise.
2109         * modules/modff (Depends-on): Likewise.
2110         * modules/modfl (Depends-on): Likewise.
2111         * modules/powf (Depends-on): Likewise.
2112         * modules/remainderf (Depends-on): Likewise.
2113         * modules/remainderl (Depends-on): Likewise.
2114         * modules/rintf (Depends-on): Likewise.
2115         * modules/rintl (Depends-on): Likewise.
2116         * modules/sinf (Depends-on): Likewise.
2117         * modules/sinhf (Depends-on): Likewise.
2118         * modules/sqrtf (Depends-on): Likewise.
2119         * modules/tanf (Depends-on): Likewise.
2120         * modules/tanhf (Depends-on): Likewise.
2121         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2122         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2123         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2124         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2125         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2126         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2127         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2128         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2129         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2130         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2131         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2132         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2133         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2134         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2135         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2136         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2137         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2138         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2139         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2140         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2141         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2142         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2143         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2144         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2145         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2146         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2147         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2148         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2149         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2150         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2151         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2152         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2153         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2154         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2155         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2156         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2157         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2158         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2159         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2160         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2161         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2162
2163 2012-03-06  Bruno Haible  <bruno@clisp.org>
2164
2165         math: Update module names in warnings.
2166         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2167         tanl): Use specific module name in warn-on-use warning.
2168
2169 2012-03-06  Bruno Haible  <bruno@clisp.org>
2170
2171         expl: Simplify computation.
2172         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2173
2174 2012-03-05  Bruno Haible  <bruno@clisp.org>
2175
2176         exp* tests: More tests.
2177         * tests/test-exp.h: New file.
2178         * tests/test-exp.c: Include <float.h> and test-exp.h.
2179         (main): Invoke test_function.
2180         * tests/test-expf.c: Include <float.h> and test-exp.h.
2181         (main): Invoke test_function.
2182         * tests/test-expl.c: Include <float.h> and test-exp.h.
2183         (main): Invoke test_function.
2184         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2185         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2186         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2187         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2188         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2189         (Depends-on): Add 'float'.
2190         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2191
2192         expl: Fix precision of computed result.
2193         * lib/expl.c: Completely rewritten.
2194         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2195         (Maintainer): Add me.
2196         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2197
2198 2012-03-05  Bruno Haible  <bruno@clisp.org>
2199
2200         cbrt* tests: More tests.
2201         * tests/test-cbrt.h: New file.
2202         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2203         (main): Invoke test_function.
2204         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2205         (main): Invoke test_function.
2206         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2207         (main): Invoke test_function.
2208         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2209         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2210         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2211         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2212         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2213         (Depends-on): Add 'float'.
2214         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2215
2216 2012-03-05  Bruno Haible  <bruno@clisp.org>
2217
2218         hypot* tests: More tests.
2219         * tests/test-hypot.h: New file, partially extracted from
2220         tests/test-hypotl.c.
2221         * tests/test-hypot.c: Include test-hypot.h.
2222         (main): Invoke test_function.
2223         * tests/test-hypotf.c: Include test-hypot.h.
2224         (main): Invoke test_function.
2225         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2226         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2227         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2228         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2229         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2230         tests/randomf.c.
2231         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2232         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2233         tests/randoml.c.
2234         (Depends-on): Add 'fpucw', 'float'.
2235         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2236
2237 2012-03-05  Bruno Haible  <bruno@clisp.org>
2238
2239         fpucw: Doc about FreeBSD.
2240         * lib/fpucw.h: Mention FreeBSD in comments.
2241
2242 2012-03-04  Bruno Haible  <bruno@clisp.org>
2243
2244         sqrt* tests: More tests.
2245         * tests/test-sqrt.h: New file.
2246         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2247         (main): Invoke test_function.
2248         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2249         (main): Invoke test_function.
2250         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2251         (main): Invoke test_function.
2252         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2253         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2254         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2255         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2256         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2257         (Depends-on): Add 'float'.
2258         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2259
2260 2012-03-04  Bruno Haible  <bruno@clisp.org>
2261
2262         remainder* tests: More tests.
2263         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2264         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2265         (main): Invoke test_function.
2266         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2267         (main): Invoke test_function.
2268         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2269         (main): Invoke test_function.
2270         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2271         tests/randomd.c.
2272         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2273         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2274         tests/randomf.c.
2275         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2276         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2277         tests/randoml.c.
2278         (Depends-on): Add 'float'.
2279         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2280
2281 2012-03-04  Bruno Haible  <bruno@clisp.org>
2282
2283         remainder, remainderf, remainderl: Fix computation for large quotients.
2284         * lib/remainder.c: Completely rewritten.
2285         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2286         USE_FLOAT.
2287         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2288         USE_LONG_DOUBLE.
2289         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2290         isnand, isinf. Remove round, fma.
2291         * modules/remainderf (Files): Add lib/remainder.c.
2292         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2293         Remove roundf, fmaf.
2294         * modules/remainderl (Files): Add lib/remainder.c.
2295         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2296         isinf. Remove roundl, fmal.
2297         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2298         REMAINDER_LIBM.
2299         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2300         REMAINDERF_LIBM.
2301         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2302         REMAINDERL_LIBM.
2303
2304 2012-03-04  Bruno Haible  <bruno@clisp.org>
2305
2306         fmod* tests: More tests.
2307         * tests/test-fmod.h (my_ldexp): New function.
2308         (test_function): Reduce amount of random numbers to test. Add tests
2309         of very large quotients x / y.
2310         * tests/test-fmod.c (MAX_EXP): New macro.
2311         * tests/test-fmodf.c (MAX_EXP): Likewise.
2312         * tests/test-fmodl.c (MAX_EXP): Likewise.
2313
2314 2012-03-04  Bruno Haible  <bruno@clisp.org>
2315
2316         fmod, fmodl: Fix computation for large quotients x / y.
2317         * lib/fmod.c: Completely rewritten.
2318         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2319         USE_LONG_DOUBLE.
2320         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2321         isnand. Remove fma.
2322         * modules/fmodl (Files): Add lib/fmod.c.
2323         (Depends-on): Add float, isfinite, signbit, fabsl,
2324         frexpl, ldexpl, isnanl. Remove fma.
2325         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2326         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2327
2328 2012-03-03  Bruno Haible  <bruno@clisp.org>
2329
2330         fmod* tests: More tests.
2331         * tests/test-fmod.h: New file.
2332         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2333         (main): Invoke test_function.
2334         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2335         (main): Invoke test_function.
2336         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2337         (main): Invoke test_function.
2338         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2339         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2340         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2341         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2342         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2343         (Depends-on): Add 'float'.
2344         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2345
2346 2012-03-03  Bruno Haible  <bruno@clisp.org>
2347
2348         rint* tests: More tests.
2349         * tests/test-rint.h: New file, partially extracted from
2350         tests/test-rintl.c.
2351         * tests/test-rint.c: Include test-rint.h.
2352         (main): Invoke test_function.
2353         * tests/test-rintf.c: Include test-rint.h.
2354         (main): Invoke test_function.
2355         * tests/test-rintl.c: Include test-rint.h.
2356         (main): Invoke test_function.
2357         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2358         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2359         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2360         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2361         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2362         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2363
2364 2012-03-03  Bruno Haible  <bruno@clisp.org>
2365
2366         modf* tests: More tests.
2367         * tests/test-modf.h: New file.
2368         * tests/test-modf.c: Include <float.h> and test-modf.h.
2369         (main): Invoke test_function.
2370         * tests/test-modff.c: Include <float.h> and test-modf.h.
2371         (main): Invoke test_function.
2372         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2373         (main): Invoke test_function.
2374         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2375         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2376         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2377         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2378         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2379         (Depends-on): Add 'float'.
2380         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2381
2382 2012-03-03  Bruno Haible  <bruno@clisp.org>
2383
2384         fabs* tests: More tests.
2385         * tests/test-fabs.h: New file, partially extracted from
2386         tests/test-fabsl.c.
2387         * tests/test-fabs.c (RANDOM): New macro.
2388         * tests/test-fabsf.c (RANDOM): New macro.
2389         * tests/test-fabsl.c (RANDOM): New macro.
2390         * modules/fabs-tests (Files): Add tests/randomd.c.
2391         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2392         * modules/fabsf-tests (Files): Add tests/randomf.c.
2393         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2394         * modules/fabsl-tests (Files): Add tests/randoml.c.
2395         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2396
2397 2012-03-03  Bruno Haible  <bruno@clisp.org>
2398
2399         ldexp* tests: More tests.
2400         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2401         * tests/test-ldexp.c (RANDOM): New macro.
2402         * tests/test-ldexpf.c (RANDOM): New macro.
2403         * tests/test-ldexpl.c (RANDOM): New macro.
2404         * modules/ldexp-tests (Files): Add tests/randomd.c.
2405         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2406         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2407         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2408         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2409         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2410
2411 2012-03-03  Bruno Haible  <bruno@clisp.org>
2412
2413         frexp* tests: More tests.
2414         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2415         * tests/test-frexp.c (RANDOM): New macro.
2416         * tests/test-frexpf.c (RANDOM): New macro.
2417         * tests/test-frexpl.c (RANDOM): New macro.
2418         * modules/frexp-tests (Files): Add tests/randomd.c.
2419         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2420         * modules/frexpf-tests (Files): Add tests/randomf.c.
2421         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2422         * modules/frexpl-tests (Files): Add tests/randoml.c.
2423         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2424
2425 2012-03-03  Bruno Haible  <bruno@clisp.org>
2426
2427         Support for pseudo-random numbers in tests.
2428         * tests/randomf.c: New file.
2429         * tests/randomd.c: New file.
2430         * tests/randoml.c: New file.
2431         * tests/macros.h (randomf, randomd, randoml): New declarations.
2432
2433 2012-03-03  Bruno Haible  <bruno@clisp.org>
2434
2435         frexp* tests: Refactor.
2436         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2437         * tests/test-frexp.c: Include and use it.
2438         * tests/test-frexpf.c: Likewise.
2439         * tests/test-frexpl.c: Likewise.
2440         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2441         * modules/frexpf-tests (Files): Likewise.
2442         * modules/frexpl-tests (Files): Likewise.
2443
2444 2012-03-02  Jim Meyering  <meyering@redhat.com>
2445
2446         maint: don't specify XZ_OPT=-9ev in dist-related rule
2447         Using xz's -9 option is warranted only if you have a very large
2448         tarball (see xz's documentation for the sizes vs. presets), and
2449         requires 64MiB of memory at decompression time.
2450         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2451         Automake's default of just "-e" is fine.  Override on a
2452         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2453
2454 2012-03-01  Eric Blake  <eblake@redhat.com>
2455
2456         maint.mk: allow announcement for non-gnulib project
2457         * maint.mk (announcement): Skip gnulib version if not used.
2458
2459 2012-03-01  Jim Meyering  <meyering@redhat.com>
2460
2461         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2462         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2463         envvar settings cannot interfere.  Otherwise, setting envvars like
2464         prohibit=foo require=bar, etc. would cause spurious test failures.
2465
2466 2012-03-01  Eric Blake  <eblake@redhat.com>
2467
2468         maint.mk: add per-line exclusions to prohibitions
2469         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2470         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2471         (sc_const_long_option): Use it.
2472
2473 2012-03-01  Bruno Haible  <bruno@clisp.org>
2474
2475         Tests for module 'expl-ieee'.
2476         * modules/expl-ieee-tests: New file.
2477         * tests/test-expl-ieee.c: New file.
2478
2479         New module 'expl-ieee'.
2480         * modules/expl-ieee: New file.
2481
2482         Tests for module 'exp-ieee'.
2483         * modules/exp-ieee-tests: New file.
2484         * tests/test-exp-ieee.c: New file.
2485
2486         New module 'exp-ieee'.
2487         * modules/exp-ieee: New file.
2488
2489         Tests for module 'expf-ieee'.
2490         * modules/expf-ieee-tests: New file.
2491         * tests/test-expf-ieee.c: New file.
2492         * tests/test-exp-ieee.h: New file.
2493
2494         New module 'expf-ieee'.
2495         * modules/expf-ieee: New file.
2496
2497 2012-02-29  Bruno Haible  <bruno@clisp.org>
2498
2499         cbrtl-ieee: Work around test failure on IRIX 6.5.
2500         * m4/cbrtl-ieee.m4: New file.
2501         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2502         test whether cbrtl works with a minus zero argument. Replace it if not.
2503         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2505         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2506         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2507         (Depends-on): Update conditions.
2508         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2509         m4/signbit.m4.
2510         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2511         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2512         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2513
2514         Tests for module 'cbrtl-ieee'.
2515         * modules/cbrtl-ieee-tests: New file.
2516         * tests/test-cbrtl-ieee.c: New file.
2517
2518         New module 'cbrtl-ieee'.
2519         * modules/cbrtl-ieee: New file.
2520
2521         Tests for module 'cbrt-ieee'.
2522         * modules/cbrt-ieee-tests: New file.
2523         * tests/test-cbrt-ieee.c: New file.
2524
2525         New module 'cbrt-ieee'.
2526         * modules/cbrt-ieee: New file.
2527
2528         Tests for module 'cbrtf-ieee'.
2529         * modules/cbrtf-ieee-tests: New file.
2530         * tests/test-cbrtf-ieee.c: New file.
2531         * tests/test-cbrt-ieee.h: New file.
2532
2533         New module 'cbrtf-ieee'.
2534         * modules/cbrtf-ieee: New file.
2535
2536 2012-02-29  Bruno Haible  <bruno@clisp.org>
2537
2538         cbrtf: Work around bug in IRIX 6.5 system function.
2539         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2540         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2541         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2542         work.
2543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2544         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2545         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2546         (Depends-on): Update conditions.
2547         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2548
2549 2012-02-29  Bruno Haible  <bruno@clisp.org>
2550
2551         Tests for module 'cbrtl'.
2552         * modules/cbrtl-tests: New file.
2553         * tests/test-cbrtl.c: New file.
2554
2555         New module 'cbrtl'.
2556         * lib/math.in.h (cbrtl): New declaration.
2557         * lib/cbrtl.c: New file.
2558         * m4/cbrtl.m4: New file.
2559         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2561         HAVE_DECL_CBRTL.
2562         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2563         HAVE_DECL_CBRTL.
2564         * modules/cbrtl: New file.
2565         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2566         * doc/posix-functions/cbrtl.texi: Mention the new module.
2567
2568 2012-02-29  Bruno Haible  <bruno@clisp.org>
2569
2570         Tests for module 'cbrtf'.
2571         * modules/cbrtf-tests: New file.
2572         * tests/test-cbrtf.c: New file.
2573
2574         New module 'cbrtf'.
2575         * lib/math.in.h (cbrtf): New declaration.
2576         * lib/cbrtf.c: New file.
2577         * m4/cbrtf.m4: New file.
2578         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2580         HAVE_DECL_CBRTF.
2581         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2582         HAVE_DECL_CBRTF.
2583         * modules/cbrtf: New file.
2584         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2585         * doc/posix-functions/cbrtf.texi: Mention the new module.
2586
2587 2012-02-29  Bruno Haible  <bruno@clisp.org>
2588
2589         cbrt: Provide replacement on MSVC and Minix.
2590         * lib/math.in.h (cbrt): New declaration.
2591         * lib/cbrt.c: New file.
2592         * m4/cbrt.m4: New file.
2593         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2595         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2596         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2597         (Depends-on): Add dependencies.
2598         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2599         * tests/test-math-c++.cc: Check the declaration of cbrt.
2600         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2601         replacement.
2602
2603 2012-02-29  Bruno Haible  <bruno@clisp.org>
2604
2605         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2606         * m4/hypotl-ieee.m4: New file.
2607         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2608         test whether hypotl works with mixed NaN and Infinity arguments.
2609         Replace it if not.
2610         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2612         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2613         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2614         (Depends-on): Update conditions.
2615         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2616         (Depends-on): Add hypot-ieee.
2617         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2618         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2619
2620         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2621         * m4/hypotf-ieee.m4: New file.
2622         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2623         test whether hypotf works with mixed NaN and Infinity arguments.
2624         Replace it if not.
2625         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2626         (Depends-on): Add hypot-ieee.
2627         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2628         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2629
2630         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2631         * lib/math.in.h (hypot): New declaration.
2632         * lib/hypot.c: New file.
2633         * m4/hypot-ieee.m4: New file.
2634         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2635         whether hypot works with mixed NaN and Infinity arguments. Replace it
2636         if not.
2637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2638         REPLACE_HYPOT.
2639         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2640         * modules/hypot (Files): Add lib/hypot.c.
2641         (Depends-on): Add dependencies.
2642         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2643         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2644         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2645         * tests/test-math-c++.cc: Check the declaration of hypot.
2646         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2647
2648         Tests for module 'hypotl-ieee'.
2649         * modules/hypotl-ieee-tests: New file.
2650         * tests/test-hypotl-ieee.c: New file.
2651
2652         New module 'hypotl-ieee'.
2653         * modules/hypotl-ieee: New file.
2654
2655         Tests for module 'hypot-ieee'.
2656         * modules/hypot-ieee-tests: New file.
2657         * tests/test-hypot-ieee.c: New file.
2658
2659         New module 'hypot-ieee'.
2660         * modules/hypot-ieee: New file.
2661
2662         Tests for module 'hypotf-ieee'.
2663         * modules/hypotf-ieee-tests: New file.
2664         * tests/test-hypotf-ieee.c: New file.
2665         * tests/test-hypot-ieee.h: New file.
2666
2667         New module 'hypotf-ieee'.
2668         * modules/hypotf-ieee: New file.
2669
2670 2012-02-29  Bruno Haible  <bruno@clisp.org>
2671
2672         Remove unused variables.
2673         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2674         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2675         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2676         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2677
2678 2012-02-29  Eric Blake  <eblake@redhat.com>
2679
2680         termios: fix pid_t always, not just for tcgetsid
2681         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2682         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2683         just when building tcgetsid.
2684
2685 2012-02-29  Bruno Haible  <bruno@clisp.org>
2686
2687         Tests for module 'hypotl'.
2688         * modules/hypotl-tests: New file.
2689         * tests/test-hypotl.c: New file.
2690
2691         New module 'hypotl'.
2692         * lib/math.in.h (hypotl): New declaration.
2693         * lib/hypotl.c: New file.
2694         * m4/hypotl.m4: New file.
2695         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2697         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2698         * modules/hypotl: New file.
2699         * tests/test-math-c++.cc: Check the hypotl declaration.
2700         * doc/posix-functions/hypotl.texi: Mention the new module.
2701
2702 2012-02-29  Eric Blake  <eblake@redhat.com>
2703
2704         tcgetsid: fix cygwin header bug
2705         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2706
2707         docs: update cygwin progress
2708         * doc/posix-functions/llround.texi (llround): Added in cygwin
2709         1.7.8.
2710         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2711         * doc/glibc-functions/program_invocation_name.texi
2712         (program_invocation_name): Likewise.
2713         * doc/glibc-functions/program_invocation_short_name.texi
2714         (program_invocation_short_name): Likewise.
2715         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2716         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2717         Likewise.
2718         * doc/posix-functions/pthread_spin_destroy.texi
2719         (pthread_spin_destroy): Added in cygwin 1.7.10.
2720         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2721         Likewise.
2722         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2723         Likewise.
2724         * doc/posix-functions/pthread_spin_trylock.texi
2725         (pthread_spin_trylock): Likewise.
2726         * doc/posix-functions/pthread_spin_unlock.texi
2727         (pthread_spin_unlock): Likewise.
2728         * doc/posix-functions/pthread_setschedprio.texi
2729         (pthread_setschedprio): Likewise.
2730         * doc/posix-functions/pthread_attr_getstack.texi
2731         (pthread_attr_getstack): Likewise.
2732         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2733         (pthread_attr_getstackaddr): Likewise.
2734         * doc/glibc-functions/pthread_getattr_np.texi
2735         (pthread_getattr_np): Likewise.
2736         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2737         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2738         * doc/posix-functions/clock_settime.texi (clock_settime):
2739         Likewise.
2740         * doc/posix-functions/pthread_attr_getguardsize.texi
2741         (pthread_attr_getguardsize): Likewise.
2742         * doc/posix-functions/pthread_attr_setguardsize.texi
2743         (pthread_attr_setguardsize): Likewise.
2744         * doc/posix-functions/pthread_attr_setstack.texi
2745         (pthread_attr_setstack): Likewise.
2746         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2747         (pthread_attr_setstackaddr): Likewise.
2748         * doc/posix-functions/clock_getcpuclockid.texi
2749         (clock_getcpuclockid): Likewise.
2750         * doc/posix-functions/pthread_getcpuclockid.texi
2751         (pthread_getcpuclockid): Likewise.
2752         * doc/glibc-functions/error.texi (error): Likewise.
2753         * doc/glibc-functions/error_at_line.texi (error_at_line):
2754         Likewise.
2755         * doc/glibc-functions/error_message_count.texi
2756         (error_message_count): Likewise.
2757         * doc/glibc-functions/error_one_per_line.texi
2758         (error_one_per_line): Likewise.
2759         * doc/glibc-functions/error_print_progname.texi
2760         (error_print_progname): Likewise.
2761         * doc/posix-functions/pthread_condattr_getclock.texi
2762         (pthread_condattr_getclock): Likewise.
2763         * doc/posix-functions/pthread_condattr_setclock.texi
2764         (pthread_condattr_setclock): Likewise.
2765         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2766         Likewise.
2767         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2768         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2769         * doc/glibc-functions/get_current_dir_name.texi
2770         (get_current_dir_name): Likewise.
2771         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2772         Likewise.
2773         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2774         wrong return type.
2775         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2776         1.7.11.
2777
2778 2012-02-29  Bruno Haible  <bruno@clisp.org>
2779
2780         Tests for module 'hypotf'.
2781         * modules/hypotf-tests: New file.
2782         * tests/test-hypotf.c: New file.
2783
2784         New module 'hypotf'.
2785         * lib/math.in.h (hypotf): New declaration.
2786         * lib/hypotf.c: New file.
2787         * m4/hypotf.m4: New file.
2788         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2790         REPLACE_HYPOTF.
2791         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2792         REPLACE_HYPOTF.
2793         * modules/hypotf: New file.
2794         * tests/test-math-c++.cc: Check the hypotf declaration.
2795         * doc/posix-functions/hypotf.texi: Mention the new module.
2796
2797         hypot: Prepare for hypotf module.
2798         * m4/hypot.m4: New file.
2799         * modules/hypot (Files): Add m4/hypot.m4.
2800         (configure.ac): Invoke gl_FUNC_HYPOT.
2801
2802 2012-02-29  Bruno Haible  <bruno@clisp.org>
2803
2804         hypot tests: More tests.
2805         * tests/test-hypot.c: Include <float.h>.
2806         (main): Add tests about overflow and underflow.
2807
2808 2012-02-29  Bruno Haible  <bruno@clisp.org>
2809
2810         math code: Add comments.
2811         * lib/acosl.c: Add comment about related glibc source files.
2812         * lib/asinl.c: Likewise.
2813         * lib/atanl.c: Likewise.
2814         * lib/expl.c: Likewise.
2815         * lib/logl.c: Likewise.
2816         * lib/sincosl.c: Likewise.
2817         * lib/sinl.c: Likewise.
2818         * lib/tanl.c: Likewise.
2819         * lib/trigl.c: Likewise.
2820         * lib/cosl.c: Likewise. Fix comments.
2821
2822 2012-02-28  Bruno Haible  <bruno@clisp.org>
2823
2824         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2825         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2826         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2827         HUGE_VALL are defined.
2828         (numeric_equald): Renamed from numeric_equal.
2829         (numeric_equalf, numeric_equall): New functions.
2830         (main): Check also HUGE_VALF, HUGE_VALL.
2831         * modules/math-tests (Files): Add tests/macros.h.
2832         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2833         HUGE_VALL.
2834
2835 2012-02-28  Bruno Haible  <bruno@clisp.org>
2836
2837         doc: Move ISO C11 feature notes into POSIX chapters.
2838         * doc/posix-functions/aligned_alloc.texi: Renamed from
2839         doc/glibc-functions/aligned_alloc.texi.
2840         * doc/posix-functions/quick_exit.texi: Renamed from
2841         doc/glibc-functions/quick_exit.texi.
2842         * doc/posix-headers/uchar.texi: Renamed from
2843         doc/glibc-headers/uchar.texi.
2844         * doc/posix-functions/c16rtomb.texi: Renamed from
2845         doc/glibc-functions/c16rtomb.texi.
2846         * doc/posix-functions/c32rtomb.texi: Renamed from
2847         doc/glibc-functions/c32rtomb.texi.
2848         * doc/posix-functions/mbrtoc16.texi: Renamed from
2849         doc/glibc-functions/mbrtoc16.texi.
2850         * doc/posix-functions/mbrtoc32.texi: Renamed from
2851         doc/glibc-functions/mbrtoc32.texi.
2852         * doc/gnulib.texi: Update.
2853         (Glibc uchar.h): Remove section.
2854         Suggested by Eric Blake.
2855
2856 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2857
2858         stdnoreturn: port to MSVC better
2859         MSVC standard headers use __declspec(noreturn), so #define noreturn
2860         to empty on that platform.  Reported by Bruno Haible in
2861         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2862         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2863         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2864
2865 2012-02-28  Bruno Haible  <bruno@clisp.org>
2866
2867         doc: Mention new glibc headers and functions.
2868         * doc/glibc-headers/uchar.texi: New file.
2869         * doc/glibc-functions/aligned_alloc.texi: New file.
2870         * doc/glibc-functions/c16rtomb.texi: New file.
2871         * doc/glibc-functions/c32rtomb.texi: New file.
2872         * doc/glibc-functions/clock_adjtime.texi: New file.
2873         * doc/glibc-functions/fanotify_init.texi: New file.
2874         * doc/glibc-functions/fanotify_mark.texi: New file.
2875         * doc/glibc-functions/inet6_opt_append.texi: New file.
2876         * doc/glibc-functions/inet6_opt_find.texi: New file.
2877         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2878         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2879         * doc/glibc-functions/inet6_opt_init.texi: New file.
2880         * doc/glibc-functions/inet6_opt_next.texi: New file.
2881         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2882         * doc/glibc-functions/inet6_rth_add.texi: New file.
2883         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2884         * doc/glibc-functions/inet6_rth_init.texi: New file.
2885         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2886         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2887         * doc/glibc-functions/inet6_rth_space.texi: New file.
2888         * doc/glibc-functions/login.texi: New file.
2889         * doc/glibc-functions/mbrtoc16.texi: New file.
2890         * doc/glibc-functions/mbrtoc32.texi: New file.
2891         * doc/glibc-functions/name_to_handle_at.texi: New file.
2892         * doc/glibc-functions/ntp_gettimex.texi: New file.
2893         * doc/glibc-functions/open_by_handle_at.texi: New file.
2894         * doc/glibc-functions/prlimit.texi: New file.
2895         * doc/glibc-functions/process_vm_readv.texi: New file.
2896         * doc/glibc-functions/process_vm_writev.texi: New file.
2897         * doc/glibc-functions/recvmmsg.texi: New file.
2898         * doc/glibc-functions/scandirat.texi: New file.
2899         * doc/glibc-functions/sendmmsg.texi: New file.
2900         * doc/glibc-functions/setns.texi: New file.
2901         * doc/glibc-functions/timespec_get.texi: New file.
2902         * doc/gnulib.texi: Include them.
2903         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2904         sections.
2905         Reported by Eric Blake.
2906
2907 2012-02-28  Bruno Haible  <bruno@clisp.org>
2908
2909         Avoid compilation errors with MSVC option -fp:strict.
2910         * lib/floor.c: Use MSVC specific pragma fenv_access.
2911         * lib/ceil.c: Likewise.
2912         * lib/trunc.c: Likewise.
2913         * lib/round.c: Likewise.
2914         * lib/rint.c: Likewise.
2915         * lib/fma.c: Likewise.
2916         * lib/integer_length.c: Likewise.
2917         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2918         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2919         * tests/test-floor2.c: Likewise.
2920         * tests/test-floorf2.c: Likewise.
2921         * tests/test-ceil2.c: Likewise.
2922         * tests/test-ceilf2.c: Likewise.
2923         * tests/test-trunc2.c: Likewise.
2924         * tests/test-truncf2.c: Likewise.
2925         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2926
2927 2012-02-27  Bruno Haible  <bruno@clisp.org>
2928
2929         Tests for module 'sqrtl-ieee'.
2930         * modules/sqrtl-ieee-tests: New file.
2931         * tests/test-sqrtl-ieee.c: New file.
2932
2933         New module 'sqrtl-ieee'.
2934         * modules/sqrtl-ieee: New file.
2935
2936         Tests for module 'sqrt-ieee'.
2937         * modules/sqrt-ieee-tests: New file.
2938         * tests/test-sqrt-ieee.c: New file.
2939
2940         New module 'sqrt-ieee'.
2941         * modules/sqrt-ieee: New file.
2942
2943         Tests for module 'sqrtf-ieee'.
2944         * modules/sqrtf-ieee-tests: New file.
2945         * tests/test-sqrtf-ieee.c: New file.
2946         * tests/test-sqrt-ieee.h: New file.
2947
2948         New module 'sqrtf-ieee'.
2949         * modules/sqrtf-ieee: New file.
2950
2951 2012-02-27  Bruno Haible  <bruno@clisp.org>
2952
2953         remainderl-ieee: Work around test failure on OSF/1.
2954         * m4/remainderl-ieee.m4: New file.
2955         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2956         present, test whether remainderl works with a zero second argument.
2957         Replace it if not.
2958         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2960         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2961         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2962         (Depends-on): Update conditions.
2963         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2964         (Depends-on): Add remainder-ieee.
2965         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2966         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2967         module.
2968
2969         remainderf-ieee: Work around test failure on OSF/1.
2970         * m4/remainderf-ieee.m4: New file.
2971         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2972         present, test whether remainderf works with a zero second argument.
2973         Replace it if not.
2974         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2976         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2977         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2978         (Depends-on): Update conditions.
2979         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2980         (Depends-on): Add remainder-ieee.
2981         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2982         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2983         module.
2984
2985         remainder-ieee: Work around test failure on OSF/1.
2986         * m4/remainder-ieee.m4: New file.
2987         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2988         present, test whether remainder works with a zero second argument.
2989         Replace it if not.
2990         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2992         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2993         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2994         (Depends-on): Update dependencies.
2995         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2996         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2997         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2998
2999         Tests for module 'remainderl-ieee'.
3000         * modules/remainderl-ieee-tests: New file.
3001         * tests/test-remainderl-ieee.c: New file.
3002
3003         New module 'remainderl-ieee'.
3004         * modules/remainderl-ieee: New file.
3005
3006         Tests for module 'remainder-ieee'.
3007         * modules/remainder-ieee-tests: New file.
3008         * tests/test-remainder-ieee.c: New file.
3009
3010         New module 'remainder-ieee'.
3011         * modules/remainder-ieee: New file.
3012
3013         Tests for module 'remainderf-ieee'.
3014         * modules/remainderf-ieee-tests: New file.
3015         * tests/test-remainderf-ieee.c: New file.
3016         * tests/test-remainder-ieee.h: New file.
3017
3018         New module 'remainderf-ieee'.
3019         * modules/remainderf-ieee: New file.
3020
3021 2012-02-27  Bruno Haible  <bruno@clisp.org>
3022
3023         modff, modfl: Fix configure syntax error.
3024         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3025         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3026
3027 2012-02-27  Bruno Haible  <bruno@clisp.org>
3028
3029         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3030         * m4/fmodl-ieee.m4: New file.
3031         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3032         whether fmodl works with zero arguments. Replace it if not.
3033         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3034         (Depends-on): Add fmod-ieee.
3035         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3036         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3037
3038         fmodf-ieee: Work around test failure on OSF/1.
3039         * m4/fmodf-ieee.m4: New file.
3040         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3041         whether fmodf works with zero arguments. Replace it if not.
3042         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3044         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3045         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3046         (Depends-on): Update dependencies.
3047         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3048         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3049         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3050
3051         fmodf-ieee: Work around test failure on MSVC 9.
3052         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3053         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3054
3055         fmod-ieee: Work around test failures on OSF/1, mingw.
3056         * m4/fmod-ieee.m4: New file.
3057         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3058         whether fmod works with zero arguments. Replace it if not.
3059         * lib/math.in.h (fmod): New declaration.
3060         * lib/fmod.c: New file.
3061         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3063         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3064         * modules/fmod (Files): Add lib/fmod.c.
3065         (Depends-on): Add math, isinf, trunc, fma.
3066         (configure.ac): Arrange to compile lib/fmod.c if needed.
3067         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3068         m4/signbit.m4.
3069         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3070         * tests/test-math-c++.cc: Check the declaration of fmod.
3071         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3072
3073         fmodl-ieee: Fix test failures.
3074         * lib/fmodl.c (fmodl): Treat Inf specially.
3075         * modules/fmodl (Depends-on): Add isinf.
3076
3077         Tests for module 'fmodl-ieee'.
3078         * modules/fmodl-ieee-tests: New file.
3079         * tests/test-fmodl-ieee.c: New file.
3080
3081         New module 'fmodl-ieee'.
3082         * modules/fmodl-ieee: New file.
3083
3084         Tests for module 'fmod-ieee'.
3085         * modules/fmod-ieee-tests: New file.
3086         * tests/test-fmod-ieee.c: New file.
3087
3088         New module 'fmod-ieee'.
3089         * modules/fmod-ieee: New file.
3090
3091         Tests for module 'fmodf-ieee'.
3092         * modules/fmodf-ieee-tests: New file.
3093         * tests/test-fmodf-ieee.c: New file.
3094         * tests/test-fmod-ieee.h: New file.
3095
3096         New module 'fmodf-ieee'.
3097         * modules/fmodf-ieee: New file.
3098
3099 2012-02-27  Bruno Haible  <bruno@clisp.org>
3100
3101         Tests for module 'rintl-ieee'.
3102         * modules/rintl-ieee-tests: New file.
3103         * tests/test-rintl-ieee.c: New file.
3104
3105         New module 'rintl-ieee'.
3106         * modules/rintl-ieee: New file.
3107
3108         Tests for module 'rint-ieee'.
3109         * modules/rint-ieee-tests: New file.
3110         * tests/test-rint-ieee.c: New file.
3111
3112         New module 'rint-ieee'.
3113         * modules/rint-ieee: New file.
3114
3115         Tests for module 'rintf-ieee'.
3116         * modules/rintf-ieee-tests: New file.
3117         * tests/test-rintf-ieee.c: New file.
3118         * tests/test-rint-ieee.h: New file.
3119
3120         New module 'rintf-ieee'.
3121         * modules/rintf-ieee: New file.
3122
3123 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3124
3125         regex: re_search etc. should return -2 when memory exhausted
3126         This bug was uncovered when testing 'grep'.  Without the fix,
3127         re_search and friends return -1 when memory is exhausted, but -1
3128         means no match, and this causes grep to falsely report no-match
3129         instead of memory-exhaustion.  See
3130         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3131         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3132         trouble; this can occur if re_search_internal ran out of memory.
3133
3134 2012-02-26  Bruno Haible  <bruno@clisp.org>
3135
3136         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3137         * m4/modfl-ieee.m4: New file.
3138         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3139         whether modfl works with Inf. Replace it if not.
3140         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3142         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3143         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3144         (Depends-on): Update dependencies.
3145         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3146         m4/signbit.m4.
3147         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3148         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3149
3150         modfl-ieee: Fix dependencies.
3151         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3152
3153         modfl-ieee: Fix test failures.
3154         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3155         * modules/modfl (Depends-on): Add isfinite, isinf.
3156
3157         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3158         * m4/modff-ieee.m4: New file.
3159         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3160         whether modff works with NaN and Inf. Replace it if not.
3161         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3163         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3164         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3165         (Depends-on): Update dependencies.
3166         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3167         m4/signbit.m4.
3168         (Depends-on): Add modf-ieee.
3169         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3170         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3171
3172         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3173         * m4/modf-ieee.m4: New file.
3174         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3175         whether modf works with NaN and Inf. Replace it if not.
3176         * lib/math.in.h (modf): New declaration.
3177         * lib/modf.c: New file.
3178         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3180         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3181         * modules/modf (Files): Add lib/modf.c.
3182         (Depends-on): Add math, isfinite, trunc, isinf.
3183         (configure.ac): Addrange to compile lib/modf.c if needed.
3184         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3185         m4/signbit.m4.
3186         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3187         * tests/test-math-c++.cc: Check the declaration of modf.
3188         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3189
3190         Tests for module 'modfl-ieee'.
3191         * modules/modfl-ieee-tests: New file.
3192         * tests/test-modfl-ieee.c: New file.
3193
3194         New module 'modfl-ieee'.
3195         * modules/modfl-ieee: New file.
3196
3197         Tests for module 'modf-ieee'.
3198         * modules/modf-ieee-tests: New file.
3199         * tests/test-modf-ieee.c: New file.
3200
3201         New module 'modf-ieee'.
3202         * modules/modf-ieee: New file.
3203
3204         Tests for module 'modff-ieee'.
3205         * modules/modff-ieee-tests: New file.
3206         * tests/test-modff-ieee.c: New file.
3207         * tests/test-modf-ieee.h: New file.
3208
3209         New module 'modff-ieee'.
3210         * modules/modff-ieee: New file.
3211
3212 2012-02-26  Bruno Haible  <bruno@clisp.org>
3213
3214         Tests for module 'fabsl-ieee'.
3215         * modules/fabsl-ieee-tests: New file.
3216         * tests/test-fabsl-ieee.c: New file.
3217
3218         New module 'fabsl-ieee'.
3219         * modules/fabsl-ieee: New file.
3220
3221         Tests for module 'fabs-ieee'.
3222         * modules/fabs-ieee-tests: New file.
3223         * tests/test-fabs-ieee.c: New file.
3224
3225         New module 'fabs-ieee'.
3226         * modules/fabs-ieee: New file.
3227
3228         Tests for module 'fabsf-ieee'.
3229         * modules/fabsf-ieee-tests: New file.
3230         * tests/test-fabsf-ieee.c: New file.
3231         * tests/test-fabs-ieee.h: New file.
3232
3233         New module 'fabsf-ieee'.
3234         * modules/fabsf-ieee: New file.
3235
3236 2012-02-26  Bruno Haible  <bruno@clisp.org>
3237
3238         Tests for module 'fmal-ieee'.
3239         * modules/fmal-ieee-tests: New file.
3240         * tests/test-fmal-ieee.c: New file.
3241
3242         New module 'fmal-ieee'.
3243         * modules/fmal-ieee: New file.
3244
3245         Tests for module 'fma-ieee'.
3246         * modules/fma-ieee-tests: New file.
3247         * tests/test-fma-ieee.c: New file.
3248
3249         New module 'fma-ieee'.
3250         * modules/fma-ieee: New file.
3251
3252         Tests for module 'fmaf-ieee'.
3253         * modules/fmaf-ieee-tests: New file.
3254         * tests/test-fmaf-ieee.c: New file.
3255         * tests/test-fma-ieee.h: New file.
3256
3257         New module 'fmaf-ieee'.
3258         * modules/fmaf-ieee: New file.
3259
3260 2012-02-26  Bruno Haible  <bruno@clisp.org>
3261
3262         Tests for module 'ldexpl-ieee'.
3263         * modules/ldexpl-ieee-tests: New file.
3264         * tests/test-ldexpl-ieee.c: New file.
3265
3266         New module 'ldexpl-ieee'.
3267         * modules/ldexpl-ieee: New file.
3268
3269         Tests for module 'ldexp-ieee'.
3270         * modules/ldexp-ieee-tests: New file.
3271         * tests/test-ldexp-ieee.c: New file.
3272
3273         New module 'ldexp-ieee'.
3274         * modules/ldexp-ieee: New file.
3275
3276         Tests for module 'ldexpf-ieee'.
3277         * modules/ldexpf-ieee-tests: New file.
3278         * tests/test-ldexpf-ieee.c: New file.
3279         * tests/test-ldexp-ieee.h: New file.
3280
3281         New module 'ldexpf-ieee'.
3282         * modules/ldexpf-ieee: New file.
3283
3284 2012-02-26  Bruno Haible  <bruno@clisp.org>
3285
3286         Refactor frexp*-ieee tests.
3287         * tests/test-frexp-ieee.h: New file.
3288         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3289         (main): Just call test_function.
3290         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3291         (main): Just call test_function.
3292         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3293         (main): Just call test_function.
3294         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3295         * modules/frexp-ieee-tests (Files): Likewise.
3296         * modules/frexpl-ieee-tests (Files): Likewise.
3297
3298         Tests for module 'frexpl-ieee'.
3299         * modules/frexpl-ieee-tests: New file.
3300         * tests/test-frexpl-ieee.c: New file.
3301
3302         New module 'frexpl-ieee'.
3303         * modules/frexpl-ieee: New file.
3304
3305         Tests for module 'frexp-ieee'.
3306         * modules/frexp-ieee-tests: New file.
3307         * tests/test-frexp-ieee.c: New file.
3308
3309         New module 'frexp-ieee'.
3310         * modules/frexp-ieee: New file.
3311
3312         Tests for module 'frexpf-ieee'.
3313         * modules/frexpf-ieee-tests: New file.
3314         * tests/test-frexpf-ieee.c: New file.
3315
3316         New module 'frexpf-ieee'.
3317         * modules/frexpf-ieee: New file.
3318
3319 2012-02-26  Bruno Haible  <bruno@clisp.org>
3320
3321         roundl-ieee tests: More tests.
3322         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3323         (main): Add tests for [MX] shaded specification in POSIX.
3324         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3325         (Depends-on): Add isnanl-nolibm.
3326
3327         round-ieee tests: More tests.
3328         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3329         (main): Add tests for [MX] shaded specification in POSIX.
3330         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3331         (Depends-on): Add isnand-nolibm.
3332
3333         roundf-ieee tests: More tests.
3334         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3335         (main): Add tests for [MX] shaded specification in POSIX.
3336         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3337         (Depends-on): Add isnanf-nolibm.
3338
3339         truncl-ieee tests: More tests.
3340         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3341         (main): Add tests for [MX] shaded specification in POSIX.
3342         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3343         (Depends-on): Add isnanl-nolibm.
3344
3345         trunc-ieee tests: More tests.
3346         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3347         (main): Add tests for [MX] shaded specification in POSIX.
3348         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3349         (Depends-on): Add isnand-nolibm.
3350
3351         truncf-ieee tests: More tests.
3352         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3353         (main): Add tests for [MX] shaded specification in POSIX.
3354         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3355         (Depends-on): Add isnanf-nolibm.
3356
3357         ceill-ieee tests: More tests.
3358         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3359         (main): Add tests for [MX] shaded specification in POSIX.
3360         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3361         (Depends-on): Add isnanl-nolibm.
3362
3363         ceil-ieee tests: More tests.
3364         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3365         (main): Add tests for [MX] shaded specification in POSIX.
3366         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3367         (Depends-on): Add isnand-nolibm.
3368
3369         ceilf-ieee tests: More tests.
3370         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3371         (main): Add tests for [MX] shaded specification in POSIX.
3372         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3373         (Depends-on): Add isnanf-nolibm.
3374
3375         floorl-ieee tests: More tests.
3376         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3377         (main): Add tests for [MX] shaded specification in POSIX.
3378         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3379         (Depends-on): Add isnanl-nolibm.
3380
3381         floor-ieee tests: More tests.
3382         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3383         (main): Add tests for [MX] shaded specification in POSIX.
3384         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3385         (Depends-on): Add isnand-nolibm.
3386
3387         floorf-ieee tests: More tests.
3388         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3389         (main): Add tests for [MX] shaded specification in POSIX.
3390         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3391         (Depends-on): Add isnanf-nolibm.
3392
3393 2012-02-26  Bruno Haible  <bruno@clisp.org>
3394
3395         fpieee: More comments.
3396         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3397
3398 2012-02-25  Bruno Haible  <bruno@clisp.org>
3399
3400         Tests for module 'log10l'.
3401         * modules/log10l-tests: New file.
3402         * tests/test-log10l.c: New file.
3403         * tests/test-math-c++.cc: Check the declaration of log10l.
3404
3405         New module 'log10l'.
3406         * lib/math.in.h (log10l): New declaration.
3407         * lib/log10l.c: New file.
3408         * m4/log10l.m4: New file.
3409         * modules/log10l: New file.
3410         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3412         HAVE_DECL_LOG10L.
3413         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3414         HAVE_DECL_LOG10L.
3415         * doc/posix-functions/log10l.texi: Mention the new module.
3416
3417 2012-02-25  Bruno Haible  <bruno@clisp.org>
3418
3419         fmodl, remainder*: Avoid wrong results due to rounding errors.
3420         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3421         expected bounds.
3422         * lib/remainderf.c (remainderf): Likewise.
3423         * lib/remainder.c (remainder): Likewise.
3424         * lib/remainderl.c (remainderl): Likewise.
3425
3426 2012-02-25  Bruno Haible  <bruno@clisp.org>
3427
3428         Tests for module 'remainderl'.
3429         * modules/remainderl-tests: New file.
3430         * tests/test-remainderl.c: New file.
3431         * tests/test-math-c++.cc: Check the declaration of remainderl.
3432
3433         New module 'remainderl'.
3434         * lib/math.in.h (remainderl): New declaration.
3435         * lib/remainderl.c: New file.
3436         * m4/remainderl.m4: New file.
3437         * modules/remainderl: New file.
3438         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3440         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3441         HAVE_REMAINDERL.
3442         * doc/posix-functions/remainderl.texi: Mention the new module.
3443
3444 2012-02-25  Bruno Haible  <bruno@clisp.org>
3445
3446         Tests for module 'remainderf'.
3447         * modules/remainderf-tests: New file.
3448         * tests/test-remainderf.c: New file.
3449         * tests/test-math-c++.cc: Check the declaration of remainderf.
3450
3451         New module 'remainderf'.
3452         * lib/math.in.h (remainderf): New declaration.
3453         * lib/remainderf.c: New file.
3454         * m4/remainderf.m4: New file.
3455         * modules/remainderf: New file.
3456         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3458         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3459         HAVE_REMAINDERF.
3460         * doc/posix-functions/remainderf.texi: Mention the new module.
3461
3462 2012-02-25  Bruno Haible  <bruno@clisp.org>
3463
3464         remainder: Support for MSVC.
3465         * lib/math.in.h (remainder): New declaration.
3466         * lib/remainder.c: New file.
3467         * m4/remainder.m4: New file.
3468         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3469         (Depends-on): Add math, round, fma.
3470         (configure.ac): Use results of gl_FUNC_REMAINDER.
3471         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3473         HAVE_DECL_REMAINDER.
3474         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3475         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3476         * tests/test-math-c++.cc: Check the declaration of remainder.
3477         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3478         problems are fixed.
3479
3480 2012-02-25  Bruno Haible  <bruno@clisp.org>
3481
3482         Tests for module 'fmodl'.
3483         * modules/fmodl-tests: New file.
3484         * tests/test-fmodl.c: New file.
3485         * tests/test-math-c++.cc: Check the declaration of fmodl.
3486
3487         New module 'fmodl'.
3488         * lib/math.in.h (fmodl): New declaration.
3489         * lib/fmodl.c: New file.
3490         * m4/fmodl.m4: New file.
3491         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3493         REPLACE_FMODL.
3494         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3495         REPLACE_FMODL.
3496         * modules/fmodl: New file.
3497         * doc/posix-functions/fmodl.texi: Mention the new module.
3498
3499 2012-02-25  Bruno Haible  <bruno@clisp.org>
3500
3501         Tests for module 'modfl'.
3502         * modules/modfl-tests: New file.
3503         * tests/test-modfl.c: New file.
3504         * tests/test-math-c++.cc: Check the declaration of modfl.
3505
3506         New module 'modfl'.
3507         * lib/math.in.h (modfl): New declaration.
3508         * lib/modfl.c: New file.
3509         * m4/modfl.m4: New file.
3510         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3512         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3513         * modules/modfl: New file.
3514         * doc/posix-functions/modfl.texi: Mention the new module.
3515
3516 2012-02-25  Bruno Haible  <bruno@clisp.org>
3517
3518         Tests for module 'fabsl'.
3519         * modules/fabsl-tests: New file.
3520         * tests/test-fabsl.c: New file.
3521         * tests/test-math-c++.cc: Check the declaration of fabsl.
3522
3523         New module 'fabsl'.
3524         * lib/math.in.h (fabsl): New declaration.
3525         * lib/fabsl.c: New file.
3526         * m4/fabsl.m4: New file.
3527         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3529         REPLACE_FABSL.
3530         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3531         REPLACE_FABSL.
3532         * modules/fabsl: New file.
3533         * doc/posix-functions/fabsl.texi: Mention the new module.
3534
3535 2012-02-25  Bruno Haible  <bruno@clisp.org>
3536
3537         fabs tests: More tests.
3538         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3539         (zero): New variable.
3540         (main): Add tests for signed zero.
3541         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3542
3543         fabsf tests: More tests.
3544         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3545         (zero): New variable.
3546         (main): Add tests for signed zero.
3547         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3548
3549 2012-02-24  Bruno Haible  <bruno@clisp.org>
3550
3551         atanl: Provide function definition on MSVC.
3552         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3553         function pointer.
3554         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3555
3556 2012-02-24  Bruno Haible  <bruno@clisp.org>
3557
3558         acosl: Provide function definition on MSVC.
3559         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3560         function pointer.
3561         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3562
3563 2012-02-24  Bruno Haible  <bruno@clisp.org>
3564
3565         asinl: Provide function definition on MSVC.
3566         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3567         function pointer.
3568         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3569
3570 2012-02-24  Bruno Haible  <bruno@clisp.org>
3571
3572         tanl: Provide function definition on MSVC.
3573         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3574         function pointer.
3575         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3576
3577 2012-02-24  Bruno Haible  <bruno@clisp.org>
3578
3579         cosl: Provide function definition on MSVC.
3580         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3581         function pointer.
3582         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3583
3584 2012-02-24  Bruno Haible  <bruno@clisp.org>
3585
3586         sinl: Provide function definition on MSVC.
3587         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3588         function pointer.
3589         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3590
3591 2012-02-24  Bruno Haible  <bruno@clisp.org>
3592
3593         logl: Provide function definition on MSVC.
3594         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3595         function pointer.
3596         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3597
3598 2012-02-24  Bruno Haible  <bruno@clisp.org>
3599
3600         expl: Provide function definition on MSVC.
3601         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3602         function pointer.
3603         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3604
3605 2012-02-24  Bruno Haible  <bruno@clisp.org>
3606
3607         sqrtl: Provide function definition on MSVC.
3608         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3609         a function pointer.
3610         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3611
3612 2012-02-24  Bruno Haible  <bruno@clisp.org>
3613
3614         ceill: Provide function definition on MSVC.
3615         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3616         used as a function pointer.
3617         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3618
3619 2012-02-24  Bruno Haible  <bruno@clisp.org>
3620
3621         floorl: Provide function definition on MSVC.
3622         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3623         used as a function pointer.
3624         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3625
3626 2012-02-24  Bruno Haible  <bruno@clisp.org>
3627
3628         ceilf: Provide function definition on MSVC.
3629         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3630         used as a function pointer.
3631         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3632
3633 2012-02-24  Bruno Haible  <bruno@clisp.org>
3634
3635         floorf: Provide function definition on MSVC.
3636         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3637         used as a function pointer.
3638         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3639
3640 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         stdnoreturn: new module
3643         This implements a replacement for C11's <stdnoreturn.h>.
3644         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3645         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3646         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3647         * tests/test-stdnoreturn.c: New files.
3648
3649 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3650
3651         regex: fix false multibyte matches in some regular expressions
3652         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3653         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3654         * lib/regex_internal.c (re_string_skip_chars):
3655         Fix miscomputation of remain_len that may cause incomplete
3656         multi-byte character and false match.
3657
3658 2012-02-24  Jim Meyering  <meyering@redhat.com>
3659
3660         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3661         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3662         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3663         Remove now-unnecessary str''cmp obfuscation.
3664         Suggested by Akim Demaille.
3665
3666 2012-02-24  Bruno Haible  <bruno@clisp.org>
3667
3668         streq: Rename macro.
3669         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3670         * NEWS: Mention the change.
3671         * lib/mbrtowc.c (mbrtowc): Update.
3672         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3673         * lib/wcwidth.c (wcwidth): Update.
3674         Suggested by Akim Demaille and Jim Meyering.
3675
3676 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3677
3678         regex: fix typo in definition of MIN
3679         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3680         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3681
3682 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3683             Bruno Haible  <bruno@clisp.org>
3684
3685         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3686         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3687         entries into a stack-allocated buffer directly.
3688         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3689
3690 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3691             Bruno Haible  <bruno@clisp.org>
3692
3693         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3694
3695          - There were several instances of this pattern:
3696
3697              for (;;) {
3698                n = acl (f, GETACLCNT, 0, NULL);
3699                [ allocate an array A of size N ]
3700                if (acl (f, GETACL, n, a) == n)
3701                  break;
3702              }
3703
3704            This loop might never terminate if some other process is constantly
3705            manipulating the file's ACL.  The loop should be rewritten to
3706            terminate.
3707
3708          - The acl (... GETACLNT ...) call is merely an optimization; its value
3709            is merely a hint as to how big to make the array.  A better
3710            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3711            and just guess a reasonably-big size, growing the size and trying
3712            again if it's not large enough.  This guarantees termination, and
3713            saves a system call.
3714
3715         * lib/acl-internal.h: Include <limits.h>.
3716         (MIN, SIZE_MAX): New macros.
3717         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3718         a stack-allocated buffer, and use malloc if it does not fit. Don't
3719         use GETACLCNT.
3720         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3721
3722 2012-02-19  Bruno Haible  <bruno@clisp.org>
3723
3724         acl: Fix endless loop on Solaris with vxfs.
3725         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3726         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3727         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3728         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3729         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3730         Reported by Bill Jones in
3731         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3732
3733 2012-02-19  Bruno Haible  <bruno@clisp.org>
3734
3735         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3736         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3737         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3738         that this function returns 0 in some more cases.
3739
3740 2012-02-19  Bruno Haible  <bruno@clisp.org>
3741
3742         acl: Update doc references.
3743         * doc/acl-resources.txt: Update links to Solaris documentation.
3744
3745 2012-02-19  Bruno Haible  <bruno@clisp.org>
3746
3747         Fix test failure in many locales on Solaris 11.
3748         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3749         'tr' arguments.
3750         * tests/test-pipe-filter-ii1.c (main): Likewise.
3751         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3752         expressions in the C locale.
3753         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3754         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3755
3756 2012-02-19  Bruno Haible  <bruno@clisp.org>
3757
3758         gnulib-tool: Improve usage message.
3759         * gnulib-tool (func_usage): Move doc of --help and --version to the
3760         section "Operation modes".
3761
3762 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3763
3764         README-release: make it easier to execute commands
3765         * top/README-release: break commands out on to separate lines.
3766
3767 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3768
3769         GNUmakefile: simplify detection of unconfigured trees
3770         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3771         whether the tree make is being run from is already configured or
3772         not.  Related simplifications.
3773
3774 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3775
3776         * gnulib-tool (func_usage): Document --help and --version.
3777
3778 2012-02-11  Jim Meyering  <meyering@redhat.com>
3779
3780         bootstrap: don't exit 0 upon gnulib-tool failure
3781         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3782         its exit status, not 0.
3783
3784 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3785
3786         README-release: various improvements
3787         * top/README-release: Give a command to push changes for the
3788         release.  Add "distcheck" to list of other pre-release checks.
3789         Fix instance of "make stable" which should be "make TYPE".
3790
3791 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3792
3793         maint: replace FSF snail-mail addresses with URLs
3794         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3795         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3796         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3797         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3798         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3799         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3800         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3801         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3802         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3803         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3804         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3805         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3806         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3807         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3808         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3809         * lib/glthread/thread.c, lib/glthread/thread.h:
3810         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3811         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3812         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3813         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3814         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3815         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3816         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3817         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3818         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3819         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3820         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3821         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3822         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3823         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3824         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3825         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3826         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3827         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3828         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3829         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3830         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3831         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3832         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3833         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3834         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3835         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3836         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3837         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3838         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3839         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3840         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3841         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3842         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3843         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3844         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3845         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3846         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3847         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3848         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3849         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3850         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3851         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3852         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3853         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3854         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3855         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3856         * tests/test-poll.c, tests/test-quotearg-simple.c:
3857         * tests/test-quotearg.c, tests/test-quotearg.h:
3858         * tests/test-round-ieee.c, tests/test-round1.c:
3859         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3860         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3861         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3862         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3863         * tests/test-strerror.c, tests/test-strerror_r.c:
3864         * tests/test-strsignal.c, tests/test-strverscmp.c:
3865         * tests/test-xmemdup0.c:
3866         Replace FSF snail mail addresses with URLs, as per GNU coding
3867         standards.  See glibc bug
3868         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3869
3870 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3871
3872         README-release: capitalize a word and split a line
3873         * top/README-release: Fix punctuation and spacing.
3874
3875 2012-02-08  Akim Demaille  <demaille@gostai.com>
3876
3877         fatal-signal: use C prototypes (with explicit void).
3878         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3879         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3880
3881 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3882
3883         regex: spelling fix
3884         * lib/regexec.c: spelling fix
3885
3886         regex: rely on stdint.h for SIZE_MAX
3887         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3888
3889 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3890
3891         regex: merge glibc changes
3892
3893         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3894         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3895         (init_word_char): Work even if bitset words are not exactly 32 or
3896         64 bits wide.  Don't assume there are no padding bits.
3897         * lib/regex.c [_LIBC]: Do not include <config.h>.
3898         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3899         and -Wtype-limits.
3900         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3901         needless disagreement with glibc.  All uses changed.  Define it to
3902         1 only if _GNU_SOURCE, to match glibc.
3903         (_REG_RM_NAME): Remove; no longer needed, since the names in
3904         question are now all protected by __USE_GNU.
3905         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3906         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3907         * lib/regex_internal.h (MIN): New macro.
3908
3909         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3910         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3911
3912         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3913         * lib/regex_internal.c (re_string_fetch_byte_case):
3914         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3915         is miscompiled, and it turns out it is because of an incorrect
3916         attribute on re_string_fetch_byte_case.  Unlike
3917         re_string_peek_byte_case, this one is really not pure, it modifies
3918         memory (increments pstr->cur_idx), and with the pure attribute GCC
3919         assumed it doesn't and it cached the presumed value of
3920         regexp->cur_idx in a variable across the
3921          for (;; ++i)
3922            {
3923              if (i >= BRACKET_NAME_BUF_SIZE)
3924                return REG_EBRACK;
3925              if (token->type == OP_OPEN_CHAR_CLASS)
3926                ch = re_string_fetch_byte_case (regexp);
3927              else
3928                ch = re_string_fetch_byte (regexp);
3929              if (re_string_eoi(regexp))
3930                return REG_EBRACK;
3931              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3932                break;
3933              elem->opr.name[i] = ch;
3934            }
3935
3936         2011-11-29 Andreas Schwab <schwab@redhat.com>
3937         * lib/regcomp.c (build_equiv_class):
3938         Fix access after end of search string in regex matcher.
3939
3940         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3941         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3942
3943         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3944         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3945
3946         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3947         * lib/regcomp.c (parse_branch, parse_sub_exp):
3948         More regex memory leak fixes and tests.
3949         (parse_sub_exp, parse_bracket_exp):
3950         Fix memory leak for some invalid regular expressions.
3951
3952         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3953         * lib/regex_internal.c, lib/regexec.c:
3954         Fix unnecessary overallocation due to incomplete character.  When
3955         incomplete characters are found at the end of a string the code
3956         ran amok and allocated lots of memory.  Stricter limits are now in
3957         place.
3958
3959         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3960         * lib/regex.h: Update documentation.
3961
3962         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3963         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3964
3965         2010-05-05 Andreas Schwab <schwab@redhat.com>
3966         * lib/regexec.c (find_collation_sequence_value):
3967         Fix lookup of collation sequence value during regexp matching.
3968
3969         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3970         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3971
3972         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3973         * lib/regex.h: Cleanup namespace.
3974
3975         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3976         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3977
3978         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3979         * lib/regex_internal.h: Prevent some declarations and definitions
3980         to be seen when used in tests.
3981
3982         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3983         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3984         __libc_lock_* macros if not _LIBC.
3985         (struct re_dfa_t): Add lock.
3986
3987 2012-02-07  Eric Blake  <eblake@redhat.com>
3988
3989         maint.mk: also prohibit lower-case @var@
3990         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3991         lower case, like @top_srcdir@.
3992
3993 2012-02-04  Eric Blake  <eblake@redhat.com>
3994
3995         canonicalize: avoid uninitialized memory use
3996         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3997         random '/' left in dest.
3998         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3999
4000 2012-02-04  Bruno Haible  <bruno@clisp.org>
4001
4002         isatty: Fix test failure of ptsname_r on native Windows.
4003         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4004         and don't set errno.
4005         (isatty): Test first whether fd is valid. Set errno when returning 0.
4006
4007 2012-02-04  Bruno Haible  <bruno@clisp.org>
4008
4009         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4010         * tests/test-spawn-pipe-main.c: Include progname.h.
4011         (main): Invoke set_program_name.
4012         * modules/spawn-pipe-tests (Depends-on): Add progname.
4013
4014         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4015         * tests/test-nonblocking-socket-main.c: Include progname.h.
4016         (main): Invoke set_program_name.
4017         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4018
4019         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4020         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4021         (main): Invoke set_program_name.
4022         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4023
4024 2012-02-04  Eric Blake  <eblake@redhat.com>
4025
4026         canonicalize-lgpl: fix // handling
4027         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4028
4029         canonicalize: fix // handling
4030         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4031         /// to //, since only // is special.
4032
4033 2012-02-04  Bruno Haible  <bruno@clisp.org>
4034
4035         ioctl: Fix test failure on native Windows.
4036         * lib/ioctl.c: Include msvc-nothrow.h.
4037         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4038
4039 2012-02-04  Bruno Haible  <bruno@clisp.org>
4040
4041         fsync: Avoid test failure on native Windows.
4042         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4043         read-only.
4044
4045 2012-02-04  Bruno Haible  <bruno@clisp.org>
4046
4047         sys_select: Avoid syntax error on OpenBSD 5.0.
4048         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4049         currently being included, just include the system's <sys/select.h>.
4050
4051 2012-02-04  Bruno Haible  <bruno@clisp.org>
4052
4053         sys_select: Avoid syntax error on OpenBSD 5.0.
4054         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4055         <sys/select.h>, not before.
4056         Reported by Jiri B <jirib@devio.us>.
4057
4058 2012-02-04  Bruno Haible  <bruno@clisp.org>
4059
4060         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4061         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4062         global variables.
4063         * tests/test-get-rusage-data.c (main): Likewise.
4064         Reported by Jim Meyering.
4065
4066 2012-02-04  Bruno Haible  <bruno@clisp.org>
4067
4068         stdioext: Fix last commit.
4069         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4070
4071 2012-02-03  Bruno Haible  <bruno@clisp.org>
4072
4073         stdioext: Add tentative support for Plan9.
4074         * lib/stdio-impl.h: Include <errno.h>.
4075         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4076         * lib/freadable.c (freadable): Likewise.
4077         * lib/fwritable.c (fwritable): Likewise.
4078         * lib/fbufmode.c (fbufmode): Likewise.
4079         * lib/freading.c (freading): Likewise.
4080         * lib/fwriting.c (fwriting): Likewise.
4081         * lib/freadptr.c (freadptr): Likewise.
4082         * lib/freadseek.c (freadptrinc): Likewise.
4083         * lib/freadahead.c (freadahead): Likewise.
4084         * lib/fpurge.c (fpurge): Likewise.
4085         * lib/fseeko.c (rpl_fseeko): Likewise.
4086         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4087         Reported by Jens Staal <staal1978@gmail.com>.
4088
4089 2012-02-02  Jim Meyering  <meyering@redhat.com>
4090
4091         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4092         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4093         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4094         not even to try to add the attribute.  Instead, add a pragma to suppress
4095         the suggestion/warning.
4096
4097 2012-01-31  Karl Berry  <karl@gnu.org>
4098
4099         setstate doc: typo.
4100         * doc/posix-functions/setstate.texi (setstate): { not (.
4101
4102 2012-01-31  Bruno Haible  <bruno@clisp.org>
4103
4104         popen: Make more robust on Windows.
4105         * lib/popen.c: On native Windows, use the _popen based code even if
4106         HAVE_POPEN is set.
4107         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4108         environment variable on native Windows.
4109
4110 2012-01-30  Bruno Haible  <bruno@clisp.org>
4111
4112         pclose: Fix typo.
4113         * lib/stdio.in.h (pclose): Fix typo in warning message.
4114
4115 2012-01-30  Bruno Haible  <bruno@clisp.org>
4116
4117         doc about getlogin_r, setstate.
4118         * doc/posix-functions/getlogin_r.texi: List the incompatible
4119         declaration problem under "not fixed by gnulib".
4120         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4121         problem on Solaris 11 and other platforms.
4122
4123 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4124             Bruno Haible  <bruno@clisp.org>
4125
4126         poll tests: Make test more robust.
4127         * tests/test-poll.c: Include macros.h.
4128         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4129         return value of various I/O operations.
4130         * modules/poll-tests (Files): Add tests/macros.h.
4131
4132 2012-01-30  Bruno Haible  <bruno@clisp.org>
4133
4134         sys_stat: Fix support for mingw64 and MSVC.
4135         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4136         header files already do it.
4137         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4138         stat itself.
4139         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4140
4141 2012-01-30  Bruno Haible  <bruno@clisp.org>
4142
4143         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4145         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4146
4147 2012-01-29  Bruno Haible  <bruno@clisp.org>
4148
4149         quotearg: Fix test failure on MacOS X 10.5.
4150         * tests/test-quotearg-simple.c: Include localcharset.h.
4151         (main): If the locale encoding is not ASCII, bypass the tests of
4152         locale_quoting_style and clocale_quoting_style.
4153         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4154
4155 2012-01-29  Jim Meyering  <meyering@redhat.com>
4156
4157         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4158         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4159         detect uses of canonicalize_file_name.
4160
4161 2012-01-28  Bruno Haible  <bruno@clisp.org>
4162
4163         test-framework-sh: Fix test failure with AIX 7.1 diff.
4164         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4165         in column 1, like 'diff -c' does.
4166         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4167         whether 'diff -u' is used. Instead, test whether the output contains
4168         some '@' character.
4169
4170 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4171
4172         strtoimax: eliminate need for stdint.h, inttypes.h checks
4173         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4174         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4175         the prerequisites for a recently-introduced strtoimax test.
4176         I guess this might cause strtoimax to be replaced when not
4177         strictly necessary on older hosts, but this shouldn't introduce
4178         any bugs and it should make Emacs 'configure' faster on typical
4179         modern hosts.  Problem discovered when importing the latest gnulib
4180         to an Emacs test version.
4181         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4182
4183 2012-01-28  Bruno Haible  <bruno@clisp.org>
4184
4185         sys_time: Override 'struct timeval' on some native Windows platforms.
4186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4187         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4188         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4189         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4190         needs to be overridden.
4191         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4192         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4193         * tests/test-sys_select.c: Check that the tv_sec member has the same
4194         size as a 'time_t'.
4195         * tests/test-sys_time.c: Likewise.
4196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4197         is set, set also REPLACE_GETTIMEOFDAY.
4198         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4199         convert the resulting 'struct timeval' before returning.
4200         * lib/select.c: Include <sys/time.h>.
4201         (select, timeval): Undefine at the right place.
4202         * modules/select (Depends-on): Add sys_time.
4203         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4204         some Windows platforms.
4205         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4206
4207 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4208
4209         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4210         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4211         an integer.
4212         * lib/fcntl.c (dupfd): Likewise.
4213         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4214
4215 2012-01-28  Bruno Haible  <bruno@clisp.org>
4216
4217         fcntl: Avoid compilation error on native Windows.
4218         * modules/fcntl (Depends-on): Add 'close'.
4219
4220 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4221
4222         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4223         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4224         pointer to an integer.
4225         * lib/poll.c (IsConsoleHandle): Likewise.
4226         * lib/isatty.c (IsConsoleHandle): Likewise.
4227
4228 2012-01-28  Jim Meyering  <meyering@redhat.com>
4229
4230         doc: clarify README-release
4231         * top/README-release: Clarify: you should make a point to have
4232         the latest stable versions of build tools in your PATH, and the
4233         reference to buildreq is solely for its list of tool names, not
4234         for its minimal-functional version numbers.
4235         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4236
4237         maint.mk: use more readable (yet functionally equivalent) quoting
4238         It is common to quote a single quote in a single quoted string like
4239         this:  '...'\''...'.  Unless you know the idiom, that looks like
4240         gibberish, so prefer to double-quote the string when possible.
4241         Then you can use a more readable, lone single quote: "...'..."
4242         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4243         "don't" is more readable than the equivalent 'don'\''t'.
4244         (sc_cast_of_x_alloc_return_value): Likewise.
4245         (sc_cast_of_alloca_return_value): Likewise.
4246         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4247         rather than '\'':'\''.
4248
4249 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4250
4251         stdalign: relax _Alignof and tighten _Alignas test
4252         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4253         as it was too strict: alignof must divide offsetof, but it need
4254         not equal offsetof.  Inspired by Joseph S. Myers's comment
4255         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4256         Conversely, tighten the _Alignas test a bit, as the resulting
4257         alignment must be exactly 8.
4258
4259 2012-01-27  Bruno Haible  <bruno@clisp.org>
4260
4261         stdalign: Document the last change.
4262         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4263
4264 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4265
4266         stdalign: check that alignof and offsetof are consistent
4267         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4268         Problem reported for gnulib by Richard W.M. Jones in
4269         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4270
4271 2012-01-27  Jim Meyering  <meyering@redhat.com>
4272
4273         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4274         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4275         convert a sequence with gaps to the minimal containing range.
4276         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4277         * tests/test-update-copyright.sh: Test for this.
4278         The FSF confirmed it is ok to do this, assuming there is at
4279         least one significant change per year in the affected range:
4280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4281
4282 2012-01-26  Bruno Haible  <bruno@clisp.org>
4283
4284         pipe2: refine doc about thread-safety
4285         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4286         multithread-safety problem.
4287         * doc/glibc-functions/accept4.texi: Likewise.
4288
4289 2012-01-26  Bruno Haible  <bruno@clisp.org>
4290
4291         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4292         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4293         In the test program, include <fcntl.h>, for O_RDONLY.
4294
4295 2012-01-26  Eric Blake  <eblake@redhat.com>
4296
4297         pipe2: document lack of thread-safety in replacement
4298         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4299         issue in replacement.
4300         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4301         Based on a report by Eric Wong.
4302
4303 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4304             Bruno Haible  <bruno@clisp.org>
4305
4306         malloca: Avoid warnings on x86_64 mingw64.
4307         * lib/malloca.c: Include <stdint.h>.
4308         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4309         * modules/malloca (Depends-on): Add stdint.
4310         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4311
4312 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4313
4314         obstack: remove __STDC__ conditionals
4315         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4316         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4317         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4318         m4/include_next.m4 as the only gnulib-maintained places that still
4319         refer to __STDC__.
4320
4321 2012-01-24  Bruno Haible  <bruno@clisp.org>
4322
4323         havelib: Modern quoting.
4324         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4325         the recent change to the GNU coding standards.
4326
4327 2012-01-24  Bruno Haible  <bruno@clisp.org>
4328
4329         stdint: Improve support for Android.
4330         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4331         Reported by Simon Josefsson <simon@josefsson.org>.
4332
4333 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4334
4335         doc: omit trailing empty lines from INSTALL etc.
4336         * doc/Makefile (INSTALL): Omit trailing empty lines.
4337         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4338         omit trailing empty lines.  This simplifies the build procedure.
4339
4340 2012-01-23  Jim Meyering  <meyering@redhat.com>
4341
4342         tests: avoid spurious warnings about gl_sockets_startup
4343         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4344         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4345         reporting a "statement with no effect".
4346         * tests/test-accept.c (main): Mark as "(void)".
4347         * tests/test-accept4.c (main): Likewise.
4348         * tests/test-bind.c (main): Likewise.
4349         * tests/test-connect.c (main): Likewise.
4350         * tests/test-getpeername.c (main): Likewise.
4351         * tests/test-getsockname.c (main): Likewise.
4352         * tests/test-getsockopt.c (main): Likewise.
4353         * tests/test-listen.c (main): Likewise.
4354         * tests/test-recv.c (main): Likewise.
4355         * tests/test-recvfrom.c (main): Likewise.
4356         * tests/test-send.c (main): Likewise.
4357         * tests/test-sendto.c (main): Likewise.
4358         * tests/test-setsockopt.c (main): Likewise.
4359         * tests/test-shutdown.c (main): Likewise.
4360
4361 2012-01-21  Bruno Haible  <bruno@clisp.org>
4362
4363         locale-fr.m4: Fix for Android.
4364         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4365         failure of the test program on Bionic libc.
4366
4367 2012-01-21  Jim Meyering  <meyering@redhat.com>
4368
4369         bootstrap: fail when bootstrap_post_import_hook fails
4370         Otherwise, it's far too easy to miss diagnostics emitted
4371         between gnulib-tool's output and that of running configure.
4372         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4373
4374 2012-01-17  Jim Meyering  <meyering@redhat.com>
4375
4376         maint: enable sc_trailing_blank
4377         * build-aux/pmccabe.css: Remove trailing blanks.
4378         * doc/acl-cygwin.txt: Likewise.
4379         * doc/gnu-oids.texi: Likewise
4380         * cfg.mk: Enable sc_trailing_blank.
4381         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4382
4383 2012-01-17  Jim Meyering  <meyering@redhat.com>
4384
4385         maint: enable sc_prohibit_openat_without_use
4386         * cfg.mk: Enable sc_prohibit_openat_without_use.
4387         Exempt lib/selinux-at.c.
4388
4389 2012-01-17  Jim Meyering  <meyering@redhat.com>
4390
4391         maint: enable sc_prohibit_cloexec_without_use
4392         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4393         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4394
4395 2012-01-17  Jim Meyering  <meyering@redhat.com>
4396
4397         maint: enable sc_prohibit_intprops_without_use
4398         * cfg.mk: Enable sc_prohibit_intprops_without_use
4399         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4400
4401 2012-01-17  Jim Meyering  <meyering@redhat.com>
4402
4403         maint: enable sc_prohibit_hash_pjw_without_use
4404         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4405         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4406         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4407         following " (".
4408
4409 2012-01-17  Jim Meyering  <meyering@redhat.com>
4410
4411         maint: enable double-word-prohibiting rule
4412         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4413         Exempt three files.
4414
4415 2012-01-17  Jim Meyering  <meyering@redhat.com>
4416
4417         maint: remove empty lines at EOF, but excluding modules/*
4418         Apply syntax rules at home as well as abroad.  Most changes
4419         were induced by running this:
4420           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4421             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4422             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4423         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4424         Exempt modules/* and two binary files.
4425         Also exempt doc/INSTALL*, per request from Bruno Haible.
4426         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4427         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4428         * doc/Copyright/request-assign.future: Likewise.
4429         * doc/Copyright/request-disclaim.changes: Likewise.
4430         * doc/INSTALL: Likewise.
4431         * doc/INSTALL.ISO: Likewise.
4432         * doc/INSTALL.UTF-8: Likewise.
4433         * doc/acl-cygwin.txt: Likewise.
4434         * doc/acl-resources.txt: Likewise.
4435         * doc/fdl-1.2.texi: Likewise.
4436         * doc/fdl-1.3.texi: Likewise.
4437         * doc/fdl.texi: Likewise.
4438         * lib/argp-pin.c: Likewise.
4439         * lib/round.c: Likewise.
4440         * lib/unicase/u16-totitle.c: Likewise.
4441         * lib/unictype/block_test.c: Likewise.
4442         * lib/uninorm/canonical-decomposition.c: Likewise.
4443         * m4/README: Likewise.
4444         * m4/relocatable-lib.m4: Likewise.
4445         * tests/test-isnand-nolibm.c: Likewise.
4446         * tests/test-isnand.c: Likewise.
4447         * tests/uninorm/NormalizationTest.txt: Likewise.
4448
4449 2012-01-17  Jim Meyering  <meyering@redhat.com>
4450
4451         maint: add framework to run syntax-check rules against gnulib sources
4452         * cfg.mk: New file, to disable all currently-failing tests.
4453         We'll enable them one by one, as they are made to pass.
4454         * Makefile (sc_maint): New rule.
4455
4456 2012-01-21  Bruno Haible  <bruno@clisp.org>
4457
4458         stdint: Add support for Android.
4459         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4460         include the system's <stdint.h>.
4461         Reported by Simon Josefsson <simon@josefsson.org>.
4462
4463 2012-01-19  Jim Meyering  <meyering@redhat.com>
4464
4465         bootstrap: add bootstrap_post_import_hook
4466         Bison does still need something like the gnulib_mk_hook whose
4467         invocation I had to remove along with slurp in commit 767ccd40.
4468         Technically, we could get along without it, but doing so would
4469         have required living with a warning and a mandatory post-bootstrap
4470         automake rerun.
4471         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4472         (bootstrap_post_import_hook): New function.
4473         Invoke it after gnulib-tool --import and before autoreconf.
4474
4475 2012-01-18  Jim Meyering  <meyering@redhat.com>
4476
4477         gitlog-to-changelog: don't use "no_"-prefixed variable name
4478         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4479         to enable both --cluster and --no-cluster.  Change variable name,
4480         s/\$no_cluster/$cluster/, and reverse usage to match.
4481
4482         gitlog-to-changelog: use "||", not "or" in expressions
4483         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4484         expressions.
4485
4486 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4487
4488         gitlog-to-changelog: new option --no-cluster
4489         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4490         clustering of adjacent commit messages.
4491
4492 2012-01-17  Jim Meyering  <meyering@redhat.com>
4493
4494         maint: spell file systems with two words, not one
4495         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4496         two words, not one.
4497
4498 2012-01-16  Jim Meyering  <meyering@redhat.com>
4499
4500         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4501         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4502
4503 2012-01-16  Eric Blake  <eblake@redhat.com>
4504
4505         bootstrap: cater to autoconf 2.59
4506         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4507         is not available.
4508
4509         bootstrap: properly check for libtool
4510         * build-aux/bootstrap (libtoolize): Also run libtool when older
4511         usage is detected.
4512
4513 2012-01-15  Bruno Haible  <bruno@clisp.org>
4514
4515         Improve support for MSVC 9.
4516         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4517         clashes on MSVC.
4518         * lib/fcntl.in.h: Likewise.
4519         * lib/stdlib.in.h: Likewise.
4520         * lib/sys_stat.in.h: Likewise.
4521
4522 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4523
4524         gnupload: we hold the master copy of this script now
4525         For motivation and more information, see:
4526         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4527         * build-aux/gnupload: Make it clear in the heading comments that the
4528         master copy of this file is maintained by gnulib.  Since we are at
4529         it, bump its copyright year and ...
4530         ($scriptversion): ... the date in its version.
4531         ($usage): Patches and bug reports should be sent to the gnulib list,
4532         not the automake one.
4533         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4534         anymore.
4535
4536 2012-01-15  Bruno Haible  <bruno@clisp.org>
4537
4538         Fix module 'random'.
4539         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4540         initstate, setstate are declared.
4541
4542 2012-01-14  Bruno Haible  <bruno@clisp.org>
4543
4544         Tests for module 'random'.
4545         * modules/random-tests: New file.
4546         * tests/test-random.c: New file, based on tests/test-random_r.c.
4547
4548         New module 'random'.
4549         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4550         declarations.
4551         * lib/random.c: New file, based on glibc/stdlib/random.c.
4552         * m4/random.m4: New file.
4553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4554         HAVE_RANDOM.
4555         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4556         * modules/random: New file.
4557         * config/srclist.txt: Add an entry for random.c.
4558         * doc/posix-functions/random.texi: Mention the 'random' module.
4559         * doc/posix-functions/initstate.texi: Likewise.
4560         * doc/posix-functions/setstate.texi: Likewise.
4561         * doc/posix-functions/srandom.texi: Likewise.
4562
4563 2012-01-12  Bruno Haible  <bruno@clisp.org>
4564
4565         random_r: Use common idioms.
4566         * lib/random_r.c: Include <stdlib.h> first.
4567
4568         random_r: Override incompatible API on AIX, OSF/1.
4569         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4570         Override the system function if REPLACE_RANDOM_R is 1.
4571         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4572         and OSF/1, set REPLACE_RANDOM_R.
4573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4574         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4575         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4576         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4577         * doc/glibc-functions/random_r.texi: Likewise.
4578         * doc/glibc-functions/setstate_r.texi: Likewise.
4579
4580         random_r: Support for MSVC 9.
4581         * lib/random_r.c: Include stdint.h, not inttypes.h.
4582
4583 2012-01-12  Eric Blake  <eblake@redhat.com>
4584
4585         inet_ntop: guard extra work by IF_LINT
4586         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4587         better code generation when not checking for warnings.
4588         Suggested by Paul Eggert and Jim Meyering.
4589
4590         strptime: fix regression on mingw
4591         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4592         Fix regression.  Reported by Bruno Haible.
4593
4594 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4595             Bruno Haible  <bruno@clisp.org>
4596
4597         copy-file: add error-code-returning variant.
4598         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4599         (qcopy_file_preserving): New declaration.
4600         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4601         copy_file_preserving. Change return type to 'int'. Don't emit an error
4602         message here.
4603         (copy_file_preserving): New function.
4604         * tests/test-copy-file.c: Include <stdlib.h>.
4605         (main): Test qcopy_file_preserving if the environment variable
4606         NO_STDERR_OUTPUT is set.
4607         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4608         with NO_STDERR_OUTPUT
4609         * tests/test-copy-file-2.sh: Likewise.
4610
4611 2012-01-10  Bruno Haible  <bruno@clisp.org>
4612
4613         copy-file: Use 'quote' module consistently.
4614         * lib/copy-file.c (copy_file_preserving): Use quote().
4615
4616         copy-file: Refactor.
4617         * lib/copy-file.c: Include quote.h.
4618         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4619         message here.
4620         * modules/copy-file (Depends-on): Add quote.
4621
4622         acl: Export qcopy_acl.
4623         * lib/acl.h (qcopy_acl): New declaration.
4624         * lib/copy-acl.c (qcopy_acl): Make non-static.
4625
4626         acl: Rename a local variable.
4627         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4628
4629         acl: Align return values of copy_acl and qcopy_acl.
4630         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4631         maybe < -1.
4632
4633 2012-01-11  Eric Blake  <eblake@redhat.com>
4634
4635         strptime: silence gcc warnings
4636         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4637         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4638         Reported by Daniel P. Berrange.
4639
4640         inet_ntop: silence gcc warning
4641         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4642         Reported by Daniel P. Berrange.
4643
4644 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4645
4646         getloadavg test: skip the test on GNU/Linux without /proc mounted
4647         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4648         file.  When /proc is not mounted, it always fails with ENOENT.
4649         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4650         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4651
4652 2012-01-10  Bruno Haible  <bruno@clisp.org>
4653
4654         regex: Avoid link error on MSVC 9.
4655         * modules/regex (Depends-on): Add wctype.
4656
4657 2012-01-10  Bruno Haible  <bruno@clisp.org>
4658
4659         doc: Mention --with-tests option.
4660         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4661         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4662         --with-tests.
4663         Reported by Reuben Thomas.
4664
4665 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4666
4667         users.txt: order package names lexicographically.
4668         * users.txt: Order package names lexicographically.
4669
4670 2012-01-10  Jim Meyering  <meyering@redhat.com>
4671
4672         maint.mk: fix description in comment
4673         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4674
4675         ignore-value: remove deprecated ignore_ptr function
4676         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4677         * NEWS: Note this.
4678
4679 2012-01-09  Jim Meyering  <meyering@redhat.com>
4680
4681         test-init.sh: avoid a subshell
4682         * tests/test-init.sh: Remove protective subshell.
4683         Suggested by Bernhard Voelker.  While a subshell is normally
4684         required to protect against older shells (Solaris, FreeBSD) that
4685         warn about a missing program before performing redirection, the
4686         shell-selection tests performed by init.sh probably exclude any
4687         offending shell.
4688
4689 2012-01-08  Bruno Haible  <bruno@clisp.org>
4690
4691         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4692         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4693         variable.
4694
4695 2012-01-08  Bruno Haible  <bruno@clisp.org>
4696
4697         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4698         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4699         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4700         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4701         macro.
4702         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4703         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4704         * lib/spawn_faction_addopen.c: Add workaround implementation if
4705         HAVE_WORKING_POSIX_SPAWN.
4706         * modules/spawn (Makefile): Substitute
4707         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4708         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4709         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4710         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4711         (Depends-on): Update conditions.
4712         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4713         the Solaris 11 bug.
4714
4715 2012-01-08  Bruno Haible  <bruno@clisp.org>
4716
4717         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4718         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4719         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4720         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4721         macro.
4722         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4723         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4724         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4725         HAVE_WORKING_POSIX_SPAWN.
4726         * modules/spawn (Makefile): Substitute
4727         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4728         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4729         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4730         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4731         (Depends-on): Update conditions.
4732         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4733         the Solaris 11 bug.
4734
4735 2012-01-08  Bruno Haible  <bruno@clisp.org>
4736
4737         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4738         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4739         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4740         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4741         HAVE_WORKING_POSIX_SPAWN.
4742         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4743         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4744         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4745         * lib/spawn_faction_addclose.c: Add workaround implementation if
4746         HAVE_WORKING_POSIX_SPAWN.
4747         * modules/spawn (Makefile): Substitute
4748         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4749         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4750         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4751         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4752         (Depends-on): Update conditions.
4753         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4754         the Solaris 11 bug.
4755
4756 2012-01-08  Bruno Haible  <bruno@clisp.org>
4757
4758         doc: Update for Solaris 11 2011-11.
4759         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4760         * m4/printf.m4: Update comments.
4761
4762 2012-01-08  Bruno Haible  <bruno@clisp.org>
4763
4764         mktime: Avoid compilation error on Solaris 11.
4765         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4766
4767 2012-01-08  Bruno Haible  <bruno@clisp.org>
4768
4769         doc: Small fix.
4770         * doc/posix-headers/nl_types.texi: Correct platforms list.
4771
4772 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4773
4774         Add lgpl-3.0 module.
4775         * MODULES.html.sh (Support for building documentation): Add
4776         lgpl-3.0.
4777         * modules/lgpl-3.0: New file.
4778
4779 2012-01-08  Jim Meyering  <meyering@redhat.com>
4780
4781         select.c: indent with spaces, not TABs
4782         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4783
4784 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4785
4786         quotearg: do not use grave accent for left quote
4787         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4788         locale_quoting_style.
4789         (quotearg_buffer_restyled): Fix example.
4790         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4791
4792 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4793
4794         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4795         Most programs do not have translation catalogs for English and much
4796         less separate catalogs for British and American English.  Drop the
4797         suggestion to translators about these two, and provide it
4798         automatically for Unicode locales.  Like most programs, even those
4799         using American English, we use single quotation marks.  This conflicts
4800         with the American typographic convention, but works better when you
4801         cite the entire error message within double quotes.  It also tries not
4802         to clash with established practice and with what non-gnulib programs
4803         will usually do.
4804         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4805         using an UTF-8 or GB-18030 locale.  The list of other locales with
4806         quotes was provided by Bruno Haible.
4807         (quotearg_buffer_restyled): Adjust instructions to translators.
4808         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4809         text, since this would be wrong when using Unicode.
4810         * modules/quotearg: Depend on c-strcaseeq.
4811
4812 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4813
4814         quotearg: fix Wikipedia link
4815         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4816
4817 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4818
4819         Fix for mingw with MSVC9.
4820         * m4/ld-version-script.m4: Check that compiler rejects version
4821         scripts with syntax errors.  Reported by Bruno Haible
4822         <bruno@clisp.org>.
4823
4824 2012-01-06  Bruno Haible  <bruno@clisp.org>
4825
4826         Talk about "native Windows API", not "Woe32".
4827         * lib/accept4.c: Update comments to mention native Windows.
4828         * lib/execute.c: Likewise.
4829         * lib/fatal-signal.c: Likewise.
4830         * lib/localcharset.c: Likewise.
4831         * lib/nanosleep.c: Likewise.
4832         * lib/nl_langinfo.c: Likewise.
4833         * lib/pclose.c: Likewise.
4834         * lib/pipe-filter-gi.c: Likewise.
4835         * lib/pipe-filter-ii.c: Likewise.
4836         * lib/pipe.c: Likewise.
4837         * lib/pipe2.c: Likewise.
4838         * lib/popen.c: Likewise.
4839         * lib/progreloc.c: Likewise.
4840         * lib/relocatable.c: Likewise.
4841         * lib/sigaction.c: Likewise.
4842         * lib/sigprocmask.c: Likewise.
4843         * lib/spawn-pipe.h: Likewise.
4844         * lib/spawn-pipe.c: Likewise.
4845         * lib/spawni.c: Likewise.
4846         * lib/stat-time.h: Likewise.
4847         * lib/w32spawn.h: Likewise.
4848         * tests/test-isatty.c: Likewise.
4849         * lib/config.charset: More comments.
4850         * doc/gnulib-intro.texi: Mention native Windows.
4851         * doc/posix-functions/_Exit_C99.texi: Likewise.
4852         * doc/posix-headers/fcntl.texi: Likewise.
4853
4854 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4855
4856         argp: Avoid crash if translator uses % characters in a translation.
4857         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4858         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4859
4860 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4861
4862         doc: C11 and C++11 are now official
4863         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4864         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4865         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4866         * modules/stdalign:
4867         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4868
4869 2012-01-06  Bruno Haible  <bruno@clisp.org>
4870
4871         uc-is-grapheme-break tests: Tweak.
4872         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4873         message.
4874
4875 2012-01-06  Bruno Haible  <bruno@clisp.org>
4876
4877         test-init.sh: correct the test for diff -u
4878         * tests/test-init.sh: Also redirect stdout to /dev/null.
4879
4880 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4881
4882         Use ', not `, for quoting output.
4883         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4884         (print_changelog_deltas, get_tool_versions, main program):
4885         * build-aux/git-version-gen:
4886         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4887         * build-aux/move-if-change (help):
4888         * build-aux/useless-if-before-free (usage, main program):
4889         * check-module (parse_module_file, usage)
4890         (find_included_lib_files, check_module):
4891         * lib/argmatch.c (main) [TEST]:
4892         * lib/argp-help.c (_help):
4893         * lib/getopt1.c (main) [TEST]:
4894         * lib/git-merge-changelog.c (usage):
4895         * lib/xstrtol-error.c (xstrtol_error):
4896         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4897         * m4/argz.m4 (gl_FUNC_ARGZ):
4898         * m4/bison.m4 (gl_BISON):
4899         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4900         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4901         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4902         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4903         * m4/gc-random.m4 (gl_GC_RANDOM):
4904         * m4/intl.m4 (gt_CHECK_DECL):
4905         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4906         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4907         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4908         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4909         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4910         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4911         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4912         * tests/test-dirname.c (main):
4913         * tests/test-getpass.c (main):
4914         * tests/test-iconvme.c (main):
4915         * tests/test-parse-datetime.c (LOG):
4916         * tests/test-xstrtoimax.sh:
4917         * tests/test-xstrtol.sh:
4918         * tests/test-xstrtoll.sh:
4919         * tests/test-xstrtoumax.sh:
4920         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4921         * top/GNUmakefile (abort-due-to-no-makefile):
4922         Quote 'like this', not `like this', as per the recent change to
4923         the GNU coding standards.
4924
4925 2012-01-05  Bruno Haible  <bruno@clisp.org>
4926
4927         strtoimax: Don't force a replacement on systems where intmax_t is int.
4928         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4929         'intmax_t' is not larger than 'int'.
4930         Reported by Pádraig Brady <P@draigBrady.com>.
4931
4932 2012-01-05  Bruno Haible  <bruno@clisp.org>
4933
4934         doc: Mention NetBSD bugs.
4935         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4936         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4937
4938 2012-01-05  Bruno Haible  <bruno@clisp.org>
4939
4940         strtoumax tests: Enhance tests.
4941         * tests/test-strtoumax.c (main): Add tests for large values.
4942
4943 2012-01-05  Bruno Haible  <bruno@clisp.org>
4944
4945         strtoimax: Work around AIX 5.1 bug.
4946         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4947         definition.
4948         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4949         Set HAVE_STRTOIMAX.
4950         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4951         REPLACE_STRTOIMAX.
4952         * modules/inttypes-incomplete (Makefile.am): Substitute
4953         REPLACE_STRTOIMAX.
4954         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4955         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4956         (Depends-on): Update conditions.
4957         * tests/test-strtoimax.c (main): Add tests for large values.
4958         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4959
4960 2012-01-05  Bruno Haible  <bruno@clisp.org>
4961
4962         inttypes: Modernize.
4963         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4964         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4965         (Makefile.am): Update inttypes.h rule.
4966
4967 2012-01-05  Jim Meyering  <meyering@redhat.com>
4968
4969         init.sh: don't waste a subshell just to redirect stderr
4970         * tests/init.sh: In testing for diff -u and diff -c, use a
4971         stderr-redirecting exec inside `...` rather than a subshell.
4972
4973         test-init.sh: avoid failure on HP-UX 11.00
4974         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4975         resolves to diff -c or cmp.  Reported by Bruno Haible.
4976
4977 2012-01-05  Bruno Haible  <bruno@clisp.org>
4978
4979         Tests for module 'strtoull'.
4980         * modules/strtoull-tests: New file.
4981         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4982
4983 2012-01-05  Bruno Haible  <bruno@clisp.org>
4984
4985         Tests for module 'strtoll'.
4986         * modules/strtoll-tests: New file.
4987         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4988
4989 2012-01-05  Bruno Haible  <bruno@clisp.org>
4990
4991         Tests for module 'strtoul'.
4992         * modules/strtoul-tests: New file.
4993         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4994
4995 2012-01-05  Bruno Haible  <bruno@clisp.org>
4996
4997         Tests for module 'strtol'.
4998         * modules/strtol-tests: New file.
4999         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5000
5001 2012-01-04  Jim Meyering  <meyering@redhat.com>
5002
5003         test-init.sh: accommodate Solaris 5.10's different diff -u output
5004         * tests/test-init.sh: Also exempt @@ lines from the comparison
5005         of diff output, since Solaris 5.10 and GNU diff formats differ.
5006         Reported by Stefano Lattarini.
5007
5008 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5009
5010         test-posixtm: don't assume signed integer wraparound
5011         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5012         after signed integer overflow.  Inspired by (though it may not
5013         fix) Bruno Haible's bug report in
5014         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5015
5016         Spell out "Windows 9x" and "Windows XP".
5017         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5018         "Windows 9x" and "WinXP" with "Windows XP".
5019
5020 2012-01-04  Jim Meyering  <meyering@redhat.com>
5021
5022         test-vc-list-files-cvs.sh: remove obsolete comment
5023         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5024         double exit.  Now that's all encapsulated via skip_ and Exit.
5025
5026 2012-01-04  Bruno Haible  <bruno@clisp.org>
5027
5028         Talk about "native Windows API", not "Win32".
5029         * lib/classpath.c: Update comments to mention native Windows.
5030         * lib/csharpexec.c: Likewise.
5031         * lib/dup2.c: Likewise.
5032         * lib/error.c: Likewise.
5033         * lib/fcntl.c: Likewise.
5034         * lib/filename.h: Likewise.
5035         * lib/findprog.c: Likewise.
5036         * lib/get-rusage-as.c: Likewise.
5037         * lib/get-rusage-data.c: Likewise.
5038         * lib/getpagesize.c: Likewise.
5039         * lib/javaexec.c: Likewise.
5040         * lib/msvc-inval.c: Likewise.
5041         * lib/msvc-nothrow.c: Likewise.
5042         * lib/nanosleep.c: Likewise.
5043         * lib/nonblocking.c: Likewise.
5044         * lib/printf-parse.c: Likewise.
5045         * lib/setlocale.c: Likewise.
5046         * lib/sigaction.c: Likewise.
5047         * lib/strerror_r.c: Likewise.
5048         * lib/tmpdir.c: Likewise.
5049         * lib/vasnprintf.c: Likewise.
5050         * lib/w32spawn.h: Likewise.
5051         * lib/waitpid.c: Likewise.
5052         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5053         * m4/locale-ar.m4: Likewise.
5054         * m4/locale-fr.m4: Likewise.
5055         * m4/locale-ja.m4: Likewise.
5056         * m4/locale-tr.m4: Likewise.
5057         * m4/locale-zh.m4: Likewise.
5058         * m4/printf.m4: Likewise.
5059         * tests/test-cloexec.c: Likewise.
5060         * tests/test-copy-acl.sh: Likewise.
5061         * tests/test-copy-file.sh: Likewise.
5062         * tests/test-file-has-acl.sh: Likewise.
5063         * tests/test-set-mode-acl.sh: Likewise.
5064         * tests/test-dup-safer.c: Likewise.
5065         * tests/test-dup2.c: Likewise.
5066         * tests/test-dup3.c: Likewise.
5067         * tests/test-fcntl.c: Likewise.
5068         * tests/test-nonblocking-pipe.h: Likewise.
5069         * tests/test-nonblocking-socket.h: Likewise.
5070         * tests/test-pipe.c: Likewise.
5071         * tests/test-pipe2.c: Likewise.
5072         * tests/test-spawn-pipe-child.c: Likewise.
5073         * doc/acl-resources.txt: Likewise.
5074         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5075         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5076         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5077         * lib/localcharset.c: Update comments to mention native Windows.
5078         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5079         * lib/localename.c: Likewise.
5080         * lib/progreloc.c: Likewise.
5081         * lib/relocatable.c: Likewise.
5082         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5083         (windows_compute_revents): Renamed from win32_compute_revents.
5084         (windows_compute_revents_socket): Renamed from
5085         win32_compute_revents_socket.
5086         * lib/select.c: Update comments to mention native Windows.
5087         (windows_poll_handle): Renamed from win32_poll_handle.
5088         * m4/threadlib.m4: Update comments to mention native Windows.
5089         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5090         --enable-threads=windows instead of --enable-threads=win32. Set
5091         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5092         * lib/glthread/lock.h: Update comments to mention native Windows.
5093         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5094         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5095         USE_WIN32_THREADS.
5096         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5097         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5098         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5099         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5100         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5101         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5102         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5103         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5104         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5105         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5106         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5107         * tests/test-tls.c: Likewise.
5108         Rationale:
5109         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5110         on both 32-bit and 64-bit Windows systems.
5111         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5112         line of distinction is between "native Windows" on one side and Unix/
5113         POSIX systems on the other side. More details in
5114         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5115         Suggested by Paul Eggert.
5116
5117 2012-01-03  Bruno Haible  <bruno@clisp.org>
5118
5119         isatty: Support for MSVC 9.
5120         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5121         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5122         (_isatty_nothrow): New function.
5123         (isatty): Use it instead of _isatty.
5124         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5125         * lib/poll.c (IsConsoleHandle): Likewise.
5126         * lib/select.c (IsConsoleHandle): Likewise.
5127         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5128         (gl_PREREQ_ISATTY): New macro.
5129         * modules/isatty (Depends-on): Add msvc-inval.
5130         (configure.ac): Invoke gl_PREREQ_ISATTY.
5131
5132 2012-01-03  Jim Meyering  <meyering@redhat.com>
5133
5134         maint.mk: remove temporary transition aid from over 1.5 years ago
5135         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5136         purpose was to aid in the transition (avoiding silent malfunction)
5137         from that old name to the new _sc_search_regexp.  This shim was
5138         added by commit 219c504b.
5139
5140         init.sh: do not try to accommodate compare arguments starting with "-"
5141         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5142         compare arguments that start with "-".  Besides, we do not worry
5143         about this when invoking diff or cmp; why start now with sed?
5144         Using "--" to separate options from argument would trigger sed
5145         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5146         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5147
5148 2012-01-02  Bruno Haible  <bruno@clisp.org>
5149
5150         Enhance tests for module 'isatty'.
5151         * modules/isatty-tests (Depends-on): Add pipe-posix.
5152         * tests/test-isatty.c: Include <fcntl.h>.
5153         (DEV_NULL): New macro.
5154         (main): Test the resut of isatty() also on regular files, pipes, and
5155         /dev/null.
5156
5157         New module 'isatty'.
5158         * lib/unistd.in.h (isatty): New declaration.
5159         * lib/isatty.c: New file, based on an idea of
5160         Bastien Roucariès <roucaries.bastien@gmail.com>.
5161         * m4/isatty.m4: New file.
5162         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5163         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5164         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5165         REPLACE_ISATTY.
5166         * modules/isatty: New file.
5167         * doc/posix-functions/isatty.texi: Mention the new module.
5168         Suggested by Paolo Bonzini.
5169
5170 2012-01-02  Bruno Haible  <bruno@clisp.org>
5171
5172         canonicalize: Tweak 2011-12-29 commit.
5173         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5174         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5175
5176 2012-01-02  Jim Meyering  <meyering@redhat.com>
5177
5178         gitlog-to-changelog: describe input syntax in --help output
5179         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5180
5181         gitlog-to-changelog: fix typo in --help: show backslash before email @
5182         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5183         in sources, but not in actual output.
5184
5185 2011-12-30  Jim Meyering  <meyering@redhat.com>
5186
5187         gitlog-to-changelog: don't malfunction when name contains %-directive
5188         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5189         in a name string cause trouble.  E.g., with a user name of "%s",
5190         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5191
5192 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5193
5194         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5195         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5196         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5197         the "  (tiny change)" notation that is appended to the standard
5198         ChangeLog "date  name  email" header line.
5199
5200 2012-01-01  Jim Meyering  <meyering@redhat.com>
5201
5202         test-framework-sh: init.sh: fix "make dist" failure
5203         When using gnulib-tool's --with-tests option and any module that
5204         depends on test-framework-sh, "make dist" would fail due to the
5205         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5206         in the gltests directory, and not in the gllib/ directory.
5207         One way to work around that is to move the EXTRA_DIST += init.sh
5208         from the primary module to the -tests one:
5209         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5210         * modules/test-framework-sh (Makefile.am): ...not here.
5211         Reported by Tom G. Christensen in
5212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5213
5214         version-etc: update copyright year reported by --version
5215         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5216
5217 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5218
5219         canonicalize: only stat() if required
5220         * lib/canonicalize.c (canonicalize_filename_mode):
5221         Avoid calling l?stat() when both CAN_MISSING,
5222         and CAN_NOLINKS are set, as we neither need
5223         to resolve symlinks or test component existence.
5224
5225 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5226
5227         doc: cover st_ino issues once; add OpenVMS etc.
5228         * doc/posix-functions/stat.texi (stat):
5229         * doc/posix-functions/lstat.texi (lstat):
5230         * doc/posix-functions/fstatat.texi (fstatat):
5231         * doc/posix-functions/fstat.texi (fstat):
5232         Move general 'struct stat' stuff to sys_stat.texi,
5233         leaving behind a pointer.
5234         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5235         Merge duplicate info about 'struct stat' problems into here.
5236         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5237         and suggest partial workarounds.
5238
5239         same-inode: port to OpenVMS
5240         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5241         three st_ino values.
5242
5243 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5244
5245         canonicalize: fix references to stat() and lstat()
5246         * lib/canonicalize.c (canonicalize_filename_mode):
5247         Ensure references always resolve to a replacement
5248         function if required (even via a macro).
5249
5250 2011-12-30  Jim Meyering  <meyering@redhat.com>
5251
5252         gitlog-to-changelog: remove a little duplication
5253         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5254         rather than twice.
5255
5256 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5257
5258         canonicalize: add support for not resolving symlinks
5259         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5260         indicate we don't want to follow symlinks.  Also
5261         provide CAN_MODE_MASK to aid setting these existing
5262         mutually exclusive values.
5263         * lib/canonicalize.c (canonicalize_filename_mode):
5264         Extract the flags from can_mode parameter, which
5265         are currently just used to select between stat()
5266         and lstat().  Also ensure that mutually exclusive
5267         values are flagged immediately as invalid.
5268         * tests/test-canonicalize.c: Verify symlinks are
5269         not followed, and that invalid flag combinations
5270         are diagnosed.
5271
5272 2011-12-25  Jim Meyering  <meyering@redhat.com>
5273
5274         gitlog-to-changelog: do not clump multi-paragraph entries
5275         Identical header lines (date,name,email+coauthors) are suppressed,
5276         thus putting all entries with those same characteristics under
5277         a single header.  However, when a log entry consists of two or
5278         more paragraphs, it may not be clear where it starts and ends.
5279         This change makes it so that such an entry is always separated
5280         from others by a header line, even when that header would
5281         otherwise be suppressed.
5282         * build-aux/gitlog-to-changelog: Implement the above.
5283         Inspired by a related request from Stefano Lattarini in
5284         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5285
5286 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5287
5288         announce-gen: fix `cmd' typo in diagnostic
5289         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5290         diagnostic: a missing '$' meant that the command was not output.
5291
5292 2011-12-23  Jim Meyering  <meyering@redhat.com>
5293
5294         test-framework-sh: distribute init.sh
5295         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5296         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5297         fail due to the lack of init.sh.
5298
5299         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5300         * modules/atexit-tests: Rather than listing tests/init.sh,
5301         now that there's a module for it, simply depend on that new module.
5302         * modules/closein-tests: Likewise.
5303         * modules/exclude-tests: Likewise.
5304         * modules/getcwd-tests: Likewise.
5305         * modules/perror-tests: Likewise.
5306         * modules/pread-tests: Likewise.
5307         * modules/pwrite-tests: Likewise.
5308         * modules/vc-list-files-tests: Likewise.
5309         * modules/verify-tests: Likewise.
5310         * modules/xalloc-die-tests: Likewise.
5311         * modules/xstrtoimax-tests: Likewise.
5312         * modules/xstrtol-tests: Likewise.
5313         * modules/xstrtoll-tests: Likewise.
5314         * modules/xstrtoumax-tests: Likewise.
5315         * modules/yesno-tests: Likewise.
5316
5317 2011-12-22  Jim Meyering  <meyering@redhat.com>
5318
5319         test-framework-sh: add minimal tests of init.sh's compare function
5320         * modules/test-framework-sh-tests: New file.
5321         * tests/test-init.sh: New file.
5322
5323         test-framework-sh: new module
5324         * modules/test-framework-sh: New file.
5325         * MODULES.html.sh (Support for maintaining and releasing projects):
5326         List it.
5327
5328         init.sh: do not emit simulated diff output to stderr
5329         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5330
5331 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5332
5333         .gitignore: ignore gnulib.dvi and regex.info
5334         * doc/.gitignore:add gnulib.dvi and regex.info
5335
5336 2011-12-22  Jim Meyering  <meyering@redhat.com>
5337
5338         init.sh: correct previous change
5339         * tests/init.sh (compare): My previous change was wrong.
5340         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5341
5342         init.sh: avoid unwarranted test failure when using "set -e"
5343         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5344         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5345         a use like "compare exp out" would get evoke an unconditional failure.
5346
5347 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5348
5349         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5350         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5351         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5352         autoreconf that did not.
5353         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5354         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5355
5356 2011-12-17  Jim Meyering  <meyering@redhat.com>
5357
5358         bootstrap: remove some now-unneeded code
5359         This script arose back when gnulib-tool was young.
5360         Since then, it has seen improvements that render much of this
5361         script unnecessary.  In particular, it can now make symlinks
5362         to the files it uses.  Also, I no longer see as much value in
5363         marking files as read-only via comments.
5364         If you relied on the symlink-creation feature of the preceding
5365         version of this script, you can get most of that functionality
5366         by adding the --symlink option to the definition of
5367         gnulib_tool_option_extras in your bootstrap.conf file.
5368         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5369         Run autopoint and libtoolize *before* gnulib-tool.
5370         After it, run an abbreviated autoreconf, rather than a loop around
5371         all tools.
5372         (slirp, bt_mark_as_generated): Remove functions.
5373
5374 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5375
5376         ftoastr: fix typo
5377         * lib/ftoastr.h: Fix misspelling in comment.
5378
5379 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5380
5381         * top/README-release: fix punctuation.
5382
5383 2011-12-17  Jim Meyering  <meyering@redhat.com>
5384
5385         bootstrap: correct the recent buildreq change
5386         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5387         had no effect.
5388         * build-aux/bootstrap (buildreq): Bracket each search term with
5389         "*...*", so that the shell "case" statement works as intended.
5390         Add comments.
5391
5392 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5393
5394         build: let bootstrap resort to wget when downloading .po files
5395         * build-aux/bootstrap (download_po_files): Fallback to wget when
5396         downloading the .po files via rsync fails.  This is necessary to
5397         bootstrap from behind a strict firewall.
5398
5399 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5400
5401         stdint: don't assume C++11 when compiling with g++
5402         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5404         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5405         work also in C++ before C++11, as that improperly inhibits
5406         generating a substitute stdint.h for that case.
5407
5408 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5409
5410         alloca: protect comment from gnulib-tool
5411         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5412         that gnulib-tool doesn't think it's a license, and munge it to
5413         say "GCC version 3".
5414
5415 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5416
5417         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5418         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5419         $(abs_top_builddir) instead of $(top_builddir).
5420
5421 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5422
5423         strftime-tests: also test nanoseconds
5424         * tests/test-strftime.c (T): Add a test of %N.
5425
5426 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5427
5428         inttypes, stdint: add C++11 support
5429         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5430         when including inttypes.h and stdint.h.  Support this change to
5431         the standard.
5432         * doc/posix-headers/inttypes.texi (inttypes.h):
5433         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5434         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5435         Define if not defined already, for the benefit of pre-C++11 hosts.
5436         Define the standard format macros (e.g., PRId8) always.
5437         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5438         Likewise, if __cpluspus.  Define the standard constant and limit
5439         macros (e.g., INT8_C, INT8_MAX) always.
5440         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5441         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5442         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5443         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5444         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5445         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5446         Likewise.
5447
5448 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5449
5450         nonblocking tests: Fix test failure on Linux/PPC.
5451         Suggested by Prerna Saxena in
5452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5453         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5454         Set to 1100000.
5455
5456 2011-12-12  Jim Meyering  <meyering@redhat.com>
5457
5458         argmatch: don't hard-code `' when listing valid option arguments
5459         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5460         use the quote function to add quotes.  Use fputs rather than
5461         fprintf for the format string with no format directive.
5462
5463 2011-12-07  Eric Blake  <eblake@redhat.com>
5464
5465         bootstrap: detect tools required by gnulib-tool
5466         * build-aux/bootstrap (buildreq): Provide minimum implicit
5467         dependencies.
5468         * DEPENDENCIES: Mention patch as a prereq.
5469
5470 2011-12-04  Bruno Haible  <bruno@clisp.org>
5471
5472         sethostname: Port to Windows platforms.
5473         * lib/sethostname.c: Provide an alternate implementation for Windows
5474         platforms.
5475         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5476         (main): Skip the test if sethostname() fails with EPERM. On Windows
5477         platforms, don't check the result of gethostname().
5478
5479 2011-12-04  Bruno Haible  <bruno@clisp.org>
5480             Jim Meyering  <meyering@redhat.com>
5481
5482         tests: Avoid spurious error message on platforms without mktemp program.
5483         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5484
5485 2011-12-04  Bruno Haible  <bruno@clisp.org>
5486
5487         sethostname: Fix documentation.
5488         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5489         "not fixed" section.
5490
5491 2011-12-03  Bruno Haible  <bruno@clisp.org>
5492
5493         gnulib-tool: Verify that the License field is present and non-empty.
5494         * gnulib-tool (func_get_license_raw): New function, extracted from
5495         func_get_license.
5496         (func_get_license): Use it. Warn if the module is not a test module and
5497         has no license.
5498         Suggested by Jim Meyering.
5499
5500 2011-12-03  Bruno Haible  <bruno@clisp.org>
5501
5502         sethostname tests: Fix link error on mingw.
5503         * tests/test-sethostname1.c: New file, extracted from
5504         tests/test-sethostname.c.
5505         * tests/test-sethostname2.c: New file, extracted from
5506         tests/test-sethostname.c.
5507         * tests/test-sethostname.c: Remove file.
5508         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5509         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5510         (Depends-on): Add gethostname.
5511         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5512         Link the latter with $(GETHOSTNAME_LIB).
5513
5514         sethostname tests: Fix compilation error on mingw.
5515         * tests/test-sethostname.c: Don't include <sys/types.h>.
5516         (geteuid): Use a dummy value without uid_t.
5517         * modules/sethostname-tests (Depends-on): Remove sys_types.
5518
5519         sethostname tests: Avoid a gcc warning.
5520         * tests/test-sethostname.c (main): Remove an unused variable.
5521
5522         Tweak last commit.
5523         * modules/sethostname-tests (Files): Sort by decreasing importance.
5524         (configure.ac): Check for geteuid.
5525         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5526         the test when there's nothing to test. Drop an unnecessary cast.
5527         Improve an error message. Verify that the final sethostname() call
5528         succeeds.
5529
5530 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5531
5532         Add a test suite for the sethostname module.
5533         * modules/sethostname-tests: New file.  A test program
5534         for the sethostname module.
5535         * tests/test-sethostname.c: Likewise.
5536
5537 2011-12-03  Bruno Haible  <bruno@clisp.org>
5538
5539         Tweak last commit.
5540         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5541         Fix preprocessor directives indentation. Fix typos.
5542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5543         * modules/unistd (Makefile): Likewise.
5544
5545 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5546
5547         Integrate the sethostname module into unistd.
5548         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5549         into the unistd.h header.
5550         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5551         preprocessor directives.
5552         * modules/unistd: Setup the Makefile substitutions of the
5553         SETHOSTNAME preprocessor directives.
5554
5555 2011-12-03  Bruno Haible  <bruno@clisp.org>
5556
5557         Tweak last commit.
5558         * lib/sethostname.c: Don't include <string.h>.
5559         (sethostname): No need to copy the argument string to the stack. Don't
5560         call clearerr. Preserve errno when fprintf failed.
5561         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5562         Don't invoke AC_REPLACE_FUNCS.
5563         * modules/sethostname (Link): Remove empty section.
5564         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5565         failure problem.
5566
5567 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5568
5569         New module 'sethostname'.
5570         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5571         for systems that lack it.
5572         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5573         sethostname declaration and function.
5574         * modules/sethostname: New file.  Define the sethostname module.
5575
5576 2011-12-03  Bruno Haible  <bruno@clisp.org>
5577
5578         Tweak last commit.
5579         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5580
5581 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5582
5583         Split the HOST_NAME_MAX detection into a separate m4 macro.
5584         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5585         macro so it can be used by the pending sethostname module.
5586
5587 2011-12-03  Bruno Haible  <bruno@clisp.org>
5588
5589         Fix module descriptions syntax.
5590         * modules/argv-iter (License): Fix syntax.
5591         * modules/di-set (License): Likewise.
5592         * modules/ino-map (License): Likewise.
5593         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5594
5595 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5596
5597         stdalign: port to Clang 3.0
5598         Problem reported by Simon Josefsson in
5599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5600         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5601         which has <stdalign.h> but which does not define alignof.
5602         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5603
5604 2011-12-01  Eric Blake  <eblake@redhat.com>
5605
5606         mktempd: silence dd usage
5607         * build-aux/mktempd (rand_bytes): Silence dd.
5608
5609 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5610
5611         manywarnings: Don't mention gcc version in docstring.
5612         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5613         Jim Meyering <meyering@redhat.com>.
5614
5615 2011-11-30  Jim Meyering  <meyering@redhat.com>
5616
5617         hash: mark a few floating point constants with "f" suffix
5618         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5619         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5620         floating point constants with "f", since they're destined to be
5621         saved/used as "float"s.
5622
5623 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5624
5625         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5626         * tests/test-float.c (test_long_double): Correct and re-enable the
5627         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5628
5629 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5630
5631         Avoid subtracting two pointers that don't point into the same block.
5632         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5633         only pointers into the same memory block are subtracted. We cannot
5634         assume that sizeof (ptrdiff_t) == sizeof (void *).
5635
5636 2011-11-29  Eric Blake  <eblake@redhat.com>
5637
5638         maint.mk: add syntax check for use of compare from init.sh
5639         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5640         moved here from coreutils.
5641
5642         manywarnings: drop -Wunsuffixed-float-constants
5643         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5644         '1.0D', which is the only way to silence this warning for 'double'.
5645
5646 2011-11-29  Jim Meyering  <meyering@redhat.com>
5647
5648         hash: mark compute_bucket_size with the pure attribute
5649         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5650
5651         quotearg, propername: correct pragma guard expression
5652         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5653         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5654
5655 2011-11-28  Jim Meyering  <meyering@redhat.com>
5656
5657         propername: do not mark proper_name with the const attribute
5658         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5659         since it examines data pointed to by its parameter.
5660         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5661         the suggestion from -Wsuggest-attribute=const.
5662
5663         propername: mark one more function as const
5664         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5665
5666 2011-11-27  Jim Meyering  <meyering@redhat.com>
5667
5668         mark functions with const and pure attributes
5669
5670         Mark functions per suggestions from gcc-4.6 when using these options:
5671         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5672         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5673         Follow these guidelines: when possible, apply the attribute to
5674         an extern declaration, not to its definition.  Apply it to the
5675         definition only when the definition is static.
5676         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5677         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5678         * lib/base64.h (isbase64): Likewise.
5679         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5680         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5681         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5682         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5683         (c_tolower, c_toupper): Likewise.
5684         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5685         * lib/chdir-long.c (find_non_slash): Likewise.
5686         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5687         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5688         * lib/file-type.h (file_type): Likewise.
5689         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5690         * lib/filevercmp.c (verrevcmp): Likewise.
5691         * lib/freadahead.h (freadahead): Likewise.
5692         * lib/fts.c (fts_maxarglen): Likewise.
5693         * lib/hash-pjw.h (hash_pjw): Likewise.
5694         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5695         * lib/hash.c (is_prime, next_prime): Likewise.
5696         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5697         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5698         (hash_table_ok, hash_get_first, hash_string): Likewise.
5699         (compute_bucket_size): Likewise.
5700         * lib/i-ring.h (i_ring_empty): Likewise.
5701         * lib/isnan.c (isnanl): Likewise.
5702         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5703         * lib/memcasecmp.h (memcasecmp): Likewise.
5704         * lib/memchr2.h (memchr2): Likewise.
5705         * lib/memcmp2.h (memcmp2): Likewise.
5706         * lib/parse-datetime.y (lookup_zone): Likewise.
5707         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5708         [!WINDOWS_SOCKETS]: Likewise.
5709         * lib/strnlen1.h (strnlen1): Likewise.
5710         * lib/uniwidth.in.h (uc_width): Likewise.
5711         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5712         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5713         (quoting_options_from_style): Add a comment.
5714         * lib/propername.h (proper_name): Add a comment.
5715
5716 2011-11-27  Bruno Haible  <bruno@clisp.org>
5717
5718         Remove unused macros from !_LIBC code in glibc-borrowed files.
5719         * lib/fnmatch.c (STRCOLL): Remove macro.
5720         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5721         * lib/glob.c (__stat, __readdir64): Remove macros.
5722         * lib/tempname.c (__open64, __xstat64): Remove macros.
5723         Suggested by Paul Eggert.
5724
5725 2011-11-27  Bruno Haible  <bruno@clisp.org>
5726
5727         getcwd: Fix link error on MSVC 9.
5728         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5729
5730 2011-11-27  Bruno Haible  <bruno@clisp.org>
5731
5732         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5733         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5734         HAVE_OPENDIR is 0.
5735         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5736         HAVE_CLOSEDIR is 0.
5737         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5738         is 0.
5739         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5740
5741 2011-11-27  Bruno Haible  <bruno@clisp.org>
5742
5743         getcwd: Fix bug from 2011-08-17.
5744         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5745         platforms that need it.
5746         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5747         code of 4 to be a failure, not a success. This ensures that
5748         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5749
5750 2011-11-27  Bruno Haible  <bruno@clisp.org>
5751
5752         binary-io tests: Avoid test failure on mingw when libtool is used.
5753         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5754         Don't verify the size of t-bin-out1.tmp here.
5755         * tests/test-binary-io.sh: Verify it here.
5756         Reported by Simon Josefsson.
5757
5758 2011-11-26  Bruno Haible  <bruno@clisp.org>
5759
5760         Fix conflict between two instantiations of module 'unistd'.
5761         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5762         ${include_guard_prefix} also in the autoconf snippet.
5763         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5765         GNULIB_UNISTD_H_GETOPT.
5766         * modules/getopt-posix (configure.ac): Set the
5767         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5768         * modules/getopt-gnu (configure.ac): Likewise.
5769         * modules/unistd (Makefile.am): Change the substitution value of
5770         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5771         Reported by Simon Josefsson.
5772
5773 2011-11-25  Bruno Haible  <bruno@clisp.org>
5774
5775         pagealign_alloc: Doc and comments.
5776         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5777         module.
5778         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5779
5780 2011-11-25  Jim Meyering  <meyering@redhat.com>
5781
5782         test-update-copyright.sh: avoid false-positive failure
5783         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5784         around false positive failure on Cygwin/Windows.  The latter was
5785         matching erroneously-created files with names like
5786         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5787
5788 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5789
5790         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5791         * m4/valgrind-tests.m4: Check that the parameters that will be
5792         used works, not just a subset of them.  Reported by Bruno Haible
5793         <bruno@clisp.org>.
5794
5795 2011-11-24  Jim Meyering  <meyering@redhat.com>
5796
5797         test-stdalign.c: comment out long double tests
5798         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5799         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5800         error: '_Alignas' specifiers cannot reduce alignment of \
5801         'static_longdouble_alignas'.
5802
5803 2011-11-22  Jim Meyering  <meyering@redhat.com>
5804
5805         init.sh: make "compare /dev/null FILE" output more readable
5806         * tests/init.sh (compare_): Document the preferred order of arguments.
5807         (emit_diff_u_header_): New function.
5808         (compare_dev_null_): Emit a simulated diff, rather than just the
5809         contents of the unexpected file.  Suggestion from Bruno Haible.
5810
5811 2011-11-21  Jim Meyering  <meyering@redhat.com>
5812             Eric Blake  <eblake@redhat.com>
5813
5814         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5815         * tests/init.sh: Make our compare function slightly more portable.
5816         Reported by Bruno Haible in
5817         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5818
5819 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5820
5821         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5822         before using it, in code that ends up in config.h.
5823
5824 2011-11-20  Bruno Haible  <bruno@clisp.org>
5825
5826         getcwd: Work around getcwd bug on AIX 5..7.
5827         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5828         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5829         Use a different value for gl_cv_func_getcwd_path_max. Move the
5830         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5831         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5832         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5833         Define HAVE_MINIMALLY_WORKING_GETCWD.
5834         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5835         where it is not even minimally working, that is, on AIX.
5836         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5837         m4/getcwd-path-max.m4.
5838         (main): Update exit code computation.
5839         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5840         getcwd does not handle long file names.
5841
5842 2011-11-20  Bruno Haible  <bruno@clisp.org>
5843
5844         getcwd: Fix bug from 2009-09-10.
5845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5846         like "no".
5847
5848 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5849
5850         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5851
5852 2011-11-20  Bruno Haible  <bruno@clisp.org>
5853
5854         fma tests: Avoid shadowing local variables.
5855         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5856         expected.
5857
5858 2011-11-20  Bruno Haible  <bruno@clisp.org>
5859
5860         copysignf tests: Fix.
5861         * tests/test-copysignf.c: Fix signature check.
5862
5863 2011-11-20  Bruno Haible  <bruno@clisp.org>
5864
5865         fma: Remove unused code.
5866         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5867         unused macros.
5868
5869 2011-11-20  Bruno Haible  <bruno@clisp.org>
5870
5871         sethostname: Fix doc about AIX.
5872         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5873         sethostname; it has it.
5874
5875         sethostname: Mention more portability problems.
5876         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5877         problem.
5878         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5879
5880 2011-11-19  Bruno Haible  <bruno@clisp.org>
5881
5882         Depend on module fcntl-h when AT_FDCWD is used.
5883         * modules/utimens (Depends-on): Add fcntl-h.
5884         * modules/areadlinkat (Depends-on): Likewise.
5885         * modules/areadlinkat-with-size (Depends-on): Likewise.
5886         * modules/faccessat (Depends-on): Likewise.
5887         * modules/fchmodat (Depends-on): Likewise.
5888         * modules/fchownat (Depends-on): Likewise.
5889         * modules/getcwd (Depends-on): Likewise.
5890         * modules/mkdirat (Depends-on): Likewise.
5891         * modules/mkfifoat (Depends-on): Likewise.
5892         * modules/readlinkat (Depends-on): Likewise.
5893         * modules/symlinkat (Depends-on): Likewise.
5894         * modules/dup2-tests (Depends-on): Likewise.
5895         * modules/fdutimensat-tests (Depends-on): Likewise.
5896         * modules/futimens-tests (Depends-on): Likewise.
5897
5898 2011-11-19  Bruno Haible  <bruno@clisp.org>
5899
5900         euidaccess: Update a comment.
5901         * lib/euidaccess.c: Update comment about platforms with faccessat.
5902
5903 2011-11-19  Bruno Haible  <bruno@clisp.org>
5904
5905         openat: Fix file list.
5906         * modules/openat (Files): Remove lib/at-func.c.
5907
5908 2011-11-19  Bruno Haible  <bruno@clisp.org>
5909
5910         fstatat: Simplify.
5911         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5912         gnulib should define rpl_fstatat, there is a
5913         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5914
5915 2011-11-19  Bruno Haible  <bruno@clisp.org>
5916
5917         Ensure 'inline' can be used in tests/test-utimens-common.h.
5918         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5919         * modules/futimens-tests (configure.ac): Likewise.
5920         * modules/utimens-tests (configure.ac): Likewise.
5921         * modules/utimensat-tests (configure.ac): Likewise.
5922
5923 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5924
5925         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5926         not hash_insert0.
5927         (hash_insert_if_absent): Doc fix.
5928
5929 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5930
5931         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5932
5933 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5934
5935         test-getcwd: disambiguate exit status
5936         * tests/test-getcwd.c (test_long_name): Return 0..7.
5937         (main): Exit with an unambiguous exit status.  The old
5938         code yielded a mysterious mixture of two failure codes.
5939
5940         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5941         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5942         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5943         rpl_fstatat or fstatat.  This should fix the other problem
5944         reported by Kai Habel in
5945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5946         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5948         and I reproduced it on a Solaris 8 host we still have in production.
5949
5950 2011-11-18  Jim Meyering  <meyering@redhat.com>
5951
5952         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5953         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5954         Add a sentence to the comment.
5955         (hash_insert0): New function that simply calls hash_insert_if_absent.
5956         * lib/hash.h (hash_insert_if_absent): Declare it.
5957         (hash_insert0): Add deprecation attribute.
5958         (_GL_ATTRIBUTE_DEPRECATED): Define.
5959         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5960         not hash_insert0.
5961         * NEWS: Mention it, even though it's not really an incompatible change.
5962
5963 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5964
5965         openat: avoid compilation failure due to lack of <errno.h> inclusion
5966         * lib/openat.c: Include <errno.h>.
5967
5968 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5969
5970         * modules/getcwd (Depends-on): Add fdopendir.
5971         This fixes one of the two problems reported by Kai Habel in
5972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5973
5974         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5975         stdalign problem reported by Ian Beckwith in
5976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5977         * modules/crypto/gc-arcfour (Depends-on):
5978         Depend conditionally on crypto/arcfour.
5979         * modules/crypto/gc-arctwo (Depends-on):
5980         Depend conditionally on crypto/arctwo.
5981         * modules/crypto/gc-des (Depends-on):
5982         Depend conditionally on crypto/des.
5983         * modules/crypto/gc-hmac-md5 (Depends-on):
5984         Depend conditionally on crypto/hmac-md5.
5985         * modules/crypto/gc-hmac-sha1 (Depends-on):
5986         Depend conditionally on crypto/hmac-sha1.
5987         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5988         * modules/crypto/gc-md4 (Depends-on):
5989         Depend conditionally on crypto/md4.
5990         * modules/crypto/gc-md5 (Depends-on):
5991         Depend conditionally on crypto/md5.
5992         * modules/crypto/gc-rijndael (Depends-on):
5993         Depend conditionally on crypto/rijndael.
5994         * modules/crypto/gc-sha1 (Depends-on):
5995         Depend conditionally on crypto/sha1.
5996         * modules/crypto/gc-arcfour:
5997         * modules/crypto/gc-arctwo:
5998         * modules/crypto/gc-des:
5999         * modules/crypto/gc-hmac-md5:
6000         * modules/crypto/gc-hmac-sha1:
6001         * modules/crypto/gc-md2:
6002         * modules/crypto/gc-md4:
6003         * modules/crypto/gc-md5:
6004         * modules/crypto/gc-rijndael:
6005         * modules/crypto/gc-sha1:
6006         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6007         now that the conditional dependencies do the work for us.
6008
6009 2011-11-17  Jim Meyering  <meyering@redhat.com>
6010
6011         tests: factor st_ctime-comparison out of two headers
6012         * tests/test-utimens-common.h (ctime_compare): Define.
6013         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6014         * tests/test-lutimens.h (test_lutimens): Likewise.
6015         * tests/test-utimens.h (test_utimens): Likewise.
6016
6017         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6018         Invoke the test program via an init.sh-using wrapper.
6019         * tests/test-getcwd.sh: New file.
6020         * modules/getcwd-tests (Files): Add it.
6021         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6022
6023 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6024
6025         gitlog-to-changelog: support multi-author commits.
6026         The FSF cares about keeping track of all authors of patches to its
6027         projects, but Git doesn't provide obvious support for multi-author
6028         changesets. Consensus seems to be forming around the use of extra
6029         Signed-off-by inspired lines in the log message formatted as
6030         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6031         multi-author commits between version control systems.
6032         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6033         log message and output in standard ChangeLog multi-author format.
6034         Reported by Peter Rosin <peda@lysator.liu.se>
6035
6036 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6037             Bruno Haible  <bruno@clisp.org>
6038
6039         Fix some modules' file list.
6040         * modules/fstatat (Files): Add m4/lstat.m4.
6041         * modules/openat (Files): Likewise.
6042         * modules/unlinkat (Files): Likewise.
6043
6044 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6045
6046         maint.mk: fix tight-scope.mk generation in VPATH builds.
6047         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6048         reference with $(srcdir) so that the file is found correctly even
6049         when running `make syntax-check' in a VPATH build.
6050
6051 2011-11-13  Bruno Haible  <bruno@clisp.org>
6052             Jim Meyering  <meyering@redhat.com>
6053
6054         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6055         * tests/init.sh (compare): Remove "No differences encountered" or
6056         synonymous output from the 'diff' program.
6057
6058 2011-11-13  Bruno Haible  <bruno@clisp.org>
6059
6060         Makefile: Tweak indentation.
6061         * Makefile: Use tab as first character in every line that contains rule
6062         commands.
6063
6064 2011-11-13  Bruno Haible  <bruno@clisp.org>
6065
6066         Syntax check for copyright statements.
6067         * check-copyright: New file.
6068         * Makefile (sc_check_copyright): New rule.
6069
6070 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6071
6072         * build-aux/git-version-gen: Add --prefix to configure the tag
6073         match string.
6074
6075 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6076
6077         * build-aux/git-version-gen: Add --help and --version.
6078
6079 2011-11-12  Jim Meyering  <meyering@redhat.com>
6080
6081         revamp the other test-exclude?.sh scripts to use init.sh, too
6082         * tests/test-exclude1.sh: Use init.sh.
6083         * tests/test-exclude2.sh: Likewise.
6084         * tests/test-exclude3.sh: Likewise.
6085         * tests/test-exclude4.sh: Likewise.
6086         * tests/test-exclude5.sh: Likewise.
6087         * tests/test-exclude6.sh: Likewise.
6088         * tests/test-exclude7.sh: Likewise.
6089         * tests/test-exclude8.sh: Likewise.
6090         * modules/exclude-tests (Files): List init.sh.
6091
6092         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6093         These shell scripts ignored failure of the binary test-exclude,
6094         so making the latter return 77 didn't cause them to be skipped.
6095         * tests/test-exclude5.sh: Exit with test-exclude's error status
6096         when that program fails.  Revamp to use init.sh.
6097         * tests/test-exclude2.sh: Likewise.
6098
6099         test-exclude: fix a typo
6100         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6101
6102 2011-11-11  Bruno Haible  <bruno@clisp.org>
6103
6104         obstack: Fix compilation error on MSVC 9.
6105         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6106
6107 2011-11-11  Jim Meyering  <meyering@redhat.com>
6108
6109         test-exclude: skip tests rather than failing on deficient systems
6110         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6111         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6112         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6113         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6114
6115 2011-11-10  Bruno Haible  <bruno@clisp.org>
6116
6117         ptsname_r test: Avoid gcc warning on glibc systems.
6118         * tests/test-ptsname_r.c (null_ptr): New function.
6119         (test_errors): Use it.
6120
6121 2011-11-10  Bruno Haible  <bruno@clisp.org>
6122
6123         ptsname_r: Avoid compilation error on OSF/1 5.1.
6124         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6126         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6127         function is not declared or incompatibly declared.
6128         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6129         * modules/ptsname_r (Depends-on, configure.ac): Update.
6130         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6131
6132 2011-11-10  Bruno Haible  <bruno@clisp.org>
6133
6134         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6135         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6136         When cross-compiling, guess yes on all platforms except AIX.
6137         Reported by Ludovic Courtès <ludo@gnu.org>.
6138
6139 2011-11-09  Bruno Haible  <bruno@clisp.org>
6140
6141         ptsname_r tests: Fix bugs.
6142         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6143         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6144
6145 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6146
6147         fstatat: work with cross-compilation
6148         Problem reported by Ludovic Courtès in
6149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6150         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6151         "cross-compiling" and assume the bug is present.  Replace
6152         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6153         an inverted sense, to be more conservative about our assumptions.
6154         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6155
6156 2011-11-09  Bruno Haible  <bruno@clisp.org>
6157
6158         Improve MODULES.html output.
6159         * modules/mkfifoat (Description): Use the word "function".
6160         * modules/readlinkat (Description): Likewise.
6161         * modules/symlinkat (Description): Likewise.
6162
6163 2011-11-09  Eric Blake  <eblake@redhat.com>
6164
6165         ptsname_r-tests: new test module
6166         * modules/ptsname_r-tests: New module.
6167         * tests/test-ptsname_r.c: New file.
6168
6169         ptsname_r: new module
6170         * modules/ptsname_r: New module.
6171         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6172         * lib/ptsname.c (__ptsname_r): Split...
6173         * lib/ptsname_r.c: ...into new file.
6174         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6175         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6176         * modules/stdlib (Makefile.am): Substitute witnesses.
6177         * lib/stdlib.in.h (ptsname_r): Declare it.
6178         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6179         * MODULES.html.sh (Misc): Likewise.
6180         * modules/ptsname (Depends-on): Alter dependency.
6181         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6182
6183 2011-11-09  Jim Meyering  <meyering@redhat.com>
6184
6185         announce-gen: be more concise when there's only one URL+tarball
6186         * build-aux/announce-gen (get_tool_versions): When you distribute
6187         only one type of tarball, combine the first two "Here are..."
6188         sections and make the key-checking grammar independent of
6189         how many tarballs there are.
6190
6191 2011-11-09  Eric Blake  <eblake@redhat.com>
6192
6193         openpty: provide a stub on mingw
6194         * lib/pty.in.h (includes): Provide forward declarations.
6195         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6196
6197         raise: fix mingw handling of SIGPIPE
6198         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6199
6200 2011-11-08  Bruno Haible  <bruno@clisp.org>
6201
6202         More conditional dependencies.
6203         * modules/faccessat (Depends-on): Add conditions.
6204         * modules/fchmodat (Depends-on): Likewise.
6205         * modules/fchownat (Depends-on): Likewise.
6206         * modules/fstatat (Depends-on): Likewise.
6207         * modules/mkfifoat (Depends-on): Likewise.
6208         * modules/readlinkat (Depends-on): Likewise.
6209         * modules/symlinkat (Depends-on): Likewise.
6210         * modules/unlinkat (Depends-on): Likewise.
6211         * modules/utimensat (Depends-on): Likewise.
6212         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6213         * modules/linkat (Depends-on): Refine the conditions.
6214         * modules/renameat (Depends-on): Likewise.
6215
6216 2011-11-08  Bruno Haible  <bruno@clisp.org>
6217
6218         faccessat: Move AC_LIBOBJ invocation to module description.
6219         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6220         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6221         invocation from here...
6222         * modules/faccessat (configure.ac): ... to here. Invoke
6223         gl_PREREQ_FACCESSAT.
6224
6225 2011-11-08  Bruno Haible  <bruno@clisp.org>
6226
6227         faccessat: Simplify autoconf macro.
6228         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6229         gl_FUNC_EUIDACCESS.
6230
6231 2011-11-08  Bruno Haible  <bruno@clisp.org>
6232
6233         renameat: Fix dependencies.
6234         * modules/renameat (Depends-on): Add stdbool.
6235
6236 2011-11-08  Bruno Haible  <bruno@clisp.org>
6237
6238         mkfifoat: Fix module description.
6239         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6240         not gl_UNISTD_MODULE_INDICATOR.
6241
6242 2011-11-08  Bruno Haible  <bruno@clisp.org>
6243
6244         fstatat: Remove unused dependency.
6245         * modules/fstatat (Depends-on): Remove fstat.
6246
6247 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6248
6249         GNUmakefile: behave when Makefile is missing.
6250         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6251
6252 2011-11-08  Bruno Haible  <bruno@clisp.org>
6253
6254         openat: Conditionalize dependencies.
6255         * lib/openat.c: Reduce the scope of some #includes.
6256         * modules/openat (Depends-on): Add conditions.
6257
6258 2011-11-07  Jim Meyering  <meyering@redhat.com>
6259
6260         maint.mk: extract GPG key ID without using a temporary file
6261         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6262         without using a temporary file.  Based on a suggestion from Werner Koch
6263         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6264
6265 2011-11-07  Eric Blake  <eblake@redhat.com>
6266
6267         grantpt: fix typo
6268         * lib/stdlib.in.h (grantpt): Check correct function.
6269
6270         maint.mk: silence new syntax check
6271         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6272
6273 2011-11-06  Bruno Haible  <bruno@clisp.org>
6274
6275         Doc about floating-point and math API.
6276         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6277         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6278
6279 2011-11-06  Bruno Haible  <bruno@clisp.org>
6280
6281         stdalign tests: Skip the test when compiled by Sun C.
6282         * tests/test-stdalign.c (main): Skip the test on Sun C.
6283
6284 2011-11-06  Bruno Haible  <bruno@clisp.org>
6285
6286         ansi-c++-opt: Complete the 2011-06-05 change.
6287         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6288         does not support namespaces, set the variable to "no", not to ":".
6289
6290 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6291
6292         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6293
6294 2011-11-06  Bruno Haible  <bruno@clisp.org>
6295
6296         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6297         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6298         (minus_zerol) [HP-UX]: New macro.
6299         (unary_minus) [HP-UX]: New function.
6300         (copysignl) [HP-UX]: Use unary_minus function.
6301
6302 2011-11-06  Bruno Haible  <bruno@clisp.org>
6303
6304         ldexp, ldexpf, ldexpl: Enhance tests.
6305         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6306         and tests/test-ldexpl.c.
6307         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6308         LDEXP, MIN_EXP, MAX_EXP): New macros.
6309         Include test-ldexp.h.
6310         (main): Just call test_function.
6311         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6312         infinity.h, nan.h.
6313         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6314         MAX_EXP): New macros.
6315         Include test-ldexp.h.
6316         (x, y): Remove variables.
6317         (main): Just call test_function.
6318         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6319         infinity.h, nan.h.
6320         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6321         MAX_EXP): New macros.
6322         Include test-ldexp.h.
6323         (x, y): Remove variables.
6324         (main): Just call test_function.
6325         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6326         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6327         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6328         (Depends-on): Add isnand-nolibm, signbit, float.
6329         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6330         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6331         (Depends-on): Add isnanf-nolibm, signbit, float.
6332
6333 2011-11-06  Bruno Haible  <bruno@clisp.org>
6334
6335         math tests: Cosmetics.
6336         * tests/test-math-c++.cc: Reorder declarations.
6337
6338 2011-11-05  Bruno Haible  <bruno@clisp.org>
6339
6340         fma*: Simplify test.
6341         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6342         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6343
6344         Tests for module 'fmal'.
6345         * modules/fmal-tests: New file.
6346         * tests/test-fmal1.c: New file.
6347         * tests/test-fmal2.c: New file.
6348
6349         New module 'fmal'.
6350         * lib/math.in.h (fmal): New declaration.
6351         * lib/fmal.c: New file.
6352         * m4/fmal.m4: New file.
6353         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6355         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6356         REPLACE_FMAL.
6357         * modules/fmal: New file.
6358         * doc/posix-functions/fmal.texi: Mention the new module and the various
6359         bugs.
6360
6361         Tests for module 'fmaf'.
6362         * modules/fmaf-tests: New file.
6363         * tests/test-fmaf1.c: New file.
6364         * tests/test-fmaf2.c: New file.
6365
6366         New module 'fmaf'.
6367         * lib/math.in.h (fmaf): New declaration.
6368         * lib/fmaf.c: New file.
6369         * m4/fmaf.m4: New file.
6370         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6372         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6373         REPLACE_FMAF.
6374         * modules/fmaf: New file.
6375         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6376         bugs.
6377
6378         Tests for module 'fma'.
6379         * modules/fma-tests: New file.
6380         * tests/test-fma1.c: New file.
6381         * tests/test-fma1.h: New file.
6382         * tests/test-fma2.c: New file.
6383         * tests/test-fma2.h: New file.
6384
6385         New module 'fma'.
6386         * lib/math.in.h (fma): New declaration.
6387         * lib/fma.c: New file.
6388         * m4/fma.m4: New file.
6389         * m4/fegetround.m4: New file.
6390         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6392         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6393         REPLACE_FMA.
6394         * modules/fma: New file.
6395         * doc/posix-functions/fma.texi: Mention the new module and the various
6396         bugs.
6397
6398         Extend gl_MATHFUNC.
6399         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6400         Support 'void' as argument type.
6401         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6402
6403 2011-11-05  Jim Meyering  <meyering@redhat.com>
6404
6405         maint.mk: also prohibit inclusion of dirent.h without use
6406         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6407
6408 2011-11-05  Bruno Haible  <bruno@clisp.org>
6409
6410         ldexpl tests: Avoid test failure on MSVC 9.
6411         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6412         value. Needed in order to enforce the conversion from a value greater
6413         than LDBL_MAX to Infinity.
6414
6415 2011-11-05  Bruno Haible  <bruno@clisp.org>
6416
6417         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6418         * modules/at-internal: New file, extracted from modules/openat.
6419         * modules/openat-h: New file.
6420         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6421         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6422         * modules/openat (Description): Add reference to POSIX function.
6423         (Files): Remove lib/openat.h, lib/openat-proc.c.
6424         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6425         intprops, unistd.
6426         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6427         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6428         gl_FCNTL_MODULE_INDICATOR.
6429         (Include): Remove unistd.h, openat.h.
6430         * modules/areadlinkat (Files): Add lib/at-func.c.
6431         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6432         openat-die, openat-h, save-cwd.
6433         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6434         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6435         openat-die, openat-h, save-cwd, unistd.
6436         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6437         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6438         openat-h, save-cwd. Remove fcntl-h, openat.
6439         * modules/fchmodat (Files): Remove lib/openat.h.
6440         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6441         openat, stdbool, unistd.
6442         * modules/fchownat (Files): Remove lib/openat.h.
6443         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6444         openat, stdbool, sys_stat.
6445         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6446         lib/openat-proc.c.
6447         (Depends-on): Add at-internal.
6448         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6449         * modules/fstatat (Files): Remove lib/openat.h.
6450         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6451         stdbool, unistd.
6452         * modules/fts (Depends-on): Add openat-h.
6453         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6454         openat.
6455         * modules/mkdirat (Files): Remove lib/openat.h.
6456         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6457         openat, stdbool, sys_stat.
6458         * modules/mkfifoat (Files): Add lib/at-func.c.
6459         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6460         openat-h, save-cwd. Remove fcntl-h, openat.
6461         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6462         * modules/readlinkat (Files): Add lib/at-func.c.
6463         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6464         openat-h, save-cwd. Remove fcntl-h, openat.
6465         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6466         openat.
6467         * modules/selinux-at (Files): Add lib/at-func.c.
6468         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6469         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6470         * modules/symlinkat (Files): Add lib/at-func.c.
6471         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6472         openat-h, save-cwd. Remove fcntl-h, openat.
6473         * modules/unlinkat (Files): Remove lib/openat.h.
6474         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6475         stdbool.
6476         * modules/utimensat (Files): Add lib/at-func.c.
6477         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6478         openat-die, openat-h, save-cwd.
6479         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6480         * modules/fdutimensat-tests (Depends-on): Add openat.
6481         * modules/fstatat-tests (Depends-on): Add openat-h.
6482         * modules/readlinkat-tests (Depends-on): Add openat.
6483         * modules/symlinkat-tests (Depends-on): Add openat.
6484
6485 2011-11-05  Bruno Haible  <bruno@clisp.org>
6486
6487         openat: Include <stdbool.h>.
6488         * lib/openat.c: Include <stdbool.h>.
6489
6490 2011-11-04  Bruno Haible  <bruno@clisp.org>
6491
6492         fchownat, renameat, unlinkat: Fix dependencies.
6493         * modules/fchownat (Depends-on): Add fstatat.
6494         * modules/renameat (Depends-on): Likewise.
6495         * modules/unlinkat (Depends-on): Likewise.
6496
6497 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6498
6499         openat: remove direct dependency on dirent
6500         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6501         and hasn't been needed ever since fdopendir was split into its own
6502         module on 2009-08-31.
6503         * modules/openat (Depends-on): Remove dirent.
6504
6505 2011-11-04  Bruno Haible  <bruno@clisp.org>
6506
6507         renameat: Optimize code size.
6508         * modules/renameat (configure.ac): Don't compile at-func2.c if
6509         REPLACE_RENAMEAT is 1.
6510
6511 2011-11-04  Bruno Haible  <bruno@clisp.org>
6512
6513         openat tests: Fix file list.
6514         * modules/openat-tests (Files): Add tests/test-open.h.
6515
6516 2011-11-04  Bruno Haible  <bruno@clisp.org>
6517
6518         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6519         * modules/fchmodat (Depends-on): Add openat-die.
6520         * modules/fchownat (Depends-on): Likewise.
6521         * modules/linkat (Depends-on): Likewise.
6522         * modules/renameat (Depends-on): Likewise.
6523         * modules/openat (Depends-on): Add dirent.
6524
6525 2011-11-04  Jim Meyering  <meyering@redhat.com>
6526
6527         at-func*.c: fix comments
6528         * lib/at-func2.c: Correct/improve first-line comment.
6529         * lib/at-func.c: Correct grammar in first-line comment.
6530
6531 2011-11-04  Bruno Haible  <bruno@clisp.org>
6532
6533         New module 'mkdirat', split off from module 'openat'.
6534         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6535         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6536         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6537         * modules/mkdirat: New file, extracted from modules/openat.
6538         * modules/openat (Files): Remove lib/mkdirat.c.
6539         (Depends-on): Remove mkdir.
6540         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6541         (Include): Remove <sys/stat.h>.
6542         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6543         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6544         tests/test-mkdir.h.
6545         (Depends-on): Remove ignore-value.
6546         (Makefile.am): Remove rules for test-mkdirat.
6547         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6548         of module 'openat'.
6549         * NEWS: Mention the change.
6550
6551 2011-11-04  Bruno Haible  <bruno@clisp.org>
6552
6553         closedir: Avoid warning on mingw.
6554         * lib/closedir.c: Include <unistd.h>.
6555
6556 2011-11-04  Bruno Haible  <bruno@clisp.org>
6557
6558         New module 'fstatat', split off from module 'openat'.
6559         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6560         defined.
6561         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6562         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6563         gl_FUNC_FSTATAT.
6564         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6565         * modules/fstatat: New file, extracted from modules/openat.
6566         * modules/openat (Files): Remove lib/fstatat.c.
6567         (Depends-on): Remove lstat.
6568         (configure.ac): Remove AC_LIBOBJ of fstatat.
6569         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6570         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6571         tests/test-lstat.h, tests/test-stat.h.
6572         (Depends-on): Remove getcwd-lgpl.
6573         (Makefile.am): Remove rules for test-fstatat.
6574         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6575         of module 'openat'.
6576         * NEWS: Mention the change.
6577         * modules/getcwd (Depends-on): Add fstatat.
6578         * modules/linkat (Depends-on): Likewise.
6579         * modules/mkfifoat-tests (Depends-on): Likewise.
6580         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6581
6582 2011-11-03  Bruno Haible  <bruno@clisp.org>
6583
6584         New module 'unlinkat', split off from module 'openat'.
6585         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6586         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6587         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6588         * modules/unlinkat: New file, extracted from modules/openat. Correct
6589         the dependency conditions.
6590         * modules/openat (Files): Remove lib/unlinkat.c.
6591         (Depends-on): Remove rmdir, unlink.
6592         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6593         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6594         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6595         tests/test-rmdir.h, tests/test-unlink.h.
6596         (Depends-on): Remove unlinkdir.
6597         (Makefile.am): Remove rules for test-unlinkat.
6598         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6599         of module 'openat'.
6600         * NEWS: Mention the change.
6601         * modules/linkat-tests (Depends-on): Add unlinkat.
6602         * modules/mkfifoat-tests (Depends-on): Likewise.
6603         * modules/readlinkat-tests (Depends-on): Likewise.
6604
6605 2011-11-02  Bruno Haible  <bruno@clisp.org>
6606
6607         New module 'fchmodat', split off from module 'openat'.
6608         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6609         defined.
6610         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6611         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6612         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6613         * modules/fchmodat: New file, extracted from modules/openat.
6614         * modules/openat (Files): Remove lib/fchmodat.c.
6615         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6616         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6617         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6618         (Makefile.am): Remove rules for test-fchmodat.
6619         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6620         of module 'openat'.
6621         * NEWS: Mention the change.
6622
6623 2011-11-02  Jim Meyering  <meyering@redhat.com>
6624
6625         putenv: indent #definition of "environ" to placate cppi
6626         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6627
6628         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6629         Git logs are often treated as immutable, because editing them
6630         changes the SHA1 checksums of all descendants.  Thus, errors in
6631         git logs tend to stay there forever.  However, when we generate
6632         a ChangeLog file -- typically for distribution -- from that git log,
6633         we can actually make corrections in the generated file.  The key
6634         lies in recording in machine-readable/applicable form the desired
6635         corrections.  See --help for description and an example.
6636         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6637         (usage): Describe it; alphabetize option descriptions.
6638         (main): Honor the new option, carefully.
6639
6640 2011-11-01  Jim Meyering  <meyering@redhat.com>
6641
6642         gitlog-to-changelog: avoid an infloop
6643         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6644         that ends up being empty.
6645
6646 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6647
6648         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6649         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6650         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6651         contains (possibly-quoted) backslashes.  This should avoid
6652         all-too-common shell bugs if COMPLICATED contains backslashes in
6653         the "wrong" places.  Reported by David Evans in
6654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6655         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6656         because we want ASCII ranges.  Is there some reason we don't use
6657         the C locale everywhere in this script?
6658         (func_module, top level): Avoid unwanted pathname expansion when
6659         $repo_url_prefix or $repo_url_suffix_repl contain shell
6660         metacharacters like '?' and '*'.
6661
6662 2011-11-01  Bruno Haible  <bruno@clisp.org>
6663
6664         fchownat: Improve description.
6665         * modules/fchownat (Description): Add link to function.
6666
6667 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6668
6669         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6670         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6672         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6673
6674 2011-11-01  Bruno Haible  <bruno@clisp.org>
6675
6676         alignof: Avoid collision with stdalign module.
6677         * lib/alignof.h (alignof): Remove macro.
6678         * NEWS: Mention the change.
6679         Reported by Paul Eggert.
6680
6681 2011-11-01  Bruno Haible  <bruno@clisp.org>
6682
6683         New module 'fchownat', split off from module 'openat'.
6684         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6685         defined.
6686         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6688         invoke gl_FUNC_FCHOWNAT.
6689         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6690         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6691         * modules/fchownat: New file, extracted from modules/openat.
6692         * modules/openat (Files): Remove lib/fchownat.c.
6693         (Depends-on): Remove lchown.
6694         (configure.ac): Remove AC_LIBOBJ of fchownat.
6695         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6696         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6697         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6698         (Depends-on): Remove mgetgroups, usleep, stat-time.
6699         (configure.ac): Remove test for getegid.
6700         (Makefile.am): Remove rules for test-fchownat.
6701         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6702         of module 'openat'.
6703         * NEWS: Mention the change.
6704
6705 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6706
6707         stdalign: port better to MSVC and to Sun C 5.11
6708         This fixes some of the problems reported by Bruno Haible in
6709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6710         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6711         shortcomings of MSVC and of Sun C 5.11.
6712         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6713         around __declspec arg.
6714         * modules/stdalign-tests (Files): Add tests/macros.h.
6715         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6716         Include macros.h, for ASSERT.
6717         (DECLARE_ALIGNED): Remove.
6718         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6719         to catch bug), and to 1 if not (simplifies the rest of the code).
6720         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6721         (CHECK_AUTO): Remove.
6722         (CHECK_ALIGNED): Check only the alignment of the static vars,
6723         since auto var alignment isn't supported by Sun C 5.11.
6724         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6725         ASSERT failures are easier to diagnose.
6726
6727 2011-10-31  Bruno Haible  <bruno@clisp.org>
6728
6729         doc about some IRIX 5.3 problems.
6730         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6731         on IRIX 5.3.
6732         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6733         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6734         5.3.
6735         * doc/posix-functions/grantpt.texi: Likewise.
6736         * doc/posix-functions/unlockpt.texi: Likewise.
6737         * doc/posix-functions/lgamma.texi: Likewise.
6738         * doc/posix-functions/nextafter.texi: Likewise.
6739         * doc/posix-functions/remainder.texi: Likewise.
6740         * doc/posix-functions/select.texi: Mention misplaced declaration on
6741         IRIX 5.3.
6742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6743
6744 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6745
6746         gitlog-to-changelog: fix git-log invocation.
6747         git-log mishandles date strings before 1970-01-01 UTC, and there is
6748         no use to specify --since=1970-01-01 by default anyway.
6749         * build-aux/gitlog-to-changelog: By default, when no --since option
6750         was given, do not specify explicit --since option to git-log.
6751
6752 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6753
6754         gitlog-to-changelog: new option --append-dot.
6755         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6756         first non-blank line of each commit message terminated with a dot.
6757
6758 2011-10-30  Bruno Haible  <bruno@clisp.org>
6759
6760         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6761         * lib/ffsl.h: Include <config.h>.
6762         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6763
6764 2011-10-30  Jim Meyering  <meyering@redhat.com>
6765
6766         GNUmakefile: reenable "make syntax-check" for most projects
6767         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6768         build-aux variable", "syntax-check" would do nothing but succeed with
6769         the "No version control files detected..." diagnostic (unless you
6770         happened to override _build-aux via cfg.mk).
6771         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6772         to precede inclusion of maint.mk.  Otherwise, these variables would
6773         be used undefined in any project that does not override the default.
6774
6775 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6776
6777         gitlog-to-changelog: treat a message with only blank lines as empty.
6778         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6779         trailing blank lines before the code that issues a warning about an
6780         empty commit message.
6781
6782 2011-10-30  Jim Meyering  <meyering@redhat.com>
6783
6784         test-parse-datetime.c: avoid new DST-related false positive test failure
6785         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6786         based on the time/date we'll convert, not the current time.
6787         Otherwise, the moment we cross a DST boundary like today's in
6788         Europe, (CEST to CET), that offset ends up being one hour off.
6789
6790 2011-10-27  Bruno Haible  <bruno@clisp.org>
6791
6792         fstat: Tweak documentation.
6793         * modules/fstat (Description): More precise description.
6794
6795 2011-10-27  Bruno Haible  <bruno@clisp.org>
6796
6797         Update documentation regarding 'largefile' module.
6798         * doc/posix-functions/fstat.texi: Tweak wording.
6799         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6800         problems with huge directories and/or small ino_t types.
6801         * doc/posix-functions/readdir.texi: Likewise.
6802         * doc/posix-functions/rewinddir.texi: Likewise.
6803
6804 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6805
6806         maint.mk: don't maintain a second build-aux variable.
6807         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6808         depends on GNUmakefile, which already maintains a cfg.mk
6809         overridable $(_build-aux) for projects with a non-standard
6810         build-aux directory location, although without the $(srcdir)
6811         prefix.  Use that variable consistently instead of introducing a
6812         second one.  Adjust all call sites.
6813
6814 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6815
6816         Add stdalign module and use it in other modules.
6817         This is based on a previous proposal by Bruno Haible
6818         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6819
6820         stdalign: new module
6821         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6822         * modules/stdalign: New files.
6823         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6824         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6825
6826         stdalign-tests: new module
6827         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6828
6829         argp: use stdalign
6830         * lib/argp-parse.c: Include <stdalign.h>.
6831         (alignof): Remove.
6832         * modules/argp (Depends-on): Add stdalign.
6833
6834         crypto libraries: use stdalign
6835         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6836         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6837         Do not include <stdlib.h> twice, in md4.c.
6838         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6839         because we are accessing a pointer's bit-pattern, not a size.
6840         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6841         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6842         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6843         * modules/crypto/sha512: Likewise.
6844
6845         sys_socket: use stdalign, not alignof
6846         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6847         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6848
6849 2011-10-27  Bruno Haible  <bruno@clisp.org>
6850
6851         raise test: Avoid a test failure on Linux/MIPS.
6852         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6853         because 99 is a valid signal on Linux/MIPS.
6854
6855 2011-10-27  Bruno Haible  <bruno@clisp.org>
6856
6857         nonblocking tests: Fix test failure on Linux/MIPS.
6858         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6859         Set to 270000.
6860
6861 2011-10-27  Bruno Haible  <bruno@clisp.org>
6862
6863         utimensat: Work around problem on Linux/hppa.
6864         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6865         values.
6866         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6867
6868 2011-10-25  Jim Meyering  <meyering@redhat.com>
6869
6870         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6871         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6872         after symbols like NULL, size_t, etc.
6873         Reported by Alfred M. Szmidt.
6874
6875         maint.mk: exempt ENODATA from a syntax-check rule
6876         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6877         from the sc_prohibit_always-defined_macros syntax-check rule.
6878         Add a comment.  See this for more details:
6879         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6880
6881 2011-10-23  Jim Meyering  <meyering@redhat.com>
6882
6883         fts: close parent dir FD before returning from post-traversal fts_read
6884         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6885         unlink A, even though an FD open on A remained.  This is suboptimal
6886         (holding a file descriptor open longer than needed), but otherwise not
6887         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6888         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6889         that represents a real problem: it causes the removal of A to fail
6890         with e.g., "rm: cannot remove `A': Device or resource busy"
6891
6892         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6893         directory file descriptors.  After completing the final, FTS_DP,
6894         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6895         cache, but then proceeded to add a new FD to it via the subsequent
6896         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6897         final file descriptor would be closed only via fts_close's call to
6898         fd_ring_clear.  Now, it is usually closed earlier, via the final
6899         FTS_DP-returning fts_read call.
6900         * lib/fts.c (restore_initial_cwd): New function, converted from
6901         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6902         Update callers.
6903         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6904         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6905
6906 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6907             Bruno Haible  <bruno@clisp.org>
6908             Jim Meyering  <jim@meyering.net>
6909
6910         readme-release: improve safety of release prep instructions.
6911         * README-release: Don't git pull all branches when only master
6912         is needed for the release process.
6913         Run make maintainer-clean before changing trees and merging.
6914         Don't try to run ./configure right after git pull in case files
6915         that influence the bootstrap process have changed, move the
6916         ./configure step to after running ./bootstrap.
6917         Don't bootstrap "one last time"... it's the first time!
6918
6919 2011-10-22  Bruno Haible  <bruno@clisp.org>
6920
6921         errno, strerror-override: Support for MSVC 10.
6922         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6923         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6924         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6925         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6926         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6927         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6928         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6929         Assign values compatible with MSVC 10.
6930         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6931         New macros.
6932         (GNULIB_defined_EWINSOCK): New macro.
6933         * lib/strerror-override.c (strerror_override): Update accordingly.
6934         * lib/strerror-override.h: Likewise.
6935         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6936         longer equal to the corresponding errno value.
6937         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6938
6939 2011-10-22  Bruno Haible  <bruno@clisp.org>
6940
6941         perror: Recognize when test program crashes.
6942         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6943         strerror, set gl_cv_func_perror_works to no.
6944         Reported by Daniel Richard G. <skunk@iskunk.org>.
6945
6946         perror: Fix indentation.
6947         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6948
6949 2011-10-22  Bruno Haible  <bruno@clisp.org>
6950
6951         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6952         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6953         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6954         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6955         functions, not as a macro.
6956         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6957         macros.
6958         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6959         absence of macro.
6960         Suggested by Eric Blake.
6961         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6962
6963 2011-10-21  Bruno Haible  <bruno@clisp.org>
6964
6965         relocatable-prog-wrapper: Don't leave object files behind.
6966         * build-aux/install-reloc: Re-synchronize list of .o files to be
6967         removed with list of compilation units.
6968
6969 2011-10-20  Bruno Haible  <bruno@clisp.org>
6970
6971         openpty, posix_openpt: Remove code duplication.
6972         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6973         * lib/openpty.c: Include <stdlib.h>.
6974         (openpty): Use posix_openpt on all platforms except IRIX.
6975         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6976
6977 2011-10-20  Bruno Haible  <bruno@clisp.org>
6978
6979         unlockpt: Detect invalid argument.
6980         * lib/unlockpt.c: Include <fcntl.h>.
6981         (unlockpt): Check whether fd is valid, using fcntl().
6982         * modules/unlockpt (Depends-on): Add fcntl-h.
6983
6984 2011-10-20  Bruno Haible  <bruno@clisp.org>
6985
6986         openpty: Avoid compilation error on AIX 6.1.
6987         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6988
6989 2011-10-20  Bruno Haible  <bruno@clisp.org>
6990
6991         posix_openpt: Support for OpenBSD.
6992         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6993         (posix_openpt) [OpenBSD]: New code.
6994         * lib/grantpt.c: Include <fcntl.h>.
6995         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6996         * modules/grantpt (Depends-on): Add fcntl-h.
6997
6998 2011-10-20  Bruno Haible  <bruno@clisp.org>
6999
7000         posix_openpt test: Coding style.
7001         * tests/test-posix_openpt.c: Use GNU coding style.
7002
7003 2011-10-20  Bruno Haible  <bruno@clisp.org>
7004
7005         grantpt: Support --avoid=pt_chown.
7006         * modules/grantpt (Files): Add lib/pty-private.h.
7007
7008 2011-10-20  Bruno Haible  <bruno@clisp.org>
7009
7010         posix_openpt: Fix autoconf macro.
7011         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7012         unneeded check for _getpty.
7013
7014 2011-10-20  Bruno Haible  <bruno@clisp.org>
7015
7016         openpty: Update comments.
7017         * lib/openpty.c: Add comments about Minix.
7018
7019 2011-10-19  Eric Blake  <eblake@redhat.com>
7020
7021         openpty: relax license
7022         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7023
7024         pt_chown: use configmake to simplify build
7025         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7026
7027         ptsname and others: relax license
7028         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7029         * modules/unlockpt (License): Likewise.
7030         * modules/pt_chown (License): Likewise.
7031         * modules/ptsname (License): Likewise.
7032         * modules/ttyname_r (License): Likewise.
7033
7034 2011-10-19  Jim Meyering  <meyering@redhat.com>
7035
7036         posix_openpt: remove spurious #endif
7037         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7038
7039 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7040
7041         maint.mk: Respect $(build_aux) in web-manual rule.
7042         * top/maint.mk (web-manual): Find gen-announce script in user's
7043         $(build_aux) directory instead of hard-coding 'build-aux'.
7044
7045 2011-10-19  Bruno Haible  <bruno@clisp.org>
7046
7047         posix_openpt: Fix compilation error.
7048         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7049         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7050         Mention the openpty module as an alternative.
7051
7052 2011-10-19  Bruno Haible  <bruno@clisp.org>
7053
7054         Support for old NeXTstep 3.3 frexp().
7055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7056         execution time of the test to 5 seconds.
7057         Reported by Daniel Richard G. <skunk@iskunk.org>.
7058
7059 2011-10-19  Bruno Haible  <bruno@clisp.org>
7060
7061         Support for old NeXTstep 3.3 sed.
7062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7063         part, use /.../, not \|...|. Escape periods in the header file name.
7064         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7065         Reported by Daniel Richard G. <skunk@iskunk.org>.
7066
7067 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7068
7069         Support for old NeXTstep 3.3 gcc.
7070         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7071         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7072         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7073         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7074         * lib/regex.h (_Restrict_arr_): Likewise.
7075         * lib/regex_internal.h (re_token_t): Likewise.
7076         * lib/regexec.c (check_node_accept_bytes): Likewise.
7077         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7078
7079 2011-10-18  Eric Blake  <eblake@redhat.com>
7080
7081         posix_openpt: new module
7082         * modules/posix_openpt: New module.
7083         * m4/posix_openpt.m4: New file.
7084         * lib/posix_openpt.c: Likewise.
7085         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7086         (gl_STDLIB_H_DEFAULTS): Set defaults.
7087         * modules/stdlib (Makefile.am): Substitute macros.
7088         * lib/stdlib.in.h (posix_openpt): Declare.
7089         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7090         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7091         * modules/posix_openpt-tests: New test module.
7092         * tests/test-posix_openpt.c: New test.
7093
7094 2011-10-15  Bruno Haible  <bruno@clisp.org>
7095
7096         xstrtoll: Fix compilation failure.
7097         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7098         from lib/strtol.c.
7099         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7100         some platforms.
7101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7102
7103 2011-10-15  Bruno Haible  <bruno@clisp.org>
7104
7105         vasnprintf: Optimize bit search operation.
7106         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7108         gl_DOUBLE_EXPONENT_LOCATION.
7109         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7110         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7111         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7112         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7113         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7114         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7115         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7116         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7117         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7118
7119 2011-10-15  Bruno Haible  <bruno@clisp.org>
7120
7121         vasnprintf: Fix comments.
7122         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7123
7124 2011-10-14  Bruno Haible  <bruno@clisp.org>
7125
7126         Tests for module 'integer_length_ll'.
7127         * modules/integer_length_ll-tests: New file.
7128         * tests/test-integer_length_ll.c: New file.
7129
7130         New module 'integer_length_ll'.
7131         * lib/integer_length_ll.c: New file.
7132         * modules/integer_length_ll: New file.
7133
7134 2011-10-14  Bruno Haible  <bruno@clisp.org>
7135
7136         Tests for module 'integer_length_l'.
7137         * modules/integer_length_l-tests: New file.
7138         * tests/test-integer_length_l.c: New file.
7139
7140         New module 'integer_length_l'.
7141         * lib/integer_length_l.c: New file.
7142         * modules/integer_length_l: New file.
7143
7144 2011-10-14  Bruno Haible  <bruno@clisp.org>
7145
7146         Tests for module 'integer_length'.
7147         * modules/integer_length-tests: New file.
7148         * tests/test-integer_length.c: New file.
7149
7150         New module 'integer_length'.
7151         * lib/integer_length.h: New file.
7152         * lib/integer_length.c: New file.
7153         * modules/integer_length: New file.
7154
7155 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7156
7157         popen: Fix dependency conditions.
7158         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7159
7160 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7161
7162         perror: Fix autoconf test.
7163         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7164         <stdlib.h> and <string.h>.
7165
7166 2011-10-14  Bruno Haible  <bruno@clisp.org>
7167
7168         ffsl: Optimize on 64-bit platforms.
7169         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7170         unrolling.
7171
7172 2011-10-13  Bruno Haible  <bruno@clisp.org>
7173
7174         ffsl: Optimize on 32-bit platforms.
7175         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7176         use ffs() without a loop.
7177
7178         ffsl, ffsll: Optimize for GCC.
7179         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7180         * lib/ffsl.c (GCC_BUILTIN): New macro.
7181         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7182
7183 2011-10-13  Bruno Haible  <bruno@clisp.org>
7184
7185         ffs, bcopy, memset: Support symbol renaming via config.h.
7186         * lib/ffs.c: Include <config.h>.
7187         * lib/bcopy.c: Likewise.
7188         * lib/memset.c: Likewise.
7189
7190 2011-10-10  Bruno Haible  <bruno@clisp.org>
7191
7192         atanl: Simplify for platforms where 'long double' == 'double'.
7193         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7194         alternative implementation.
7195         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7196         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7197         * modules/atanl (Depends-on): Add atan. Update conditions.
7198
7199 2011-10-10  Bruno Haible  <bruno@clisp.org>
7200
7201         acosl: Simplify for platforms where 'long double' == 'double'.
7202         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7203         alternative implementation.
7204         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7205         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7206         * modules/acosl (Depends-on): Add acos. Update conditions.
7207
7208 2011-10-10  Bruno Haible  <bruno@clisp.org>
7209
7210         asinl: Simplify for platforms where 'long double' == 'double'.
7211         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7212         alternative implementation.
7213         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7214         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7215         * modules/asinl (Depends-on): Add asin. Update conditions.
7216
7217 2011-10-10  Bruno Haible  <bruno@clisp.org>
7218
7219         tanl: Simplify for platforms where 'long double' == 'double'.
7220         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7221         implementation.
7222         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7223         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7224         * modules/tanl (Depends-on): Add tan. Update conditions.
7225         (configure.ac): Don't compile trigl.c if
7226         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7227
7228 2011-10-10  Bruno Haible  <bruno@clisp.org>
7229
7230         cosl: Simplify for platforms where 'long double' == 'double'.
7231         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7232         implementation.
7233         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7234         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7235         * modules/cosl (Depends-on): Add cos. Update conditions.
7236         (configure.ac): Don't compile sincosl.c and trigl.c if
7237         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7238
7239 2011-10-10  Bruno Haible  <bruno@clisp.org>
7240
7241         sinl: Simplify for platforms where 'long double' == 'double'.
7242         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7243         implementation.
7244         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7245         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7246         * modules/sinl (Depends-on): Add sin. Update conditions.
7247         (configure.ac): Don't compile sincosl.c and trigl.c if
7248         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7249
7250 2011-10-10  Bruno Haible  <bruno@clisp.org>
7251
7252         logl: Simplify for platforms where 'long double' == 'double'.
7253         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7254         implementation.
7255         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7256         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7257         * modules/logl (Depends-on): Add log. Update conditions.
7258
7259 2011-10-10  Bruno Haible  <bruno@clisp.org>
7260
7261         expl: Simplify for platforms where 'long double' == 'double'.
7262         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7263         implementation.
7264         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7265         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7266         * modules/expl (Depends-on): Add exp. Update conditions.
7267
7268 2011-10-10  Bruno Haible  <bruno@clisp.org>
7269
7270         sqrtl: Simplify for platforms where 'long double' == 'double'.
7271         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7272         alternative implementation.
7273         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7274         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7275         * modules/sqrtl (Depends-on): Update conditions.
7276
7277 2011-10-10  Bruno Haible  <bruno@clisp.org>
7278
7279         ldexpl: Simplify for platforms where 'long double' == 'double'.
7280         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7281         alternative implementation.
7282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7283         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7284         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7285
7286 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7287
7288         ffsll: set correct witness
7289         * modules/ffsll (configure.ac): Fix typo.
7290
7291 2011-10-10  Bruno Haible  <bruno@clisp.org>
7292
7293         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7294         * lib/printf-frexpl.c: Include <config.h>.
7295         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7296         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7297         second time.
7298         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7299         gl_LONG_DOUBLE_VS_DOUBLE.
7300         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7301         conditions.
7302
7303 2011-10-10  Bruno Haible  <bruno@clisp.org>
7304
7305         frexpl: Simplify for platforms where 'long double' == 'double'.
7306         * lib/frexpl.c: Include <config.h>.
7307         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7308         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7309         time.
7310         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7311         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7312         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7313         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7314         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7315         conditions.
7316
7317 2011-10-10  Jim Meyering  <meyering@redhat.com>
7318
7319         test-renameat: don't leave behind a temporary file
7320         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7321           ERROR: files left in build directory after distclean:
7322           ./gltests/test-renameat.too
7323           make[1]: *** [distcleancheck] Error 1
7324         Reported by Tom G. Christensen.
7325
7326 2011-10-09  Bruno Haible  <bruno@clisp.org>
7327
7328         rint: Determine RINT_LIBM correctly on AIX 7.
7329         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7330         directly, not only through a function pointer. Also accept an optional
7331         4th argument with extra code.
7332         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7333         rintf() call by gcc when optimizing.
7334
7335         mathfunc.m4: Refactor.
7336         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7337         m4 variable.
7338
7339 2011-10-09  Bruno Haible  <bruno@clisp.org>
7340
7341         rintl: Simplify for platforms where 'long double' == 'double'.
7342         * lib/rintl.c: Include <config.h>.
7343         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7344         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7345         time.
7346         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7347         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7348         * modules/rintl (Depends-on): Add rint. Update conditions.
7349
7350 2011-10-09  Bruno Haible  <bruno@clisp.org>
7351
7352         roundl: Simplify for platforms where 'long double' == 'double'.
7353         * lib/roundl.c: Include <config.h>.
7354         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7355         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7356         time.
7357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7358         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7359         * modules/roundl (Depends-on): Add round. Update conditions.
7360
7361 2011-10-09  Bruno Haible  <bruno@clisp.org>
7362
7363         truncl: Simplify for platforms where 'long double' == 'double'.
7364         * lib/truncl.c: Include <config.h>.
7365         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7366         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7367         time.
7368         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7369         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7370         * modules/truncl (Depends-on): Add trunc. Update conditions.
7371
7372 2011-10-09  Bruno Haible  <bruno@clisp.org>
7373
7374         ceill: Simplify for platforms where 'long double' == 'double'.
7375         * lib/ceill.c: Include <config.h>.
7376         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7377         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7378         time.
7379         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7380         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7381         * modules/ceill (Depends-on): Add ceil. Update conditions.
7382
7383 2011-10-09  Bruno Haible  <bruno@clisp.org>
7384
7385         floorl: Simplify for platforms where 'long double' == 'double'.
7386         * lib/floorl.c: Include <config.h>.
7387         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7388         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7389         time.
7390         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7391         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7392         * modules/floorl (Depends-on): Add floor. Update conditions.
7393
7394 2011-10-09  Bruno Haible  <bruno@clisp.org>
7395
7396         rint: Fix ordering constraints.
7397         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7398         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7399         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7400
7401 2011-10-09  Bruno Haible  <bruno@clisp.org>
7402
7403         copysignl: Simplify for platforms where 'long double' == 'double'.
7404         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7405         alternative.
7406         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7407         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7408         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7409
7410 2011-10-09  Bruno Haible  <bruno@clisp.org>
7411
7412         Tests for module 'rintl'.
7413         * modules/rintl-tests: New file.
7414         * tests/test-rintl.c: New file.
7415
7416         New module 'rintl'.
7417         * lib/math.in.h (rintl): New declaration.
7418         * lib/rintl.c: New file.
7419         * m4/rintl.m4: New file.
7420         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7422         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7423         * modules/rintl: New file.
7424         * tests/test-math-c++.cc: Check the declaration of rintl.
7425         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7426         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7427         * doc/posix-functions/rintl.texi: Mention the new module.
7428
7429 2011-10-09  Bruno Haible  <bruno@clisp.org>
7430
7431         Tests for module 'rintf'.
7432         * modules/rintf-tests: New file.
7433         * tests/test-rintf.c: New file.
7434
7435         New module 'rintf'.
7436         * lib/math.in.h (rintf): New declaration.
7437         * lib/rintf.c: New file.
7438         * m4/rintf.m4: New file.
7439         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7441         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7442         * modules/rintf: New file.
7443         * tests/test-math-c++.cc: Check the declaration of rintf.
7444         * doc/posix-functions/rintf.texi: Mention the new module.
7445
7446 2011-10-09  Bruno Haible  <bruno@clisp.org>
7447
7448         rint: Support for MSVC.
7449         * lib/math.in.h (rint): New declaration.
7450         * lib/rint.c: New file.
7451         * m4/rint.m4: New file.
7452         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7454         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7455         * modules/rint (Description): Fix.
7456         (Files): Add lib/rint.c, m4/rint.m4.
7457         (Depends-on): Add math.
7458         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7459         gl_MATH_MODULE_INDICATOR.
7460         * tests/test-math-c++.cc: Check the declaration of rint.
7461         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7462         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7463         * doc/posix-functions/rint.texi: Mention the replacement provided by
7464         the module.
7465
7466         rint tests: More tests.
7467         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7468         minus-zero.h, infinity.h, nan.h.
7469         (main): Skip the test if the current rounding mode is not standard. Add
7470         tests for negative numbers, minus zero, infinity, NaN.
7471         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7472         tests/nan.h.
7473         (Depends-on): Add isnand-nolibm.
7474
7475 2011-10-09  Bruno Haible  <bruno@clisp.org>
7476
7477         Tests for module 'copysignl'.
7478         * modules/copysignl-tests: New file.
7479         * tests/test-copysignl.c: New file.
7480
7481         New module 'copysignl'.
7482         * lib/math.in.h (copysignl): New declaration.
7483         * lib/copysignl.c: New file.
7484         * m4/copysignl.m4: New file.
7485         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7487         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7488         HAVE_COPYSIGNL.
7489         * modules/copysignl: New file.
7490         * tests/test-math-c++.cc: Check the declaration of copysignl.
7491         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7492         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7493         * doc/posix-functions/copysignl.texi: Mention the new module.
7494
7495 2011-10-09  Bruno Haible  <bruno@clisp.org>
7496
7497         Tests for module 'copysignf'.
7498         * modules/copysignf-tests: New file.
7499         * tests/test-copysignf.c: New file.
7500
7501         New module 'copysignf'.
7502         * lib/math.in.h (copysignf): New declaration.
7503         * lib/copysignf.c: New file.
7504         * m4/copysignf.m4: New file.
7505         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7507         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7508         HAVE_COPYSIGNF.
7509         * modules/copysignf: New file.
7510         * tests/test-math-c++.cc: Check the declaration of copysignf.
7511         * doc/posix-functions/copysignf.texi: Mention the new module.
7512
7513 2011-10-09  Bruno Haible  <bruno@clisp.org>
7514
7515         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7518         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7519         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7520         gl_SIGNAL_H_DEFAULTS.
7521
7522 2011-10-09  Bruno Haible  <bruno@clisp.org>
7523
7524         poll: Make macro safer.
7525         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7526         ac_cv_header_poll_h is not set.
7527
7528 2011-10-09  Bruno Haible  <bruno@clisp.org>
7529
7530         copysign: Provide replacement.
7531         * lib/math.in.h (copysign): New declaration.
7532         * lib/copysign.c: New file.
7533         * m4/copysign.m4: New file.
7534         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7536         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7537         HAVE_COPYSIGN.
7538         * modules/copysign (Description): Clarify.
7539         (Files): Add lib/copysign.c, m4/copysign.m4.
7540         (Depends-on): Add math, signbit.
7541         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7542         gl_MATH_MODULE_INDICATOR.
7543         * tests/test-math-c++.cc: Check the declaration of copysign.
7544         * doc/posix-functions/copysign.texi: Mention the effects of the module
7545         on Minix and MSVC.
7546
7547 2011-10-09  Bruno Haible  <bruno@clisp.org>
7548
7549         isinf: Ensure macro on AIX 5.1.
7550         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7551         macro.
7552         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7553
7554 2011-10-09  Bruno Haible  <bruno@clisp.org>
7555
7556         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7557         * modules/snprintf-posix-tests (configure.ac): Require
7558         gl_LONG_DOUBLE_VS_DOUBLE.
7559         * modules/sprintf-posix-tests (configure.ac): Likewise.
7560         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7561         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7562         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7563         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7564         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7565         tests on platforms where 'long double' is the same as 'double'.
7566         * tests/test-sprintf-posix.h (test_function): Likewise.
7567         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7568         * tests/test-vasprintf-posix.c (test_function): Likewise.
7569
7570         *printf: Fix for platforms where 'long double' == 'double'.
7571         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7572         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7573         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7574         * modules/fprintf-posix (Files): Likewise.
7575         * modules/obstack-printf-posix (Files): Likewise.
7576         * modules/snprintf-posix (Files): Likewise.
7577         * modules/sprintf-posix (Files): Likewise.
7578         * modules/vasnprintf (Files): Likewise.
7579         * modules/vasnprintf-posix (Files): Likewise.
7580         * modules/vasprintf-posix (Files): Likewise.
7581         * modules/vdprintf-posix (Files): Likewise.
7582         * modules/vfprintf-posix (Files): Likewise.
7583         * modules/vsnprintf-posix (Files): Likewise.
7584         * modules/vsprintf-posix (Files): Likewise.
7585         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7586         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7587         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7588         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7589         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7590         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7591         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7592
7593         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7594         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7595         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7596         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7597         'long double'.
7598         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7599
7600         isinf: Fix for platforms where 'long double' == 'double'.
7601         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7602         Don't blindly assume 80-bit 'long double'.
7603
7604         isfinite: Fix for platforms where 'long double' == 'double'.
7605         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7606         Don't blindly assume 80-bit 'long double'.
7607
7608         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7609         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7610         * modules/isfinite-tests (configure.ac): Require
7611         gl_LONG_DOUBLE_VS_DOUBLE.
7612         * modules/isinf-tests (configure.ac): Likewise.
7613         * modules/isnan-tests (configure.ac): Likewise.
7614         * modules/isnanl-tests (configure.ac): Likewise.
7615         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7616         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7617         tests on platforms where 'long double' is the same as 'double'.
7618         * tests/test-isinf.c (test_isinfl): Likewise.
7619         * tests/test-isnan.c (test_long_double): Likewise.
7620         * tests/test-isnanl.h (main): Likewise.
7621
7622 2011-10-08  Bruno Haible  <bruno@clisp.org>
7623
7624         Tests for module 'tanhf'.
7625         * modules/tanhf-tests: New file.
7626         * tests/test-tanhf.c: New file.
7627
7628         New module 'tanhf'.
7629         * lib/math.in.h (tanhf): New declaration.
7630         * lib/tanhf.c: New file.
7631         * m4/tanhf.m4: New file.
7632         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7634         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7635         * modules/tanhf: New file.
7636         * tests/test-math-c++.cc: Check the declaration of tanhf.
7637         * doc/posix-functions/tanhf.texi: Mention the new module.
7638
7639         tanh: Use a .m4 file.
7640         * m4/tanh.m4: New file.
7641         * modules/tanh (Files): Add it.
7642         (configure.ac): Just invoke gl_FUNC_TANH.
7643
7644 2011-10-08  Bruno Haible  <bruno@clisp.org>
7645
7646         Tests for module 'coshf'.
7647         * modules/coshf-tests: New file.
7648         * tests/test-coshf.c: New file.
7649
7650         New module 'coshf'.
7651         * lib/math.in.h (coshf): New declaration.
7652         * lib/coshf.c: New file.
7653         * m4/coshf.m4: New file.
7654         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7656         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7657         * modules/coshf: New file.
7658         * tests/test-math-c++.cc: Check the declaration of coshf.
7659         * doc/posix-functions/coshf.texi: Mention the new module.
7660
7661         cosh: Use a .m4 file.
7662         * m4/cosh.m4: New file.
7663         * modules/cosh (Files): Add it.
7664         (configure.ac): Just invoke gl_FUNC_COSH.
7665
7666 2011-10-08  Bruno Haible  <bruno@clisp.org>
7667
7668         Tests for module 'sinhf'.
7669         * modules/sinhf-tests: New file.
7670         * tests/test-sinhf.c: New file.
7671
7672         New module 'sinhf'.
7673         * lib/math.in.h (sinhf): New declaration.
7674         * lib/sinhf.c: New file.
7675         * m4/sinhf.m4: New file.
7676         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7678         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7679         * modules/sinhf: New file.
7680         * tests/test-math-c++.cc: Check the declaration of sinhf.
7681         * doc/posix-functions/sinhf.texi: Mention the new module.
7682
7683         sinh: Use a .m4 file.
7684         * m4/sinh.m4: New file.
7685         * modules/sinh (Files): Add it.
7686         (configure.ac): Just invoke gl_FUNC_SINH.
7687
7688 2011-10-08  Bruno Haible  <bruno@clisp.org>
7689
7690         Tests for module 'atan2f'.
7691         * modules/atan2f-tests: New file.
7692         * tests/test-atan2f.c: New file.
7693
7694         New module 'atan2f'.
7695         * lib/math.in.h (atan2f): New declaration.
7696         * lib/atan2f.c: New file.
7697         * m4/atan2f.m4: New file.
7698         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7700         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7701         * modules/atan2f: New file.
7702         * tests/test-math-c++.cc: Check the declaration of atan2f.
7703         * doc/posix-functions/atan2f.texi: Mention the new module.
7704
7705         atan2: Use a .m4 file.
7706         * m4/atan2.m4: New file.
7707         * modules/atan2 (Files): Add it.
7708         (configure.ac): Just invoke gl_FUNC_ATAN2.
7709
7710 2011-10-08  Bruno Haible  <bruno@clisp.org>
7711
7712         Tests for module 'atanf'.
7713         * modules/atanf-tests: New file.
7714         * tests/test-atanf.c: New file.
7715
7716         New module 'atanf'.
7717         * lib/math.in.h (atanf): New declaration.
7718         * lib/atanf.c: New file.
7719         * m4/atanf.m4: New file.
7720         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7722         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7723         * modules/atanf: New file.
7724         * tests/test-math-c++.cc: Check the declaration of atanf.
7725         * doc/posix-functions/atanf.texi: Mention the new module.
7726
7727         atan: Use a .m4 file.
7728         * m4/atan.m4: New file.
7729         * modules/atan (Files): Add it.
7730         (configure.ac): Just invoke gl_FUNC_ATAN.
7731
7732 2011-10-08  Bruno Haible  <bruno@clisp.org>
7733
7734         Tests for module 'acosf'.
7735         * modules/acosf-tests: New file.
7736         * tests/test-acosf.c: New file.
7737
7738         New module 'acosf'.
7739         * lib/math.in.h (acosf): New declaration.
7740         * lib/acosf.c: New file.
7741         * m4/acosf.m4: New file.
7742         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7744         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7745         * modules/acosf: New file.
7746         * tests/test-math-c++.cc: Check the declaration of acosf.
7747         * doc/posix-functions/acosf.texi: Mention the new module.
7748
7749         acos: Use a .m4 file.
7750         * m4/acos.m4: New file.
7751         * modules/acos (Files): Add it.
7752         (configure.ac): Just invoke gl_FUNC_ACOS.
7753
7754 2011-10-08  Bruno Haible  <bruno@clisp.org>
7755
7756         Tests for module 'asinf'.
7757         * modules/asinf-tests: New file.
7758         * tests/test-asinf.c: New file.
7759
7760         New module 'asinf'.
7761         * lib/math.in.h (asinf): New declaration.
7762         * lib/asinf.c: New file.
7763         * m4/asinf.m4: New file.
7764         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7766         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7767         * modules/asinf: New file.
7768         * tests/test-math-c++.cc: Check the declaration of asinf.
7769         * doc/posix-functions/asinf.texi: Mention the new module.
7770
7771         asin: Use a .m4 file.
7772         * m4/asin.m4: New file.
7773         * modules/asin (Files): Add it.
7774         (configure.ac): Just invoke gl_FUNC_ASIN.
7775
7776 2011-10-08  Bruno Haible  <bruno@clisp.org>
7777
7778         Tests for module 'tanf'.
7779         * modules/tanf-tests: New file.
7780         * tests/test-tanf.c: New file.
7781
7782         New module 'tanf'.
7783         * lib/math.in.h (tanf): New declaration.
7784         * lib/tanf.c: New file.
7785         * m4/tanf.m4: New file.
7786         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7788         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7789         * modules/tanf: New file.
7790         * tests/test-math-c++.cc: Check the declaration of tanf.
7791         * doc/posix-functions/tanf.texi: Mention the new module.
7792
7793         tan: Use a .m4 file.
7794         * m4/tan.m4: New file.
7795         * modules/tan (Files): Add it.
7796         (configure.ac): Just invoke gl_FUNC_TAN.
7797
7798 2011-10-08  Bruno Haible  <bruno@clisp.org>
7799
7800         Tests for module 'cosf'.
7801         * modules/cosf-tests: New file.
7802         * tests/test-cosf.c: New file.
7803
7804         New module 'cosf'.
7805         * lib/math.in.h (cosf): New declaration.
7806         * lib/cosf.c: New file.
7807         * m4/cosf.m4: New file.
7808         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7810         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7811         * modules/cosf: New file.
7812         * tests/test-math-c++.cc: Check the declaration of cosf.
7813         * doc/posix-functions/cosf.texi: Mention the new module.
7814
7815         cos: Use a .m4 file.
7816         * m4/cos.m4: New file.
7817         * modules/cos (Files): Add it.
7818         (configure.ac): Just invoke gl_FUNC_COS.
7819
7820 2011-10-08  Bruno Haible  <bruno@clisp.org>
7821
7822         Tests for module 'sinf'.
7823         * modules/sinf-tests: New file.
7824         * tests/test-sinf.c: New file.
7825
7826         New module 'sinf'.
7827         * lib/math.in.h (sinf): New declaration.
7828         * lib/sinf.c: New file.
7829         * m4/sinf.m4: New file.
7830         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7832         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7833         * modules/sinf: New file.
7834         * tests/test-math-c++.cc: Check the declaration of sinf.
7835         * doc/posix-functions/sinf.texi: Mention the new module.
7836
7837         sin: Use a .m4 file.
7838         * m4/sin.m4: New file.
7839         * modules/sin (Files): Add it.
7840         (configure.ac): Just invoke gl_FUNC_SIN.
7841
7842 2011-10-08  Bruno Haible  <bruno@clisp.org>
7843
7844         Tests for module 'powf'.
7845         * modules/powf-tests: New file.
7846         * tests/test-powf.c: New file.
7847
7848         New module 'powf'.
7849         * lib/math.in.h (powf): New declaration.
7850         * lib/powf.c: New file.
7851         * m4/powf.m4: New file.
7852         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7854         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7855         * modules/powf: New file.
7856         * tests/test-math-c++.cc: Check the declaration of powf.
7857         * doc/posix-functions/powf.texi: Mention the new module.
7858
7859         pow: Use a .m4 file.
7860         * m4/pow.m4: New file.
7861         * modules/pow (Files): Add it.
7862         (configure.ac): Just invoke gl_FUNC_POW.
7863
7864 2011-10-08  Bruno Haible  <bruno@clisp.org>
7865
7866         Tests for module 'log10f'.
7867         * modules/log10f-tests: New file.
7868         * tests/test-log10f.c: New file.
7869
7870         New module 'log10f'.
7871         * lib/math.in.h (log10f): New declaration.
7872         * lib/log10f.c: New file.
7873         * m4/log10f.m4: New file.
7874         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7876         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7877         * modules/log10f: New file.
7878         * tests/test-math-c++.cc: Check the declaration of log10f.
7879         * doc/posix-functions/log10f.texi: Mention the new module.
7880
7881         log10: Use a .m4 file.
7882         * m4/log10.m4: New file.
7883         * modules/log10 (Files): Add it.
7884         (configure.ac): Just invoke gl_FUNC_LOG10.
7885
7886 2011-10-08  Bruno Haible  <bruno@clisp.org>
7887
7888         Tests for module 'logf'.
7889         * modules/logf-tests: New file.
7890         * tests/test-logf.c: New file.
7891
7892         New module 'logf'.
7893         * lib/math.in.h (logf): New declaration.
7894         * lib/logf.c: New file.
7895         * m4/logf.m4: New file.
7896         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7898         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7899         * modules/logf: New file.
7900         * tests/test-math-c++.cc: Check the declaration of logf.
7901         * doc/posix-functions/logf.texi: Mention the new module.
7902
7903         log: Use a .m4 file.
7904         * m4/log.m4: New file.
7905         * modules/log (Files): Add it.
7906         (configure.ac): Just invoke gl_FUNC_LOG.
7907
7908 2011-10-08  Bruno Haible  <bruno@clisp.org>
7909
7910         Tests for module 'expf'.
7911         * modules/expf-tests: New file.
7912         * tests/test-expf.c: New file.
7913
7914         New module 'expf'.
7915         * lib/math.in.h (expf): New declaration.
7916         * lib/expf.c: New file.
7917         * m4/expf.m4: New file.
7918         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7920         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7921         * modules/expf: New file.
7922         * tests/test-math-c++.cc: Check the declaration of expf.
7923         * doc/posix-functions/expf.texi: Mention the new module.
7924
7925         exp: Use a .m4 file.
7926         * m4/exp.m4: New file.
7927         * modules/exp (Files): Add it.
7928         (configure.ac): Just invoke gl_FUNC_EXP.
7929
7930 2011-10-08  Bruno Haible  <bruno@clisp.org>
7931
7932         Tests for module 'sqrtf'.
7933         * modules/sqrtf-tests: New file.
7934         * tests/test-sqrtf.c: New file.
7935
7936         New module 'sqrtf'.
7937         * lib/math.in.h (sqrtf): New declaration.
7938         * lib/sqrtf.c: New file.
7939         * m4/sqrtf.m4: New file.
7940         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7942         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7943         * modules/sqrtf: New file.
7944         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7945         * doc/posix-functions/sqrtf.texi: Mention the new module.
7946
7947 2011-10-08  Bruno Haible  <bruno@clisp.org>
7948
7949         Tests: Avoid link failures w.r.t. libintl.
7950         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7951         $(LIBINTL).
7952         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7953         $(LIBINTL).
7954         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7955         against $(LIBINTL).
7956         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7957         $(LIBINTL).
7958         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7959         $(LIBINTL).
7960         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7961
7962 2011-10-08  Bruno Haible  <bruno@clisp.org>
7963
7964         pow tests: Defeat compiler optimizations.
7965         * tests/test-pow.c (main): Assign arguments to x and y before use.
7966
7967 2011-10-08  Bruno Haible  <bruno@clisp.org>
7968
7969         gnulib-tool: Improve last commit.
7970         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7971         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7972         ignore dependencies that are not among the modules list.
7973
7974 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         gnulib-tool: don't follow dependencies to avoided modules
7977         This fixes a bug that is related to the previous one.
7978         * gnulib-tool (func_modules_transitive_closure)
7979         (func_emit_autoconf_snippets):
7980         Check whether a dependency is acceptable before using it.
7981         (--extract-dependencies): Report an error if --avoid is also used,
7982         since this combination of options is not yet supported.
7983
7984         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7985         Problem reported by Peter Dyballa in
7986         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7987         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7988         when echoing "$condition".
7989
7990 2011-10-07  Bruno Haible  <bruno@clisp.org>
7991
7992         Fix documentation about math functions on MacOS X.
7993         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7994         MacOS X 10.5.
7995         * doc/posix-functions/fdim.texi: Likewise.
7996         * doc/posix-functions/feclearexcept.texi: Likewise.
7997         * doc/posix-functions/fegetenv.texi: Likewise.
7998         * doc/posix-functions/fegetround.texi: Likewise.
7999         * doc/posix-functions/feholdexcept.texi: Likewise.
8000         * doc/posix-functions/feraiseexcept.texi: Likewise.
8001         * doc/posix-functions/fesetenv.texi: Likewise.
8002         * doc/posix-functions/fesetround.texi: Likewise.
8003         * doc/posix-functions/fetestexcept.texi: Likewise.
8004         * doc/posix-functions/feupdateenv.texi: Likewise.
8005         * doc/posix-functions/fmax.texi: Likewise.
8006         * doc/posix-functions/fmin.texi: Likewise.
8007         * doc/posix-functions/log2.texi: Likewise.
8008         * doc/posix-functions/modff.texi: Likewise.
8009         * doc/posix-functions/nan.texi: Likewise.
8010         * doc/posix-functions/nanf.texi: Likewise.
8011         * doc/posix-functions/nextafterf.texi: Likewise.
8012         * doc/posix-functions/remquo.texi: Likewise.
8013
8014 2011-10-07  Bruno Haible  <bruno@clisp.org>
8015
8016         modff: Drop assumption about library that defines modff.
8017         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8018         AC_CHECK_FUNCS.
8019         * modules/modff (Files): Add m4/mathfunc.m4.
8020
8021 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8022
8023         raise tests: Avoid a GCC warning.
8024         * tests/test-raise.c (handler): Use _Noreturn.
8025
8026 2011-10-07  Bruno Haible  <bruno@clisp.org>
8027
8028         Tests for module 'ldexpf'.
8029         * modules/ldexpf-tests: New file.
8030         * tests/test-ldexpf.c: New file.
8031
8032         New module 'ldexpf'.
8033         * lib/math.in.h (ldexpf): New declaration.
8034         * lib/ldexpf.c: New file.
8035         * m4/ldexpf.m4: New file.
8036         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8038         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8039         * modules/ldexpf: New file.
8040         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8041         * doc/posix-functions/ldexpf.texi: Mention the new module.
8042
8043 2011-10-06  Bruno Haible  <bruno@clisp.org>
8044
8045         frexpf: Work around problems on IRIX and mingw.
8046         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8048         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8049         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8050         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8051         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8052         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8053
8054 2011-10-06  Bruno Haible  <bruno@clisp.org>
8055
8056         fabsf: Drop assumption about library that defines fabsf.
8057         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8058         AC_CHECK_FUNCS.
8059         * modules/fabsf (Files): Add m4/mathfunc.m4.
8060
8061 2011-10-06  Bruno Haible  <bruno@clisp.org>
8062
8063         frexpf: Drop assumption about library that defines frexpf.
8064         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8065         'int *', 'float *', 'long double *', 'float', 'long double'.
8066         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8067         AC_CHECK_FUNCS.
8068         * modules/frexpf (Files): Add m4/mathfunc.m4.
8069
8070         Tests for module 'frexpf'.
8071         * modules/frexpf-tests: New file.
8072         * tests/test-frexpf.c: New file.
8073
8074         New module 'frexpf'.
8075         * lib/math.in.h (frexpf): New declaration.
8076         * lib/frexpf.c: New file.
8077         * m4/frexpf.m4: New file.
8078         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8080         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8081         * modules/frexpf: New file.
8082         * tests/test-math-c++.cc: Check the declaration of frexpf.
8083         * doc/posix-functions/frexpf.texi: Mention the new module.
8084
8085 2011-10-06  Bruno Haible  <bruno@clisp.org>
8086
8087         math: Sort function declarations of math.in.h.
8088         * lib/math.in.h (frexp, logb): Move declarations.
8089
8090 2011-10-05  Bruno Haible  <bruno@clisp.org>
8091
8092         Tests for module 'modff'.
8093         * modules/modff-tests: New file.
8094         * tests/test-modff.c: New file.
8095
8096         New module 'modff'.
8097         * lib/math.in.h (modff): New declaration.
8098         * lib/modff.c: New file.
8099         * m4/modff.m4: New file.
8100         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8102         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8103         * modules/modff: New file.
8104         * tests/test-math-c++.cc: Check the declaration of modff.
8105         * doc/posix-functions/modff.texi: Mention the new module.
8106
8107         modf tests: Make test sharper.
8108         * tests/test-modf.c (main): Strengthen upper bound.
8109
8110         modf: Use a .m4 file.
8111         * m4/modf.m4: New file.
8112         * modules/modf (Files): Add it.
8113         (configure.ac): Just invoke gl_FUNC_MODF.
8114
8115 2011-10-05  Bruno Haible  <bruno@clisp.org>
8116
8117         Tests for module 'fmodf'.
8118         * modules/fmodf-tests: New file.
8119         * tests/test-fmodf.c: New file.
8120
8121         New module 'fmodf'.
8122         * lib/math.in.h (fmodf): New declaration.
8123         * lib/fmodf.c: New file.
8124         * m4/fmodf.m4: New file.
8125         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8127         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8128         * modules/fmodf: New file.
8129         * tests/test-math-c++.cc: Check the declaration of fmodf.
8130         * doc/posix-functions/fmodf.texi: Mention the new module.
8131
8132         fmod: Use a .m4 file.
8133         * m4/fmod.m4: New file.
8134         * modules/fmod (Files): Add it.
8135         (configure.ac): Just invoke gl_FUNC_FMOD.
8136
8137 2011-10-05  Bruno Haible  <bruno@clisp.org>
8138
8139         Tests for module 'fabsf'.
8140         * modules/fabsf-tests: New file.
8141         * tests/test-fabsf.c: New file.
8142
8143         New module 'fabsf'.
8144         * lib/math.in.h (fabsf): New declaration.
8145         * lib/fabsf.c: New file.
8146         * m4/fabsf.m4: New file.
8147         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8149         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8150         * modules/fabsf: New file.
8151         * tests/test-math-c++.cc: Check the declaration of fabsf.
8152         * doc/posix-functions/fabsf.texi: Mention the new module.
8153
8154         fabs: Use a .m4 file.
8155         * m4/fabs.m4: New file.
8156         * modules/fabs (Files): Add it.
8157         (configure.ac): Just invoke gl_FUNC_FABS.
8158
8159 2011-10-05  Jim Meyering  <meyering@redhat.com>
8160
8161         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8162         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8163         ls -lL regression introduced in coreutils-8.12, it does so at the
8164         cost of an additional stat call in the common case.  Besides, now
8165         that the kernel change that prompted commit 95f7c57f has been reverted
8166         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8167         we have no use for commit 95f7c57f, "file-has-acl: use
8168         acl_extended_file_nofollow if available".
8169
8170 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8171
8172         file-has-acl: revert unintended change in behavior of ls -L
8173         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8174         derived from...
8175         (file_has_acl): ...code here.  Call it.
8176         This problem was introduced with 2011-07-22 commit 95f7c57f,
8177         "file-has-acl: use acl_extended_file_nofollow if available".
8178         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8179
8180 2011-10-03  Bruno Haible  <bruno@clisp.org>
8181
8182         poll: Avoid link errors on MSVC.
8183         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8184         * modules/poll (Depends-on): Add sockets.
8185         (Link): New section.
8186         * NEWS: Mention the change.
8187         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8188         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8189         $(LIB_POLL) instead of $(LIBSOCKET).
8190
8191 2011-10-03  Bruno Haible  <bruno@clisp.org>
8192
8193         sys_select tests: Fix link error on MSVC 9.
8194         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8195         with $(LIB_SELECT) instead of $(LIBSOCKET).
8196
8197 2011-10-03  Bruno Haible  <bruno@clisp.org>
8198
8199         sys_select: Fix compilation error on mingw.
8200         * lib/sys_select.in.h: On native Windows, include <io.h>.
8201
8202 2011-10-03  Bruno Haible  <bruno@clisp.org>
8203
8204         wmemset: Support for MSVC.
8205         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8206         whether wmemset() exists.
8207
8208 2011-10-03  Bruno Haible  <bruno@clisp.org>
8209
8210         wmemmove: Support for MSVC.
8211         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8212         whether wmemmove() exists.
8213
8214 2011-10-03  Bruno Haible  <bruno@clisp.org>
8215
8216         wmemcpy: Support for MSVC.
8217         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8218         whether wmemcpy() exists.
8219
8220 2011-10-03  Bruno Haible  <bruno@clisp.org>
8221
8222         wmemcmp: Support for MSVC.
8223         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8224         whether wmemcmp() exists.
8225
8226 2011-10-03  Bruno Haible  <bruno@clisp.org>
8227
8228         wmemchr: Support for MSVC.
8229         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8230         whether wmemchr() exists.
8231
8232 2011-10-03  Bruno Haible  <bruno@clisp.org>
8233
8234         glthread/*, strsignal: Support for MSVC.
8235         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8236         including <winsock.h> on MSVC 9.
8237         * lib/glthread/lock.h: Likewise.
8238         * lib/glthread/thread.h: Likewise.
8239         * lib/glthread/tls.h: Likewise.
8240         * lib/glthread/yield.h: Likewise.
8241         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8242         if HAVE_UNISTD_H is false.
8243         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8244
8245 2011-10-03  Bruno Haible  <bruno@clisp.org>
8246
8247         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8248         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8249         Set to 100000.
8250
8251 2011-10-03  Bruno Haible  <bruno@clisp.org>
8252
8253         acl: Fix specification.
8254         * lib/file-has-acl.c (file_has_acl): Fix specification.
8255
8256 2011-10-03  Bruno Haible  <bruno@clisp.org>
8257
8258         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8259         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8260         (compute_curr_prefix, shared_library_fullname,
8261         find_shared_library_fullname, get_shared_library_fullname, relocate):
8262         Use it together with PIC && INSTALLDIR.
8263         Reported by <jojelino@gmail.com>
8264         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8265
8266 2011-10-01  Jim Meyering  <meyering@redhat.com>
8267
8268         maint.mk: adjust a release-related rule not to require use of gzip
8269         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8270         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8271         projects that build only .tar.xz files.  Also fix an erroneous test.
8272
8273         test-linkat: don't leave behind a temporary file
8274         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8275         Otherwise, coreutils' "make distcheck" would fail with this:
8276           Only in /c/cu/tests/torture/coreutils/test/\
8277             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8278           make[2]: *** [my-distcheck] Error 1
8279
8280         float, math: add omitted file
8281         * lib/itold.c: Add file, required for yesterday's float change.
8282
8283 2011-10-01  Bruno Haible  <bruno@clisp.org>
8284
8285         isinf: Fix for OpenBSD/x86.
8286         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8287         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8288         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8289
8290 2011-10-01  Bruno Haible  <bruno@clisp.org>
8291
8292         isfinite: Fix syntax error in configure test.
8293         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8294
8295         isfinite: Fix typo.
8296         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8297         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8298
8299 2011-10-01  Bruno Haible  <bruno@clisp.org>
8300
8301         nonblocking tests: Fix test failure on Linux/IA-64.
8302         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8303         Set to 270000.
8304
8305 2011-10-01  Bruno Haible  <bruno@clisp.org>
8306
8307         mkfifoat tests: Fix a test failure on mingw.
8308         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8309         with error ENOSYS.
8310
8311 2011-09-30  Bruno Haible  <bruno@clisp.org>
8312
8313         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8314         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8315         'long double'. Set REPLACE_ITOLD.
8316         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8317         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8318         * lib/itold.c: New file.
8319         * modules/float (Files): Add lib/itold.c.
8320         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8321         (Makefile.am): Substitute REPLACE_ITOLD.
8322         * modules/math (Depends-on): Add float.
8323         (Makefile.am): Substitute REPLACE_ITOLD.
8324         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8325         * doc/posix-headers/math.texi: Likewise.
8326         * doc/posix-functions/logl.texi: Likewise.
8327
8328 2011-09-30  Bruno Haible  <bruno@clisp.org>
8329
8330         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8331         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8332         Set to 140000.
8333
8334 2011-09-30  Bruno Haible  <bruno@clisp.org>
8335
8336         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8337         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8338         invocation, say "right after AC_PROG_CC_STDC", not "right after
8339         AC_PROG_CC".
8340         Reported by Gary V. Vaughan <gary@gnu.org>.
8341
8342 2011-09-30  Bruno Haible  <bruno@clisp.org>
8343
8344         Centralize C99 requirement.
8345         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8346         * modules/stdarg (configure.ac-early): Invoke it instead of
8347         AC_PROG_CC_STDC.
8348         Reported by Gary V. Vaughan and Paul Eggert.
8349
8350 2011-09-29  Bruno Haible  <bruno@clisp.org>
8351
8352         float: Fix LDBL_MAX value on Linux/PowerPC.
8353         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8354         on Linux/PowerPC.
8355         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8356         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8357         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8358         platform.
8359         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8360
8361 2011-09-29  Bruno Haible  <bruno@clisp.org>
8362
8363         doc: Improve doc about gl_EARLY.
8364         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8365         AC_PROG_CC_STDC invocation.
8366         Reported by Gary V. Vaughan <gary@gnu.org>.
8367
8368 2011-09-28  Bruno Haible  <bruno@clisp.org>
8369
8370         fgetc, fputc, fread, fwrite tests: Fix link error.
8371         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8372         on non-MSVC platforms.
8373         * tests/test-fputc.c (main): Likewise.
8374         * tests/test-fread.c (main): Likewise.
8375         * tests/test-fwrite.c (main): Likewise.
8376         Reported by Jim Meyering.
8377
8378 2011-09-27  Bruno Haible  <bruno@clisp.org>
8379
8380         fputc, fwrite tests: Avoid test failure on MSVC.
8381         * tests/test-fgetc.c: Include msvc-inval.h.
8382         (main): Invoke gl_msvc_inval_ensure_handler.
8383         * tests/test-fputc.c: Include msvc-inval.h.
8384         (main): Invoke gl_msvc_inval_ensure_handler.
8385         * tests/test-fread.c: Include msvc-inval.h.
8386         (main): Invoke gl_msvc_inval_ensure_handler.
8387         * tests/test-fwrite.c: Include msvc-inval.h.
8388         (main): Invoke gl_msvc_inval_ensure_handler.
8389         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8390         * modules/fputc-tests (Depends-on): Likewise.
8391         * modules/fread-tests (Depends-on): Likewise.
8392         * modules/fwrite-tests (Depends-on): Likewise.
8393
8394 2011-09-27  Bruno Haible  <bruno@clisp.org>
8395
8396         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8397         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8398         (raise): Remove older, duplicated declaration.
8399         (_gl_raise_SIGPIPE): New declaration.
8400         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8401         (rpl_raise): Remove function.
8402         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8403         a gnulib-defined SIGPIPE here.
8404         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8405         'sigprocmask' has detected missing signal-blocking and the module
8406         'sigpipe' is enabled.
8407         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8408
8409 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8410
8411         base64-tests: avoid memory leak
8412         * tests/test-base64.c (main): Plug memory leak.
8413
8414         base32: new module
8415         * modules/base32: New module.
8416         * lib/base32.c: New file.
8417         * lib/base32.h: Likewise.
8418         * m4/base32.m4: Likewise.
8419         * modules/base32-tests: New test.
8420         * tests/test-base32.c: Likewise.
8421         * MODULES.html.sh (Misc): Mention it.
8422
8423 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8424
8425         gnulib: use more-standard license notice wording
8426         * gnulib-tool (func_emit_copyright_notice): When emitting a
8427         license notice into a file, use the standard wording as suggested
8428         by the current information for GNU maintainers, except say "file"
8429         rather than "program".  The new wording gives a license version
8430         number, which addresses an issue raised by Glenn Morris in
8431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8432         * m4/onceonly.m4: Use that same wording here, too.
8433
8434         dup2: minor simplification
8435         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8436         as lib/dup2.c no longer uses 'inline'.
8437
8438 2011-09-25  Bruno Haible  <bruno@clisp.org>
8439
8440         strings: Fix compilation error on MSVC.
8441         * lib/strings.in.h: Include <stddef.h> for size_t.
8442
8443 2011-09-25  Bruno Haible  <bruno@clisp.org>
8444
8445         fflush et al.: Document limitation on MSVC.
8446         * doc/posix-functions/fflush.texi: Document possible crash in handling
8447         mode other than DEFAULT_HANDLING.
8448         * doc/posix-functions/fgetc.texi: Likewise.
8449         * doc/posix-functions/fputc.texi: Likewise.
8450         * doc/posix-functions/fread.texi: Likewise.
8451         * doc/posix-functions/fwrite.texi: Likewise.
8452
8453 2011-09-25  Bruno Haible  <bruno@clisp.org>
8454
8455         msvc-inval: Allow three invalid parameter handling modes.
8456         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8457         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8458         macros.
8459         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8460         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8461         SANE_LIBRARY_HANDLING as a no-op.
8462         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8463         <stdlib.h>.
8464         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8465
8466 2011-09-25  Bruno Haible  <bruno@clisp.org>
8467
8468         msvc-inval: Make handler multithread-safe.
8469         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8470         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8471         declarations.
8472         (gl_msvc_inval_current): New declaration.
8473         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8474         Operate on the structure returned by gl_msvc_inval_current().
8475         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8476         Remove varaiables.
8477         (tls_index, tls_initialized): New variables.
8478         (not_per_thread): New variable.
8479         (gl_msvc_inval_current): New function.
8480         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8481         returned by gl_msvc_inval_current().
8482
8483 2011-09-25  Bruno Haible  <bruno@clisp.org>
8484
8485         msvc-inval: Install handler globally.
8486         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8487         !_MSC_VER.
8488         (gl_msvc_invalid_parameter_handler): Remove declaration.
8489         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8490         declarations.
8491         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8492         Install the handler globally, don't uninstall it.
8493         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8494         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8495         currently valid, call RaiseException instead.
8496         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8497         for !_MSC_VER.
8498
8499 2011-09-25  Bruno Haible  <bruno@clisp.org>
8500
8501         strerror_r-posix: Fix for MSVC 9.
8502         * lib/strerror_r.c (local_snprintf): New function.
8503         (snprintf): Define to local_snprintf, not to _snprintf.
8504
8505 2011-09-25  Bruno Haible  <bruno@clisp.org>
8506
8507         ftruncate: Support for MSVC 9.
8508         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8509         (chsize_nothrow): New function.
8510         (chsize): Redefine as a macro.
8511         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8512         * modules/ftruncate (Depends-on): Add msvc-inval.
8513
8514 2011-09-25  Bruno Haible  <bruno@clisp.org>
8515
8516         New module 'fstat'.
8517         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8518         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8519         * lib/fchdir.c (rpl_fstat): Remove function.
8520         * m4/fstat.m4: New file.
8521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8523         declared.
8524         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8525         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8526         * modules/fstat: New file.
8527         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8528         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8529         is set.
8530         * doc/posix-functions/fstat.texi: Mention the new module and the
8531         problem on MSVC.
8532         * NEWS: Mention the change.
8533         * modules/acl (Depends-on): Add fstat.
8534         * modules/chdir-safer (Depends-on): Likewise.
8535         * modules/chown (Depends-on): Likewise.
8536         * modules/copy-file (Depends-on): Likewise.
8537         * modules/fchdir (Depends-on): Likewise.
8538         * modules/fdopendir (Depends-on): Likewise.
8539         * modules/fopen (Depends-on): Likewise.
8540         * modules/fts (Depends-on): Likewise.
8541         * modules/getcwd (Depends-on): Likewise.
8542         * modules/isapipe (Depends-on): Likewise.
8543         * modules/linkat (Depends-on): Likewise.
8544         * modules/lseek (Depends-on): Likewise.
8545         * modules/mkdir-p (Depends-on): Likewise.
8546         * modules/open (Depends-on): Likewise.
8547         * modules/openat (Depends-on): Likewise.
8548         * modules/read-file (Depends-on): Likewise.
8549         * modules/renameat (Depends-on): Likewise.
8550         * modules/utimens (Depends-on): Likewise.
8551
8552 2011-09-25  Bruno Haible  <bruno@clisp.org>
8553
8554         linkat: Fix compilation on MSVC 9.
8555         * lib/linkat.c: Don't include <stdint.h>.
8556
8557 2011-09-25  Bruno Haible  <bruno@clisp.org>
8558
8559         fclose: Support for MSVC 9.
8560         * lib/fclose.c: Include msvc-inval.h.
8561         (fclose_nothrow): New function.
8562         (rpl_fclose): Use it.
8563         * modules/fclose (Depends-on): Add msvc-inval.
8564         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8565
8566 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8567
8568         dup2: minor simplifications
8569         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8570         that it's a performance win.
8571         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8572         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8573
8574 2011-09-24  Jim Meyering  <meyering@redhat.com>
8575
8576         test-futimens: avoid a warning from gcc -Wshadow
8577         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8578         to avoid a shadowing warning.
8579
8580 2011-09-24  Bruno Haible  <bruno@clisp.org>
8581
8582         fdopen: Support for MSVC 9.
8583         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8584         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8585         * lib/fdopen.c: Include msvc-inval.h.
8586         (fdopen_nothrow): New function.
8587         (rpl_fdopen): Use it.
8588         * modules/fdopen (Depends-on): Add msvc-inval.
8589         * modules/fclose-tests (Depends-on): Add fdopen.
8590         * modules/fflush-tests (Depends-on): Likewise.
8591         * modules/fgetc-tests (Depends-on): Likewise.
8592         * modules/fputc-tests (Depends-on): Likewise.
8593         * modules/fread-tests (Depends-on): Likewise.
8594         * modules/freopen-tests (Depends-on): Likewise.
8595         * modules/fseeko-tests (Depends-on): Likewise.
8596         * modules/ftello-tests (Depends-on): Likewise.
8597         * modules/fwrite-tests  (Depends-on): Likewise.
8598         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8599
8600 2011-09-24  Bruno Haible  <bruno@clisp.org>
8601
8602         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8603         * modules/fgetc-tests (Depends-on): Add unistd.
8604         * modules/fputc-tests (Depends-on): Likewise.
8605         * modules/fread-tests (Depends-on): Likewise.
8606         * modules/fwrite-tests (Depends-on): Likewise.
8607
8608 2011-09-24  Bruno Haible  <bruno@clisp.org>
8609
8610         dup: Simplify autoconf test.
8611         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8612         on gl_MSVC_INVAL's result.
8613
8614 2011-09-24  Bruno Haible  <bruno@clisp.org>
8615
8616         Tests for function fwrite().
8617         * modules/fwrite-tests: New file.
8618         * tests/test-fwrite.c: New file.
8619         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8620
8621         Tests for function fread().
8622         * modules/fread-tests: New file.
8623         * tests/test-fread.c: New file.
8624         * modules/stdio-tests (Depends-on): Add fread-tests.
8625
8626         Activate fputc tests.
8627         * modules/stdio-tests (Depends-on): Add fputc-tests.
8628
8629         Enhance fgetc, fputc tests.
8630         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8631         * tests/test-fputc.c (main): Likewise.
8632
8633 2011-09-24  Bruno Haible  <bruno@clisp.org>
8634
8635         write: Support for MSVC 9.
8636         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8637         is not 1.
8638         * lib/write.c (write_nothrow): New function.
8639         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8640         not 1. Use write_nothrow.
8641         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8642         invalid parameter handler.
8643         (gl_PREREQ_WRITE): New macro.
8644         * modules/write (Depends-on): Add msvc-inval.
8645         (configure.ac): Invoke gl_PREREQ_WRITE.
8646         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8647
8648 2011-09-24  Bruno Haible  <bruno@clisp.org>
8649
8650         read: Fix last commit.
8651         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8652
8653 2011-09-24  Bruno Haible  <bruno@clisp.org>
8654
8655         dup2: Fix last commit.
8656         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8657         (rpl_dup2): Disable fcntl workaround on native Windows.
8658
8659         sigprocmask: Make code safer.
8660         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8661         section that changes macro definitions for this compilation unit.
8662
8663 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8664
8665         dup2: clarify by coalescing Windows-specific material
8666         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8667         "msvc-nothrow.h"' to the Windows-specific section, so that the
8668         Emacs source need not contain these include files.
8669         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8670         Windows-specific fixes into this function rather than just the
8671         nothrow fix, as this shortens and clarifies the code.  Always
8672         define as a function, as that's a bit cleaner than having it be
8673         sometimes a function and sometimes a macro.
8674         (rpl_dup2): Move the Windows-specific stuff out of here and into
8675         ms_windows_dup2.  Don't protect the Haiku-related fix with
8676         "#if !defined __linux__", as the same code also works around
8677         a Linux kernel bug, and it doesn't add any system calls on any
8678         platform.  Add comment about FreeBSD 6.1.
8679
8680         sigprocmask: move #include directive
8681         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8682         Windows-specific section, so that the Emacs source need not
8683         contain msvc-inval.h.
8684
8685 2011-09-23  Bruno Haible  <bruno@clisp.org>
8686
8687         read: Support for MSVC 9.
8688         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8689         is not 1.
8690         * lib/read.c (read_nothrow): New function.
8691         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8692         read_nothrow.
8693         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8694         invalid parameter handler.
8695         (gl_PREREQ_READ): New macro.
8696         * modules/read (Depends-on): Add msvc-inval.
8697         (configure.ac): Invoke gl_PREREQ_READ.
8698         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8699
8700 2011-09-23  Bruno Haible  <bruno@clisp.org>
8701
8702         close: Support for MSVC 9.
8703         * lib/close.c: Include <errno.h>, msvc-inval.h.
8704         (close_nothrow): New function.
8705         (rpl_close): Use it.
8706         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8707         invalid parameter handler.
8708         * modules/close (Depends-on): Add msvc-inval.
8709         * modules/dup2-tests (Depends-on): Add close.
8710         * modules/dup3-tests (Depends-on): Likewise.
8711         * modules/fcntl-tests (Depends-on): Likewise.
8712         * modules/spawn-pipe-tests (Depends-on): Likewise.
8713         * modules/unistd-safer-tests (Depends-on): Likewise.
8714         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8715
8716 2011-09-23  Bruno Haible  <bruno@clisp.org>
8717
8718         New module 'dup'.
8719         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8720         Allow replacement.
8721         * lib/dup.c: New file.
8722         * lib/fchdir.c (rpl_dup): Remove function.
8723         * m4/dup.m4: New file.
8724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8725         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8726         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8727         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8728         * modules/dup: New file.
8729         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8730         'dup' module is in use.
8731         * modules/fdopendir (Depends-on): Add dup.
8732         * modules/fdutimensat-tests (Depends-on): Likewise.
8733         * modules/fts (Depends-on): Likewise.
8734         * modules/futimens-tests (Depends-on): Likewise.
8735         * modules/posix_spawnp-tests (Depends-on): Likewise.
8736         * modules/unistd-safer-tests (Depends-on): Likewise.
8737         * modules/utimens-tests (Depends-on): Likewise.
8738         * doc/posix-functions/dup.texi: Mention the new module and the problem
8739         on MSVC.
8740
8741 2011-09-23  Bruno Haible  <bruno@clisp.org>
8742
8743         getdtablesize: Support for MSVC 9.
8744         * lib/getdtablesize.c: Include msvc-inval.h.
8745         (_setmaxstdio_nothrow): New function.
8746         (_setmaxstdio): Redefine it.
8747         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8748         * modules/getdtablesize (Depends-on): Add msvc-inval.
8749         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8750
8751 2011-09-23  Bruno Haible  <bruno@clisp.org>
8752
8753         signal-h: Rename from signal.
8754         * modules/signal-h: Renamed from modules/signal.
8755         * modules/pthread_sigmask (Depends-on): Update.
8756         * modules/raise (Depends-on): Likewise.
8757         * modules/sigaction (Depends-on): Likewise.
8758         * modules/sigpipe (Depends-on): Likewise.
8759         * modules/sigprocmask (Depends-on): Likewise.
8760         * modules/sys_select (Depends-on): Likewise.
8761         * modules/signal-h-tests: Renamed from modules/signal-tests.
8762         (Files, Depends-on, Makefile.am): Update.
8763         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8764         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8765         (Files, Makefile.am): Update.
8766         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8767         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8768         * modules/signal: New placeholder file.
8769         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8770         * doc/posix-headers/signal.texi: Update.
8771         * NEWS: Mention the change.
8772
8773 2011-09-23  Bruno Haible  <bruno@clisp.org>
8774
8775         sigprocmask: Avoid crashes through signal() on MSVC 9.
8776         * lib/sigprocmask.c: Include msvc-inval.h.
8777         (signal_nothrow): New function.
8778         (signal): Redefine it.
8779         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8780         * modules/sigprocmask (Depends-on): Add msvc-inval.
8781         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8782
8783 2011-09-23  Bruno Haible  <bruno@clisp.org>
8784
8785         Tests for module 'raise'.
8786         * modules/raise-tests: New file.
8787         * tests/test-raise.c: New file.
8788
8789         raise: Support for MSVC.
8790         * lib/signal.in.h (raise): New declaration.
8791         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8792         for native Windows platforms.
8793         * m4/raise.m4: New file.
8794         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8795         HAVE_RAISE, REPLACE_RAISE.
8796         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8797         REPLACE_RAISE.
8798         * modules/raise (Status, Notice): Remove fields.
8799         (Files): Add m4/raise.m4.
8800         (Depends-on): Add signal, msvc-inval.
8801         (configure.ac): Use the common idioms.
8802         (Maintainer): Add me.
8803         * tests/test-signal-c++.cc: Check the signature of raise.
8804         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8805
8806 2011-09-23  Bruno Haible  <bruno@clisp.org>
8807
8808         pipe2: Fix compilation on pre-C99 compilers.
8809         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8810
8811 2011-09-23  Bruno Haible  <bruno@clisp.org>
8812
8813         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8814         * lib/msvc-nothrow.h: New file.
8815         * lib/msvc-nothrow.c: New file.
8816         * m4/msvc-nothrow.m4: New file.
8817         * modules/msvc-nothrow: New file.
8818         * lib/dup2.c: Include msvc-nothrow.h.
8819         (rpl_dup2): No need to protect _get_osfhandle call here.
8820         * lib/accept4.c: Include msvc-nothrow.h.
8821         * lib/error.c: Likewise.
8822         * lib/fcntl.c: Likewise.
8823         * lib/lseek.c: Likewise.
8824         * lib/nonblocking.c: Likewise.
8825         * lib/poll.c: Likewise.
8826         * lib/read.c: Likewise.
8827         * lib/select.c: Likewise.
8828         * lib/sockets.h: Likewise.
8829         * lib/sockets.c: Likewise.
8830         * lib/stdio-read.c: Likewise.
8831         * lib/stdio-write.c: Likewise.
8832         * lib/write.c: Likewise.
8833         * lib/w32sock.h: Likewise.
8834         * lib/w32spawn.h: Likewise.
8835         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8836         * lib/fsync.c: Likewise.
8837         * lib/isapipe.c: Likewise.
8838         * modules/dup2 (Depends-on): Add msvc-nothrow.
8839         * modules/accept4 (Depends-on): Likewise.
8840         * modules/error (Depends-on): Likewise.
8841         * modules/fcntl (Depends-on): Likewise.
8842         * modules/lseek (Depends-on): Likewise.
8843         * modules/nonblocking (Depends-on): Likewise.
8844         * modules/poll (Depends-on): Likewise.
8845         * modules/read (Depends-on): Likewise.
8846         * modules/select (Depends-on): Likewise.
8847         * modules/sockets (Depends-on): Likewise.
8848         * modules/sigpipe (Depends-on): Likewise.
8849         * modules/write (Depends-on): Likewise.
8850         * modules/accept (Depends-on): Likewise.
8851         * modules/bind (Depends-on): Likewise.
8852         * modules/connect (Depends-on): Likewise.
8853         * modules/gethostname (Depends-on): Likewise.
8854         * modules/getpeername (Depends-on): Likewise.
8855         * modules/getsockname (Depends-on): Likewise.
8856         * modules/getsockopt (Depends-on): Likewise.
8857         * modules/ioctl (Depends-on): Likewise.
8858         * modules/listen (Depends-on): Likewise.
8859         * modules/recv (Depends-on): Likewise.
8860         * modules/recvfrom (Depends-on): Likewise.
8861         * modules/send (Depends-on): Likewise.
8862         * modules/sendto (Depends-on): Likewise.
8863         * modules/setsockopt (Depends-on): Likewise.
8864         * modules/shutdown (Depends-on): Likewise.
8865         * modules/socket (Depends-on): Likewise.
8866         * modules/execute (Depends-on): Likewise.
8867         * modules/spawn-pipe (Depends-on): Likewise.
8868         * modules/flock (Depends-on): Likewise.
8869         * modules/fsync (Depends-on): Likewise.
8870         * modules/isapipe (Depends-on): Likewise.
8871         * tests/test-cloexec.c: Include msvc-nothrow.h.
8872         * tests/test-dup-safer.c: Likewise.
8873         * tests/test-dup2.c: Likewise.
8874         * tests/test-dup3.c: Likewise.
8875         * tests/test-fcntl.c: Likewise.
8876         * tests/test-pipe.c: Likewise.
8877         * tests/test-pipe2.c: Likewise.
8878         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8879         * modules/unistd-safer-tests (Depends-on): Likewise.
8880         * modules/dup2-tests (Depends-on): Likewise.
8881         * modules/dup3-tests (Depends-on): Likewise.
8882         * modules/fcntl-tests (Depends-on): Likewise.
8883         * modules/pipe-posix-tests (Depends-on): Likewise.
8884         * modules/pipe2-tests (Depends-on): Likewise.
8885
8886 2011-09-23  Bruno Haible  <bruno@clisp.org>
8887
8888         dup2: Make code more maintainable.
8889         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8890         (rpl_dup2): Use it.
8891         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8892         * modules/dup2 (configure.ac): Invoke it.
8893         Reported by Paul Eggert.
8894
8895 2011-09-23  Bruno Haible  <bruno@clisp.org>
8896
8897         msvc-inval: Fix compilation error.
8898         * lib/msvc-inval.h: Include <excpt.h>.
8899
8900 2011-09-23  Bruno Haible  <bruno@clisp.org>
8901
8902         mkdir: Tweak for MSVC 9.
8903         * lib/sys_stat.in.h: Update comments.
8904         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8905
8906         Tests for module 'chdir'.
8907         * modules/chdir-tests: New file.
8908         * tests/test-chdir.c: New file.
8909
8910         New module 'chdir'.
8911         * modules/chdir: New file.
8912         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8913         (chdir): New declaration.
8914         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8915         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8916         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8917         * tests/test-unistd-c++.cc: Check signature of chdir.
8918         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8919         * modules/chdir-long (Depends-on): Add chdir.
8920         * modules/fchdir (Depends-on): Likewise.
8921         * modules/rename (Depends-on): Likewise.
8922         * modules/savewd (Depends-on): Likewise.
8923
8924         rmdir: Support for mingw, MSVC 9.
8925         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8926         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8927
8928         getcwd: Tweak for MSVC 9.
8929         * lib/unistd.in.h: Update comments.
8930         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8931
8932 2011-09-22  Bruno Haible  <bruno@clisp.org>
8933
8934         strerror_r-posix: Avoid a link error on MSVC.
8935         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8936         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8937
8938 2011-09-22  Bruno Haible  <bruno@clisp.org>
8939
8940         select: Avoid link errors on MSVC.
8941         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8942         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8943         * modules/pselect (Link): Likewise.
8944         * NEWS: Mention the change.
8945         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8946         test-select-stdin against $(LIB_SELECT).
8947         * modules/pselect-tests (Makefile.am): Link test-pselect against
8948         $(LIB_SELECT).
8949
8950 2011-09-22  Bruno Haible  <bruno@clisp.org>
8951
8952         select: Avoid compilation error on MSVC.
8953         * lib/select.c: Don't include <stdbool.h>.
8954
8955 2011-09-21  Bruno Haible  <bruno@clisp.org>
8956
8957         Consolidate all uses of PATH_MAX in *.m4 files.
8958         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8959         macros.
8960         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8961         and gl_PATHMAX_SNIPPET.
8962         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8963         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8964         * modules/chdir-long (Files): Add m4/pathmax.m4.
8965         * modules/getcwd (Files): Likewise.
8966
8967 2011-09-21  Bruno Haible  <bruno@clisp.org>
8968
8969         ftruncate: Un-deprecate, concentrate on Win32 support.
8970         * modules/ftruncate (Status, Notice): Remove sections.
8971         (Depends-on): Add largefile.
8972         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8973         non-mingw platforms.
8974         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8975         include <io.h>.
8976         * modules/perror-tests (Depends-on): Add ftruncate.
8977         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8978         'ftruncate' module.
8979
8980 2011-09-21  Bruno Haible  <bruno@clisp.org>
8981
8982         Add dependencies to new dirent related modules.
8983         * modules/opendir (Depends-on): Add closedir.
8984         * modules/getcwd (Depends-on): Add opendir, closedir.
8985         * modules/dirent-safer-tests (Depends-on): Likewise.
8986         * modules/fdopendir-tests (Depends-on): Likewise.
8987         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8988         * modules/renameat-tests (Depends-on): Likewise.
8989
8990 2011-09-21  Bruno Haible  <bruno@clisp.org>
8991
8992         opendir: Avoid compilation error on mingw.
8993         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8994         * modules/opendir (Depends-on): Add unistd.
8995
8996 2011-09-21  Bruno Haible  <bruno@clisp.org>
8997
8998         ftruncate tests: Avoid a test failure on mingw.
8999         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9000
9001 2011-09-21  Bruno Haible  <bruno@clisp.org>
9002
9003         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9004         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9005         native Windows.
9006
9007 2011-09-21  Bruno Haible  <bruno@clisp.org>
9008
9009         New module 'fdopen'.
9010         * lib/stdio.in.h (fdopen): New declaration.
9011         * lib/fdopen.c: New file.
9012         * m4/fdopen.m4: New file.
9013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9014         REPLACE_FDOPEN.
9015         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9016         REPLACE_FDOPEN.
9017         * modules/fdopen: New file.
9018         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9019         * tests/test-stdio-c++.cc: Check signature of fdopen.
9020         * doc/posix-functions/fdopen.texi: Mention the new module.
9021
9022 2011-09-21  Bruno Haible  <bruno@clisp.org>
9023
9024         unlockpt tests: Avoid test failure on NetBSD 5.1.
9025         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9026         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9027
9028 2011-09-21  Bruno Haible  <bruno@clisp.org>
9029
9030         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9031         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9032         * tests/test-getlogin_r.c (main): Likewise.
9033
9034 2011-09-20  Bruno Haible  <bruno@clisp.org>
9035
9036         time tests: Don't require pid_t.
9037         * doc/posix-headers/time.texi: Revert last change.
9038         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9039         * tests/test-time.c: Comment out the check for pid_t.
9040
9041 2011-09-20  Bruno Haible  <bruno@clisp.org>
9042
9043         fsync tests: Avoid a test failure on mingw.
9044         * tests/test-fsync.c (main): Allow a failure with EIO.
9045
9046 2011-09-20  Bruno Haible  <bruno@clisp.org>
9047
9048         euidaccess: Update comments.
9049         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9050
9051 2011-09-20  Bruno Haible  <bruno@clisp.org>
9052
9053         Ensure EBADF returns for socket functions on mingw.
9054         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9055         descriptor is invalid.
9056         * lib/bind.c (rpl_bind): Likewise.
9057         * lib/connect.c (rpl_connect): Likewise.
9058         * lib/getpeername.c (rpl_getpeername): Likewise.
9059         * lib/getsockname.c (rpl_getsockname): Likewise.
9060         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9061         * lib/listen.c (rpl_listen): Likewise.
9062         * lib/recv.c (rpl_recv): Likewise.
9063         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9064         * lib/send.c (rpl_send): Likewise.
9065         * lib/sendto.c (rpl_sendto): Likewise.
9066         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9067         * lib/shutdown.c (rpl_shutdown): Likewise.
9068
9069 2011-09-20  Bruno Haible  <bruno@clisp.org>
9070
9071         select tests: EBADF tests.
9072         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9073         test_bad_fd): New functions.
9074         (test_function): Invoke also test_bad_fd.
9075
9076 2011-09-20  Bruno Haible  <bruno@clisp.org>
9077
9078         Tests for module 'posix_spawn_file_actions_addopen.
9079         * modules/posix_spawn_file_actions_addopen-tests: New file.
9080         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9081
9082         Tests for module 'posix_spawn_file_actions_adddup2'.
9083         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9084         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9085
9086         Tests for module 'posix_spawn_file_actions_addclose'.
9087         * modules/posix_spawn_file_actions_addclose-tests: New file.
9088         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9089
9090 2011-09-20  Bruno Haible  <bruno@clisp.org>
9091
9092         Tests for module 'unlockpt'.
9093         * modules/unlockpt-tests: New file.
9094         * tests/test-unlockpt.c: New file.
9095         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9096
9097         Tests for module 'grantpt'.
9098         * modules/grantpt-tests: New file.
9099         * tests/test-grantpt.c: New file.
9100         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9101
9102 2011-09-20  Bruno Haible  <bruno@clisp.org>
9103
9104         freopen tests: EBADF tests.
9105         * tests/test-freopen.c: Include errno.h, unistd.h.
9106         (main): Add tests for EBADF, commented out for the moment.
9107
9108         fclose tests: EBADF tests.
9109         * tests/test-fclose.c (main): Add tests for EBADF.
9110
9111         fflush tests: EBADF tests.
9112         * tests/test-fflush.c: Include errno.h, macros.h.
9113         (main): Add tests for EBADF.
9114
9115         ftello tests: EBADF tests.
9116         * tests/test-ftello4.sh: New file.
9117         * tests/test-ftello4.c: New file.
9118         * modules/ftello-tests (Files): Add them.
9119         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9120
9121         fseeko tests: EBADF tests.
9122         * tests/test-fseeko4.sh: New file.
9123         * tests/test-fseeko4.c: New file.
9124         * modules/fseeko-tests (Files): Add them.
9125         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9126
9127         Tests for function fputc().
9128         * modules/fputc-tests: New file.
9129         * tests/test-fputc.c: New file.
9130         * modules/stdio-tests (Depends-on): Add fputc-tests.
9131
9132         Tests for function fgetc().
9133         * modules/fgetc-tests: New file.
9134         * tests/test-fgetc.c: New file.
9135         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9136
9137         Tests for function fdopen().
9138         * modules/fdopen-tests: New file.
9139         * tests/test-fdopen.c: New file.
9140         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9141
9142         Tests for module 'vdprintf'.
9143         * modules/vdprintf-tests: New file.
9144         * tests/test-vdprintf.c: New file.
9145
9146         Tests for module 'dprintf'.
9147         * modules/dprintf-tests: New file.
9148         * tests/test-dprintf.c: New file.
9149
9150 2011-09-20  Bruno Haible  <bruno@clisp.org>
9151
9152         Tests for module 'ioctl'.
9153         * modules/ioctl-tests: New file.
9154         * tests/test-ioctl.c: New file.
9155
9156 2011-09-20  Bruno Haible  <bruno@clisp.org>
9157
9158         fcntl tests: EBADF tests.
9159         * tests/test-fcntl.c (main): Add more tests for EBADF.
9160
9161 2011-09-20  Bruno Haible  <bruno@clisp.org>
9162
9163         utimensat tests: EBADF tests.
9164         * tests/test-utimensat.c (main): Add tests for EBADF.
9165
9166         renameat tests: EBADF tests.
9167         * tests/test-renameat.c (main): Add tests for EBADF.
9168
9169         mkfifoat tests: EBADF tests.
9170         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9171
9172         readlinkat tests: EBADF tests.
9173         * tests/test-readlinkat.c (main): Add tests for EBADF.
9174
9175         symlinkat tests: EBADF tests.
9176         * tests/test-symlinkat.c (main): Add tests for EBADF.
9177
9178         linkat tests: EBADF tests.
9179         * tests/test-linkat.c (main): Add tests for EBADF.
9180
9181         Tests for module 'faccessat'.
9182         * modules/faccessat-tests: New file.
9183         * tests/test-faccessat.c: New file.
9184
9185         fdopendir tests: EBADF tests.
9186         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9187
9188         openat tests: EBADF tests.
9189         * tests/test-fchownat.c (main): Add tests for EBADF.
9190         * tests/test-fstatat.c (main): Likewise.
9191         * tests/test-mkdirat.c (main): Likewise.
9192         * tests/test-openat.c (main): Likewise.
9193         * tests/test-unlinkat.c (main): Likewise.
9194         * tests/test-fchmodat.c: New file.
9195         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9196         (Makefile.am): Also run 'test-fchmodat'.
9197
9198 2011-09-20  Bruno Haible  <bruno@clisp.org>
9199
9200         utimens, futimens, fdutimensat tests: EBADF tests.
9201         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9202
9203         Tests for function fstat().
9204         * modules/fstat-tests: New file.
9205         * tests/test-fstat.c: New file.
9206         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9207
9208 2011-09-20  Bruno Haible  <bruno@clisp.org>
9209
9210         test-ttyname_r tests: EBADF tests.
9211         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9212
9213         Tests for module 'isatty'.
9214         * modules/isatty-tests: New file.
9215         * tests/test-isatty.c: New file.
9216
9217         Tests for module 'write'.
9218         * modules/write-tests: New file.
9219         * tests/test-write.c: New file.
9220
9221         Tests for module 'read'.
9222         * modules/read-tests: New file.
9223         * tests/test-read.c: New file.
9224
9225         pwrite tests: EBADF tests.
9226         * tests/test-pwrite.c (main): Add tests for EBADF.
9227
9228         pread tests: EBADF tests.
9229         * tests/test-pread.c (main): Add tests for EBADF.
9230
9231         lseek tests: EBADF tests.
9232         * tests/test-lseek.c (main): Add more tests for EBADF.
9233
9234         Tests for module 'ftruncate'.
9235         * modules/ftruncate-tests: New file.
9236         * tests/test-ftruncate.sh: New file.
9237         * tests/test-ftruncate.c: New file.
9238
9239         fsync tests: EBADF tests.
9240         * tests/test-fsync.c (main): Add more tests for EBADF.
9241
9242         fdatasync tests: EBADF tests.
9243         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9244
9245         Tests for module 'fchown'.
9246         * modules/fchown-tests: New file.
9247         * tests/test-fchown.c: New file.
9248
9249         Tests for module 'fchmod'.
9250         * modules/fchmod-tests: New file.
9251         * tests/test-fchmod.c: New file.
9252
9253         fchdir tests: EBADF tests.
9254         * tests/test-fchdir.c (main): Add more tests for EBADF.
9255
9256         dup2 tests: EBADF tests.
9257         * tests/test-dup2.c (main): Add more tests for EBADF.
9258
9259         Tests for module 'dup'.
9260         * modules/dup-tests: New file.
9261         * tests/test-dup.c: New file.
9262
9263         Tests for module 'close'.
9264         * modules/close-tests: New file.
9265         * tests/test-close.c: New file.
9266
9267 2011-09-20  Bruno Haible  <bruno@clisp.org>
9268
9269         Tests for module 'shutdown'.
9270         * modules/shutdown-tests: New file.
9271         * tests/test-shutdown.c: New file.
9272
9273         Tests for module 'setsockopt'.
9274         * modules/setsockopt-tests: New file.
9275         * tests/test-setsockopt.c: New file.
9276
9277         Tests for module 'sendto'.
9278         * modules/sendto-tests: New file.
9279         * tests/test-sendto.c: New file.
9280
9281         Tests for module 'send'.
9282         * modules/send-tests: New file.
9283         * tests/test-send.c: New file.
9284
9285         Tests for module 'recvfrom'.
9286         * modules/recvfrom-tests: New file.
9287         * tests/test-recvfrom.c: New file.
9288
9289         Tests for module 'recv'.
9290         * modules/recv-tests: New file.
9291         * tests/test-recv.c: New file.
9292
9293         Tests for module 'listen'.
9294         * modules/listen-tests: New file.
9295         * tests/test-listen.c: New file.
9296
9297         Tests for module 'getsockopt'.
9298         * modules/getsockopt-tests: New file.
9299         * tests/test-getsockopt.c: New file.
9300
9301         Tests for module 'getsockname'.
9302         * modules/getsockname-tests: New file.
9303         * tests/test-getsockname.c: New file.
9304
9305         Tests for module 'getpeername'.
9306         * modules/getpeername-tests: New file.
9307         * tests/test-getpeername.c: New file.
9308
9309         Tests for module 'connect'.
9310         * modules/connect-tests: New file.
9311         * tests/test-connect.c: New file.
9312
9313         Tests for module 'bind'.
9314         * modules/bind-tests: New file.
9315         * tests/test-bind.c: New file.
9316
9317         accept4 tests: Fix for native Windows.
9318         * tests/test-accept4.c: Include sockets.h.
9319         (main): Invoke gl_sockets_startup.
9320         * modules/accept4-tests (Depends-on): Add sockets.
9321
9322         accept tests: Fix for native Windows.
9323         * tests/test-accept.c: Include sockets.h.
9324         (main): Invoke gl_sockets_startup.
9325         * modules/accept-tests (Depends-on): Add sockets.
9326
9327 2011-09-19  Bruno Haible  <bruno@clisp.org>
9328
9329         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9330         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9331         do...while(0).
9332         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9333         Suggested by Paul Eggert.
9334
9335 2011-09-19  Bruno Haible  <bruno@clisp.org>
9336
9337         sched: Ensure pid_t is defined.
9338         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9339         not define pid_t.
9340         * lib/sched.in.h: Include <sys/types.h>.
9341         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9343
9344 2011-09-19  Bruno Haible  <bruno@clisp.org>
9345
9346         msvc-inval: Ensure the entire expansion is a single statement.
9347         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9348         of braces.
9349
9350 2011-09-19  Jim Meyering  <meyering@redhat.com>
9351
9352         tests: use printf, not echo in init.sh's warn_ function
9353         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9354         misbehave when given strings containing a backslash or starting
9355         with e.g., -n.  James Youngman suggested setting IFS.
9356
9357 2011-09-19  Eric Blake  <eblake@redhat.com>
9358
9359         futimens: enhance test
9360         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9361         closed non-negative fd.
9362
9363         date: accept 'hence' as opposite of 'ago'
9364         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9365         * tests/test-parse-datetime.c (main): Enhance test.
9366         Suggested by Jesse Wilson.
9367
9368 2011-09-19  Jim Meyering  <meyering@redhat.com>
9369
9370         getcwd: don't fail in a deep directory on a system without openat
9371         Before this change, getcwd would fail when called from a directory
9372         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9373         the non-openat implementation used "..", "../..", "../../..", etc.
9374         to access ancestor directories.  With too many, that string would
9375         be longer than PATH_MAX.
9376         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9377         using gnulib's openat replacement.
9378         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9379         we're using the replacement function.
9380
9381 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9382
9383         maint.mk: avoid warnings from perl about missing files
9384         * top/maint.mk (def_sym_regex): Ignore files listed in
9385         $(gl_other_headers_) that do not exist, say because a project
9386         does not use a corresponding module.
9387
9388 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9389
9390         stat: use pathmax.h only if needed
9391         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9392         This is better for Emacs, which does not have a mingw port and
9393         therefore can avoid the pathmax module.
9394
9395         utimens: remove dependency on dup2
9396         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9397         to work around the Linux kernel bug.
9398         * modules/utimens (Depends-on): Remove dup2.
9399
9400 2011-09-18  Bruno Haible  <bruno@clisp.org>
9401
9402         inet_ntop, inet_pton: Look for it also in libresolv.
9403         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9404         libnsl, search for it in libresolv.
9405         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9406         Needed on Solaris 7.
9407
9408 2011-09-18  Bruno Haible  <bruno@clisp.org>
9409
9410         accept, accept4 tests: Avoid link error on Solaris.
9411         * modules/accept-tests (Makefile.am): Link test-accept against
9412         $(LIBSOCKET).
9413         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9414         $(LIBSOCKET).
9415
9416         accept4: Avoid link error on Solaris.
9417         * modules/accept4 (Link): New section.
9418
9419         socket functions: Avoid link errors on Solaris.
9420         * modules/accept (Depends-on): Add socketlib.
9421         (Link): New section.
9422         * modules/bind (Depends-on): Add socketlib.
9423         (Link): New section.
9424         * modules/connect (Depends-on): Add socketlib.
9425         (Link): New section.
9426         * modules/getpeername (Depends-on): Add socketlib.
9427         (Link): New section.
9428         * modules/getsockname (Depends-on): Add socketlib.
9429         (Link): New section.
9430         * modules/getsockopt (Depends-on): Add socketlib.
9431         (Link): New section.
9432         * modules/listen (Depends-on): Add socketlib.
9433         (Link): New section.
9434         * modules/recv (Depends-on): Add socketlib.
9435         (Link): New section.
9436         * modules/recvfrom (Depends-on): Add socketlib.
9437         (Link): New section.
9438         * modules/send (Depends-on): Add socketlib.
9439         (Link): New section.
9440         * modules/sendto (Depends-on): Add socketlib.
9441         (Link): New section.
9442         * modules/setsockopt (Depends-on): Add socketlib.
9443         (Link): New section.
9444         * modules/shutdown (Depends-on): Add socketlib.
9445         (Link): New section.
9446         * modules/socket (Depends-on): Add socketlib.
9447         (Link): New section.
9448
9449 2011-09-18  Bruno Haible  <bruno@clisp.org>
9450
9451         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9452         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9453         than 5 seconds.
9454         * modules/ptsname-tests (configure.ac): Test for alarm.
9455
9456 2011-09-18  Bruno Haible  <bruno@clisp.org>
9457
9458         posix_spawn_file_actions_add*: Fix module dependencies.
9459         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9460         posix_spawn_file_actions_init.
9461         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9462         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9463
9464 2011-09-18  Bruno Haible  <bruno@clisp.org>
9465
9466         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9467         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9468         * tests/test-renameat.c (main): Likewise.
9469
9470 2011-09-18  Bruno Haible  <bruno@clisp.org>
9471
9472         Tests for module 'accept4'.
9473         * modules/accept4-tests: New file.
9474         * tests/test-accept4.c: New file.
9475
9476 2011-09-18  Bruno Haible  <bruno@clisp.org>
9477
9478         Tests for module 'accept'.
9479         * modules/accept-tests: New file.
9480         * tests/test-accept.c: New file.
9481
9482 2011-09-18  Bruno Haible  <bruno@clisp.org>
9483
9484         dup2: Support for MSVC.
9485         * lib/dup2.c: Include msvc-inval.h.
9486         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9487         _get_osfhandle calls.
9488         * modules/dup2 (Depends-on): Add msvc-inval.
9489         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9490
9491         New module 'msvc-inval'.
9492         * lib/msvc-inval.h: New file.
9493         * lib/msvc-inval.c: New file.
9494         * m4/msvc-inval.m4: New file.
9495         * modules/msvc-inval: New file.
9496
9497 2011-09-17  Bruno Haible  <bruno@clisp.org>
9498
9499         Tests for module 'pclose'.
9500         * modules/pclose-tests: New file.
9501
9502         New module 'pclose'.
9503         * lib/stdio.in.h (pclose): New declaration.
9504         * lib/pclose.c: New file.
9505         * m4/pclose.m4: New file.
9506         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9507         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9508         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9509         * modules/pclose: New file.
9510         * modules/popen-tests (Depends-on): Add pclose.
9511         * modules/popen-safer-tests (Depends-on): Likewise.
9512         * doc/posix-functions/pclose.texi: Mention the new module.
9513
9514 2011-09-17  Bruno Haible  <bruno@clisp.org>
9515
9516         popen: Support for MSVC.
9517         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9518         * lib/popen.c (popen): Provide alternate definition for native Windows.
9519         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9521         * modules/popen (Depends-on, configure.ac): Update condition.
9522         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9523         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9524         fixed.
9525
9526 2011-09-17  Bruno Haible  <bruno@clisp.org>
9527
9528         isnanl, isnand, isnanf: Work around MSVC bug.
9529         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9530
9531 2011-09-17  Bruno Haible  <bruno@clisp.org>
9532
9533         sys_socket tests: Fix recent mistake.
9534         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9535
9536 2011-09-17  Bruno Haible  <bruno@clisp.org>
9537
9538         putenv: Support for MSVC.
9539         * modules/putenv (Depends-on): Add environ.
9540         * lib/putenv.c (environ): Disable declaration.
9541         * lib/unistd.in.h: Update comment.
9542
9543 2011-09-17  Bruno Haible  <bruno@clisp.org>
9544
9545         math: Avoid macro redefinition warnings on MSVC.
9546         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9547         Undefine before redefining.
9548
9549 2011-09-17  Bruno Haible  <bruno@clisp.org>
9550
9551         doc: Mention functions which are declared as macros.
9552         * doc/posix-functions/*[fl].texi: Mention that some functions are
9553         defined as macros with arguments only.
9554
9555 2011-09-17  Bruno Haible  <bruno@clisp.org>
9556
9557         Add dependencies to new dirent related modules.
9558         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9559         * modules/fts (Depends-on): Likewise.
9560         * modules/glob (Depends-on): Likewise.
9561         * modules/savedir (Depends-on): Likewise.
9562         * modules/scandir (Depends-on): Likewise.
9563         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9564         * modules/fdopendir (Depends-on): Add opendir.
9565
9566 2011-09-17  Bruno Haible  <bruno@clisp.org>
9567
9568         inet_pton: Support for MSVC on Windows Vista or newer.
9569         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9570         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9571         HAVE_DECL_INET_PTON is defined.
9572         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9573         On platforms with <winsock2.h>, test whether inet_pton is declared in
9574         <ws2tcpip.h>. If so, arrange to replace it.
9575         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9576         REPLACE_INET_PTON.
9577         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9578         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9579         (Depends-on, configure.ac): Update condition.
9580         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9581
9582 2011-09-17  Bruno Haible  <bruno@clisp.org>
9583
9584         inet_ntop: Support for MSVC on Windows Vista or newer.
9585         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9586         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9587         HAVE_DECL_INET_NTOP is defined.
9588         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9589         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9590         <ws2tcpip.h>. If so, arrange to replace it.
9591         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9592         REPLACE_INET_NTOP.
9593         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9594         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9595         (Depends-on, configure.ac): Update condition.
9596         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9597
9598 2011-09-16  Eric Blake  <eblake@redhat.com>
9599
9600         test-fsync: yet another enhancement
9601         * tests/test-fsync.c (main): Also test behavior on read-only text
9602         file.
9603
9604 2011-09-16  Bruno Haible  <bruno@clisp.org>
9605
9606         Enhance fsync, fdatasync tests.
9607         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9608         * tests/test-fdatasync.c (main): Likewise.
9609
9610 2011-09-16  Bruno Haible  <bruno@clisp.org>
9611
9612         Support for MSVC compiler: Ensure mode_t gets defined.
9613         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9614         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9616         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9617         * tests/test-fcntl-h.c: Check that mode_t is defined.
9618         * tests/test-sys_stat.c: Likewise.
9619         * tests/test-sys_types.c: Likewise.
9620         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9621         * doc/posix-headers/sys_stat.texi: Likewise.
9622         * doc/posix-headers/sys_types.texi: Likewise.
9623
9624 2011-09-16  Bruno Haible  <bruno@clisp.org>
9625
9626         sys_stat: Support for MSVC.
9627         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9628         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9629         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9630         MSVC.
9631
9632 2011-09-16  Bruno Haible  <bruno@clisp.org>
9633
9634         Support for MSVC compiler: Ensure off_t gets defined.
9635         * lib/unistd.in.h: Include <sys/types.h>.
9636         * tests/test-fcntl-h.c: Check that off_t is defined.
9637         * tests/test-sys_stat.c: Likewise.
9638         * tests/test-sys_types.c: Likewise.
9639
9640 2011-09-16  Eric Blake  <eblake@redhat.com>
9641
9642         fdatasync: port to Solaris
9643         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9644         * modules/fdatasync (Link): Document it.
9645         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9646
9647         fdatasync: port to MacOS X 10.7
9648         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9649         declared.
9650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9651         * modules/unistd (Makefile.am): Substitute it.
9652         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9653         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9654
9655         fdatasync: minor improvements
9656         * modules/fdatasync (Depends-on): Add condition for fsync.
9657         * lib/fdatasync.c (fdatasync): Add comment.
9658         * tests/test-unistd-c++.cc: Test fdatasync.
9659
9660         unistd: update refs to newer POSIX
9661         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9662         Suggested by Bruno Haible.
9663
9664         fdatasync: new module
9665         * modules/fsync (Description): Document difference to fdatasync.
9666         * modules/fdatasync: New module.
9667         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9668         * lib/fdatasync.c (fdatasync): Likewise.
9669         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9670         defaults.
9671         * modules/unistd (Makefile.am): Set witnesses.
9672         * lib/unistd.in.h (fdatasync): Declare.
9673         * MODULES.html.sh: Document it.
9674         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9675         * modules/fdatasync-tests: New test.
9676         * tests/test-fdatasync.c: Likewise.
9677
9678 2011-09-16  Eric Blake  <eblake@redhat.com>
9679
9680         test-fsync: enhance tests
9681         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9682         * tests/test-fsync.c (main): Enhance test.
9683
9684 2011-09-15  Bruno Haible  <bruno@clisp.org>
9685
9686         Support for MSVC compiler: Ensure ssize_t gets defined.
9687         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9688         * doc/posix-headers/stdio.texi: Likewise.
9689         * modules/stdio (Depends-on): Add ssize_t.
9690         * modules/sys_socket (Depends-on): Likewise.
9691         * modules/sys_types (Depends-on): Likewise.
9692         * modules/sys_uio (Depends-on): Likewise.
9693         * modules/unistd (Depends-on): Likewise.
9694         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9695         * tests/test-sys_types.c: Check that ssize_t is defined.
9696
9697 2011-09-14  Bruno Haible  <bruno@clisp.org>
9698
9699         Avoid using #, the m4 comment starter character, near brackets.
9700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9701         delimiter character in sed expressions.
9702         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9703         Suggested by Eric Blake.
9704
9705         Properly quote AC_CHECK_DECLS' 4th argument.
9706         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9707         argument.
9708         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9709         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9710         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9711         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9712         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9713         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9714         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9715         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9716         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9717         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9718         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9719         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9720         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9721         * m4/isinf.m4 (gl_ISINF): Likewise.
9722         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9723         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9724         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9725         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9726         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9727         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9728         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9729         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9730         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9731         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9732         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9735         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9737         Reported by Eric Blake.
9738
9739         Properly quote AC_CHECK_DECL's 4th argument.
9740         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9741         argument.
9742         * m4/argp.m4 (gl_ARGP): Likewise.
9743         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9744         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9745         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9746         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9747         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9748         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9750         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9751         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9752         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9753         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9754         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9755         Reported by Eric Blake.
9756
9757 2011-09-14  Eric Blake  <eblake@redhat.com>
9758
9759         opendir: avoid compile warning
9760         * lib/opendir.c (includes): Always include errno.h.
9761         Reported by Tatsuro MATSUOKA.
9762
9763 2011-09-14  Jim Meyering  <meyering@redhat.com>
9764
9765         maint.mk: sc_tight_scope: propagate failure from sub-make
9766         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9767         Reported by Martin von Gagern.
9768
9769 2011-09-13  Bruno Haible  <bruno@clisp.org>
9770
9771         tempname: Support for MSVC.
9772         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9773         MSVC.
9774         * modules/tempname (Depends-on): Add fcntl-h.
9775
9776 2011-09-13  Bruno Haible  <bruno@clisp.org>
9777
9778         sys_time: Support for MSVC.
9779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9780         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9781         include <winsock2.h>.
9782         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9783         function declarations that collide with POSIX.
9784         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9785         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9786
9787 2011-09-13  Bruno Haible  <bruno@clisp.org>
9788
9789         stat: Support for MSVC.
9790         * lib/stat.c: Include pathmax.h.
9791         * modules/stat (Depends-on): Add pathmax.
9792
9793         pathmax: Support for native Windows.
9794         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9795
9796 2011-09-12  Bruno Haible  <bruno@clisp.org>
9797
9798         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9799         * lib/dirent.in.h (struct dirent): New type.
9800         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9801         DT_WHT): New macros.
9802         (DIR): New type.
9803         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9804         (readdir, rewinddir): New declarations.
9805         * lib/dirent-private.h: New file.
9806         * lib/opendir.c: New file.
9807         * lib/readdir.c: New file.
9808         * lib/rewinddir.c: New file.
9809         * lib/closedir.c: New file.
9810         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9811         * m4/opendir.m4: New file.
9812         * m4/readdir.m4: New file.
9813         * m4/rewinddir.m4: New file.
9814         * m4/closedir.m4: New file.
9815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9816         REPLACE_CLOSEDIR here.
9817         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9818         readdir, rewinddir are declared.
9819         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9820         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9821         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9822         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9823         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9824         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9825         * modules/opendir: New file.
9826         * modules/readdir: New file.
9827         * modules/rewinddir: New file.
9828         * modules/closedir: New file.
9829         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9830         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9831         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9832         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9833         * NEWS: Mention the 'fchdir' change.
9834
9835 2011-09-11  Bruno Haible  <bruno@clisp.org>
9836
9837         asm-underscore.m4: Support for MSVC.
9838         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9839         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9840
9841 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9842
9843         Doc about crypt functions.
9844         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9845         needing for _GNU_SOURCE to get crypt.
9846         * doc/posix-functions/encrypt.texi: Likewise.
9847         * doc/posix-functions/setkey.texi: Likewise.
9848
9849 2011-09-11  Bruno Haible  <bruno@clisp.org>
9850
9851         doc: Update regarding MSVC 9.
9852         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9853         tested".
9854         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9855         * doc/posix-headers/*.texi: Likewise.
9856         * doc/pastposix-functions/*.texi: Likewise.
9857         * doc/glibc-functions/*.texi: Likewise.
9858         * doc/glibc-headers/*.texi: Likewise.
9859
9860 2011-09-11  Bruno Haible  <bruno@clisp.org>
9861
9862         unistd et al.: Don't assume <unistd.h> exists.
9863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9864         does not exist.
9865         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9866         exist. But include <stdlib.h>.
9867         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9868         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9869         symlink() does not exist.
9870         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9871         include <io.h> instead.
9872         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9873         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9874         include <direct.h> instead.
9875         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9876         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9877         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9878         <io.h> instead.
9879         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9880         correctly if the system does not have hard links.
9881         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9882         <direct.h> instead.
9883         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9884         it when looking for function declarations.
9885         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9886         <direct.h> and <io.h> instead.
9887         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9888
9889 2011-09-11  Bruno Haible  <bruno@clisp.org>
9890
9891         strcase: Support for MSVC.
9892         * modules/strcase (Status, Notice): Remove obsoletion mark.
9893         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9894         * doc/posix-functions/strncasecmp.texi: Likewise.
9895
9896         strings: Don't assume <strings.h> exists.
9897         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9898         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9899         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9900         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9901
9902 2011-09-11  Bruno Haible  <bruno@clisp.org>
9903
9904         dirent: Don't assume <dirent.h> exists.
9905         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9906         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9907         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9908         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9909
9910 2011-09-11  Bruno Haible  <bruno@clisp.org>
9911
9912         Fix wint_t on MSVC.
9913         * lib/wchar.in.h (wint_t): On MSVC, override it.
9914         * lib/wctype.in.h (wint_t): Likewise.
9915         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9916         MSVC.
9917         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9918         * doc/posix-headers/wctype.texi: Likewise.
9919
9920 2011-09-11  Bruno Haible  <bruno@clisp.org>
9921
9922         sys_types: Fix typo.
9923         * lib/sys_types.in.h: Fix typo in comment.
9924         Reported by Paul Eggert.
9925
9926         Support for MSVC compiler: Ensure size_t gets defined.
9927         * modules/strings (Depends-on): Add 'sys_types'.
9928         * modules/sys_uio (Depends-on): Likewise.
9929         * lib/sys_uio.in.h: Update comment.
9930
9931         C++ tests for module 'sys_types'.
9932         * modules/sys_types-c++-tests: New file.
9933         * tests/test-sys_types-c++.cc: New file.
9934
9935         Tests for module 'sys_types'.
9936         * modules/sys_types-tests: New file.
9937         * tests/test-sys_types.c: New file.
9938
9939         New module 'sys_types'.
9940         * lib/sys_types.in.h: New file.
9941         * m4/sys_types_h.m4: New file.
9942         * modules/sys_types: New file.
9943         * doc/posix-headers/sys_types.texi: Mention the new module and the
9944         size_t problem on MSVC 9.
9945
9946 2011-09-11  Bruno Haible  <bruno@clisp.org>
9947
9948         Support for MSVC compiler: Avoid division by a literal 0.
9949         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9950         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9951         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9952         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9953         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9954         * tests/infinity.h: New file.
9955         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9956         on MSVC.
9957         * tests/test-ceilf1.c: Include infinity.h.
9958         (main): Use Infinityf.
9959         * tests/test-ceil1.c: Include infinity.h.
9960         (main): Use Infinityd.
9961         * tests/test-ceill.c: Include infinity.h.
9962         (main): Use Infinityl.
9963         * tests/test-dprintf-posix.c: Include infinity.h.
9964         (test_function): Use Infinityd.
9965         * tests/test-floorf1.c: Include infinity.h.
9966         (main): Use Infinityf.
9967         * tests/test-floor1.c: Include infinity.h.
9968         (main): Use Infinityd.
9969         * tests/test-floorl.c: Include infinity.h.
9970         (main): Use Infinityl.
9971         * tests/test-fprintf-posix.c: Include infinity.h.
9972         (test_function): Use Infinityd.
9973         * tests/test-frexp.c: Include infinity.h.
9974         (main): Use Infinityd.
9975         * tests/test-frexpl.c: Include infinity.h.
9976         (main): Use Infinityl.
9977         * tests/test-isfinite.c: Include infinity.h.
9978         (test_isfinitef): Use Infinityf.
9979         (test_isfinited): Use Infinityd.
9980         (test_isfinitel): Use Infinityl.
9981         * tests/test-isinf.c: Include infinity.h.
9982         (test_isinff): Use Infinityf.
9983         (test_isinfd): Use Infinityd.
9984         (test_isinfl): Use Infinityl.
9985         * tests/test-isnan.c: Include infinity.h.
9986         (test_float): Use Infinityf.
9987         (test_double): Use Infinityd.
9988         (test_long_double): Use Infinityl.
9989         * tests/test-isnanf.h: Include infinity.h.
9990         (main): Use Infinityf.
9991         * tests/test-isnand.h: Include infinity.h.
9992         (main): Use Infinityd.
9993         * tests/test-isnanl.h: Include infinity.h.
9994         (main): Use Infinityl.
9995         * tests/test-ldexpl.c: Include infinity.h.
9996         (main): Use Infinityl.
9997         * tests/test-printf-posix.h: Include infinity.h.
9998         (test_function): Use Infinityd.
9999         * tests/test-roundf1.c: Include infinity.h.
10000         (main): Use Infinityf.
10001         * tests/test-round1.c: Include infinity.h.
10002         (main): Use Infinityd.
10003         * tests/test-roundl.c: Include infinity.h.
10004         (main): Use Infinityl.
10005         * tests/test-signbit.c: Include infinity.h.
10006         (test_signbitf): Use Infinityf.
10007         (test_signbitd): Use Infinityd.
10008         (test_signbitl): Use Infinityl.
10009         * tests/test-snprintf-posix.h: Include infinity.h.
10010         (test_function): Use Infinityd, Infinityl.
10011         * tests/test-sprintf-posix.h: Include infinity.h.
10012         (test_function): Use Infinityd, Infinityl.
10013         * tests/test-truncf1.c: Include infinity.h.
10014         (main): Use Infinityf.
10015         * tests/test-trunc1.c: Include infinity.h.
10016         (main): Use Infinityd.
10017         * tests/test-truncl.c: Include infinity.h.
10018         (main): Use Infinityl.
10019         * tests/test-vasnprintf-posix.c: Include infinity.h.
10020         (test_function): Use Infinityd, Infinityl.
10021         * tests/test-vasprintf-posix.c: Include infinity.h.
10022         (test_function): Use Infinityd, Infinityl.
10023         * modules/ceilf-tests (Files): Add tests/infinity.h.
10024         * modules/ceil-tests (Files): Likewise.
10025         * modules/ceill-tests (Files): Likewise.
10026         * modules/dprintf-posix-tests (Files): Likewise.
10027         * modules/floorf-tests (Files): Likewise.
10028         * modules/floor-tests (Files): Likewise.
10029         * modules/floorl-tests (Files): Likewise.
10030         * modules/fprintf-posix-tests (Files): Likewise.
10031         * modules/frexp-tests (Files): Likewise.
10032         * modules/frexp-nolibm-tests (Files): Likewise.
10033         * modules/frexpl-tests (Files): Likewise.
10034         * modules/frexpl-nolibm-tests (Files): Likewise.
10035         * modules/isfinite-tests (Files): Likewise.
10036         * modules/isinf-tests (Files): Likewise.
10037         * modules/isnan-tests (Files): Likewise.
10038         * modules/isnanf-tests (Files): Likewise.
10039         * modules/isnanf-nolibm-tests (Files): Likewise.
10040         * modules/isnand-tests (Files): Likewise.
10041         * modules/isnand-nolibm-tests (Files): Likewise.
10042         * modules/isnanl-tests (Files): Likewise.
10043         * modules/isnanl-nolibm-tests (Files): Likewise.
10044         * modules/ldexpl-tests (Files): Likewise.
10045         * modules/printf-posix-tests (Files): Likewise.
10046         * modules/roundf-tests (Files): Likewise.
10047         * modules/round-tests (Files): Likewise.
10048         * modules/roundl-tests (Files): Likewise.
10049         * modules/signbit-tests (Files): Likewise.
10050         * modules/snprintf-posix-tests (Files): Likewise.
10051         * modules/sprintf-posix-tests (Files): Likewise.
10052         * modules/truncf-tests (Files): Likewise.
10053         * modules/trunc-tests (Files): Likewise.
10054         * modules/truncl-tests (Files): Likewise.
10055         * modules/vasnprintf-posix-tests (Files): Likewise.
10056         * modules/vasprintf-posix-tests (Files): Likewise.
10057         * modules/vdprintf-posix-tests (Files): Likewise.
10058         * modules/vfprintf-posix-tests (Files): Likewise.
10059         * modules/vprintf-posix-tests (Files): Likewise.
10060         * modules/vsnprintf-posix-tests (Files): Likewise.
10061         * modules/vsprintf-posix-tests (Files): Likewise.
10062         * modules/xprintf-posix-tests (Files): Likewise.
10063
10064 2011-09-11  Bruno Haible  <bruno@clisp.org>
10065
10066         Ensure pid_t gets defined.
10067         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10068         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10069         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10070         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10071         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10072         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10073         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10074         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10075         * tests/test-fcntl-h.c: Check that pid_t is defined.
10076         * tests/test-sched.c: Likewise.
10077         * tests/test-termios.c: Likewise.
10078         * tests/test-time.c: Likewise.
10079         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10080         * doc/posix-headers/signal.texi: Likewise.
10081         * doc/posix-headers/sys_types.texi: Likewise.
10082         * doc/posix-headers/time.texi: Likewise.
10083
10084 2011-09-11  Bruno Haible  <bruno@clisp.org>
10085
10086         acl: Fix compilation on Solaris 10 (older version).
10087         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10088         of ACE_EVERYONE.
10089         * lib/set-mode-acl.c (qset_acl): Likewise.
10090         Reported by Christian Jullien <eligis@orange.fr>.
10091
10092 2011-09-10  Bruno Haible  <bruno@clisp.org>
10093
10094         iconv, unsetenv: Add support for MSVC compiler.
10095         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10096         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10097
10098 2011-09-10  Bruno Haible  <bruno@clisp.org>
10099
10100         *printf: Add support for MSVC compiler.
10101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10102         handles the exception caused by the %n directive. When cross-compiling,
10103         guess no on native Windows.
10104         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10105         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10106         emulate it through vsnprintf.
10107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10108         * doc/posix-functions/dprintf.texi: Update documentation regarding
10109         MSVC 9.
10110         * doc/posix-functions/fprintf.texi: Likewise.
10111         * doc/posix-functions/printf.texi: Likewise.
10112         * doc/posix-functions/snprintf.texi: Likewise.
10113         * doc/posix-functions/sprintf.texi: Likewise.
10114         * doc/posix-functions/swprintf.texi: Likewise.
10115         * doc/posix-functions/vdprintf.texi: Likewise.
10116         * doc/posix-functions/vfprintf.texi: Likewise.
10117         * doc/posix-functions/vprintf.texi: Likewise.
10118         * doc/posix-functions/vsnprintf.texi: Likewise.
10119         * doc/posix-functions/vsprintf.texi: Likewise.
10120         * doc/glibc-functions/asprintf.texi: Likewise.
10121         * doc/glibc-functions/obstack_printf.texi: Likewise.
10122         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10123         * doc/glibc-functions/vasprintf.texi: Likewise.
10124
10125 2011-09-10  Bruno Haible  <bruno@clisp.org>
10126
10127         nocrash: Add support for native Windows.
10128         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10129
10130 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10131             Bruno Haible  <bruno@clisp.org>
10132
10133         absolute-header, include-next: Add support for MSVC compiler.
10134         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10135         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10136         directory separator in #line directives.
10137         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10138         recognize also backslash as directory separator in #line directives.
10139
10140 2011-09-08  Jim Meyering  <meyering@redhat.com>
10141
10142         maint.mk: mark the post-release commit log with "maint: " prefix
10143         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10144         one-line commit-log summary.
10145
10146 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10147             Bruno Haible  <bruno@clisp.org>
10148
10149         Doc about crypt functions.
10150         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10151         systems.
10152         * doc/posix-functions/encrypt.texi: Likewise.
10153         * doc/posix-functions/setkey.texi: Likewise.
10154
10155 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10156
10157         * lib/gc.h: Fix copyright header.
10158
10159 2011-09-07  Bruno Haible  <bruno@clisp.org>
10160
10161         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10162         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10163         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10164
10165 2011-09-07  Bruno Haible  <bruno@clisp.org>
10166
10167         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10168         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10169         * lib/freopen.c: Likewise.
10170         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10171         * lib/lstat.c: Likewise.
10172         * lib/stat.c: Likewise.
10173         * lib/open.c: Use different syntax for include of <fcntl.h>.
10174         * lib/openat.c: Include fcntl.h again, explicitly.
10175
10176 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10177
10178         parse-datetime: document the newly accepted format
10179         * doc/parse-datetime.texi (Combined date and time of day items):
10180         New section.
10181
10182 2011-09-06  Bruno Haible  <bruno@clisp.org>
10183
10184         acl: Fix a test failure on newer Solaris 10 with ZFS.
10185         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10186         ENOSYS as no ACL.
10187         Reported by Jim Meyering.
10188
10189 2011-09-06  Bruno Haible  <bruno@clisp.org>
10190
10191         acl: Update for AIX >= 5.3 with NFS.
10192         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10193         ENOSYS as no ACL.
10194
10195         acl: Fix a test failure on AIX >= 5.3 with NFS.
10196         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10197         as no ACL.
10198
10199 2011-09-06  Bruno Haible  <bruno@clisp.org>
10200
10201         acl: Fix a test failure on IRIX 6.5 with NFS.
10202         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10203         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10204         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10205         * lib/copy-acl.c (qcopy_acl): Likewise.
10206
10207 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10208
10209         openat: port to AIX 7.1 with large files
10210         AIX 7.1 does a "#define openat open64at" if large files are in use,
10211         so we can't simply #undef openat.  Use the orig_openat trick (similar
10212         to orig_open in lib/open.c) to work around the problem.  Problem
10213         reported by Kevin Brott for GNU tar, in the thread containing
10214         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10215         * lib/openat.c (__need_system_fcntl_h): Define first.
10216         Include <fcntl.h> and <sys/types.h> before undefining.
10217         (orig_openat) [HAVE_OPENAT]: New inline function.
10218         (openat) [HAVE_OPENAT]: Do not undef.
10219         (rpl_openat): Use orig_openat, not openat.
10220
10221 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10222             Bruno Haible  <bruno@clisp.org>
10223
10224         acl: Avoid errors on NonStop Kernel.
10225         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10226         ENOTSUP errors.
10227
10228 2011-09-05  Bruno Haible  <bruno@clisp.org>
10229
10230         acl: Clean up Solaris code.
10231         * lib/acl-internal.h: Remove no-op #if.
10232         * lib/file-has-acl.c: Likewise.
10233         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10234         * lib/copy-acl.c (qcopy_acl): Likewise.
10235
10236 2011-09-05  Bruno Haible  <bruno@clisp.org>
10237
10238         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10239         binaries built on the original Solaris 10.
10240         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10241         trivial.
10242
10243 2011-09-05  Bruno Haible  <bruno@clisp.org>
10244
10245         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10246         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10247         10.
10248         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10249         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10250         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10251         instead of acl_get, facl_get, acl_set, facl_set.
10252
10253 2011-09-05  Bruno Haible  <bruno@clisp.org>
10254
10255         copy-file: Try unit tests on more file systems.
10256         * tests/test-copy-file-1.sh: New file.
10257         * tests/test-copy-file-2.sh: New file.
10258         * modules/copy-file-tests (Files): Add them.
10259         (Makefile.am): Add them to TESTS.
10260
10261         acl: Try unit tests on more file systems.
10262         * tests/test-file-has-acl-1.sh: New file.
10263         * tests/test-file-has-acl-2.sh: New file.
10264         * tests/test-set-mode-acl-1.sh: New file.
10265         * tests/test-set-mode-acl-2.sh: New file.
10266         * tests/test-copy-acl-1.sh: New file.
10267         * tests/test-copy-acl-2.sh: New file.
10268         * modules/acl-tests (Files): Add them.
10269         (Makefile.am): Add them to TESTS.
10270
10271 2011-09-04  Bruno Haible  <bruno@clisp.org>
10272
10273         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10274         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10275         10.
10276         (OLD_ALLOW, OLD_DENY): New macros.
10277         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10278         ACE_ACCESS_ALLOWED_ACE_TYPE.
10279         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10280         ACE_ACCESS_DENIED_ACE_TYPE.
10281         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10282         (NEW_ACE_EXECUTE): Fix value.
10283         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10284         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10285         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10286         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10287         NEW_ACE_SYNCHRONIZE): New macros.
10288         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10289         instead of acl_fromtext, acl_set, facl_set.
10290         Fixes a coreutils/tests/cp/perm failure.
10291
10292 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10293
10294         openat: test for fstatat (..., 0) bug
10295         Further testing with tar suggests that fstatat (..., 0)
10296         does not work in general, on AIX 7.1; see
10297         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10298         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10299         replacement fstatat (which is what older AIX releases were using
10300         anyway).
10301         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10302         use is now changed to orig_fstatat.  This was probably the right
10303         thing to do anyway.
10304         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10305         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10306         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10307         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10308         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10309         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10310         if the bug is found.
10311
10312         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10313         This tests for another fstatat bug on AIX 7.1:
10314         fstatat (AT_FDCWD, ..., 0) does not work.  See
10315         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10316         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10317         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10318         (rpl_fstatat): Adjust so that it works around either (or both)
10319         bugs if present.
10320         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10321
10322 2011-09-03  Karl Berry  <karl@gnu.org>
10323
10324         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10325         in index entries.
10326
10327 2011-09-02  Bruno Haible  <bruno@clisp.org>
10328
10329         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10330         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10331         values of AR, ARFLAGS, RANLIB.
10332         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10333
10334 2011-09-02  Bruno Haible  <bruno@clisp.org>
10335
10336         Find 'ar' program that fits with --host argument.
10337         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10338
10339 2011-09-02  Bruno Haible  <bruno@clisp.org>
10340
10341         tests: init.sh: Support any non-GNU diff.
10342         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10343         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10344         Solaris 8.
10345
10346 2011-09-02  Bruno Haible  <bruno@clisp.org>
10347
10348         tests: init.sh: work also with any non-GNU diff that supports -u
10349         * tests/init.sh: Relax check for diff -u support.
10350         Rather than checking for GNU diff via --version, simply check
10351         for support for -u itself.  Useful at least on OpenBSD 4.9,
10352         AIX 7.1, IRIX 6.5, and Solaris 10.
10353
10354 2011-09-01  Bruno Haible  <bruno@clisp.org>
10355
10356         strtoimax, strtoumax: Document problem on HP-UX 11.
10357         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10358         * doc/posix-functions/strtoumax.texi: Likewise.
10359
10360 2011-09-01  Bruno Haible  <bruno@clisp.org>
10361
10362         strtoumax: Avoid link error on OSF/1 with DTK cc.
10363         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10364         defined as a function.
10365         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10366         strtoumax is defined, not whether it is declared.
10367
10368 2011-09-01  Bruno Haible  <bruno@clisp.org>
10369
10370         strtoimax: Avoid link error on OSF/1 with DTK cc.
10371         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10372         defined as a function.
10373         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10374         strtoimax is defined, not whether it is declared.
10375
10376 2011-09-01  Bruno Haible  <bruno@clisp.org>
10377
10378         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10379         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10380         as a function.
10381         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10382         whether it is declared.
10383
10384 2011-09-01  Bruno Haible  <bruno@clisp.org>
10385
10386         imaxabs: Avoid link error on OSF/1 with DTK cc.
10387         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10388         as a function.
10389         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10390         whether it is declared.
10391
10392 2011-09-01  Bruno Haible  <bruno@clisp.org>
10393
10394         Tests for module 'strtoumax'.
10395         * modules/strtoumax-tests: New file.
10396         * tests/test-strtoumax.c: New file.
10397
10398         Tests for module 'strtoimax'.
10399         * modules/strtoimax-tests: New file.
10400         * tests/test-strtoimax.c: New file.
10401
10402         Tests for module 'imaxdiv'.
10403         * modules/imaxdiv-tests: New file.
10404         * tests/test-imaxdiv.c: New file.
10405
10406         Tests for module 'imaxabs'.
10407         * modules/imaxabs-tests: New file.
10408         * tests/test-imaxabs.c: New file.
10409
10410 2011-09-01  Bruno Haible  <bruno@clisp.org>
10411
10412         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10414         pthread_create.
10415
10416 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10417
10418         openat: work around AIX 7.1 fstatat issue
10419         This should fix the problem that was not properly fixed
10420         in the previous change, dated 2011-08-30.
10421         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10422         __need_system_stat_h defined.
10423         (orig_fstatat) [HAVE_FSTATAT]: New function.
10424         (rpl_fstatat): Go back to the old way of doing things,
10425         except call orig_fstatat instead of fstatat.
10426         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10427         Remove unnecessary check whether fstatat fills in st_size etc.
10428
10429 2011-09-01  Bruno Haible  <bruno@clisp.org>
10430
10431         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10432         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10433         just include the system's header.
10434
10435 2011-08-31  Jim Meyering  <meyering@redhat.com>
10436
10437         tests: avoid spurious assertion failure in test-float.c on ppc64
10438         * tests/test-float.c (test_long_double): Comment out an assertion,
10439         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10440         with gcc-4.4.4.
10441
10442         maint: indent with spaces, not TABs
10443         I need to get in the habit of running gnulib's "make check".
10444         Both of these would have been caught.
10445         * m4/largefile.m4: Indent with spaces, not TABs.
10446         * lib/parse-datetime.y (iso_8601_time): Likewise.
10447         Spotted by Pádraig Brady.
10448
10449         test-parse-datetime.c: accommodate a relatively strict gcc warning
10450         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10451         to avoid a warning from gcc's -Werror=missing-declarations.
10452         Insert a few spaces-before-funcall-parenthesis.
10453
10454 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10455
10456         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10457         The parser now accepts ISO 8601 date-time strings with "T" as the
10458         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10459         with a space between the date and time strings.  Now it also parses
10460         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10461         variants like "2004-02-29T16:21:42.333-07:00"
10462         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10463         of day representation using the 'T' separator character.
10464         * doc/parse-datetime.texi (General date syntax): replace use of
10465         deprecated --iso-8601 option with --rfc-3339 in example of date
10466         command output formats that can be parsed.
10467         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10468         lib/parse-datetime.y.
10469         (gmt_offset): New function.
10470         (main): Add additional test cases to validate ISO8601 extended
10471         date and time of day parsing.
10472
10473 2011-08-31  Bruno Haible  <bruno@clisp.org>
10474
10475         freopen: Documentation.
10476         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10477         name.
10478         Reported by Claudio Bley <claudio.bley@gmail.com>.
10479
10480 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10481
10482         freopen: Don't crash if the filename argument is NULL.
10483         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10484         NULL.
10485
10486 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10487
10488         openat: work around AIX 7.1 fstatat bug
10489         Problem reported by Kevin Brott for GNU tar, in the thread containing
10490         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10491         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10492         FSTATAT_ST_SIZE_ETC_BROKEN.
10493         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10494         rpl_fstatat.
10495         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10496         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10497         AC_CHECK_FUNCS_ONCE for fstatat.
10498         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10499         fchmodat, mkdirat, openat and unlinkat.
10500
10501 2011-08-30  Bruno Haible  <bruno@clisp.org>
10502
10503         Avoid endless recursions if config.h includes some header files.
10504         * lib/fopen.c (__need_FILE): Define already before including config.h.
10505         * lib/freopen.c (__need_FILE): Likewise.
10506         * lib/open.c (__need_system_fcntl_h): Likewise.
10507         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10508         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10509         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10510
10511 2011-08-25  Karl Berry  <karl@gnu.org>
10512
10513         * config/srclist.txt (ylwrap): new try.
10514         * build-aux/ylwrap: new file.
10515
10516 2011-08-23  Bruno Haible  <bruno@clisp.org>
10517
10518         tmpdir: Use a good default directory on native Windows.
10519         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10520         (P_tmpdir): Default to _P_tmpdir on native Windows.
10521         (path_search): On native Windows, try the value returned by GetTempPath
10522         before trying P_tmpdir.
10523         * modules/tmpdir (Depends-on): Add pathmax.
10524         Suggested by John Darrington <john@darrington.wattle.id.au>.
10525
10526 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10527
10528         doc: fix typo in README-release
10529         * top/README-release: Capitalize first word of a sentence.
10530
10531 2011-08-19  Jim Meyering  <meyering@redhat.com>
10532
10533         fts: do not exhaust memory when processing million-entry directories
10534         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10535         directory would require about 256*N bytes of memory.  Thus, it was
10536         easy to construct a directory too large to be processed by any of
10537         those tools.  With this change, fts' maximum memory utilization is
10538         now limited to around 30MB.
10539         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10540         (fts_read): When we've processed the final entry (i.e., when
10541         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10542         using the parent entry to read any remaining entries.  Dispatch
10543         depending on what fts_build returns:
10544         - NULL+stop, aka failure: stop
10545         - NULL otherwise: move up in the dir hierarchy
10546         - non-NULL: handle this new entry
10547         (fts_build): Declare and use new local, continue_readdir.
10548         Prepare to be called from fts_read, when the entries
10549         from a partially-read directory have just been exhausted.
10550         In that case, we'll skip the opendir and instead use the parent's
10551         fts_dirp and derive dir_fd from that.
10552         Finally, in the readdir loop, if we read max_entries entries,
10553         exit the loop ensuring *not* to call closedir.  This is required
10554         so that fts_dirp can be reused on a subsequent call.
10555         Prompted by Ben England's report of memory exhaustion in find
10556         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10557
10558         maint: fts: move decl of `dp' down into while loop; split a long line
10559         * lib/fts.c (fts_build): No semantic change.
10560
10561         fts: add/use new struct member, fts_dirp
10562         We are about to use this to manage any directory with
10563         too many entries to read all of them into memory at once.
10564         To do that, we'll need to save the DIR* pointer in each
10565         affected FTSENT struct.
10566         * lib/fts_.h: Include <dirent.h>.
10567         (struct FTSENT) [fts_dirp]: New member.
10568         * lib/fts.c (closedir_and_clear): Define.
10569         Use it in place of closedir so that we are sure to
10570         clear the new fts_dirp member when done with it.
10571         (fts_alloc): Initialize the new member.
10572         (fts_lfree): Free, if needed.
10573
10574         maint: fts: give __opendir2 a new parameter and rename
10575         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10576         than surreptitiously using sole caller's "dir_fd".
10577         (fts_opendir): Rename from __opendir2.
10578
10579         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10580         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10581
10582         maint: fts.c: correct off-by-one indentation
10583         * lib/fts.c (fts_build): Correct indentation, change style
10584         of a couple of block comments, and bracing style.
10585
10586         maint: fts.c: move __opendir2 #define "up" out of function body
10587         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10588
10589         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10590         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10591         out for a long time and besides was useful only on BSD systems.
10592
10593 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         regex: port to Stratus OpenVOS
10596         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10597         define to empty, rather than attempting nonportable optimizations.
10598         Problem reported by Paul Green in:
10599         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10600         and fix suggested by Eric Blake in:
10601         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10602
10603 2011-08-17  Eric Blake  <eblake@redhat.com>
10604
10605         getcwd: fix test failures on mingw
10606         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10607         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10608         test if long directory cannot be created, and allow mingw errno.
10609
10610         getcwd-lgpl: fix m4 to match relaxed test for BSD
10611         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10612         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10613         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10614         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10615         signature problem.
10616
10617         getcwd: fix compilation on mingw64
10618         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10619         getcwd.
10620         Reported by Marc-André Lureau.
10621
10622         pipe2: silence compiler warning
10623         * lib/pipe2.c (pipe2): Hide label if it is not used.
10624
10625 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10626
10627         relocatable-prog: fix link error
10628         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10629         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10630         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10631         into modules/relocatable-lib without noticing that
10632         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10633         also needs to build relocatable.c.
10634
10635 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10636
10637         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10639         shell code: it contained a 'break' that was not in a loop.
10640         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10641         via a shell-language loop; this may have been true in old Autoconf
10642         versions, but it's not true in Autoconf 2.68.  I found this bug
10643         when testing coreutils git on Solaris 8, whose shell complains
10644         about the syntax error.
10645
10646 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10647
10648         * lib/base64.c: Fix comment to reference RFC 4648.
10649         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10650         <gvtulder@gmail.com>.
10651
10652 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10653
10654         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10655
10656         po/Makefile.in.in: fix make -q problem
10657         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10658         rule, since there's no file named 'check-macro-version' and its
10659         use as a file breaks make -q.
10660         (all): Don't depend on check-macro-version.
10661         (CHECK_MACRO_VERSION): New macro.
10662         (stamp-po): Use it.
10663
10664         configmake: fix make -q problem
10665         * modules/configmake (configmake.h): Update configmake.h's time stamp
10666         even if the file does not change.  Otherwise, 'make -q' fails.
10667         Problem reported by Simon Josefsson in
10668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10669
10670 2011-08-11  Jim Meyering  <meyering@redhat.com>
10671
10672         git-version-gen: correct the advice in a comment
10673         * build-aux/git-version-gen: Correct comment.
10674         Don't recommend to list .tarball-version in .gitignore.
10675
10676 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10677
10678         base64: fix off-by-one buffer size bug
10679         Problem and (trivial) fix reported by Gijs van Tulder in
10680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10681         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10682         * tests/test-base64.c (main): Catch the bug.
10683
10684 2011-08-10  Eric Blake  <eblake@redhat.com>
10685
10686         closein: correct comments
10687         * lib/closein.c (close_stdin): Improve comments.
10688
10689 2011-08-09  Bruno Haible  <bruno@clisp.org>
10690
10691         More tests for 'fseeko'.
10692         * tests/test-fseeko3.c: New file, from Eric Blake.
10693         * tests/test-fseeko3.sh: New file.
10694         * modules/fseeko-tests (Files): Add them.
10695         (TESTS): Add test-fseeko3.sh.
10696         (check_PROGRAMS): Add test-fseeko3.
10697
10698 2011-08-09  Eric Blake  <eblake@redhat.com>
10699
10700         fseeko: remove unneeded hack
10701         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10702
10703         fseeko: fix bug on glibc
10704         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10705         Reported by John W. Eaton.
10706
10707 2011-08-08  Bruno Haible  <bruno@clisp.org>
10708
10709         unictype/base: Fix interoperability with preinstalled libunistring.
10710         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10711         Reported by Simon Josefsson.
10712
10713 2011-08-08  Bruno Haible  <bruno@clisp.org>
10714
10715         iswblank: Detect declaration correctly.
10716         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10717         AC_CHECK_DECLS invocation.
10718
10719 2011-08-08  Bruno Haible  <bruno@clisp.org>
10720
10721         tcgetsid: Detect declaration correctly.
10722         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10723         AC_CHECK_DECLS invocation.
10724         Reported by Simon Josefsson.
10725
10726 2011-08-08  Eric Blake  <eblake@redhat.com>
10727
10728         largefile: fix typo that regressed large file support
10729         * modules/largefile (configure.ac-early): Fix section name.
10730
10731 2011-08-06  Karl Berry  <karl@gnu.org>
10732
10733         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10734         a separate module.
10735
10736 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10737
10738         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10739         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10740         get prototype for free.
10741
10742 2011-08-04  Bruno Haible  <bruno@clisp.org>
10743
10744         Tests for module 'pathmax'.
10745         * modules/pathmax-tests: New file.
10746         * tests/test-pathmax.c: New file.
10747
10748         canonicalize-lgpl: Support larger filenames on the Hurd.
10749         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10750         Reported by Paul Eggert.
10751
10752         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10753         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10754         * lib/chdir-long.h: Include pathmax.h.
10755         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10756         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10757         (PATH_MAX): Remove code that is done by pathmax.h.
10758         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10759         * lib/tmpfile.c: Add a comment.
10760         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10761         * modules/chdir-long (Depends-on): Add pathmax.
10762         * modules/getcwd (Depends-on): Add pathmax.
10763         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10764         is not defined.
10765         * doc/posix-headers/limits.texi: Mention the pathmax module.
10766         * NEWS: Mention the change.
10767
10768 2011-08-02  Bruno Haible  <bruno@clisp.org>
10769
10770         pthread_sigmask: Actually use results of gl_THREADLIB.
10771         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10772         gl_THREADLIB, not gl_[]THREADLIB.
10773         Reported by Eric Blake.
10774
10775 2011-08-02  Jim Meyering  <meyering@redhat.com>
10776
10777         maint.mk: relax the default _gl_TS_function_match regexp
10778         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10779         space between function name and "(" in an "extern" declaration.
10780         That would fail to match a decl with no space there: extern void foo();
10781
10782 2011-07-31  Iain Nicol  <iain@thenicols.net>
10783
10784         git-version-gen: document that EXTRA_DIST must include .version
10785         * build-aux/git-version-gen: In the how-to-use comment, document
10786         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10787         will fail when run from an unpacked distribution tarball.
10788
10789 2011-08-01  Bruno Haible  <bruno@clisp.org>
10790
10791         wctype-h: Fix last change.
10792         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10793         REPLACE_TOWLOWER to 0.
10794         Reported by Sam Steingold <sds@gnu.org>.
10795
10796 2011-07-31  Bruno Haible  <bruno@clisp.org>
10797
10798         frexpl: Update autoconf test.
10799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10800         according to changes of 2011-06-20.
10801
10802 2011-07-31  Bruno Haible  <bruno@clisp.org>
10803
10804         sys_utsname: Add support for Minix.
10805         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10806         <sys/utsname.h>.
10807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10808         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10809
10810 2011-07-31  Bruno Haible  <bruno@clisp.org>
10811
10812         strings: Add support for Minix.
10813         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10814         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10815         * doc/posix-headers/strings.texi: Document the Minix problem.
10816
10817 2011-07-31  Bruno Haible  <bruno@clisp.org>
10818
10819         wctype-h: Add support for Minix.
10820         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10821         REPLACE_TOWLOWER.
10822         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10823         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10824         REPLACE_ISWCNTRL.
10825
10826 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10827
10828         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10829         This is a performance improvement for 64-bit hosts: it causes the
10830         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10831
10832 2011-07-31  Bruno Haible  <bruno@clisp.org>
10833
10834         stdioext: Add support for Minix.
10835         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10836         * lib/fpurge.c (fpurge): Likewise.
10837         * lib/freadahead.c (freadahead): Likewise.
10838         * lib/freadable.c (freadable): Likewise.
10839         * lib/freading.c (freading): Likewise.
10840         * lib/freadptr.c (freadptr): Likewise.
10841         * lib/freadseek.c (freadptrinc): Likewise.
10842         * lib/fseeko.c (rpl_fseeko): Likewise.
10843         * lib/fseterr.c (fseterr): Likewise.
10844         * lib/fwritable.c (fwritable): Likewise.
10845         * lib/fwriting.c (fwriting): Likewise.
10846         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10847         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10848
10849 2011-07-31  Bruno Haible  <bruno@clisp.org>
10850
10851         errno: Port to Minix.
10852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10853         ECONNABORTED are defined.
10854         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10855         GNULIB_defined_ECONNABORTED): New macros.
10856         * lib/strerror-override.h (strerror_override): Test also
10857         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10858         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10859         ECONNABORTED.
10860         * doc/posix-headers/errno.texi: Mention the Minix problem.
10861
10862 2011-07-31  Bruno Haible  <bruno@clisp.org>
10863
10864         Work around declaration collisions on Minix.
10865         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10866         defined, set REPLACE_MBSINIT.
10867         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10868         defined, set REPLACE_MBRTOWC.
10869         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10870         set REPLACE_MBRLEN.
10871         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10872         defined, set REPLACE_MBSRTOWCS.
10873         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10874         defined, set REPLACE_WCRTOMB.
10875         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10876         defined, set REPLACE_WCSRTOMBS.
10877
10878 2011-07-31  Bruno Haible  <bruno@clisp.org>
10879
10880         Add support for Minix with ACK compiler.
10881         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10882         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10883         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10884
10885 2011-07-31  Bruno Haible  <bruno@clisp.org>
10886
10887         Documentation about Minix.
10888         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10889         * doc/glibc-headers/*.texi: Likewise.
10890         * doc/posix-functions/*.texi: Likewise.
10891         * doc/glibc-functions/*.texi: Likewise.
10892
10893 2011-07-31  Bruno Haible  <bruno@clisp.org>
10894
10895         snippet/warn-on-use: Fix indentation.
10896         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10897
10898 2011-07-25  Jim Meyering  <meyering@redhat.com>
10899
10900         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10901         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10902         commands.
10903
10904 2011-07-27  Jim Meyering  <meyering@redhat.com>
10905
10906         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10907         * top/maint.mk (gl_extract_significant_defines_): Now that
10908         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10909         gnulib/lib/signal.in.h, and now that we recommend to
10910         define-if-undefined those two symbols in application code,
10911         we must filter them out of the "significant" list.
10912         This avoids a "make syntax-check" failure in coreutils.
10913
10914 2011-07-26  Eric Blake  <eblake@redhat.com>
10915
10916         warnings: add comments about previous patch
10917         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10918         * m4/include_next.m4: Likewise.
10919         * m4/warn-on-use.m4: Likewise.
10920         * m4/warnings.m4: Likewise, and simplify use.
10921         Suggested by Stefano Lattarini.
10922
10923         include-next, warnings: support older autoconf
10924         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10925         AS_VAR_PUSHDEF in a way that works with older autoconf.
10926         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10927         Reported by Daniel P. Berrange.
10928
10929 2011-07-25  Bruno Haible  <bruno@clisp.org>
10930
10931         fseek, ftell: Fix doc.
10932         * doc/posix-functions/fseek.texi: Reword statement about
10933         AC_SYS_LARGEFILE.
10934         * doc/posix-functions/ftell.texi: Likewise.
10935
10936 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10937             Bruno Haible  <bruno@clisp.org>
10938
10939         Add dependencies to the 'largefile' module.
10940         * modules/fopen (Depends-on): Add 'largefile'.
10941         * modules/freopen (Depends-on): Likewise.
10942         * modules/fseeko (Depends-on): Likewise.
10943         * modules/ftello (Depends-on): Likewise.
10944         * modules/glob (Depends-on): Likewise.
10945         * modules/lseek (Depends-on): Likewise.
10946         * modules/lstat (Depends-on): Likewise.
10947         * modules/mkostemp (Depends-on): Likewise.
10948         * modules/mkostemps (Depends-on): Likewise.
10949         * modules/mkstemp (Depends-on): Likewise.
10950         * modules/mkstemps (Depends-on): Likewise.
10951         * modules/open (Depends-on): Likewise.
10952         * modules/openat (Depends-on): Likewise.
10953         * modules/pread (Depends-on): Likewise.
10954         * modules/pwrite (Depends-on): Likewise.
10955         * modules/scandir (Depends-on): Likewise.
10956         * modules/stat (Depends-on): Likewise.
10957         * modules/tmpfile (Depends-on): Likewise.
10958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10959         since the containing module now depends on the largefile module.
10960         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10961         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10962         off_t is fixed by gnulib.
10963         * doc/posix-functions/freopen.texi: Likewise.
10964         * doc/posix-functions/fseeko.texi: Likewise.
10965         * doc/posix-functions/fstatat.texi: Likewise.
10966         * doc/posix-functions/ftello.texi: Likewise.
10967         * doc/posix-functions/glob.texi: Likewise.
10968         * doc/posix-functions/lseek.texi: Likewise.
10969         * doc/posix-functions/lstat.texi: Likewise.
10970         * doc/posix-functions/mkstemp.texi: Likewise.
10971         * doc/posix-functions/open.texi: Likewise.
10972         * doc/posix-functions/openat.texi: Likewise.
10973         * doc/posix-functions/pread.texi: Likewise.
10974         * doc/posix-functions/pwrite.texi: Likewise.
10975         * doc/posix-functions/scandir.texi: Likewise.
10976         * doc/posix-functions/stat.texi: Likewise.
10977         * doc/posix-functions/tmpfile.texi: Likewise.
10978         * doc/glibc-functions/mkostemp.texi: Likewise.
10979         * doc/glibc-functions/mkostemps.texi: Likewise.
10980         * doc/glibc-functions/mkstemps.texi: Likewise.
10981
10982 2011-07-25  Bruno Haible  <bruno@clisp.org>
10983
10984         fcntl: Move AC_LIBOBJ invocation to module description.
10985         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10986         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10987
10988         fcntl: Remove call-in from fchdir.m4.
10989         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10991
10992         dup3: Remove potential call-in from fchdir.m4.
10993         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10995
10996         dup2: Move AC_LIBOBJ invocation to module description.
10997         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10998         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10999         Don't invoke AC_LIBOBJ.
11000         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11001
11002         dup2: Remove call-in from fchdir.m4.
11003         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11005
11006         fclose: Move AC_LIBOBJ invocation to module description.
11007         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11008         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11009         to 1.
11010         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11011
11012         fclose: Remove call-in from close.m4.
11013         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11014         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11015
11016         close: Move AC_LIBOBJ invocation to module description.
11017         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11018         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11019         1.
11020         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11021
11022         close: Remove call-in from fchdir.m4.
11023         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11025
11026         open: Move AC_LIBOBJ invocation to module description.
11027         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11028         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11029         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11030
11031         open: Remove call-in from fchdir.m4.
11032         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11034
11035         fchdir: Start to remove gl_REPLACE_* idiom.
11036         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11037         (gl_FUNC_FCHDIR): Invoke it.
11038
11039 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11040
11041         * lib/ftell.c (ftell): Comment out cast.
11042
11043         close: use gl_REPLACE_FCLOSE only if defined
11044         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11045         is defined.  The close module doesn't depend on the fclose module
11046         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11048         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11049
11050 2011-07-24  Jim Meyering  <meyering@redhat.com>
11051
11052         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11053         * tests/test-select.h (test_function): Declare as "static".
11054
11055 2011-07-24  Bruno Haible  <bruno@clisp.org>
11056
11057         doc: Mention the effects of AC_SYS_LARGEFILE.
11058         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11059         on this function.
11060         * doc/posix-functions/aio_error.texi: Likewise.
11061         * doc/posix-functions/aio_fsync.texi: Likewise.
11062         * doc/posix-functions/aio_read.texi: Likewise.
11063         * doc/posix-functions/aio_return.texi: Likewise.
11064         * doc/posix-functions/aio_suspend.texi: Likewise.
11065         * doc/posix-functions/aio_write.texi: Likewise.
11066         * doc/posix-functions/fgetpos.texi: Likewise.
11067         * doc/posix-functions/fopen.texi: Likewise.
11068         * doc/posix-functions/freopen.texi: Likewise.
11069         * doc/posix-functions/fsetpos.texi: Likewise.
11070         * doc/posix-functions/fstatvfs.texi: Likewise.
11071         * doc/posix-functions/ftruncate.texi: Likewise.
11072         * doc/posix-functions/ftw.texi: Likewise.
11073         * doc/posix-functions/getrlimit.texi: Likewise.
11074         * doc/posix-functions/glob.texi: Likewise.
11075         * doc/posix-functions/lio_listio.texi: Likewise.
11076         * doc/posix-functions/lockf.texi: Likewise.
11077         * doc/posix-functions/mkstemp.texi: Likewise.
11078         * doc/posix-functions/mmap.texi: Likewise.
11079         * doc/posix-functions/nftw.texi: Likewise.
11080         * doc/posix-functions/openat.texi: Likewise.
11081         * doc/posix-functions/opendir.texi: Likewise.
11082         * doc/posix-functions/posix_fadvise.texi: Likewise.
11083         * doc/posix-functions/posix_fallocate.texi: Likewise.
11084         * doc/posix-functions/pread.texi: Likewise.
11085         * doc/posix-functions/pwrite.texi: Likewise.
11086         * doc/posix-functions/readdir.texi: Likewise.
11087         * doc/posix-functions/readdir_r.texi: Likewise.
11088         * doc/posix-functions/rewinddir.texi: Likewise.
11089         * doc/posix-functions/scandir.texi: Likewise.
11090         * doc/posix-functions/seekdir.texi: Likewise.
11091         * doc/posix-functions/setrlimit.texi: Likewise.
11092         * doc/posix-functions/statvfs.texi: Likewise.
11093         * doc/posix-functions/telldir.texi: Likewise.
11094         * doc/posix-functions/tmpfile.texi: Likewise.
11095         * doc/posix-functions/truncate.texi: Likewise.
11096         * doc/glibc-functions/fallocate.texi: Likewise.
11097         * doc/glibc-functions/fstatfs.texi: Likewise.
11098         * doc/glibc-functions/fts_children.texi: Likewise.
11099         * doc/glibc-functions/fts_read.texi: Likewise.
11100         * doc/glibc-functions/getdirentries.texi: Likewise.
11101         * doc/glibc-functions/mkostemp.texi: Likewise.
11102         * doc/glibc-functions/mkostemps.texi: Likewise.
11103         * doc/glibc-functions/mkstemps.texi: Likewise.
11104         * doc/glibc-functions/preadv.texi: Likewise.
11105         * doc/glibc-functions/pwritev.texi: Likewise.
11106         * doc/glibc-functions/sendfile.texi: Likewise.
11107         * doc/glibc-functions/statfs.texi: Likewise.
11108
11109 2011-07-24  Bruno Haible  <bruno@clisp.org>
11110
11111         doc: Fix typo.
11112         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11113
11114 2011-07-24  Bruno Haible  <bruno@clisp.org>
11115
11116         doc: Mention fsusage.
11117         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11118
11119 2011-07-24  Bruno Haible  <bruno@clisp.org>
11120
11121         doc: Mention new glibc headers and functions.
11122         * doc/glibc-headers/gshadow.texi: New file.
11123         * doc/glibc-functions/endsgent.texi: New file.
11124         * doc/glibc-functions/fgetsgent.texi: New file.
11125         * doc/glibc-functions/fgetsgent_r.texi: New file.
11126         * doc/glibc-functions/getsgent.texi: New file.
11127         * doc/glibc-functions/getsgent_r.texi: New file.
11128         * doc/glibc-functions/getsgnam.texi: New file.
11129         * doc/glibc-functions/getsgnam_r.texi: New file.
11130         * doc/glibc-functions/putsgent.texi: New file.
11131         * doc/glibc-functions/setsgent.texi: New file.
11132         * doc/glibc-functions/sgetsgent.texi: New file.
11133         * doc/glibc-functions/sgetsgent_r.texi: New file.
11134         * doc/glibc-functions/malloc_info.texi: New file.
11135         * doc/glibc-functions/preadv.texi: New file.
11136         * doc/glibc-functions/pwritev.texi: New file.
11137         * doc/glibc-functions/register_printf_modifier.texi: New file.
11138         * doc/glibc-functions/register_printf_specifier.texi: New file.
11139         * doc/glibc-functions/register_printf_type.texi: New file.
11140         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11141         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11142         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11143         * doc/glibc-functions/pthread_getname_np.texi: New file.
11144         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11145         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11146         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11147         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11148         * doc/glibc-functions/pthread_setname_np.texi: New file.
11149         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11150         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11151         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11152         * doc/glibc-functions/qsort_r.texi: New file.
11153         * doc/glibc-functions/quick_exit.texi: New file.
11154         * doc/glibc-functions/syncfs.texi: New file.
11155         * doc/gnulib.texi: Include them.
11156         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11157         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11158         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11159         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11160         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11161         * doc/glibc-functions/execvpe.texi: Likewise.
11162
11163 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11164
11165         ftell: don't include <unistd.h>
11166         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11167         guaranteed to define off_t, and the ftell module depends on the
11168         stdio module.
11169
11170         ftell: do not assume wraparound signed arithmetic
11171         * lib/ftell.c: Include <limits.h>.
11172         (ftell): Don't assume wraparound signed arithmetic.
11173
11174 2011-07-24  Bruno Haible  <bruno@clisp.org>
11175
11176         close: No longer depend on module 'fclose'.
11177         * modules/close (Depends-on): Remove fclose.
11178         * NEWS: Mention the change.
11179         Suggested by Sam Steingold <sds@gnu.org>.
11180
11181 2011-07-24  Bruno Haible  <bruno@clisp.org>
11182
11183         fsusage: Enable large volume support on AIX >= 5.2.
11184         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11185         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11186         instead of STAT_STATVFS.
11187         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11188
11189         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11191         f_blocks field only on MacOS X.
11192
11193         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11195         * modules/fsusage (Depends-on): Add largefile.
11196
11197 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11198
11199         * README: Modernize discussion of signed integers.
11200         Assuming overflow wraparound is no longer safe.
11201         Mention ones' complement and signed magnitude.
11202
11203 2011-07-22  Bruno Haible  <bruno@clisp.org>
11204
11205         select tests, pselect tests: Refactor.
11206         * tests/test-select.h: New file, extracted from tests/test-select.c.
11207         (select_fn): New type.
11208         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11209         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11210         test_pipe): Add my_select argument.
11211         (test_function): Renamed from main. Add my_select argument.
11212         * tests/test-select.c: Move most code to tests/test-select.h. Include
11213         test-select.h.
11214         * modules/select-tests (Files): Add tests/test-select.h.
11215         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11216         (my_select, main): New functions.
11217         * modules/pselect-tests (Files): Add tests/test-select.h,
11218         tests/macros.h, tests/signature.h.
11219         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11220         (configure.ac): Check for <sys/wait.h>.
11221
11222 2011-07-22  Bruno Haible  <bruno@clisp.org>
11223
11224         sys_select tests: Check the signature of FD_*.
11225         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11226         signature tests from here...
11227         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11228         here.
11229         * modules/sys_select-tests (Files): Add tests/signature.h.
11230
11231 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11232
11233         largefile: new module, replacing large-inode
11234         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11235         * MODULES.html.sh: Add largefile, remove large-inode.
11236         * modules/largefile, m4/largefile.m4: New files.
11237         * modules/large-inode, m4/large-inode.m4: Remove.
11238
11239         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11240         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11241         implementations that use only 32 bits to count blocks.
11242         On typical hosts with 1024-byte blocks, this fails with file
11243         systems as small as 4 TiB.  Problem reported by Herb Wartens
11244         <http://debbugs.gnu.org/9140> and this should also fix a similar
11245         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11246
11247         large-inode: New module
11248         * MODULES.html.sh: Add it.
11249         * modules/large-inode, m4/large-inode.m4: New files.
11250
11251         extensions: Enable extensions on MacOS X 10.5 and later.
11252         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11253
11254 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11255
11256         file-has-acl: use acl_extended_file_nofollow if available
11257         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11258         (acl_extended_file): New macro.
11259         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11260         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11261
11262 2011-07-21  Bruno Haible  <bruno@clisp.org>
11263
11264         Declare system functions in a way that works with C++.
11265         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11266         declare fdopendir as extern "C".
11267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11268         declare frexpl as extern "C".
11269         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11270         declare gai_strerror as extern "C".
11271         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11272         programs, declare gai_strerror as extern "C".
11273         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11274         declare getlogin_r as extern "C".
11275         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11276         as extern "C".
11277         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11278         declare ldexpl as extern "C".
11279         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11280         as extern "C".
11281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11282         program, declare getmntinfo as extern "C".
11283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11284         stpncpy as extern "C".
11285         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11286         program, declare __xpg_strerror_r as extern "C".
11287         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11288         strndup as extern "C".
11289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11290         declare memset and bzero as extern "C".
11291         Reported by Sam Steingold <sds@gnu.org>.
11292
11293 2011-07-12  Jim Meyering  <meyering@redhat.com>
11294
11295         maint.mk: prohibit inclusion of "verify.h" without use
11296         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11297
11298 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11299
11300         timer-time: A new module to check for timer_settime()
11301         * m4/timer_time.m4: Check for the posix function.
11302         * modules/timer-time: Add the new module.
11303         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11304         Mention it.
11305
11306 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11307             Bruno Haible  <bruno@clisp.org>
11308
11309         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11311         not defined, assume POSIX threads and look for pthread_sigmask in
11312         $LIBS, without changing $CPPFLAGS.
11313
11314 2011-07-19  Bruno Haible  <bruno@clisp.org>
11315
11316         strstr: Update cross-compilation guess.
11317         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11318         CPUs, guess no, in view of glibc
11319         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11320         Suggested by Eric Blake. Reported by Reuben Thomas.
11321
11322 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11323
11324         getopt-gnu: suppress core dumps from detection code
11325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11326         to suppress core dumps that may well occur on glibc systems.
11327         * modules/getopt-gnu: Depend on nocrash.
11328
11329 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11330
11331         pthread_sigmask: ensure usleep is declared
11332         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11333         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11334
11335 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11336
11337         doc: Document NonStop portability issues.
11338         * doc/posix-functions/sigaction.texi (sigaction):
11339         * doc/posix-headers/signal.texi (signal.h):
11340         Document NonStop.  See Joachim Schmitz in
11341         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11342
11343 2011-07-15  Bruno Haible  <bruno@clisp.org>
11344
11345         ffsl, ffsll: Avoid unportable behaviour.
11346         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11347
11348 2011-07-15  Bruno Haible  <bruno@clisp.org>
11349
11350         ffs: More tests.
11351         * tests/test-ffs.c (NBITS): New macro.
11352         (main): Add more tests.
11353         * tests/test-ffsl.c (NBITS): New macro.
11354         (main): Add more tests.
11355         * tests/test-ffsll.c (NBITS): New macro.
11356         (main): Add more tests.
11357
11358 2011-07-15  Eric Blake  <eblake@redhat.com>
11359
11360         ffsl, ffsll: new modules
11361         * modules/ffsl: New file.
11362         * modules/ffsll: Likewise.
11363         * m4/ffsl.m4: Likewise.
11364         * m4/ffsll.m4: Likewise.
11365         * lib/ffsl.c: Likewise.
11366         * lib/ffsl.h: Likewise.
11367         * lib/ffsll.c: Likewise.
11368         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11369         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11370         * modules/string (Makefile.am): Substitute witnesses.
11371         * lib/strings.in.h (ffsl, ffsll): Declare.
11372         * modules/ffsl-tests: New test file.
11373         * modules/ffsll-tests: Likewise.
11374         * tests/test-ffsl.c: Likewise.
11375         * tests/test-ffsll.c: Likewise.
11376         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11377         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11378         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11379
11380         ffs: fix m4 prerequisite
11381         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11382
11383         ffs: avoid undefined behavior
11384         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11385         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11386         Reported by Bruno Haible.
11387
11388 2011-07-12  Bruno Haible  <bruno@clisp.org>
11389
11390         pthread_sigmask: Rely on module 'threadlib'.
11391         * modules/pthread_sigmask (Depends-on): Add threadlib.
11392         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11393         is defined.
11394
11395 2011-07-12  Bruno Haible  <bruno@clisp.org>
11396
11397         regex: Depend on module 'strcase'.
11398         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11399
11400 2011-07-12  Jim Meyering  <meyering@redhat.com>
11401
11402         warn-on-use: fix typo in file name
11403         * modules/snippet/warn-on-use (Files): Correct file name:
11404         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11405
11406 2011-07-12  Bruno Haible  <bruno@clisp.org>
11407
11408         strings: Document module.
11409         * doc/posix-headers/strings.texi: Mention module 'strings'.
11410
11411 2011-07-12  Bruno Haible  <bruno@clisp.org>
11412
11413         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11414         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11415         (Files, Makefile.am): Update.
11416         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11417         * modules/stdlib (Depends-on): Update.
11418
11419 2011-07-12  Bruno Haible  <bruno@clisp.org>
11420
11421         * NEWS: Mention the changes.
11422
11423         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11424         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11425         (Files, Makefile.am): Update.
11426         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11427         * modules/arpa_inet (Depends-on): Update.
11428         * modules/ctype (Depends-on): Update.
11429         * modules/dirent (Depends-on): Update.
11430         * modules/fcntl-h (Depends-on): Update.
11431         * modules/glob (Depends-on): Update.
11432         * modules/iconv-h (Depends-on): Update.
11433         * modules/inttypes-incomplete (Depends-on): Update.
11434         * modules/langinfo (Depends-on): Update.
11435         * modules/locale (Depends-on): Update.
11436         * modules/math (Depends-on): Update.
11437         * modules/netdb (Depends-on): Update.
11438         * modules/poll-h (Depends-on): Update.
11439         * modules/pty (Depends-on): Update.
11440         * modules/search (Depends-on): Update.
11441         * modules/signal (Depends-on): Update.
11442         * modules/spawn (Depends-on): Update.
11443         * modules/stdio (Depends-on): Update.
11444         * modules/stdlib (Depends-on): Update.
11445         * modules/string (Depends-on): Update.
11446         * modules/strings (Depends-on): Update.
11447         * modules/sys_file (Depends-on): Update.
11448         * modules/sys_ioctl (Depends-on): Update.
11449         * modules/sys_select (Depends-on): Update.
11450         * modules/sys_socket (Depends-on): Update.
11451         * modules/sys_stat (Depends-on): Update.
11452         * modules/sys_time (Depends-on): Update.
11453         * modules/sys_times (Depends-on): Update.
11454         * modules/sys_utsname (Depends-on): Update.
11455         * modules/sys_wait (Depends-on): Update.
11456         * modules/termios (Depends-on): Update.
11457         * modules/time (Depends-on): Update.
11458         * modules/unistd (Depends-on): Update.
11459         * modules/wchar (Depends-on): Update.
11460         * modules/wctype-h (Depends-on): Update.
11461         * MODULES.html.sh (Support for building libraries and executables):
11462         Update.
11463
11464         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11465         * modules/snippet/unused-parameter: Renamed from
11466         modules/unused-parameter.
11467         (Files, Makefile.am): Update.
11468         * build-aux/snippet/unused-parameter.h: Renamed from
11469         build-aux/unused-parameter.h.
11470         * modules/selinux-h (Depends-on): Update.
11471         * modules/unistr/base (Depends-on): Update.
11472         * MODULES.html.sh (Core language properties): Update.
11473
11474         Rename module 'link-warning' to 'snippet/link-warning'.
11475         * modules/snippet/link-warning: Renamed from modules/link-warning.
11476         (Files, Makefile.am): Update.
11477         * build-aux/snippet/link-warning.h: Renamed from
11478         build-aux/link-warning.h.
11479         * MODULES.html.sh (Support for building libraries and executables):
11480         Update.
11481
11482         Rename module 'c++defs' to 'snippet/c++defs'.
11483         * modules/snippet/c++defs: Renamed from modules/c++defs.
11484         (Files, Makefile.am): Update.
11485         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11486         * modules/arpa_inet (Depends-on): Update.
11487         * modules/ctype (Depends-on): Update.
11488         * modules/dirent (Depends-on): Update.
11489         * modules/fcntl-h (Depends-on): Update.
11490         * modules/glob (Depends-on): Update.
11491         * modules/iconv-h (Depends-on): Update.
11492         * modules/langinfo (Depends-on): Update.
11493         * modules/locale (Depends-on): Update.
11494         * modules/math (Depends-on): Update.
11495         * modules/netdb (Depends-on): Update.
11496         * modules/poll-h (Depends-on): Update.
11497         * modules/pty (Depends-on): Update.
11498         * modules/search (Depends-on): Update.
11499         * modules/signal (Depends-on): Update.
11500         * modules/spawn (Depends-on): Update.
11501         * modules/stdio (Depends-on): Update.
11502         * modules/stdlib (Depends-on): Update.
11503         * modules/string (Depends-on): Update.
11504         * modules/strings (Depends-on): Update.
11505         * modules/sys_ioctl (Depends-on): Update.
11506         * modules/sys_select (Depends-on): Update.
11507         * modules/sys_socket (Depends-on): Update.
11508         * modules/sys_stat (Depends-on): Update.
11509         * modules/sys_time (Depends-on): Update.
11510         * modules/sys_wait (Depends-on): Update.
11511         * modules/termios (Depends-on): Update.
11512         * modules/time (Depends-on): Update.
11513         * modules/unistd (Depends-on): Update.
11514         * modules/wchar (Depends-on): Update.
11515         * modules/wctype-h (Depends-on): Update.
11516
11517         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11518         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11519         (Files, Makefile.am): Update.
11520         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11521         * modules/argv-iter (Depends-on): Update.
11522         * modules/arpa_inet (Depends-on): Update.
11523         * modules/dirent (Depends-on): Update.
11524         * modules/fcntl-h (Depends-on): Update.
11525         * modules/fnmatch (Depends-on): Update.
11526         * modules/getopt-posix (Depends-on): Update.
11527         * modules/glob (Depends-on): Update.
11528         * modules/iconv-h (Depends-on): Update.
11529         * modules/inttypes-incomplete (Depends-on): Update.
11530         * modules/locale (Depends-on): Update.
11531         * modules/math (Depends-on): Update.
11532         * modules/netdb (Depends-on): Update.
11533         * modules/search (Depends-on): Update.
11534         * modules/signal (Depends-on): Update.
11535         * modules/spawn (Depends-on): Update.
11536         * modules/stdio (Depends-on): Update.
11537         * modules/stdlib (Depends-on): Update.
11538         * modules/string (Depends-on): Update.
11539         * modules/strings (Depends-on): Update.
11540         * modules/sys_socket (Depends-on): Update.
11541         * modules/sys_stat (Depends-on): Update.
11542         * modules/sys_time (Depends-on): Update.
11543         * modules/sys_times (Depends-on): Update.
11544         * modules/sys_utsname (Depends-on): Update.
11545         * modules/time (Depends-on): Update.
11546         * modules/unistd (Depends-on): Update.
11547         * modules/wchar (Depends-on): Update.
11548         * MODULES.html.sh (Support for building libraries and executables):
11549         Update.
11550
11551 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         Improvements on _Noreturn and related modules.
11554
11555         modules/_Exit-tests: test _Noreturn too
11556         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11557         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11558         (main): Use them.
11559
11560         stdnoreturn, stdnoreturn-tests: remove modules
11561         They're not needed here and a bit premature for use elsewhere.  See
11562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11563         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11564         * tests/test-stdnoreturn.c: Remove files.
11565         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11566         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11567         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11568         and using noreturn.
11569         * modules/openat, modules/sigpipe-die, modules/xalloc:
11570         * modules/xmemdup0, modules/xstrtol:
11571         Remove dependency on stdnoreturn.
11572
11573         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11574         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11575         Reparenthesize to avoid GCC warning.
11576         Support Microsoft's syntax.
11577         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11578
11579         _Noreturn-tests: remove module
11580         * modules/_Noreturn-tests: Remove.
11581         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11582         * tests/test-_Noreturn.c: Remove.
11583         * tests/test-stdnoreturn.c: Merge from the old
11584         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11585
11586 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11587
11588         _Noreturn, stdnoreturn, and related modules.
11589
11590         * top/maint.mk: Adjust to new noreturn support.
11591         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11592         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11593
11594         xalloc: use stdnoreturn.h
11595         * lib/xalloc.h: Include <stdnoreturn.h>.
11596         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11597         * modules/xalloc (Depends-on): Add stdnoreturn.
11598
11599         xstrtol: use stdnoreturn.h
11600         * lib/xstrtol.h: Include <stdnoreturn.h>.
11601         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11602         * modules/xstrtol (Depends-on): Add stdnoreturn.
11603
11604         xmemdup0: use stdnoreturn.h
11605         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11606         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11607         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11608
11609         sigpipe-die: use stdnoreturn.h
11610         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11611         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11612         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11613
11614         openat: use stdnoreturn.h
11615         * lib/openat.h: Include <stdnoreturn.h>.
11616         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11617         * modules/openat (Depends-on): Add stdnoreturn.
11618
11619         * lib/openat-die.c (openat_save_fail): Modernize comment.
11620
11621         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11622
11623         * lib/glthread/thread.h: Modernize comment.
11624
11625         obstack: use _Noreturn
11626         * lib/obstack.c (__attribute__): Remove macro.
11627         (print_and_abort): Use _Noreturn.
11628
11629         c-stack: use _Noreturn
11630         * lib/c-stack.c (die, overflow_handler, segv_handler):
11631         Use _Noreturn rather than __attribute__((noreturn)).
11632
11633         argmatch-tests, exclude_tests: use _Noreturn
11634         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11635         Remove.
11636         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11637
11638         stdlib: use _Noreturn
11639         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11640         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11641         * modules/stdlib (Depends-on): Add _Noreturn.
11642         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11643
11644         stdnoreturn-tests: new module
11645         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11646
11647         stdnoreturn: new module
11648         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11649         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11650
11651         _Noreturn-tests: new module
11652         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11653
11654         _Noreturn: new module
11655         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11656         New section, mentioning it.
11657         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11658
11659         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11660
11661 2011-07-11  Eric Blake  <eblake@redhat.com>
11662
11663         ffs: new module
11664         * modules/ffs: New file.
11665         * m4/ffs.m4: Likewise.
11666         * lib/ffs.c: Likewise.
11667         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11668         * modules/strings (Makefile.am): Substitute witness.
11669         (Depends-on): Add c++defs.
11670         * lib/strings.in.h (ffs): Declare.
11671         * modules/ffs-tests: New test file.
11672         * tests/test-ffs.c: Test new module.
11673         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11674         * doc/posix-functions/ffs.texi (ffs): Likewise.
11675
11676         regex: avoid compiler warning
11677         * lib/regex.c (includes): Include <strings.h>, for use of
11678         strcasecmp in regcomp.c.
11679         Reported by Joachim Schmitz.
11680
11681 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11682
11683         stdint: respect system's intmax_t if INTMAX_MAX
11684         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11685         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11686         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11687         long but int64_t is long long, and where we will clash with the
11688         system intmax_t if we override it.  See
11689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11690         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11691         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11692         similarly for UINTMAX_C.
11693
11694 2011-07-08  Bruno Haible  <bruno@clisp.org>
11695
11696         pthread_sigmask tests: Avoid a compiler warning.
11697         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11698         non-zero.
11699
11700         sigprocmask tests: A better way to avoid a compiler warning.
11701         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11702         (main): Complain if system() returns non-zero.
11703         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11704
11705 2011-07-08  Bruno Haible  <bruno@clisp.org>
11706
11707         pthread_sigmask: Work around IRIX bug.
11708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11709         bug.
11710         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11711         there may be unblocked pending signals.
11712         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11713
11714 2011-07-08  Bruno Haible  <bruno@clisp.org>
11715
11716         pthread_sigmask: Work around Cygwin bug.
11717         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11718         bug.
11719         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11720         the system's pthread_sigmask function.
11721         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11722
11723 2011-07-08  Bruno Haible  <bruno@clisp.org>
11724
11725         pthread_sigmask: Work around bug in single-threaded implementation.
11726         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11727         FreeBSD, HP-UX, Solaris bug.
11728         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11729         * lib/pthread_sigmask.c: Include <stddef.h>.
11730         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11731         the system's pthread_sigmask function.
11732         * modules/pthread_sigmask (configure.ac): Invoke
11733         gl_PREREQ_PTHREAD_SIGMASK.
11734         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11735         HP-UX, Solaris.
11736
11737 2011-07-08  Eric Blake  <eblake@redhat.com>
11738
11739         test-sigprocmask: avoid compiler warning
11740         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11741         * tests/test-sigprocmask.c (main): Use it to silence warning.
11742         Reported by Jim Meyering.
11743
11744         test-snprintf: avoid compiler warning
11745         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11746         * tests/test-vsnprintf.c (main): Likewise.
11747         Reported by Jim Meyering.
11748
11749 2011-07-08  Bruno Haible  <bruno@clisp.org>
11750
11751         Tests for module 'pthread_sigmask'.
11752         * modules/pthread_sigmask-tests: New file.
11753         * tests/test-pthread_sigmask1.c: New file, based on
11754         tests/test-sigprocmask.c.
11755         * tests/test-pthread_sigmask2.c: New file.
11756
11757 2011-07-08  Jim Meyering  <meyering@redhat.com>
11758
11759         test-getopt.h: avoid warning about an unused variable
11760         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11761
11762 2011-07-07  Jim Meyering  <meyering@redhat.com>
11763
11764         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11765         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11766         now that it no longer contains leading TABs.
11767         Remove unused "url=FIXME" statement.
11768
11769 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11770
11771         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11772         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11773         When gl_THREADLIB is not in use, assume that the POSIX sematics
11774         are desired.  This is better for Emacs, which uses POSIX semantics
11775         on GNUish and/or POSIXish platforms, and does not use threads at
11776         all otherwise.
11777
11778         pthread_sigmask: fix typo when testing for libraries
11779         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11780         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11781
11782 2011-07-08  Eric Blake  <eblake@redhat.com>
11783
11784         fts: introduce FTS_NOATIME
11785         * lib/fts_.h (FTS_NOATIME): New bit flag.
11786         (FTS_OPTIONMASK): Adjust.
11787         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11788         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11789
11790 2011-07-08  Bruno Haible  <bruno@clisp.org>
11791
11792         Tests for module 'thread'.
11793         * modules/thread-tests: New file.
11794         * tests/test-thread_self.c: New file.
11795         * tests/test-thread_create.cc: New file.
11796
11797 2011-07-08  Bruno Haible  <bruno@clisp.org>
11798
11799         thread: Avoid gcc warnings when using gl_thread_self().
11800         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11801         'void *'.
11802         (gl_thread_self_pointer): Update.
11803
11804 2011-07-07  Bruno Haible  <bruno@clisp.org>
11805
11806         signal-c++-tests: Check declaration of pthread_sigmask.
11807         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11808         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11809         $(LIB_PTHREAD_SIGMASK).
11810
11811 2011-07-07  Bruno Haible  <bruno@clisp.org>
11812
11813         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11814         * lib/signal.in.h (pthread_sigmask): Override if
11815         REPLACE_PTHREAD_SIGMASK is 1.
11816         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11817         REPLACE_PTHREAD_SIGMASK.
11818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11819         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11820         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11821         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11822         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11823
11824 2011-07-07  Bruno Haible  <bruno@clisp.org>
11825
11826         pthread_sigmask: Ensure declaration in <signal.h>.
11827         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11828         include <pthread.h>.
11829         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11830         problem.
11831
11832 2011-07-07  Bruno Haible  <bruno@clisp.org>
11833
11834         pthread_sigmask: Document the module.
11835         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11836
11837 2011-07-07  Bruno Haible  <bruno@clisp.org>
11838
11839         pthread_sigmask: Follow gnulib conventions.
11840         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11841         gl_PTHREAD_SIGMASK.
11842         * modules/pthread_sigmask (configure.ac): Update.
11843
11844 2011-07-07  Bruno Haible  <bruno@clisp.org>
11845
11846         pthread_sigmask: Make declaration C++ safe.
11847         * lib/signal.in.h: In two special conditions, just do an #include_next.
11848         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11849         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11850         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11851         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11852         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11853         not REPLACE_PTHREAD_MASK.
11854         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11855         not REPLACE_PTHREAD_MASK.
11856         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11857
11858 2011-07-07  Bruno Haible  <bruno@clisp.org>
11859
11860         pthread_sigmask: Fix return value.
11861         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11862         * lib/pthread_sigmask.c: New file.
11863         * modules/pthread_sigmask (Files): Add it.
11864         (configure.ac): Invoke AC_LIBOBJ.
11865
11866 2011-07-07  Eric Blake  <eblake@redhat.com>
11867
11868         getopt: more portable argv creation
11869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11870         const, use char arrays rather than strings.
11871         Suggested by Paul Eggert.
11872
11873 2011-07-07  Bruno Haible  <bruno@clisp.org>
11874
11875         Tests for module 'sigprocmask'.
11876         * modules/sigprocmask-tests: New file.
11877         * tests/test-sigprocmask.c: New file.
11878
11879 2011-07-07  Bruno Haible  <bruno@clisp.org>
11880
11881         float tests: Tweak.
11882         * tests/test-float.c (main): Tweak skip message.
11883
11884 2011-07-07  Eric Blake  <eblake@redhat.com>
11885
11886         getopt: avoid compiler warning during configure
11887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11888         assigning string literals to non-const pointer.
11889
11890         getopt-gnu: avoid crash in glibc getopt
11891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11892         * tests/test-getopt.h (test_getopt): Enhance test.
11893         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11894         * doc/posix-functions/getopt.texi (getopt): Document it.
11895         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11896         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11897         Likewise.
11898
11899 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11900
11901         getopt: handle W; without long options in getopt [BZ #12922]
11902         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11903         but no long options are defined, just return 'W'.
11904
11905 2011-07-07  Bruno Haible  <bruno@clisp.org>
11906
11907         Avoid literal tabs.
11908         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11909         variable containing a tab instead of a literal tab.
11910         Reported by Jim Meyering.
11911
11912 2011-07-07  Bruno Haible  <bruno@clisp.org>
11913
11914         Comments.
11915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11916
11917 2011-07-06  Bruno Haible  <bruno@clisp.org>
11918
11919         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11920         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11921         <winsock2.h>.
11922         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11923         lib/sys_socket.in.h.
11924         (close, gethostname): Hide declarations from <winsock2.h>.
11925         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11926         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11927         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11928         (select): Don't override if gnulib's <sys/select.h> was already
11929         included.
11930         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11931         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11932         setsockopt, shutdown, select): Tweak indentation.
11933
11934 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11935
11936         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11937         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11938         in an application that does not use the sys_select module.
11939
11940 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11941
11942         poll: do not return 0 on timeout=-1
11943         * lib/poll.c: Loop with yield if no events occured
11944
11945 2011-07-06  Eric Blake  <eblake@redhat.com>
11946
11947         pthread_sigmask: always replace when not using pthread
11948         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11949         replacement when using some threading other than pthread.  Fix
11950         logic bug.
11951
11952 2011-07-06  Bruno Haible  <bruno@clisp.org>
11953
11954         Comments.
11955         * m4/printf.m4: Update comments about mingw.
11956
11957 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         sys_select: define sigset_t more portably
11960         * lib/sys_select.in.h: Always include <sys/types.h>, since
11961         we now need sigset_t and mingw defines it there.
11962         Include <signal.h> before split inclusion guard, to avoid
11963         mishaps on Solaris, whose <signal.h> eventually includes us.
11964         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11965         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11966         which come from ...
11967         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11968         gl_CHECK_TYPE_SIGSET_T.
11969         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11970         does the real work.
11971         * modules/sys_select (Depends-on): Add 'signal'.
11972
11973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11974         Suggested by Bruno Haible.
11975
11976         pselect: Use pthread_sigmask, not sigprocmask.
11977         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11978         multithreaded apps better than sigprocmask does.
11979         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11980         sigprocmask directly.
11981
11982 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11983
11984         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11985         Don't #undef,  since we don't need any underlying pselect.
11986         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11987         (Depends-on): Add select.
11988         (Link): Add $(LIBSOCKET).
11989         These changes suggested by Bruno Haible.
11990
11991         pselect: document better
11992         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11993         * doc/posix-functions/pselect.texi (pselect): Document new module.
11994
11995         pthread_sigmask: new module
11996         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11997         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11998         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11999         This is done only as a macro; I don't know how well that'll
12000         work for C++.  Move <sys/types.h> include before the include_next,
12001         to avoid mishap on Solaris.
12002         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12003         * modules/signal (Makefile.am): Substitute the check's results.
12004         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12005
12006         test-pselect: new module
12007         * modules/pselect-tests, tests/test-pselect.c: New files.
12008         * tests/test-select.c, tests/test-sys_select-c++.cc:
12009         If TEST_PSELECT is defined, test pselect instead of testing select.
12010
12011         * tests/test-sys_select.c (sigset_t): Test for it, too.
12012         Suggested by Bruno Haible.
12013
12014 2011-07-05  Eric Blake  <eblake@redhat.com>
12015
12016         snprintf: guarantee %1$d, for libintl
12017         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12018         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12019         * doc/posix-functions/snprintf.texi (snprintf): Update.
12020         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12021         * tests/test-snprintf.c (main): Enhance test.
12022         * tests/test-vsnprintf.c (main): Likewise.
12023
12024 2011-07-05  Jim Meyering  <meyering@redhat.com>
12025
12026         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12027         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12028         per Bruno's request, to accommodate this idiom (no space after "#")
12029         even when the function is inside an #if block:
12030         char *
12031         gets (char *s)
12032         #undef gets
12033         {
12034           ...
12035         }
12036
12037 2011-07-04  Jim Meyering  <meyering@redhat.com>
12038
12039         maint: indent with spaces, not TABs, and add a rule to check this
12040         * tests/test-userspec.c: Indent with spaces, not TABs.
12041         * tests/test-argp.c: Likewise.
12042         * tests/test-c-stack2.sh: Likewise.
12043         * tests/test-parse-duration.sh: Likewise
12044         * m4/strtod.m4: Likewise.
12045         * m4/alloca.m4: Likewise.
12046         * m4/pselect.m4: Likewise.
12047         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12048
12049 2011-07-03  Jim Meyering  <meyering@redhat.com>
12050
12051         maint.mk: correct omissions in prohibit_argmatch_without_use check
12052         This rule would mistakenly report that argmatch.h is included without
12053         use even when both the argmatch and invalid_arg macro were used.
12054         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12055         of argmatch and invalid_arg.
12056
12057 2011-07-03  Bruno Haible  <bruno@clisp.org>
12058
12059         Comments about EINTR.
12060         * lib/safe-read.h: Explain the purpose of this module.
12061         * lib/safe-write.h: Likewise.
12062         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12063         module.
12064         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12065         module.
12066         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12067
12068 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12069
12070         xnanosleep: Rewrite to use new dtotimespec module.
12071         It has the conversion code that used to be in xnanosleep.
12072         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12073         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12074         (TIME_T_MAX): Remove.
12075         (xnanosleep): Rewrite in terms of dtotimespec.
12076         * modules/xnanosleep (Depends-on): Add dtotimespec.
12077         Remove intprops, stdbool.
12078
12079         timespec-add, timespec-sub: new modules
12080         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12081         * lib/timespec-add.c, lib/timespec-sub.c:
12082         * modules/timespec-add, modules/timespec-sub: New files.
12083
12084         dtotimespec: new module
12085         * lib/timespec.h (dtotimespec): New decl.
12086         * lib/dtotimespec.c, modules/dtotimespec: New files.
12087
12088         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12089
12090         pselect: new module
12091         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12092         (pselect): New decls.
12093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12094         since the standard pselect decl uses 'restrict'.
12095         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12096         HAVE_PSELECT, REPLACE_PSELECT.
12097         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12098         HAVE_PSELECT, REPLACE_PSELECT.
12099         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12100
12101         sys_select: don't depend on sys_socket
12102         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12104         This fix works on GNU and GNU-like platforms, but has not been tested
12105         on native Windows.
12106         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12108         gl_HEADER_SYS_SOCKET.
12109         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12110         gl_PREREQ_SYS_H_WINSOCK2.
12111
12112 2011-06-29  Eric Blake  <eblake@redhat.com>
12113
12114         pipe2: fix C89 compile problem
12115         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12116         Reported by Bruno Haible.
12117
12118         pipe, pipe2: don't corrupt fd on error
12119         * lib/pipe.c (pipe): Leave fd unchanged on error.
12120         * lib/pipe2.c (pipe2): Likewise.
12121         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12122         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12123
12124 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12125
12126         mmap-anon: do not use regular expressions inadvertently
12127         * m4/mmap-anon.m4: Remove trailing period from strings sought
12128         in the output.
12129
12130 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         nanosleep: fix integer overflow problem
12133         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12134         arithmetic wraps around on overflow.
12135
12136         nanosleep: simplify carrying
12137         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12138         first call to the underyling nanosleep, not for the last one.
12139         This doesn't fix any bugs, but it simplifies the computation of
12140         the remaining delay.  Found while auditing integer overflow issues.
12141
12142         dup2: remove test for existence of fcntl
12143         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12144         "#if HAVE_FCNTL", in the configure-time test program.
12145         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12146         and therefore speeds up "configure" a bit.  Found while
12147         adding the dup2 module to Emacs.
12148
12149 2011-06-24  Eric Blake  <eblake@redhat.com>
12150
12151         maint.mk: enhance useless header checks
12152         * top/maint.mk (_sc_header_without_use): Check both include
12153         styles.
12154         (sc_prohibit_assert_without_use)
12155         (sc_prohibit_close_stream_without_use)
12156         (sc_prohibit_getopt_without_use)
12157         (sc_prohibit_quotearg_without_use)
12158         (sc_prohibit_quote_without_use)
12159         (sc_prohibit_long_options_without_use)
12160         (sc_prohibit_inttostr_without_use)
12161         (sc_prohibit_ignore_value_without_use)
12162         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12163         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12164         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12165         (sc_prohibit_hash_pjw_without_use)
12166         (sc_prohibit_safe_read_without_use)
12167         (sc_prohibit_argmatch_without_use)
12168         (sc_prohibit_canonicalize_without_use)
12169         (sc_prohibit_root_dev_ino_without_use)
12170         (sc_prohibit_openat_without_use)
12171         (sc_prohibit_c_ctype_without_use)
12172         (sc_prohibit_signal_without_use)
12173         (sc_prohibit_stdio--_without_use)
12174         (sc_prohibit_stdio-safer_without_use)
12175         (sc_prohibit_strings_without_use)
12176         (sc_prohibit_intprops_without_use)
12177         (sc_prohibit_stddef_without_use)
12178         (sc_prohibit_xfreopen_without_use): Update clients.
12179
12180 2011-06-24  Jim Meyering  <meyering@redhat.com>
12181
12182         syntax-check: keep one maint.mk rule in sync with its header
12183         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12184         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12185         I prefer to avoid temporary files here, so use <(...), but that
12186         is not supported by /bin/sh, so...
12187         (SHELL): Define to /bin/bash.
12188
12189 2011-06-24  Eric Blake  <eblake@redhat.com>
12190
12191         maint.mk: update sc_prohibit_intprops_without_use
12192         * top/maint.mk (_intprops_names): Match recent changes.
12193
12194 2011-06-24  Bruno Haible  <bruno@clisp.org>
12195
12196         strerror-override: No-op tweak.
12197         * lib/strerror-override.h (strerror_override): Reorder conditions,
12198         for consistency with lib/strerror-override.c.
12199
12200 2011-06-23  Eric Blake  <eblake@redhat.com>
12201
12202         maint.mk: test further PATH_MAX issues
12203         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12204         (sc_prohibit_path_max_allocation): ...and also test alloca.
12205         Suggested by Jim Meyering.
12206
12207 2011-06-22  Eric Blake  <eblake@redhat.com>
12208
12209         maint.mk: add syntax-check to avoid char[PATH_MAX]
12210         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12211
12212         stat: be robust to PATH_MAX definition
12213         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12214         * modules/stat (Depends-on): Add verify.
12215
12216         link: work around IRIX bug
12217         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12218         * lib/link.c (rpl_link): Work around it.
12219         * tests/test-link.h (test_link): Enhance test.
12220         * doc/posix-functions/link.texi (link): Document the bug.
12221
12222         getopt: silence clang warning
12223         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12224         dereference.
12225         Reported by Gustavo Martin Domato.
12226
12227 2011-06-22  Jim Meyering  <meyering@redhat.com>
12228
12229         bootstrap: do not insert a blank line into each .gitignore file
12230         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12231
12232 2011-06-21  Eric Blake  <eblake@redhat.com>
12233
12234         perror: test for output mismatch
12235         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12236         perror on IRIX.
12237
12238         strerror_r: fix OpenBSD behavior on out-of-range
12239         * lib/strerror_r.c (strerror_r): Always use maximal string.
12240         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12241
12242         strerror_r: fix OpenBSD behavior on 0
12243         * lib/strerror-override.c (strerror_override): Also override 0
12244         when needed.
12245         * lib/strerror-override.h (strerror_override): Likewise.
12246         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12247         earlier.
12248         * lib/strerror_r.c (strerror_r): Likewise.
12249         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12250         behavior...
12251         (gl_FUNC_STRERROR_0): ...into new macro.
12252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12253         is overridden.
12254         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12255         * modules/strerror-override (Files): Add strerror.m4.
12256         (configure.ac): Also provide override for 0 when needed.
12257         * doc/posix-functions/strerror.texi (strerror): Document this.
12258         * doc/posix-functions/perror.texi (perror): Likewise.
12259
12260         perror: adjust array size
12261         * modules/perror (Depends-on): Add strerror-override.
12262         * lib/perror.c (perror): Use it to avoid magic number.
12263
12264         strerror-override: reduce size
12265         * lib/strerror-override.c (strerror_override): Use fewer lines.
12266
12267 2011-06-20  Bruno Haible  <bruno@clisp.org>
12268
12269         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12270         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12271
12272 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12273
12274         alloca: port to compilers that can optimize like GCC 4.6.0
12275         * lib/alloca.c (find_stack_direction): New signature, taken from
12276         Autoconf git.  This works with GCC 4.6.0.  This code should never
12277         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12278         be used with other compilers that optimize as well as GCC 4.6.0 does.
12279         (alloca): Adjust to new signature.
12280         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12281         New macro, which patches Autoconf in a similar way.
12282
12283         c-stack: stop worrying about stack direction
12284         * lib/c-stack.c (find_stack_direction): Remove.
12285         (segv_handler): Don't worry about stack direction growth, as it's
12286         too much of a pain to configure this correctly, given how compilers
12287         are optimizing-away our stack-growth detection code.  Instead, assume
12288         that any access to just before or just after the stack is OK.
12289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12290         Don't require AC_FUNC_ALLOCA; no longer needed.
12291
12292 2011-06-20  Eric Blake  <eblake@redhat.com>
12293
12294         test-stat: don't allocate PATH_MAX bytes
12295         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12296         PATH_MAX-sized buffer.
12297         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12298         * modules/stat-tests (Depends-on): Likewise.
12299         * tests/test-fstatat.c (includes): Drop pathmax.h.
12300         * tests/test-stat.c (includes): Likewise.
12301         Reported by Bruno Haible.
12302
12303 2011-06-20  Bruno Haible  <bruno@clisp.org>
12304
12305         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12306         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12307         * lib/float.c: New file.
12308         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12309         REPLACE_FLOAT_LDBL.
12310         * modules/float (Files): Add lib/float.c.
12311         (configure.ac): Invoke AC_LIBOBJ.
12312         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12313
12314 2011-06-20  Bruno Haible  <bruno@clisp.org>
12315
12316         Tests for module 'float'.
12317         * modules/float-tests: New file.
12318         * tests/test-float.c: New file.
12319
12320 2011-06-19  Bruno Haible  <bruno@clisp.org>
12321
12322         isinf: Coding style.
12323         * lib/isinf.c: Use GNU coding style.
12324
12325 2011-06-19  Bruno Haible  <bruno@clisp.org>
12326
12327         linkat test: Avoid test failure on AIX 7.1.
12328         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12329         * tests/test-link.h (test_link): Likewise.
12330
12331 2011-06-19  Bruno Haible  <bruno@clisp.org>
12332
12333         pread test: Avoid test failure on OpenBSD 4.9.
12334         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12335
12336 2011-06-19  Bruno Haible  <bruno@clisp.org>
12337
12338         sprintf-posix: Fix test failure on AIX 7.1.
12339         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12340         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12341         on AIX.
12342         * doc/posix-functions/fprintf.texi: Likewise.
12343         * doc/posix-functions/printf.texi: Likewise.
12344         * doc/posix-functions/snprintf.texi: Likewise.
12345         * doc/posix-functions/sprintf.texi: Likewise.
12346         * doc/posix-functions/vdprintf.texi: Likewise.
12347         * doc/posix-functions/vfprintf.texi: Likewise.
12348         * doc/posix-functions/vprintf.texi: Likewise.
12349         * doc/posix-functions/vsnprintf.texi: Likewise.
12350         * doc/posix-functions/vsprintf.texi: Likewise.
12351
12352 2011-06-19  Bruno Haible  <bruno@clisp.org>
12353
12354         roundl-ieee: Fix test failure on AIX 7.1.
12355         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12356         * doc/posix-functions/roundl.texi: Mention problem with negative
12357         arguments.
12358
12359 2011-06-19  Bruno Haible  <bruno@clisp.org>
12360
12361         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12362         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12363         * doc/posix-functions/round.texi: Mention problem with negative
12364         arguments.
12365         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12366
12367 2011-06-19  Bruno Haible  <bruno@clisp.org>
12368
12369         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12371         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12372         * doc/posix-functions/roundf.texi: Mention problem with negative
12373         arguments.
12374         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12375
12376 2011-06-19  Bruno Haible  <bruno@clisp.org>
12377
12378         ceilf-ieee: Work around bug on MacOS X 10.5.
12379         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12380
12381         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12382         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12383         IEEE compliant, avoid compiler optimizations.
12384         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12385         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12386         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12387         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12388         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12389         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12390         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12391         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12392         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12394
12395 2011-06-19  Bruno Haible  <bruno@clisp.org>
12396
12397         ceilf-ieee: Work around bug on AIX 7.1.
12398         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12399         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12400
12401 2011-06-19  Bruno Haible  <bruno@clisp.org>
12402
12403         ceil-ieee: Work around bug on AIX 7.1.
12404         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12405         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12406
12407 2011-06-18  Bruno Haible  <bruno@clisp.org>
12408
12409         fsync test: Avoid test failure on MacOS X and AIX.
12410         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12411         EINVAL.
12412
12413 2011-06-18  Bruno Haible  <bruno@clisp.org>
12414
12415         openat, fdopendir tests: Fix link errors.
12416         * modules/openat-tests (Depends-on): Add progname.
12417         * modules/fdopendir-tests (Depends-on): Likewise.
12418         * tests/test-fchownat.c: Include progname.h.
12419         (main): Call set_program_name.
12420         * tests/test-fstatat.c: Include progname.h.
12421         (main): Call set_program_name.
12422         * tests/test-mkdirat.c: Include progname.h.
12423         (main): Call set_program_name.
12424         * tests/test-openat.c: Include progname.h.
12425         (main): Call set_program_name.
12426         * tests/test-unlinkat.c: Include progname.h.
12427         (main): Call set_program_name.
12428         * tests/test-fdopendir.c: Include progname.h.
12429         (main): Call set_program_name.
12430
12431 2011-06-18  Bruno Haible  <bruno@clisp.org>
12432
12433         Doc update.
12434         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12435         HP-UX.
12436         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12437
12438 2011-06-18  Bruno Haible  <bruno@clisp.org>
12439
12440         getcwd tests: Avoid compilation error on HP-UX 11.31.
12441         * modules/getcwd-tests (Depends-on): Add pathmax.
12442         * tests/test-getcwd.c: Include pathmax.h.
12443
12444 2011-06-18  Bruno Haible  <bruno@clisp.org>
12445
12446         isfinite, isinf: Fix link error on AIX 6 and 7.
12447         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12448         needed, also test the macro with a 'float' argument.
12449         * m4/isinf.m4 (gl_ISINF): Likewise.
12450
12451 2011-06-18  Bruno Haible  <bruno@clisp.org>
12452
12453         getloadavg: Don't clobber LIBS. Regression from previous commit.
12454         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12455         AC_CHECK_LIB from here...
12456         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12457         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12458         gl_func_getloadavg_done.
12459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12460
12461 2011-06-18  Bruno Haible  <bruno@clisp.org>
12462
12463         clean-temp: Improve documentation.
12464         * lib/clean-temp.h: Explain better how to use this module.
12465         Reported by John Darrington <john@darrington.wattle.id.au>.
12466
12467 2011-06-17  Bruno Haible  <bruno@clisp.org>
12468
12469         pread, pwrite: Avoid cc warning on AIX.
12470         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12471         (pwrite): Likewise.
12472
12473 2011-06-17  Bruno Haible  <bruno@clisp.org>
12474
12475         spawn-pipe tests: Fix link error.
12476         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12478
12479 2011-06-17  Bruno Haible  <bruno@clisp.org>
12480
12481         Tests: Remove unnecessary dependency.
12482         * modules/canonicalize-tests (Depends-on): Remove progname.
12483         * modules/chown-tests (Depends-on): Likewise.
12484         * modules/dirname-tests (Depends-on): Likewise.
12485         * modules/fdopendir-tests (Depends-on): Likewise.
12486         * modules/fdutimensat-tests (Depends-on): Likewise.
12487         * modules/hash-tests (Depends-on): Likewise.
12488         * modules/lchown-tests (Depends-on): Likewise.
12489         * modules/linkat-tests (Depends-on): Likewise.
12490         * modules/renameat-tests (Depends-on): Likewise.
12491         * modules/spawn-pipe-tests (Depends-on): Likewise.
12492         * modules/utimensat-tests (Depends-on): Likewise.
12493
12494 2011-06-17  Bruno Haible  <bruno@clisp.org>
12495
12496         spawn-pipe tests: Fix link error.
12497         * tests/test-spawn-pipe-child.c: Undefine fflush.
12498
12499 2011-06-17  Bruno Haible  <bruno@clisp.org>
12500
12501         Fix tests link errors.
12502         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12503         * modules/chown-tests (Makefile.am): Don't link test-chown with
12504         LIBINTL.
12505         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12506         LIBINTL.
12507         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12508         LIBINTL.
12509         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12510         LIBINTL.
12511
12512 2011-06-16  Bruno Haible  <bruno@clisp.org>
12513
12514         crypto/gc-sha1: Fix recent regression.
12515         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12516         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12517
12518         crypto/gc-md5: Fix recent regression.
12519         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12520
12521         crypto/gc-md4: Fix recent regression.
12522         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12523         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12524
12525         crypto/gc-arctwo: Fix recent regression.
12526         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12527         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12528
12529         crypto/gc-rijndael: Fix recent regression.
12530         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12531         (configure.ac): Invoke AC_LIBOBJ here.
12532         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12534
12535         crypto/gc-hmac-sha1: Fix recent regression.
12536         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12537         (configure.ac): Invoke AC_LIBOBJ here.
12538         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12540
12541         crypto/gc-hmac-md5: Fix recent regression.
12542         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12543         (configure.ac): Invoke AC_LIBOBJ here.
12544         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12546
12547         crypto/gc-des: Fix recent regression.
12548         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12549         (configure.ac): Invoke AC_LIBOBJ here.
12550         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12552
12553         crypto/gc-arcfour: Fix recent regression.
12554         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12555         (configure.ac): Invoke AC_LIBOBJ here.
12556         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12558
12559 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12560
12561         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12562         After the 2011-05-21 change, this macro requires
12563         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12564         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12565
12566 2011-06-16  Bruno Haible  <bruno@clisp.org>
12567
12568         fprintftime: Move AC_LIBOBJ invocations to module description.
12569         * m4/fprintftime.m4: Remove file.
12570         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12571         (configure.ac): Remove gl_FPRINTFTIME call.
12572         (Makefile.am): Augment lib_SOURCES.
12573         Reported by Jim Meyering.
12574
12575 2011-06-16  Bruno Haible  <bruno@clisp.org>
12576
12577         tmpfile-safer: Finish 2011-05-23 commit.
12578         * m4/stdio-safer.m4: Really remove file.
12579         Reported by Jim Meyering.
12580
12581 2011-06-16  Bruno Haible  <bruno@clisp.org>
12582
12583         syntax-check: Fix typo.
12584         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12585         printf-posix.m4.
12586         Reported by Jim Meyering.
12587
12588 2011-06-13  Jim Meyering  <meyering@redhat.com>
12589
12590         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12591         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12592
12593 2011-05-23  Bruno Haible  <bruno@clisp.org>
12594
12595         yesno: Move AC_LIBOBJ invocations to module description.
12596         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12597         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12598
12599 2011-05-23  Bruno Haible  <bruno@clisp.org>
12600
12601         xstrtol: Move AC_LIBOBJ invocations to module description.
12602         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12603         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12604
12605 2011-05-23  Bruno Haible  <bruno@clisp.org>
12606
12607         xstrtold: Move AC_LIBOBJ invocations to module description.
12608         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12609         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12610
12611 2011-05-23  Bruno Haible  <bruno@clisp.org>
12612
12613         xstrtod: Move AC_LIBOBJ invocations to module description.
12614         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12615         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12616
12617 2011-05-23  Bruno Haible  <bruno@clisp.org>
12618
12619         xnanosleep: Move AC_LIBOBJ invocations to module description.
12620         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12621         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12622
12623 2011-05-23  Bruno Haible  <bruno@clisp.org>
12624
12625         xgetcwd: Move AC_LIBOBJ invocations to module description.
12626         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12627         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12628
12629 2011-05-23  Bruno Haible  <bruno@clisp.org>
12630
12631         xalloc: Move AC_LIBOBJ invocations to module description.
12632         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12633         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12634
12635 2011-05-23  Bruno Haible  <bruno@clisp.org>
12636
12637         write-any-file: Move AC_LIBOBJ invocations to module description.
12638         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12639         invocation.
12640         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12641
12642 2011-05-23  Bruno Haible  <bruno@clisp.org>
12643
12644         utimens: Move AC_LIBOBJ invocations to module description.
12645         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12646         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12647
12648 2011-05-23  Bruno Haible  <bruno@clisp.org>
12649
12650         utimecmp: Move AC_LIBOBJ invocations to module description.
12651         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12652         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12653
12654 2011-05-23  Bruno Haible  <bruno@clisp.org>
12655
12656         userspec: Move AC_LIBOBJ invocations to module description.
12657         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12658         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12659
12660 2011-05-23  Bruno Haible  <bruno@clisp.org>
12661
12662         unlinkdir: Move AC_LIBOBJ invocations to module description.
12663         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12664         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12665
12666 2011-05-23  Bruno Haible  <bruno@clisp.org>
12667
12668         unistd-safer: Move AC_LIBOBJ invocations to module description.
12669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12670         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12671
12672 2011-05-23  Bruno Haible  <bruno@clisp.org>
12673
12674         tempname: Move AC_LIBOBJ invocations to module description.
12675         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12676         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12677
12678 2011-05-23  Bruno Haible  <bruno@clisp.org>
12679
12680         strftime: Move AC_LIBOBJ invocations to module description.
12681         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12682         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12683
12684 2011-05-23  Bruno Haible  <bruno@clisp.org>
12685
12686         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12687         * m4/stdlib-safer.m4: Remove file.
12688         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12689         (configure.ac): Remove gl_STDLIB_SAFER call.
12690         (Makefile.am): Augment lib_SOURCES.
12691
12692 2011-05-23  Bruno Haible  <bruno@clisp.org>
12693
12694         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12695         * m4/stdio-safer.m4: Remove file.
12696         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12697         (configure.ac): Remove gl_TMPFILE_SAFER call.
12698         (Makefile.am): Augment lib_SOURCES.
12699
12700 2011-05-23  Bruno Haible  <bruno@clisp.org>
12701
12702         popen-safer: Move AC_LIBOBJ invocations to module description.
12703         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12704         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12705         (configure.ac): Remove gl_POPEN_SAFER call.
12706         (Makefile.am): Augment lib_SOURCES.
12707
12708 2011-05-23  Bruno Haible  <bruno@clisp.org>
12709
12710         freopen-safer: Move AC_LIBOBJ invocations to module description.
12711         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12712         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12713         (configure.ac): Remove gl_FREOPEN_SAFER call.
12714         (Makefile.am): Augment lib_SOURCES.
12715
12716 2011-05-23  Bruno Haible  <bruno@clisp.org>
12717
12718         fopen-safer: Move AC_LIBOBJ invocations to module description.
12719         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12720         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12721         (configure.ac): Remove gl_FOPEN_SAFER call.
12722         (Makefile.am): Augment lib_SOURCES.
12723
12724 2011-05-23  Bruno Haible  <bruno@clisp.org>
12725
12726         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12727         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12728         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12729
12730 2011-05-23  Bruno Haible  <bruno@clisp.org>
12731
12732         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12733         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12734         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12735
12736 2011-05-23  Bruno Haible  <bruno@clisp.org>
12737
12738         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12739         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12740         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12741
12742 2011-05-23  Bruno Haible  <bruno@clisp.org>
12743
12744         settime: Move AC_LIBOBJ invocations to module description.
12745         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12746         * modules/settime (Makefile.am): Augment lib_SOURCES.
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749
12750         savedir: Move AC_LIBOBJ invocations to module description.
12751         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12752         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12753
12754 2011-05-23  Bruno Haible  <bruno@clisp.org>
12755
12756         save-cwd: Move AC_LIBOBJ invocations to module description.
12757         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12758         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         same: Move AC_LIBOBJ invocations to module description.
12763         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12764         * modules/same (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         safe-write: Move AC_LIBOBJ invocations to module description.
12769         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12770         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12771         instead of gl_SAFE_WRITE.
12772         (Makefile.am): Augment lib_SOURCES.
12773
12774 2011-05-23  Bruno Haible  <bruno@clisp.org>
12775
12776         safe-read: Move AC_LIBOBJ invocations to module description.
12777         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12778         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12779         of gl_SAFE_READ.
12780         (Makefile.am): Augment lib_SOURCES.
12781
12782 2011-05-23  Bruno Haible  <bruno@clisp.org>
12783
12784         safe-alloc: Move AC_LIBOBJ invocations to module description.
12785         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12786         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12787
12788 2011-05-23  Bruno Haible  <bruno@clisp.org>
12789
12790         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12791         * m4/rijndael.m4: Remove file.
12792         * modules/crypto/rijndael (Files): Remove it.
12793         (configure.ac): Remove gl_RIJNDAEL call.
12794         (Makefile.am): Augment lib_SOURCES.
12795
12796 2011-05-23  Bruno Haible  <bruno@clisp.org>
12797
12798         readtokens: Move AC_LIBOBJ invocations to module description.
12799         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12800         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12801
12802 2011-05-23  Bruno Haible  <bruno@clisp.org>
12803
12804         read-file: Move AC_LIBOBJ invocations to module description.
12805         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12806         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12807         of gl_FUNC_READ_FILE.
12808         (Makefile.am): Augment lib_SOURCES.
12809
12810 2011-05-23  Bruno Haible  <bruno@clisp.org>
12811
12812         quotearg: Move AC_LIBOBJ invocations to module description.
12813         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12814         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12815
12816 2011-05-23  Bruno Haible  <bruno@clisp.org>
12817
12818         quote: Move AC_LIBOBJ invocations to module description.
12819         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12820         * modules/quote (Makefile.am): Augment lib_SOURCES.
12821
12822 2011-05-23  Bruno Haible  <bruno@clisp.org>
12823
12824         posixver: Move AC_LIBOBJ invocations to module description.
12825         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12826         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12827
12828 2011-05-23  Bruno Haible  <bruno@clisp.org>
12829
12830         posixtm: Move AC_LIBOBJ invocations to module description.
12831         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12832         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12833
12834 2011-05-23  Bruno Haible  <bruno@clisp.org>
12835
12836         physmem: Move AC_LIBOBJ invocations to module description.
12837         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12838         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12839
12840 2011-05-23  Bruno Haible  <bruno@clisp.org>
12841
12842         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12843         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12844         invocation.
12845         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12846
12847 2011-05-23  Bruno Haible  <bruno@clisp.org>
12848
12849         mpsort: Move AC_LIBOBJ invocations to module description.
12850         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12851         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12852
12853 2011-05-23  Bruno Haible  <bruno@clisp.org>
12854
12855         modechange: Move AC_LIBOBJ invocations to module description.
12856         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12857         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12858
12859 2011-05-23  Bruno Haible  <bruno@clisp.org>
12860
12861         mkdir-p: Move AC_LIBOBJ invocations to module description.
12862         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12863         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12864
12865 2011-05-23  Bruno Haible  <bruno@clisp.org>
12866
12867         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12868         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12869         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12870
12871 2011-05-23  Bruno Haible  <bruno@clisp.org>
12872
12873         mgetgroups: Move AC_LIBOBJ invocations to module description.
12874         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12875         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12876
12877 2011-05-23  Bruno Haible  <bruno@clisp.org>
12878
12879         memxor: Move AC_LIBOBJ invocations to module description.
12880         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12881         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12882
12883 2011-05-23  Bruno Haible  <bruno@clisp.org>
12884
12885         memcoll: Move AC_LIBOBJ invocations to module description.
12886         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12887         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12888
12889 2011-05-23  Bruno Haible  <bruno@clisp.org>
12890
12891         memcasecmp: Move AC_LIBOBJ invocations to module description.
12892         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12893         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12894
12895 2011-05-23  Bruno Haible  <bruno@clisp.org>
12896
12897         crypto/md5: Move AC_LIBOBJ invocations to module description.
12898         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12899         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12900
12901 2011-05-23  Bruno Haible  <bruno@clisp.org>
12902
12903         crypto/md4: Move AC_LIBOBJ invocations to module description.
12904         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12905         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12906
12907 2011-05-23  Bruno Haible  <bruno@clisp.org>
12908
12909         crypto/md2: Move AC_LIBOBJ invocations to module description.
12910         * m4/md2.m4: Remove file.
12911         * modules/crypto/md2 (Files): Remove it.
12912         (configure.ac): Remove gl_MD2 call.
12913         (Makefile.am): Augment lib_SOURCES.
12914
12915 2011-05-23  Bruno Haible  <bruno@clisp.org>
12916
12917         long-options: Move AC_LIBOBJ invocations to module description.
12918         * m4/long-options.m4: Remove file.
12919         * modules/long-options (Files): Remove it.
12920         (configure.ac): Remove gl_LONG_OPTIONS call.
12921         (Makefile.am): Augment lib_SOURCES.
12922
12923 2011-05-23  Bruno Haible  <bruno@clisp.org>
12924
12925         i-ring: Move AC_LIBOBJ invocations to module description.
12926         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12927         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12928
12929 2011-05-23  Bruno Haible  <bruno@clisp.org>
12930
12931         idcache: Move AC_LIBOBJ invocations to module description.
12932         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12933         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12934
12935 2011-05-23  Bruno Haible  <bruno@clisp.org>
12936
12937         human: Move AC_LIBOBJ invocations to module description.
12938         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12939         * modules/human (Makefile.am): Augment lib_SOURCES.
12940
12941 2011-05-23  Bruno Haible  <bruno@clisp.org>
12942
12943         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12944         * m4/hmac-sha1.m4: Remove file.
12945         * modules/crypto/hmac-sha1 (Files): Remove it.
12946         (configure.ac): Remove gl_HMAC_SHA1 call.
12947         (Makefile.am): Augment lib_SOURCES.
12948
12949 2011-05-23  Bruno Haible  <bruno@clisp.org>
12950
12951         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12952         * m4/hmac-md5.m4: Remove file.
12953         * modules/crypto/hmac-md5 (Files): Remove it.
12954         (configure.ac): Remove gl_HMAC_MD5 call.
12955         (Makefile.am): Augment lib_SOURCES.
12956
12957 2011-05-23  Bruno Haible  <bruno@clisp.org>
12958
12959         hash: Move AC_LIBOBJ invocations to module description.
12960         * m4/hash.m4: Remove file.
12961         * modules/hash (Files): Remove it.
12962         (configure.ac): Remove gl_HASH call.
12963         (Makefile.am): Augment lib_SOURCES.
12964
12965 2011-05-23  Bruno Haible  <bruno@clisp.org>
12966
12967         hard-locale: Move AC_LIBOBJ invocations to module description.
12968         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12969         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12970
12971 2011-05-23  Bruno Haible  <bruno@clisp.org>
12972
12973         getugroups: Move AC_LIBOBJ invocations to module description.
12974         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12975         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12976
12977 2011-05-23  Bruno Haible  <bruno@clisp.org>
12978
12979         gettime: Move AC_LIBOBJ invocations to module description.
12980         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12981         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12982
12983 2011-05-23  Bruno Haible  <bruno@clisp.org>
12984
12985         getndelim2: Move AC_LIBOBJ invocations to module description.
12986         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12987         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12992         * m4/gc-pbkdf2-sha1.m4: Remove file.
12993         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12994         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12995         (Makefile.am): Augment lib_SOURCES.
12996
12997 2011-05-23  Bruno Haible  <bruno@clisp.org>
12998
12999         fts: Move AC_LIBOBJ invocations to module description.
13000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13001         * modules/fts (configure.ac): ... to here.
13002
13003 2011-05-23  Bruno Haible  <bruno@clisp.org>
13004
13005         file-type: Move AC_LIBOBJ invocations to module description.
13006         * m4/file-type.m4: Remove file.
13007         * modules/file-type (Files): Remove it.
13008         (configure.ac): Remove gl_FILE_TYPE call.
13009         (Makefile.am): Augment lib_SOURCES.
13010
13011 2011-05-23  Bruno Haible  <bruno@clisp.org>
13012
13013         filenamecat*: Respect rules for use of AC_LIBOBJ.
13014         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13015         Remove AC_LIBOBJ invocation.
13016         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13017         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13018
13019 2011-05-23  Bruno Haible  <bruno@clisp.org>
13020
13021         filemode: Move AC_LIBOBJ invocations to module description.
13022         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13023         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13024
13025 2011-05-23  Bruno Haible  <bruno@clisp.org>
13026
13027         openat-safer: Move AC_LIBOBJ invocations to module description.
13028         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13029         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13030
13031 2011-05-23  Bruno Haible  <bruno@clisp.org>
13032
13033         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13034         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13035         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13036
13037 2011-05-23  Bruno Haible  <bruno@clisp.org>
13038
13039         exclude: Move AC_LIBOBJ invocations to module description.
13040         * m4/exclude.m4: Remove file.
13041         * modules/exclude (Files): Remove it.
13042         (configure.ac): Remove gl_EXCLUDE call.
13043         (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         dirname*: Respect rules for use of AC_LIBOBJ.
13048         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13049         invocations.
13050         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13051         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13052
13053 2011-05-23  Bruno Haible  <bruno@clisp.org>
13054
13055         dirent-safer: Move AC_LIBOBJ invocations to module description.
13056         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13057         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13058
13059 2011-05-23  Bruno Haible  <bruno@clisp.org>
13060
13061         crypto/des: Move AC_LIBOBJ invocations to module description.
13062         * m4/des.m4: Remove file.
13063         * modules/crypto/des (Files): Remove it.
13064         (configure.ac): Remove gl_DES call.
13065         (Makefile.am): Augment lib_SOURCES.
13066
13067 2011-05-23  Bruno Haible  <bruno@clisp.org>
13068
13069         cycle-check: Move AC_LIBOBJ invocations to module description.
13070         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13071         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13072
13073 2011-05-23  Bruno Haible  <bruno@clisp.org>
13074
13075         c-strtold: Move AC_LIBOBJ invocations to module description.
13076         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13077         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13078
13079 2011-05-23  Bruno Haible  <bruno@clisp.org>
13080
13081         c-strtod: Move AC_LIBOBJ invocations to module description.
13082         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13083         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13084
13085 2011-05-23  Bruno Haible  <bruno@clisp.org>
13086
13087         crc: Move AC_LIBOBJ invocations to module description.
13088         * m4/crc.m4: Remove file.
13089         * modules/crc (Files): Remove it.
13090         (configure.ac): Remove gl_CRC call.
13091         (Makefile.am): Augment lib_SOURCES.
13092
13093 2011-05-23  Bruno Haible  <bruno@clisp.org>
13094
13095         close-stream: Move AC_LIBOBJ invocations to module description.
13096         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13097         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13098
13099 2011-05-23  Bruno Haible  <bruno@clisp.org>
13100
13101         closeout: Move AC_LIBOBJ invocations to module description.
13102         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13103         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13104
13105 2011-05-23  Bruno Haible  <bruno@clisp.org>
13106
13107         closein: Move AC_LIBOBJ invocations to module description.
13108         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13109         * modules/closein (Makefile.am): Augment lib_SOURCES.
13110
13111 2011-05-23  Bruno Haible  <bruno@clisp.org>
13112
13113         cloexec: Move AC_LIBOBJ invocations to module description.
13114         * m4/cloexec.m4: Remove file.
13115         * modules/cloexec (Files): Remove it.
13116         (configure.ac): Remove gl_CLOEXEC call.
13117         (Makefile.am): Augment lib_SOURCES.
13118
13119 2011-05-23  Bruno Haible  <bruno@clisp.org>
13120
13121         check-version: Move AC_LIBOBJ invocations to module description.
13122         * m4/check-version.m4: Remove file.
13123         * modules/check-version (Files): Remove it.
13124         (configure.ac): Remove gl_CHECK_VERSION call.
13125         (Makefile.am): Augment lib_SOURCES.
13126
13127 2011-05-23  Bruno Haible  <bruno@clisp.org>
13128
13129         chdir-safer: Move AC_LIBOBJ invocations to module description.
13130         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13131         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13132
13133 2011-05-23  Bruno Haible  <bruno@clisp.org>
13134
13135         canonicalize: Move AC_LIBOBJ invocations to module description.
13136         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13137         AC_LIBOBJ invocation.
13138         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-23  Bruno Haible  <bruno@clisp.org>
13141
13142         canon-host: Move AC_LIBOBJ invocations to module description.
13143         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13144         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13145         instead of gl_CANON_HOST.
13146         (Makefile.am): Augment lib_SOURCES.
13147
13148 2011-05-23  Bruno Haible  <bruno@clisp.org>
13149
13150         backupfile: Move AC_LIBOBJ invocations to module description.
13151         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13152         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13153
13154 2011-05-23  Bruno Haible  <bruno@clisp.org>
13155
13156         argmatch: Move AC_LIBOBJ invocations to module description.
13157         * m4/argmatch.m4: Remove file.
13158         * modules/argmatch (Files): Remove it.
13159         (configure.ac): Remove gl_ARGMATCH call.
13160         (Makefile.am): Augment lib_SOURCES.
13161
13162 2011-05-23  Bruno Haible  <bruno@clisp.org>
13163
13164         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13165         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13166         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13167
13168 2011-05-23  Bruno Haible  <bruno@clisp.org>
13169
13170         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13171         * m4/arcfour.m4: Remove file.
13172         * modules/crypto/arcfour (Files): Remove it.
13173         (configure.ac): Remove gl_ARCFOUR call.
13174         (Makefile.am): Augment lib_SOURCES.
13175
13176 2011-05-22  Bruno Haible  <bruno@clisp.org>
13177
13178         write: Move AC_LIBOBJ invocations to module description.
13179         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13180         * modules/write (configure.ac): ... to here.
13181
13182 2011-05-22  Bruno Haible  <bruno@clisp.org>
13183
13184         wmemset: Move AC_LIBOBJ invocations to module description.
13185         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13186         here...
13187         * modules/wmemset (configure.ac): ... to here.
13188
13189 2011-05-22  Bruno Haible  <bruno@clisp.org>
13190
13191         wmemmove: Move AC_LIBOBJ invocations to module description.
13192         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13193         here...
13194         * modules/wmemmove (configure.ac): ... to here.
13195
13196 2011-05-22  Bruno Haible  <bruno@clisp.org>
13197
13198         wmemcpy: Move AC_LIBOBJ invocations to module description.
13199         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13200         here...
13201         * modules/wmemcpy (configure.ac): ... to here.
13202
13203 2011-05-22  Bruno Haible  <bruno@clisp.org>
13204
13205         wmemcmp: Move AC_LIBOBJ invocations to module description.
13206         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13207         here...
13208         * modules/wmemcmp (configure.ac): ... to here.
13209
13210 2011-05-22  Bruno Haible  <bruno@clisp.org>
13211
13212         wmemchr: Move AC_LIBOBJ invocations to module description.
13213         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13214         here...
13215         * modules/wmemchr (configure.ac): ... to here.
13216
13217 2011-05-22  Bruno Haible  <bruno@clisp.org>
13218
13219         wcswidth: Move AC_LIBOBJ invocations to module description.
13220         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13221         here...
13222         * modules/wcswidth (configure.ac): ... to here.
13223
13224 2011-05-22  Bruno Haible  <bruno@clisp.org>
13225
13226         wcwidth: Respect rules for use of AC_LIBOBJ.
13227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13228         invocation from here...
13229         * modules/wcwidth (configure.ac): ... to here.
13230         (Depends-on): Update conditions.
13231
13232 2011-05-22  Bruno Haible  <bruno@clisp.org>
13233
13234         wctype: Move AC_LIBOBJ invocations to module description.
13235         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13236         invocation from here...
13237         * modules/wctype (configure.ac): ... to here.
13238         (Depends-on): Update conditions.
13239
13240 2011-05-22  Bruno Haible  <bruno@clisp.org>
13241
13242         wctrans: Move AC_LIBOBJ invocations to module description.
13243         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13244         invocation from here...
13245         * modules/wctrans (configure.ac): ... to here.
13246
13247 2011-05-22  Bruno Haible  <bruno@clisp.org>
13248
13249         wctomb: Move AC_LIBOBJ invocations to module description.
13250         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13251         invocations from here...
13252         * modules/wctomb (configure.ac): ... to here.
13253
13254 2011-05-22  Bruno Haible  <bruno@clisp.org>
13255
13256         wctob: Move AC_LIBOBJ invocations to module description.
13257         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13258         gl_PREREQ_WCTOB invocations from here...
13259         * modules/wctob (configure.ac): ... to here.
13260         (Depends-on): Update conditions.
13261
13262 2011-05-22  Bruno Haible  <bruno@clisp.org>
13263
13264         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13265         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13266         here...
13267         * modules/wcsxfrm (configure.ac): ... to here.
13268
13269 2011-05-22  Bruno Haible  <bruno@clisp.org>
13270
13271         wcstok: Move AC_LIBOBJ invocations to module description.
13272         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13273         * modules/wcstok (configure.ac): ... to here.
13274
13275 2011-05-22  Bruno Haible  <bruno@clisp.org>
13276
13277         wcsstr: Move AC_LIBOBJ invocations to module description.
13278         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13279         * modules/wcsstr (configure.ac): ... to here.
13280
13281 2011-05-22  Bruno Haible  <bruno@clisp.org>
13282
13283         wcsspn: Move AC_LIBOBJ invocations to module description.
13284         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13285         * modules/wcsspn (configure.ac): ... to here.
13286
13287 2011-05-22  Bruno Haible  <bruno@clisp.org>
13288
13289         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13290         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13291         gl_PREREQ_WCSRTOMBS invocations from here...
13292         * modules/wcsrtombs (configure.ac): ... to here.
13293
13294 2011-05-22  Bruno Haible  <bruno@clisp.org>
13295
13296         wcsrchr: Move AC_LIBOBJ invocations to module description.
13297         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13298         here...
13299         * modules/wcsrchr (configure.ac): ... to here.
13300
13301 2011-05-22  Bruno Haible  <bruno@clisp.org>
13302
13303         wcspbrk: Move AC_LIBOBJ invocations to module description.
13304         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13305         here...
13306         * modules/wcspbrk (configure.ac): ... to here.
13307
13308 2011-05-22  Bruno Haible  <bruno@clisp.org>
13309
13310         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13311         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13312         gl_PREREQ_WCSNRTOMBS invocations from here...
13313         * modules/wcsnrtombs (configure.ac): ... to here.
13314
13315 2011-05-22  Bruno Haible  <bruno@clisp.org>
13316
13317         wcsnlen: Move AC_LIBOBJ invocations to module description.
13318         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13319         here...
13320         * modules/wcsnlen (configure.ac): ... to here.
13321
13322 2011-05-22  Bruno Haible  <bruno@clisp.org>
13323
13324         wcsncpy: Move AC_LIBOBJ invocations to module description.
13325         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13326         here...
13327         * modules/wcsncpy (configure.ac): ... to here.
13328
13329 2011-05-22  Bruno Haible  <bruno@clisp.org>
13330
13331         wcsncmp: Move AC_LIBOBJ invocations to module description.
13332         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13333         here...
13334         * modules/wcsncmp (configure.ac): ... to here.
13335
13336 2011-05-22  Bruno Haible  <bruno@clisp.org>
13337
13338         wcsncat: Move AC_LIBOBJ invocations to module description.
13339         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13340         here...
13341         * modules/wcsncat (configure.ac): ... to here.
13342
13343 2011-05-22  Bruno Haible  <bruno@clisp.org>
13344
13345         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13346         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13347         from here...
13348         * modules/wcsncasecmp (configure.ac): ... to here.
13349
13350 2011-05-22  Bruno Haible  <bruno@clisp.org>
13351
13352         wcslen: Move AC_LIBOBJ invocations to module description.
13353         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13354         * modules/wcslen (configure.ac): ... to here.
13355
13356 2011-05-22  Bruno Haible  <bruno@clisp.org>
13357
13358         wcsdup: Move AC_LIBOBJ invocations to module description.
13359         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13360         * modules/wcsdup (configure.ac): ... to here.
13361
13362 2011-05-22  Bruno Haible  <bruno@clisp.org>
13363
13364         wcscspn: Move AC_LIBOBJ invocations to module description.
13365         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13366         here...
13367         * modules/wcscspn (configure.ac): ... to here.
13368
13369 2011-05-22  Bruno Haible  <bruno@clisp.org>
13370
13371         wcscpy: Move AC_LIBOBJ invocations to module description.
13372         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13373         * modules/wcscpy (configure.ac): ... to here.
13374
13375 2011-05-22  Bruno Haible  <bruno@clisp.org>
13376
13377         wcscoll: Move AC_LIBOBJ invocations to module description.
13378         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13379         here...
13380         * modules/wcscoll (configure.ac): ... to here.
13381
13382 2011-05-22  Bruno Haible  <bruno@clisp.org>
13383
13384         wcscmp: Move AC_LIBOBJ invocations to module description.
13385         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13386         * modules/wcscmp (configure.ac): ... to here.
13387
13388 2011-05-22  Bruno Haible  <bruno@clisp.org>
13389
13390         wcschr: Move AC_LIBOBJ invocations to module description.
13391         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13392         * modules/wcschr (configure.ac): ... to here.
13393
13394 2011-05-22  Bruno Haible  <bruno@clisp.org>
13395
13396         wcscat: Move AC_LIBOBJ invocations to module description.
13397         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13398         * modules/wcscat (configure.ac): ... to here.
13399
13400 2011-05-22  Bruno Haible  <bruno@clisp.org>
13401
13402         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13403         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13404         here...
13405         * modules/wcscasecmp (configure.ac): ... to here.
13406
13407 2011-05-22  Bruno Haible  <bruno@clisp.org>
13408
13409         wcrtomb: Move AC_LIBOBJ invocations to module description.
13410         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13411         invocations from here...
13412         * modules/wcrtomb (configure.ac): ... to here.
13413
13414 2011-05-22  Bruno Haible  <bruno@clisp.org>
13415
13416         wcpncpy: Move AC_LIBOBJ invocations to module description.
13417         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13418         here...
13419         * modules/wcpncpy (configure.ac): ... to here.
13420
13421 2011-05-22  Bruno Haible  <bruno@clisp.org>
13422
13423         wcpcpy: Move AC_LIBOBJ invocations to module description.
13424         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13425         * modules/wcpcpy (configure.ac): ... to here.
13426
13427 2011-05-22  Bruno Haible  <bruno@clisp.org>
13428
13429         waitpid: Move AC_LIBOBJ invocations to module description.
13430         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13431         invocation from here...
13432         * modules/waitpid (configure.ac): ... to here.
13433
13434 2011-05-22  Bruno Haible  <bruno@clisp.org>
13435
13436         utimensat: Move AC_LIBOBJ invocations to module description.
13437         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13438         here...
13439         * modules/utimensat (configure.ac): ... to here.
13440
13441 2011-05-22  Bruno Haible  <bruno@clisp.org>
13442
13443         usleep: Move AC_LIBOBJ invocations to module description.
13444         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13445         here...
13446         * modules/usleep (configure.ac): ... to here.
13447
13448 2011-05-22  Bruno Haible  <bruno@clisp.org>
13449
13450         unlockpt: Move AC_LIBOBJ invocations to module description.
13451         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13452         gl_PREREQ_UNLOCKPT invocations from here...
13453         * modules/unlockpt (configure.ac): ... to here.
13454
13455 2011-05-22  Bruno Haible  <bruno@clisp.org>
13456
13457         unlink: Respect rules for use of AC_LIBOBJ.
13458         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13459         * modules/unlink (configure.ac): ... to here.
13460
13461 2011-05-22  Bruno Haible  <bruno@clisp.org>
13462
13463         uname: Move AC_LIBOBJ invocations to module description.
13464         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13465         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13466         here...
13467         * modules/uname (configure.ac): ... to here.
13468
13469 2011-05-22  Bruno Haible  <bruno@clisp.org>
13470
13471         ttyname_r: Move AC_LIBOBJ invocations to module description.
13472         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13473         gl_PREREQ_TTYNAME_R invocations from here...
13474         * modules/ttyname_r (configure.ac): ... to here.
13475
13476 2011-05-22  Bruno Haible  <bruno@clisp.org>
13477
13478         tsearch: Move AC_LIBOBJ invocations to module description.
13479         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13480         invocations from here...
13481         * modules/tsearch (configure.ac): ... to here.
13482
13483 2011-05-22  Bruno Haible  <bruno@clisp.org>
13484
13485         towctrans: Move AC_LIBOBJ invocations to module description.
13486         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13487         AC_LIBOBJ invocation from here...
13488         * modules/towctrans (configure.ac): ... to here.
13489
13490 2011-05-22  Bruno Haible  <bruno@clisp.org>
13491
13492         tmpfile: Move AC_LIBOBJ invocations to module description.
13493         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13494         invocations from here...
13495         * modules/tmpfile (configure.ac): ... to here.
13496
13497 2011-05-22  Bruno Haible  <bruno@clisp.org>
13498
13499         times: Move AC_LIBOBJ invocations to module description.
13500         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13501         * modules/times (configure.ac): ... to here.
13502
13503 2011-05-22  Bruno Haible  <bruno@clisp.org>
13504
13505         time_r: Move AC_LIBOBJ invocations to module description.
13506         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13507         invocations from here...
13508         * modules/time_r (configure.ac): ... to here.
13509
13510 2011-05-22  Bruno Haible  <bruno@clisp.org>
13511
13512         timegm: Move AC_LIBOBJ invocations to module description.
13513         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13514         invocations from here...
13515         * modules/timegm (configure.ac): ... to here.
13516
13517 2011-05-22  Bruno Haible  <bruno@clisp.org>
13518
13519         tcgetsid: Move AC_LIBOBJ invocations to module description.
13520         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13521         and gl_PREREQ_TCGETSID invocations from here...
13522         * modules/tcgetsid (configure.ac): ... to here.
13523         (Depends-on): Update conditions.
13524
13525 2011-05-22  Bruno Haible  <bruno@clisp.org>
13526
13527         symlinkat: Move AC_LIBOBJ invocations to module description.
13528         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13529         here...
13530         * modules/symlinkat (configure.ac): ... to here.
13531
13532 2011-05-22  Bruno Haible  <bruno@clisp.org>
13533
13534         symlink: Move AC_LIBOBJ invocations to module description.
13535         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13536         here...
13537         * modules/symlink (configure.ac): ... to here.
13538
13539 2011-05-22  Bruno Haible  <bruno@clisp.org>
13540
13541         strverscmp: Move AC_LIBOBJ invocations to module description.
13542         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13544         from here...
13545         * modules/strverscmp (configure.ac): ... to here.
13546
13547 2011-05-22  Bruno Haible  <bruno@clisp.org>
13548
13549         strtok_r: Move AC_LIBOBJ invocations to module description.
13550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13551         and gl_PREREQ_STRTOK_R invocations from here...
13552         * modules/strtok_r (configure.ac): ... to here.
13553         (Depends-on): Update conditions.
13554
13555 2011-05-22  Bruno Haible  <bruno@clisp.org>
13556
13557         strtoumax: Move AC_LIBOBJ invocations to module description.
13558         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13560         from here...
13561         * modules/strtoumax (configure.ac): ... to here.
13562
13563 2011-05-22  Bruno Haible  <bruno@clisp.org>
13564
13565         strtoimax: Move AC_LIBOBJ invocations to module description.
13566         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13568         from here...
13569         * modules/strtoimax (configure.ac): ... to here.
13570
13571 2011-05-22  Bruno Haible  <bruno@clisp.org>
13572
13573         strtoull: Move AC_LIBOBJ invocations to module description.
13574         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13576         from here...
13577         * modules/strtoull (configure.ac): ... to here.
13578
13579 2011-05-22  Bruno Haible  <bruno@clisp.org>
13580
13581         strtoll: Move AC_LIBOBJ invocations to module description.
13582         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13584         here...
13585         * modules/strtoll (configure.ac): ... to here.
13586
13587 2011-05-22  Bruno Haible  <bruno@clisp.org>
13588
13589         strtoul: Move AC_LIBOBJ invocations to module description.
13590         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13591         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13592         * modules/strtoul (configure.ac): ... to here.
13593
13594 2011-05-22  Bruno Haible  <bruno@clisp.org>
13595
13596         strtol: Move AC_LIBOBJ invocations to module description.
13597         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13598         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13599         * modules/strtol (configure.ac): ... to here.
13600
13601 2011-05-22  Bruno Haible  <bruno@clisp.org>
13602
13603         strtod: Move AC_LIBOBJ invocations to module description.
13604         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13605         invocations from here...
13606         * modules/strtod (configure.ac): ... to here.
13607
13608 2011-05-22  Bruno Haible  <bruno@clisp.org>
13609
13610         strstr*: Move AC_LIBOBJ invocations to module description.
13611         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13612         invocations from here...
13613         * modules/strstr-simple (configure.ac): ... to here.
13614         * modules/strstr (configure.ac): ... and here.
13615
13616 2011-05-22  Bruno Haible  <bruno@clisp.org>
13617
13618         strsignal: Move AC_LIBOBJ invocations to module description.
13619         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13620         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13621         * modules/strsignal (configure.ac): ... to here.
13622         (Depends-on): Update conditions.
13623
13624 2011-05-22  Bruno Haible  <bruno@clisp.org>
13625
13626         strsep: Move AC_LIBOBJ invocations to module description.
13627         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13629         here...
13630         * modules/strsep (configure.ac): ... to here.
13631
13632 2011-05-22  Bruno Haible  <bruno@clisp.org>
13633
13634         strptime: Move AC_LIBOBJ invocations to module description.
13635         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13636         gl_PREREQ_STRPTIME invocations from here...
13637         * modules/strptime (configure.ac): ... to here.
13638
13639 2011-05-22  Bruno Haible  <bruno@clisp.org>
13640
13641         strpbrk: Move AC_LIBOBJ invocations to module description.
13642         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13644         here...
13645         * modules/strpbrk (configure.ac): ... to here.
13646
13647 2011-05-22  Bruno Haible  <bruno@clisp.org>
13648
13649         strnlen: Move AC_LIBOBJ invocations to module description.
13650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13651         invocations from here...
13652         * modules/strnlen (configure.ac): ... to here.
13653
13654 2011-05-22  Bruno Haible  <bruno@clisp.org>
13655
13656         strndup: Move AC_LIBOBJ invocations to module description.
13657         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13658         invocations from here...
13659         * modules/strndup (configure.ac): ... to here.
13660         (Depends-on): Update conditions.
13661
13662 2011-05-22  Bruno Haible  <bruno@clisp.org>
13663
13664         strncat: Move AC_LIBOBJ invocations to module description.
13665         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13666         invocations from here...
13667         * modules/strncat (configure.ac): ... to here.
13668
13669 2011-05-22  Bruno Haible  <bruno@clisp.org>
13670
13671         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13672         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13673         invocations from here...
13674         * modules/strdup (configure.ac): ... to here.
13675         * modules/strdup-posix (configure.ac): ... and here.
13676
13677 2011-05-22  Bruno Haible  <bruno@clisp.org>
13678
13679         strcspn: Move AC_LIBOBJ invocations to module description.
13680         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13682         here...
13683         * modules/strcspn (configure.ac): ... to here.
13684
13685 2011-05-22  Bruno Haible  <bruno@clisp.org>
13686
13687         strchrnul: Move AC_LIBOBJ invocations to module description.
13688         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13689         gl_PREREQ_STRCHRNUL invocations from here...
13690         * modules/strchrnul (configure.ac): ... to here.
13691
13692 2011-05-22  Bruno Haible  <bruno@clisp.org>
13693
13694         strcasestr*: Move AC_LIBOBJ invocations to module description.
13695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13696         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13697         * modules/strcasestr-simple (configure.ac): ... to here.
13698         * modules/strcasestr (configure.ac): ... and here.
13699
13700 2011-05-22  Bruno Haible  <bruno@clisp.org>
13701
13702         strcase: Move AC_LIBOBJ invocations to module description.
13703         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13704         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13705         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13706         gl_PREREQ_STRNCASECMP invocations from here...
13707         * modules/strcase (configure.ac): ... to here.
13708
13709 2011-05-22  Bruno Haible  <bruno@clisp.org>
13710
13711         stpncpy: Move AC_LIBOBJ invocations to module description.
13712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13713         here...
13714         * modules/stpncpy (configure.ac): ... to here.
13715
13716 2011-05-22  Bruno Haible  <bruno@clisp.org>
13717
13718         stpcpy: Move AC_LIBOBJ invocations to module description.
13719         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13721         here...
13722         * modules/stpcpy (configure.ac): ... to here.
13723
13724 2011-05-21  Bruno Haible  <bruno@clisp.org>
13725
13726         stat: Move AC_LIBOBJ invocations to module description.
13727         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13728         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13729         here...
13730         * modules/stat (configure.ac): ... to here.
13731
13732 2011-05-21  Bruno Haible  <bruno@clisp.org>
13733
13734         sleep: Move AC_LIBOBJ invocations to module description.
13735         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13736         * modules/sleep (configure.ac): ... to here.
13737
13738 2011-05-21  Bruno Haible  <bruno@clisp.org>
13739
13740         signbit: Move AC_LIBOBJ invocations to module description.
13741         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13742         * modules/signbit (configure.ac): ... to here.
13743
13744 2011-05-21  Bruno Haible  <bruno@clisp.org>
13745
13746         sigprocmask: Move AC_LIBOBJ invocations to module description.
13747         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13748         gl_PREREQ_SIGPROMASK invocations from here...
13749         * modules/sigprocmask (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         sigaction: Move AC_LIBOBJ invocations to module description.
13754         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13755         gl_PREREQ_SIGACTION invocations from here...
13756         * modules/sigaction (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         sig2str: Move AC_LIBOBJ invocations to module description.
13761         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13763         here...
13764         * modules/sig2str (configure.ac): ... to here.
13765
13766 2011-05-21  Bruno Haible  <bruno@clisp.org>
13767
13768         setlocale: Move AC_LIBOBJ invocations to module description.
13769         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13770         gl_PREREQ_SETLOCALE invocations from here...
13771         * modules/setlocale (configure.ac): ... to here.
13772
13773 2011-05-21  Bruno Haible  <bruno@clisp.org>
13774
13775         unsetenv: Move AC_LIBOBJ invocations to module description.
13776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13777         and gl_PREREQ_UNSETENV invocations from here...
13778         * modules/unsetenv (configure.ac): ... to here.
13779         (Depends-on): Update.
13780
13781 2011-05-21  Bruno Haible  <bruno@clisp.org>
13782
13783         setenv: Move AC_LIBOBJ invocations to module description.
13784         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13785         here...
13786         * modules/setenv (configure.ac): ... to here.
13787
13788 2011-05-21  Bruno Haible  <bruno@clisp.org>
13789
13790         selinux-h: Move AC_LIBOBJ invocations to module description.
13791         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13792         AC_LIBOBJ invocation from here...
13793         * modules/selinux-h (configure.ac): ... to here.
13794
13795 2011-05-21  Bruno Haible  <bruno@clisp.org>
13796
13797         select: Respect rules for use of AC_LIBOBJ.
13798         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13799         here...
13800         * modules/select (configure.ac): ... to here.
13801
13802 2011-05-21  Bruno Haible  <bruno@clisp.org>
13803
13804         scandir: Move AC_LIBOBJ invocations to module description.
13805         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13806         invocations from here...
13807         * modules/scandir (configure.ac): ... to here.
13808
13809 2011-05-21  Bruno Haible  <bruno@clisp.org>
13810
13811         rpmatch: Move AC_LIBOBJ invocations to module description.
13812         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13813         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13814         here...
13815         * modules/rpmatch (configure.ac): ... to here.
13816
13817 2011-05-21  Bruno Haible  <bruno@clisp.org>
13818
13819         rmdir: Respect rules for use of AC_LIBOBJ.
13820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13821         * modules/rmdir (configure.ac): ... to here.
13822
13823 2011-05-21  Bruno Haible  <bruno@clisp.org>
13824
13825         renameat: Move AC_LIBOBJ invocations to module description.
13826         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13827         here...
13828         * modules/renameat (configure.ac): ... to here.
13829
13830 2011-05-21  Bruno Haible  <bruno@clisp.org>
13831
13832         rename: Respect rules for use of AC_LIBOBJ.
13833         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13834         here...
13835         * modules/rename (configure.ac): ... to here.
13836
13837 2011-05-21  Bruno Haible  <bruno@clisp.org>
13838
13839         remove: Move AC_LIBOBJ invocations to module description.
13840         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13841         here...
13842         * modules/remove (configure.ac): ... to here.
13843
13844 2011-05-21  Bruno Haible  <bruno@clisp.org>
13845
13846         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13847         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13848         macro.
13849         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13850         * modules/relocatable-lib (configure.ac): ... to here.
13851         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13852         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13857         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13858         here...
13859         * modules/relocatable-prog (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         regex: Move AC_LIBOBJ invocations to module description.
13864         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13865         invocations from here...
13866         * modules/regex (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         realloc-*: Move AC_LIBOBJ invocations to module description.
13871         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13872         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13873         AC_LIBOBJ invocations from here...
13874         * modules/realloc-gnu (configure.ac): ... to here.
13875         * modules/realloc-posix (configure.ac): ... and here.
13876
13877 2011-05-21  Bruno Haible  <bruno@clisp.org>
13878
13879         readutmp: Move AC_LIBOBJ invocations to module description.
13880         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13881         * modules/readutmp (configure.ac): ... to here.
13882
13883 2011-05-21  Bruno Haible  <bruno@clisp.org>
13884
13885         readlinkat: Move AC_LIBOBJ invocations to module description.
13886         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13887         here...
13888         * modules/readlinkat (configure.ac): ... to here.
13889
13890 2011-05-21  Bruno Haible  <bruno@clisp.org>
13891
13892         readlink: Move AC_LIBOBJ invocations to module description.
13893         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13894         gl_PREREQ_READLINK invocations from here...
13895         * modules/readlink (configure.ac): ... to here.
13896
13897 2011-05-21  Bruno Haible  <bruno@clisp.org>
13898
13899         readline: Move AC_LIBOBJ invocations to module description.
13900         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13901         gl_PREREQ_READLINE invocations from here...
13902         * modules/readline (configure.ac): ... to here.
13903
13904 2011-05-21  Bruno Haible  <bruno@clisp.org>
13905
13906         read: Move AC_LIBOBJ invocations to module description.
13907         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13908         * modules/read (configure.ac): ... to here.
13909
13910 2011-05-21  Bruno Haible  <bruno@clisp.org>
13911
13912         rawmemchr: Move AC_LIBOBJ invocations to module description.
13913         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13915         from here...
13916         * modules/rawmemchr (configure.ac): ... to here.
13917
13918 2011-05-21  Bruno Haible  <bruno@clisp.org>
13919
13920         random_r: Move AC_LIBOBJ invocations to module description.
13921         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13922         gl_PREREQ_RANDOM_R invocations from here...
13923         * modules/random_r (configure.ac): ... to here.
13924
13925 2011-05-21  Bruno Haible  <bruno@clisp.org>
13926
13927         pwrite: Move AC_LIBOBJ invocations to module description.
13928         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13929         * modules/pwrite (configure.ac): ... to here.
13930
13931 2011-05-21  Bruno Haible  <bruno@clisp.org>
13932
13933         putenv: Move AC_LIBOBJ invocations to module description.
13934         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13935         * modules/putenv (configure.ac): ... to here.
13936
13937 2011-05-21  Bruno Haible  <bruno@clisp.org>
13938
13939         login_tty: Move AC_LIBOBJ invocations to module description.
13940         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13941         * modules/login_tty (configure.ac): ... to here.
13942
13943 2011-05-21  Bruno Haible  <bruno@clisp.org>
13944
13945         openpty: Move AC_LIBOBJ invocations to module description.
13946         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13947         * modules/openpty (configure.ac): ... to here.
13948
13949 2011-05-21  Bruno Haible  <bruno@clisp.org>
13950
13951         forkpty: Move AC_LIBOBJ invocations to module description.
13952         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13953         * modules/forkpty (configure.ac): ... to here.
13954
13955 2011-05-21  Bruno Haible  <bruno@clisp.org>
13956
13957         ptsname: Move AC_LIBOBJ invocations to module description.
13958         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13959         invocations from here...
13960         * modules/ptsname (configure.ac): ... to here.
13961
13962 2011-05-21  Bruno Haible  <bruno@clisp.org>
13963
13964         pread: Move AC_LIBOBJ invocations to module description.
13965         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13966         * modules/pread (configure.ac): ... to here.
13967
13968 2011-05-21  Bruno Haible  <bruno@clisp.org>
13969
13970         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13971         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13972         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13973         * modules/posix_spawn (configure.ac): ... to here.
13974         * modules/posix_spawnp (configure.ac): ... and here.
13975
13976 2011-05-21  Bruno Haible  <bruno@clisp.org>
13977
13978         popen: Move AC_LIBOBJ invocations to module description.
13979         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13980         invocations from here...
13981         * modules/popen (configure.ac): ... to here.
13982
13983 2011-05-21  Bruno Haible  <bruno@clisp.org>
13984
13985         poll: Move AC_LIBOBJ invocations to module description.
13986         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13987         invocations from here...
13988         * modules/poll (configure.ac): ... to here.
13989
13990 2011-05-21  Bruno Haible  <bruno@clisp.org>
13991
13992         pipe-posix: Move AC_LIBOBJ invocations to module description.
13993         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13994         * modules/pipe-posix (configure.ac): ... to here.
13995
13996 2011-05-21  Bruno Haible  <bruno@clisp.org>
13997
13998         openat: Respect rules for use of AC_LIBOBJ.
13999         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14000         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14001         * modules/openat (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14006         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14007         invocation from here...
14008         * modules/obstack-printf (configure.ac): ... to here.
14009         * modules/obstack-printf-posix (configure.ac): ... and here.
14010
14011 2011-05-21  Bruno Haible  <bruno@clisp.org>
14012
14013         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14014         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14015         from here...
14016         * modules/nl_langinfo (configure.ac): ... to here.
14017
14018 2011-05-21  Bruno Haible  <bruno@clisp.org>
14019
14020         nanosleep: Move AC_LIBOBJ invocations to module description.
14021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14022         gl_PREREQ_NANOSLEEP invocations from here...
14023         * modules/nanosleep (configure.ac): ... to here.
14024
14025 2011-05-21  Bruno Haible  <bruno@clisp.org>
14026
14027         mountlist: Move AC_LIBOBJ invocations to module description.
14028         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14029         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14030         * modules/mountlist (configure.ac): ... to here.
14031
14032 2011-05-21  Bruno Haible  <bruno@clisp.org>
14033
14034         mktime: Respect rules for use of AC_LIBOBJ.
14035         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14036         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14037         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14038         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14039         * modules/mktime (configure.ac): ... to here.
14040         * modules/mktime-internal (configure.ac): ... and here.
14041         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14042
14043 2011-05-21  Bruno Haible  <bruno@clisp.org>
14044
14045         mkstemps: Move AC_LIBOBJ invocations to module description.
14046         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14047         here...
14048         * modules/mkstemps (configure.ac): ... to here.
14049
14050 2011-05-21  Bruno Haible  <bruno@clisp.org>
14051
14052         mkstemp: Move AC_LIBOBJ invocations to module description.
14053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14054         gl_PREREQ_MKSTEMP invocations from here...
14055         * modules/mkstemp (configure.ac): ... to here.
14056
14057 2011-05-21  Bruno Haible  <bruno@clisp.org>
14058
14059         mkostemps: Move AC_LIBOBJ invocations to module description.
14060         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14061         here...
14062         * modules/mkostemps (configure.ac): ... to here.
14063
14064 2011-05-21  Bruno Haible  <bruno@clisp.org>
14065
14066         mkostemp: Move AC_LIBOBJ invocations to module description.
14067         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14068         gl_PREREQ_MKOSTEMP invocations from here...
14069         * modules/mkostemp (configure.ac): ... to here.
14070
14071 2011-05-21  Bruno Haible  <bruno@clisp.org>
14072
14073         mknod: Move AC_LIBOBJ invocations to module description.
14074         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14075         * modules/mknod (configure.ac): ... to here.
14076
14077 2011-05-21  Bruno Haible  <bruno@clisp.org>
14078
14079         mkfifoat: Move AC_LIBOBJ invocations to module description.
14080         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14081         here...
14082         * modules/mkfifoat (configure.ac): ... to here.
14083
14084 2011-05-21  Bruno Haible  <bruno@clisp.org>
14085
14086         mkfifo: Respect rules for use of AC_LIBOBJ.
14087         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14088         here...
14089         * modules/mkfifo (configure.ac): ... to here.
14090
14091 2011-05-21  Bruno Haible  <bruno@clisp.org>
14092
14093         mkdtemp: Move AC_LIBOBJ invocations to module description.
14094         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14095         invocations from here...
14096         * modules/mkdtemp (configure.ac): ... to here.
14097
14098 2011-05-21  Bruno Haible  <bruno@clisp.org>
14099
14100         mkdir: Move AC_LIBOBJ invocations to module description.
14101         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14102         * modules/mkdir (configure.ac): ... to here.
14103
14104 2011-05-21  Bruno Haible  <bruno@clisp.org>
14105
14106         memset: Move AC_LIBOBJ invocations to module description.
14107         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14109         here...
14110         * modules/memset (configure.ac): ... to here.
14111
14112 2011-05-21  Bruno Haible  <bruno@clisp.org>
14113
14114         memrchr: Move AC_LIBOBJ invocations to module description.
14115         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14117         here...
14118         * modules/memrchr (configure.ac): ... to here.
14119
14120 2011-05-21  Bruno Haible  <bruno@clisp.org>
14121
14122         mempcpy: Move AC_LIBOBJ invocations to module description.
14123         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14125         here...
14126         * modules/mempcpy (configure.ac): ... to here.
14127
14128 2011-05-21  Bruno Haible  <bruno@clisp.org>
14129
14130         memmove: Move AC_LIBOBJ invocations to module description.
14131         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14132         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14133         here...
14134         * modules/memmove (configure.ac): ... to here.
14135
14136 2011-05-21  Bruno Haible  <bruno@clisp.org>
14137
14138         memmem*: Move AC_LIBOBJ invocations to module description.
14139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14140         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14141         here...
14142         (gl_FUNC_MEMMEM): ... and here...
14143         * modules/memmem-simple (configure.ac): ... to here.
14144         * modules/memmem (configure.ac): ... and here.
14145
14146 2011-05-21  Bruno Haible  <bruno@clisp.org>
14147
14148         memcpy: Move AC_LIBOBJ invocations to module description.
14149         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14150         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14151         here...
14152         * modules/memcpy (configure.ac): ... to here.
14153
14154 2011-05-21  Bruno Haible  <bruno@clisp.org>
14155
14156         memcmp: Simplify autoconf macro.
14157         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14158         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14159         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14160
14161 2011-05-21  Bruno Haible  <bruno@clisp.org>
14162
14163         memcmp: Move AC_LIBOBJ invocations to module description.
14164         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14165         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14166         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14167         * modules/memcmp (configure.ac): ... to here.
14168         (Depends-on): Update conditions.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         memchr: Respect rules for use of AC_LIBOBJ.
14173         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14174         invocations from here...
14175         * modules/memchr (configure.ac): ... to here.
14176
14177 2011-05-21  Bruno Haible  <bruno@clisp.org>
14178
14179         mbtowc: Move AC_LIBOBJ invocations to module description.
14180         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14181         invocations from here...
14182         * modules/mbtowc (configure.ac): ... to here.
14183
14184 2011-05-21  Bruno Haible  <bruno@clisp.org>
14185
14186         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14187         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14188         gl_PREREQ_MBSRTOWCS invocations from here...
14189         * modules/mbsrtowcs (configure.ac): ... to here.
14190
14191 2011-05-21  Bruno Haible  <bruno@clisp.org>
14192
14193         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14194         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14195         gl_PREREQ_MBSNRTOWCS invocations from here...
14196         * modules/mbsnrtowcs (configure.ac): ... to here.
14197
14198 2011-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         mbsinit: Move AC_LIBOBJ invocations to module description.
14201         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14202         invocations from here...
14203         * modules/mbsinit (configure.ac): ... to here.
14204
14205 2011-05-21  Bruno Haible  <bruno@clisp.org>
14206
14207         mbrlen: Move AC_LIBOBJ invocations to module description.
14208         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14209         invocations from here...
14210         * modules/mbrlen (configure.ac): ... to here.
14211
14212 2011-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         mbrtowc: Respect rules for use of AC_LIBOBJ.
14215         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14216         invocations from here...
14217         * modules/mbrtowc (configure.ac): ... to here.
14218
14219 2011-05-21  Bruno Haible  <bruno@clisp.org>
14220
14221         malloc-*: Move AC_LIBOBJ invocations to module description.
14222         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14223         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14224         AC_LIBOBJ invocations from here...
14225         * modules/malloc-gnu (configure.ac): ... to here.
14226         * modules/malloc-posix (configure.ac): ... and here.
14227
14228 2011-05-21  Bruno Haible  <bruno@clisp.org>
14229
14230         lstat, openat: Respect rules for use of AC_LIBOBJ.
14231         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14233         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14234         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14235         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14236         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14237         here.
14238         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14239
14240 2011-05-21  Bruno Haible  <bruno@clisp.org>
14241
14242         lseek: Move AC_LIBOBJ invocations to module description.
14243         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14244         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14245         * modules/lseek (configure.ac): ... to here.
14246
14247 2011-05-21  Bruno Haible  <bruno@clisp.org>
14248
14249         linkat: Move AC_LIBOBJ invocations to module description.
14250         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14251         here...
14252         * modules/linkat (configure.ac): ... to here.
14253
14254 2011-05-21  Bruno Haible  <bruno@clisp.org>
14255
14256         link: Respect rules for use of AC_LIBOBJ.
14257         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14258         * modules/link (configure.ac): ... to here.
14259
14260 2011-05-21  Bruno Haible  <bruno@clisp.org>
14261
14262         lchown: Move AC_LIBOBJ invocations to module description.
14263         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14264         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14265         * modules/lchown (configure.ac): ... to here.
14266
14267 2011-05-21  Bruno Haible  <bruno@clisp.org>
14268
14269         iswctype: Move AC_LIBOBJ invocations to module description.
14270         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14271         here...
14272         * modules/iswctype (configure.ac): ... to here.
14273
14274 2011-05-21  Bruno Haible  <bruno@clisp.org>
14275
14276         iswblank: Move AC_LIBOBJ invocations to module description.
14277         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14278         here...
14279         * modules/iswblank (configure.ac): ... to here.
14280
14281 2011-05-21  Bruno Haible  <bruno@clisp.org>
14282
14283         atanl: Move AC_LIBOBJ invocations to module description.
14284         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14285         * modules/atanl (configure.ac): ... to here.
14286
14287 2011-05-21  Bruno Haible  <bruno@clisp.org>
14288
14289         acosl: Move AC_LIBOBJ invocations to module description.
14290         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14291         * modules/acosl (configure.ac): ... to here.
14292
14293 2011-05-21  Bruno Haible  <bruno@clisp.org>
14294
14295         asinl: Respect rules for use of AC_LIBOBJ.
14296         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14297         * modules/asinl (configure.ac): ... to here.
14298
14299 2011-05-21  Bruno Haible  <bruno@clisp.org>
14300
14301         tanl: Move AC_LIBOBJ invocations to module description.
14302         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14303         * modules/tanl (configure.ac): ... to here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         cosl: Move AC_LIBOBJ invocations to module description.
14308         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14309         * modules/cosl (configure.ac): ... to here.
14310
14311 2011-05-21  Bruno Haible  <bruno@clisp.org>
14312
14313         sinl: Move AC_LIBOBJ invocations to module description.
14314         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14315         * modules/sinl (configure.ac): ... to here.
14316
14317 2011-05-21  Bruno Haible  <bruno@clisp.org>
14318
14319         logl: Move AC_LIBOBJ invocations to module description.
14320         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14321         * modules/logl (configure.ac): ... to here.
14322
14323 2011-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         expl: Move AC_LIBOBJ invocations to module description.
14326         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14327         * modules/expl (configure.ac): ... to here.
14328
14329 2011-05-21  Bruno Haible  <bruno@clisp.org>
14330
14331         roundl: Move AC_LIBOBJ invocations to module description.
14332         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14333         * modules/roundl (configure.ac): ... to here.
14334
14335 2011-05-21  Bruno Haible  <bruno@clisp.org>
14336
14337         round: Move AC_LIBOBJ invocations to module description.
14338         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14339         * modules/round (configure.ac): ... to here.
14340
14341 2011-05-21  Bruno Haible  <bruno@clisp.org>
14342
14343         roundf: Move AC_LIBOBJ invocations to module description.
14344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14345         * modules/roundf (configure.ac): ... to here.
14346
14347 2011-05-21  Bruno Haible  <bruno@clisp.org>
14348
14349         truncl: Move AC_LIBOBJ invocations to module description.
14350         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14351         * modules/truncl (configure.ac): ... to here.
14352
14353 2011-05-21  Bruno Haible  <bruno@clisp.org>
14354
14355         trunc: Move AC_LIBOBJ invocations to module description.
14356         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14357         * modules/trunc (configure.ac): ... to here.
14358
14359 2011-05-21  Bruno Haible  <bruno@clisp.org>
14360
14361         truncf: Move AC_LIBOBJ invocations to module description.
14362         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14363         * modules/truncf (configure.ac): ... to here.
14364
14365 2011-05-21  Bruno Haible  <bruno@clisp.org>
14366
14367         ceill: Move AC_LIBOBJ invocations to module description.
14368         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14369         * modules/ceill (configure.ac): ... to here.
14370
14371 2011-05-21  Bruno Haible  <bruno@clisp.org>
14372
14373         ceil: Move AC_LIBOBJ invocations to module description.
14374         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14375         * modules/ceil (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         ceilf: Move AC_LIBOBJ invocations to module description.
14380         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14381         * modules/ceilf (configure.ac): ... to here.
14382
14383 2011-05-21  Bruno Haible  <bruno@clisp.org>
14384
14385         floorl: Respect rules for use of AC_LIBOBJ.
14386         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14387         * modules/floorl (configure.ac): ... to here.
14388
14389 2011-05-21  Bruno Haible  <bruno@clisp.org>
14390
14391         floor: Respect rules for use of AC_LIBOBJ.
14392         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14393         * modules/floor (configure.ac): ... to here.
14394
14395 2011-05-21  Bruno Haible  <bruno@clisp.org>
14396
14397         floorf: Move AC_LIBOBJ invocations to module description.
14398         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14399         * modules/floorf (configure.ac): ... to here.
14400
14401 2011-05-20  Bruno Haible  <bruno@clisp.org>
14402
14403         sqrtl: Respect rules for use of AC_LIBOBJ.
14404         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14405         * modules/sqrtl (configure.ac): ... to here.
14406
14407 2011-05-20  Bruno Haible  <bruno@clisp.org>
14408
14409         ldexpl: Respect rules for use of AC_LIBOBJ.
14410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14411         * modules/ldexpl (configure.ac): ... to here.
14412
14413 2011-05-20  Bruno Haible  <bruno@clisp.org>
14414
14415         frexpl*: Respect rules for use of AC_LIBOBJ.
14416         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14417         invocation from here...
14418         * modules/frexpl (configure.ac): ... to here.
14419         * modules/frexpl-nolibm (configure.ac): ... and here.
14420
14421 2011-05-20  Bruno Haible  <bruno@clisp.org>
14422
14423         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14424         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14425         invocation from here...
14426         * modules/frexp (configure.ac): ... to here.
14427         * modules/frexp-nolibm (configure.ac): ... and here.
14428
14429 2011-05-20  Bruno Haible  <bruno@clisp.org>
14430
14431         isnan: Respect rules for use of AC_LIBOBJ.
14432         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14433         invocations here.
14434         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14435         REPLACE_ISNAN.
14436         * modules/isnand (configure.ac): Likewise.
14437         * modules/isnanl (configure.ac): Likewise.
14438
14439 2011-05-20  Bruno Haible  <bruno@clisp.org>
14440
14441         isnanl*: Respect rules for use of AC_LIBOBJ.
14442         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14443         invocation from here...
14444         * modules/isnanl (configure.ac): ... to here.
14445         * modules/isnanl-nolibm (configure.ac): ... and here.
14446
14447 2011-05-20  Bruno Haible  <bruno@clisp.org>
14448
14449         isnand*: Move AC_LIBOBJ invocations to module description.
14450         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14451         invocation from here...
14452         * modules/isnand (configure.ac): ... to here.
14453         * modules/isnand-nolibm (configure.ac): ... and here.
14454
14455 2011-05-20  Bruno Haible  <bruno@clisp.org>
14456
14457         isnanf*: Move AC_LIBOBJ invocations to module description.
14458         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14459         invocation from here...
14460         * modules/isnanf (configure.ac): ... to here.
14461         * modules/isnanf-nolibm (configure.ac): ... and here.
14462
14463 2011-05-20  Bruno Haible  <bruno@clisp.org>
14464
14465         isnan*: Separate the AC_LIBOBJ invocations.
14466         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14467         AC_LIBOBJ invocation.
14468         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14469         here.
14470         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14471         AC_LIBOBJ invocation.
14472         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14473         here.
14474         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14475         AC_LIBOBJ invocation.
14476         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14477         here.
14478         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14479
14480 2011-05-08  Bruno Haible  <bruno@clisp.org>
14481
14482         isinf: Move AC_LIBOBJ invocations to module description.
14483         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14484         * modules/isinf (configure.ac): ... to here.
14485
14486 2011-05-08  Bruno Haible  <bruno@clisp.org>
14487
14488         isfinite: Move AC_LIBOBJ invocations to module description.
14489         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14490         * modules/isfinite (configure.ac): ... to here.
14491
14492 2011-05-08  Bruno Haible  <bruno@clisp.org>
14493
14494         isblank: Move AC_LIBOBJ invocations to module description.
14495         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14496         here...
14497         * modules/isblank (configure.ac): ... to here.
14498
14499 2011-05-08  Bruno Haible  <bruno@clisp.org>
14500
14501         isapipe: Move AC_LIBOBJ invocations to module description.
14502         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14503         gl_PREREQ_ISAPIPE invocations from here...
14504         * modules/isapipe (configure.ac): ... to here.
14505         (Depends-on): Update condition.
14506
14507 2011-05-08  Bruno Haible  <bruno@clisp.org>
14508
14509         ioctl: Move AC_LIBOBJ invocations to module description.
14510         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14511         invocations from here...
14512         * modules/ioctl (configure.ac): ... to here.
14513         (Depends-on): Update condition.
14514
14515 2011-05-08  Bruno Haible  <bruno@clisp.org>
14516
14517         imaxdiv: Move AC_LIBOBJ invocations to module description.
14518         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14519         invocations from here...
14520         * modules/imaxdiv (configure.ac): ... to here.
14521
14522 2011-05-08  Bruno Haible  <bruno@clisp.org>
14523
14524         imaxabs: Move AC_LIBOBJ invocations to module description.
14525         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14526         invocations from here...
14527         * modules/imaxabs (configure.ac): ... to here.
14528
14529 2011-05-08  Bruno Haible  <bruno@clisp.org>
14530
14531         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14533         AC_LIBOBJ invocations from here...
14534         * modules/getaddrinfo (configure.ac): ... to here.
14535         (Depends-on): Add conditions.
14536
14537 2011-05-08  Bruno Haible  <bruno@clisp.org>
14538
14539         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14540         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14541         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14542         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14543         (gl_PREREQ_INET_PTON): ... from here.
14544         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14545         gl_PREREQ_INET_PTON here.
14546         (Depends-on): Update condition.
14547
14548 2011-05-08  Bruno Haible  <bruno@clisp.org>
14549
14550         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14551         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14552         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14553         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14554         (gl_PREREQ_INET_NTOP): ... from here.
14555         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14556         gl_PREREQ_INET_NTOP here.
14557         (Depends-on): Update condition.
14558
14559 2011-05-08  Bruno Haible  <bruno@clisp.org>
14560
14561         iconv_open: Move AC_LIBOBJ invocations to module description.
14562         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14563         AC_LIBOBJ invocations from here...
14564         * modules/iconv_open (configure.ac): ... to here.
14565
14566 2011-05-08  Bruno Haible  <bruno@clisp.org>
14567
14568         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14569         If module 'iconv_open' is among the main modules and module
14570         'iconv_open-utf' is among the tests dependencies, then
14571         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14572         return the special iconv_t values. Therefore iconv() and iconv_close()
14573         must support these special iconv_t values, already in lib, not only in
14574         tests.
14575         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14576         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14577         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14578         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14579         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14580         (Depends-on): Add the dependencies of iconv_open-utf.
14581         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14582         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14583         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14584
14585 2011-05-08  Bruno Haible  <bruno@clisp.org>
14586
14587         group-member: Move AC_LIBOBJ invocations to module description.
14588         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14589         gl_PREREQ_GROUP_MEMBER invocations from here...
14590         * modules/group-member (configure.ac): ... to here.
14591
14592 2011-05-08  Bruno Haible  <bruno@clisp.org>
14593
14594         grantpt: Move AC_LIBOBJ invocations to module description.
14595         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14596         invocations from here...
14597         * modules/grantpt (configure.ac): ... to here.
14598
14599 2011-05-08  Bruno Haible  <bruno@clisp.org>
14600
14601         glob: Move AC_LIBOBJ invocations to module description.
14602         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14603         from here...
14604         * modules/glob (configure.ac): ... to here.
14605
14606 2011-05-08  Bruno Haible  <bruno@clisp.org>
14607
14608         getusershell: Move AC_LIBOBJ invocations to module description.
14609         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14610         Move AC_LIBOBJ invocation from here...
14611         * modules/getusershell (configure.ac): ... to here.
14612         (Depends-on): Update condition.
14613
14614 2011-05-08  Bruno Haible  <bruno@clisp.org>
14615
14616         gettimeofday: Move AC_LIBOBJ invocations to module description.
14617         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14618         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14619         gl_PREREQ_GETTIMEOFDAY invocations from here...
14620         * modules/gettimeofday (configure.ac): ... to here.
14621
14622 2011-05-08  Bruno Haible  <bruno@clisp.org>
14623
14624         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14625         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14626         just gl_FUNC_TZSET.
14627         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14628         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14630         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14631
14632 2011-05-08  Bruno Haible  <bruno@clisp.org>
14633
14634         getsubopt: Move AC_LIBOBJ invocations to module description.
14635         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14636         gl_PREREQ_GETSUBOPT invocations from here...
14637         * modules/getsubopt (configure.ac): ... to here.
14638
14639 2011-05-08  Bruno Haible  <bruno@clisp.org>
14640
14641         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14642         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14643         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14644         * modules/getpass-gnu (configure.ac): ... to here.
14645
14646 2011-05-08  Bruno Haible  <bruno@clisp.org>
14647
14648         getpass: Move AC_LIBOBJ invocations to module description.
14649         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14650         gl_PREREQ_GETPASS invocations from here...
14651         * modules/getpass (configure.ac): ... to here.
14652
14653 2011-05-08  Bruno Haible  <bruno@clisp.org>
14654
14655         getpagesize: Move AC_LIBOBJ invocations to module description.
14656         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14657         from here...
14658         * modules/getpagesize (configure.ac): ... to here.
14659
14660 2011-05-08  Bruno Haible  <bruno@clisp.org>
14661
14662         getopt: Move AC_LIBOBJ invocations to module description.
14663         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14664         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14665         invocations from here...
14666         * modules/getopt-gnu (configure.ac): ... to here.
14667         * modules/getopt-posix (configure.ac): ... and here.
14668         (Depends-on): Update condition.
14669
14670 2011-05-08  Bruno Haible  <bruno@clisp.org>
14671
14672         getopt, argp: Respect rules for use of AC_LIBOBJ.
14673         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14674         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14675         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14676         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14677
14678 2011-05-08  Bruno Haible  <bruno@clisp.org>
14679
14680         getlogin_r: Move AC_LIBOBJ invocations to module description.
14681         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14682         gl_PREREQ_GETLOGIN_R invocations from here...
14683         * modules/getlogin_r (configure.ac): ... to here.
14684
14685 2011-05-08  Bruno Haible  <bruno@clisp.org>
14686
14687         getlogin: Move AC_LIBOBJ invocations to module description.
14688         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14689         here...
14690         * modules/getlogin (configure.ac): ... to here.
14691
14692 2011-05-08  Bruno Haible  <bruno@clisp.org>
14693
14694         getloadavg: Move AC_LIBOBJ invocations to module description.
14695         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14696         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14697         * modules/getloadavg (configure.ac): ... to here.
14698
14699 2011-05-08  Bruno Haible  <bruno@clisp.org>
14700
14701         gethrxtime: Move AC_LIBOBJ invocations to module description.
14702         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14703         LIB_GETHRXTIME from here...
14704         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14705         invocations from here...
14706         * modules/gethrxtime (configure.ac): ... to here.
14707
14708 2011-05-08  Bruno Haible  <bruno@clisp.org>
14709
14710         gethostname: Move AC_LIBOBJ invocations to module description.
14711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14712         gl_PREREQ_GETHOSTNAME invocations from here...
14713         * modules/gethostname (configure.ac): ... to here.
14714
14715 2011-05-08  Bruno Haible  <bruno@clisp.org>
14716
14717         getgroups: Move AC_LIBOBJ invocations to module description.
14718         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14719         here...
14720         * modules/getgroups (configure.ac): ... to here.
14721
14722 2011-05-08  Bruno Haible  <bruno@clisp.org>
14723
14724         getdtablesize: Move AC_LIBOBJ invocations to module description.
14725         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14726         invocation from here...
14727         * modules/getdtablesize (configure.ac): ... to here.
14728
14729 2011-05-08  Bruno Haible  <bruno@clisp.org>
14730
14731         getdomainname: Move AC_LIBOBJ invocations to module description.
14732         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14733         gl_PREREQ_GETDOMAINNAME invocations from here...
14734         * modules/getdomainname (configure.ac): ... to here.
14735
14736 2011-05-08  Bruno Haible  <bruno@clisp.org>
14737
14738         getline: Move AC_LIBOBJ invocations to module description.
14739         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14740         invocations from here...
14741         * modules/getline (configure.ac): ... to here.
14742
14743 2011-05-08  Bruno Haible  <bruno@clisp.org>
14744
14745         getline: Simplify.
14746         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14747         It's already handled through the module dependency.
14748
14749 2011-05-08  Bruno Haible  <bruno@clisp.org>
14750
14751         getdelim: Move AC_LIBOBJ invocations to module description.
14752         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14753         and gl_PREREQ_GETDELIM invocations from here...
14754         * modules/getdelim (configure.ac): ... to here.
14755         (Depends-on): Fix condition.
14756
14757 2011-05-08  Bruno Haible  <bruno@clisp.org>
14758
14759         getcwd: Move AC_LIBOBJ invocations to module description.
14760         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14761         invocations from here...
14762         * modules/getcwd (configure.ac): ... to here.
14763
14764 2011-05-08  Bruno Haible  <bruno@clisp.org>
14765
14766         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14767         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14768         here...
14769         * modules/getcwd-lgpl (configure.ac): ... to here.
14770
14771 2011-05-07  Bruno Haible  <bruno@clisp.org>
14772
14773         crypto/gc: Move AC_LIBOBJ invocations to module description.
14774         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14775         * modules/crypto/gc (configure.ac): ... to here.
14776
14777 2011-05-07  Bruno Haible  <bruno@clisp.org>
14778
14779         fwriting: Move AC_LIBOBJ invocations to module description.
14780         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14781         here...
14782         * modules/fwriting (configure.ac): ... to here.
14783
14784 2011-05-07  Bruno Haible  <bruno@clisp.org>
14785
14786         fwritable: Move AC_LIBOBJ invocations to module description.
14787         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14788         here...
14789         * modules/fwritable (configure.ac): ... to here.
14790
14791 2011-05-07  Bruno Haible  <bruno@clisp.org>
14792
14793         futimens: Move AC_LIBOBJ invocations to module description.
14794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14795         here...
14796         * modules/futimens (configure.ac): ... to here.
14797
14798 2011-05-07  Bruno Haible  <bruno@clisp.org>
14799
14800         ftruncate: Move AC_LIBOBJ invocations to module description.
14801         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14802         gl_PREREQ_FTRUNCATE invocations from here...
14803         * modules/ftruncate (configure.ac): ... to here.
14804
14805 2011-05-07  Bruno Haible  <bruno@clisp.org>
14806
14807         fsync: Move AC_LIBOBJ invocations to module description.
14808         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14809         invocations from here...
14810         * modules/fsync (configure.ac): ... to here.
14811
14812 2011-05-07  Bruno Haible  <bruno@clisp.org>
14813
14814         fsusage: Move AC_LIBOBJ invocations to module description.
14815         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14816         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14817         * modules/fsusage (configure.ac): ... to here.
14818
14819 2011-05-07  Bruno Haible  <bruno@clisp.org>
14820
14821         freopen: Move AC_LIBOBJ invocations to module description.
14822         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14823         invocations from here...
14824         * modules/freopen (configure.ac): ... to here.
14825
14826 2011-05-07  Bruno Haible  <bruno@clisp.org>
14827
14828         free: Move AC_LIBOBJ invocations to module description.
14829         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14830         invocations from here...
14831         * modules/free (configure.ac): ... to here.
14832
14833 2011-05-07  Bruno Haible  <bruno@clisp.org>
14834
14835         freadable: Move AC_LIBOBJ invocations to module description.
14836         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14837         here...
14838         * modules/freadable (configure.ac): ... to here.
14839
14840 2011-05-07  Bruno Haible  <bruno@clisp.org>
14841
14842         fpurge: Move AC_LIBOBJ invocations to module description.
14843         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14844         invocations from here...
14845         * modules/fpurge (configure.ac): ... to here.
14846
14847 2011-05-07  Bruno Haible  <bruno@clisp.org>
14848
14849         fpending: Move AC_LIBOBJ invocations to module description.
14850         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14851         gl_FUNC_FPENDING.
14852         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14853         invocations from here...
14854         * modules/fpending (configure.ac): ... to here.
14855
14856 2011-05-07  Bruno Haible  <bruno@clisp.org>
14857
14858         fopen: Move AC_LIBOBJ invocations to module description.
14859         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14860         invocations from here...
14861         * modules/fopen (configure.ac): ... to here.
14862
14863 2011-05-07  Bruno Haible  <bruno@clisp.org>
14864
14865         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14866         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14867         gl_FUNC_FNMATCH_POSIX.
14868         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14869         invocations from here...
14870         * modules/fnmatch (configure.ac): ... to here.
14871         * modules/fnmatch-gnu (configure.ac): ... and here.
14872
14873 2011-05-07  Bruno Haible  <bruno@clisp.org>
14874
14875         flock: Move AC_LIBOBJ invocations to module description.
14876         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14877         invocations from here...
14878         * modules/flock (configure.ac): ... to here.
14879
14880 2011-05-07  Bruno Haible  <bruno@clisp.org>
14881
14882         fileblocks: Move AC_LIBOBJ invocations to module description.
14883         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14884         gl_PREREQ_FILEBLOCKS invocations from here...
14885         * modules/fileblocks (configure.ac): ... to here.
14886
14887 2011-05-06  Bruno Haible  <bruno@clisp.org>
14888
14889         fflush: Move AC_LIBOBJ invocations to module description.
14890         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14891         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14892         invocations from here...
14893         * modules/fflush (configure.ac): ... to here.
14894
14895 2011-05-06  Bruno Haible  <bruno@clisp.org>
14896
14897         fdopendir: Move AC_LIBOBJ invocations to module description.
14898         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14899         here...
14900         * modules/fdopendir (configure.ac): ... to here.
14901         (Depends-on): Improve conditions.
14902
14903 2011-05-06  Bruno Haible  <bruno@clisp.org>
14904
14905         _Exit: Move AC_LIBOBJ invocations to module description.
14906         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14907         invocations from here...
14908         * modules/_Exit (configure.ac): ... to here.
14909
14910 2011-05-21  Bruno Haible  <bruno@clisp.org>
14911
14912         euidaccess: Respect rules for use of AC_LIBOBJ.
14913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14915         from here...
14916         * modules/euidaccess (configure.ac): ... to here.
14917
14918 2011-05-06  Bruno Haible  <bruno@clisp.org>
14919
14920         error: Move AC_LIBOBJ invocations to module description.
14921         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14922         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14923         invocations from here...
14924         * modules/error (configure.ac): ... to here.
14925
14926 2011-05-06  Bruno Haible  <bruno@clisp.org>
14927
14928         duplocale: Move AC_LIBOBJ invocations to module description.
14929         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14930         gl_PREREQ_DUPLOCALE invocations from here...
14931         * modules/duplocale (configure.ac): ... to here.
14932
14933 2011-05-05  Bruno Haible  <bruno@clisp.org>
14934
14935         dirfd: Move AC_LIBOBJ invocations to module description.
14936         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14937         gl_FUNC_DIRFD.
14938         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14939         here...
14940         * modules/dirfd (configure.ac): ... to here.
14941         (Depends-on): Fix condition.
14942
14943 2011-05-05  Bruno Haible  <bruno@clisp.org>
14944
14945         chown: Respect rules for use of AC_LIBOBJ.
14946         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14947         * modules/chown (configure.ac): ... to here.
14948
14949 2011-05-05  Bruno Haible  <bruno@clisp.org>
14950
14951         chdir-long: Move AC_LIBOBJ invocations to module description.
14952         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14953         gl_PREREQ_CHDIR_LONG invocations from here...
14954         * modules/chdir-long (configure.ac): ... to here.
14955
14956 2011-05-05  Bruno Haible  <bruno@clisp.org>
14957
14958         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14959         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14960         from here...
14961         * modules/canonicalize-lgpl (configure.ac): ... to here.
14962
14963 2011-05-05  Bruno Haible  <bruno@clisp.org>
14964
14965         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14966         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14967         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14968         REPLACE_CALLOC.
14969         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14970         * modules/calloc-gnu (configure.ac): Likewise.
14971
14972 2011-05-05  Bruno Haible  <bruno@clisp.org>
14973
14974         btowc: Move AC_LIBOBJ invocations to module description.
14975         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14976         invocations from here...
14977         * modules/btowc (configure.ac): ... to here.
14978
14979 2011-05-21  Bruno Haible  <bruno@clisp.org>
14980
14981         atexit: Move AC_LIBOBJ invocations to module description.
14982         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14984         here...
14985         * modules/atexit (configure.ac): ... to here.
14986
14987 2011-05-05  Bruno Haible  <bruno@clisp.org>
14988
14989         atoll: Move AC_LIBOBJ invocations to module description.
14990         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14991         invocations from here...
14992         * modules/atoll (configure.ac): ... to here.
14993
14994 2011-05-05  Bruno Haible  <bruno@clisp.org>
14995
14996         argz: Move AC_LIBOBJ invocations to module description.
14997         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14998         * modules/argz (configure.ac): ... to here.
14999
15000 2011-05-05  Bruno Haible  <bruno@clisp.org>
15001
15002         alphasort: Move AC_LIBOBJ invocations to module description.
15003         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15004         gl_PREREQ_ALPHASORT invocations from here...
15005         * modules/alphasort (configure.ac): ... to here.
15006
15007 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         verify: new macro verify_expr; verify_true deprecated
15010         * NEWS: Mention this.
15011         * doc/verify.texi (Compile-time Assertions): Document this.
15012         * lib/verify.h (verify_true): Deprecate.
15013         (verify_expr): New macro.
15014         * tests/test-verify.c (function): Test verify_expr.
15015
15016 2011-06-14  Jim Meyering  <meyering@redhat.com>
15017
15018         init.sh: give more portable redirection-related advice in a comment
15019         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15020         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15021         for lots of discussion.  Stefano Lattarini suggested the solution
15022         of putting "9>&2" after the command.  Reported by Bruno Haible.
15023
15024 2011-06-13  Bruno Haible  <bruno@clisp.org>
15025
15026         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15028         'none'.
15029
15030 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15031
15032         ftoastr: use strtof only if HAVE_STRTOF
15033         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15035         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15036         * modules/ftoastr (configure.ac): Check for strtof.
15037
15038 2011-06-13  Bruno Haible  <bruno@clisp.org>
15039
15040         gnulib-tool: Addendum to 2011-06-08 commit.
15041         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15042         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15043
15044 2011-06-13  Bruno Haible  <bruno@clisp.org>
15045
15046         fseeko: Provide a non-inline replacement of fseek().
15047         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15048         * modules/fseeko (Depends-on): Add fseek.
15049         * modules/fseek (License): Change to LGPLv2+.
15050
15051 2011-06-13  Bruno Haible  <bruno@clisp.org>
15052
15053         ftello: Provide a non-inline replacement of ftell().
15054         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15055         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15056         not have ftello() (such as on mingw).
15057         * modules/ftello (Depends-on): Add ftell.
15058         * modules/ftell (License): Change to LGPLv2+.
15059
15060 2011-05-07  Bruno Haible  <bruno@clisp.org>
15061
15062         ftell: Move AC_LIBOBJ invocations to module description.
15063         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15064         * modules/ftell (configure.ac): ... to here.
15065
15066 2011-05-07  Bruno Haible  <bruno@clisp.org>
15067
15068         ftello: Respect rules for use of AC_LIBOBJ.
15069         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15070         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15071         here...
15072         * modules/ftello (configure.ac): ... to here.
15073
15074 2011-05-07  Bruno Haible  <bruno@clisp.org>
15075
15076         fseeko: Simplify.
15077         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15078         (gl_FUNC_FSEEKO): Inline it here.
15079
15080 2011-05-07  Bruno Haible  <bruno@clisp.org>
15081
15082         fseek: Move AC_LIBOBJ invocations to module description.
15083         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15084         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15085         * modules/fseek (configure.ac): ... to here.
15086
15087 2011-05-07  Bruno Haible  <bruno@clisp.org>
15088
15089         fseek: Respect rules for use of AC_LIBOBJ.
15090         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15091         here...
15092         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15093
15094 2011-05-07  Bruno Haible  <bruno@clisp.org>
15095
15096         fseeko: Respect rules for use of AC_LIBOBJ.
15097         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15098         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15099         here...
15100         * modules/fseeko (configure.ac): ... to here.
15101
15102 2011-06-13  Bruno Haible  <bruno@clisp.org>
15103
15104         gnulib-tool: Allow comments in the 'Depends-on' section.
15105         * doc/gnulib.texi (Module description): Mention comment syntax in the
15106         Depends-on section.
15107         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15108
15109 2011-06-13  Bruno Haible  <bruno@clisp.org>
15110
15111         file-set.h: guard __attibute__ use, now that it's not always defined
15112         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15113         versions that support it.  This fixes a coreutils build failure with
15114         the vendor cc on HP-UX 11.31.
15115
15116 2011-06-12  Bruno Haible  <bruno@clisp.org>
15117
15118         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15119         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15120         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15121         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15122         (acl, aclsort): New declarations.
15123         (aclv_nontrivial): New declaration.
15124         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15125         (file_has_acl): Read also the second kind of HP-UX ACLs.
15126         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15127         kind of HP-UX ACLs if the first kind fails.
15128         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15129         second kind of HP-UX ACLs.
15130         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15131         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15132         agree.
15133         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15134         hpuxjfs.
15135         Handle hpuxjfs.
15136         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15137         hpuxjfs.
15138         Handle hpuxjfs.
15139         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15140         (func_test_same_acls): Use both lsacl and getacl.
15141         Handle hpuxjfs.
15142         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15143         (func_test_same_acls): Use both lsacl and getacl.
15144         Handle hpuxjfs.
15145
15146 2011-06-12  Bruno Haible  <bruno@clisp.org>
15147
15148         acl: Complete the 2010-08-10 fix.
15149         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15150         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15151         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15152         explicitly.
15153         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15154         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15155
15156 2011-06-12  Bruno Haible  <bruno@clisp.org>
15157
15158         spawn-pipe tests: Comments.
15159         * tests/test-spawn-pipe-child.c (main): Update comment.
15160         Reported by James Youngman <jay@gnu.org>.
15161
15162 2011-06-11  James Youngman  <jay@gnu.org>
15163
15164         New module 'stat-size'.
15165         * modules/stat-size: New module.  Provides macros for accessing
15166         file size information in instances of struct stat.  Depends on the
15167         fileblocks module because it calls st_blocks.
15168         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15169         * doc/gnulib.texi: Include stat-size.texi.
15170         * doc/stat-size.texi: Documentation for this module.
15171         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15172         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15173         AC_STRUCT_ST_BLOCKS.
15174
15175 2011-06-09  Bruno Haible  <bruno@clisp.org>
15176
15177         thread: Support pthreads-win32.
15178         * lib/glthread/thread.h (gl_thread_self): Define differently on
15179         pthreads-win32.
15180         (gl_null_thread): New declaration.
15181         (gl_thread_self_pointer): New macro.
15182         * lib/glthread/thread.c (gl_null_thread): New constant.
15183         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15184         gl_thread_self.
15185         * tests/test-tls.c: Likewise.
15186         Suggested by Paul Eggert. Reported by Eric Blake.
15187
15188 2011-06-09  Bruno Haible  <bruno@clisp.org>
15189
15190         thread: Fix confusion between NULL and 0.
15191         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15192         Reported by Paul Eggert.
15193
15194 2011-06-09  Bruno Haible  <bruno@clisp.org>
15195
15196         spawn-pipe tests: Avoid test failure on HP-UX 11.
15197         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15198         is closed.
15199
15200 2011-06-09  Bruno Haible  <bruno@clisp.org>
15201
15202         acl tests: Fix compilation error on HP-UX 11.
15203         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15204
15205 2011-06-09  Bruno Haible  <bruno@clisp.org>
15206
15207         rmdir: Avoid test failure on HP-UX 10.20.
15208         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15209         EEXIST.
15210
15211 2011-06-08  Eric Blake  <eblake@redhat.com>
15212
15213         perror: fix test on mingw
15214         * modules/perror-tests (Depends-on): Add dup2.
15215
15216         strerror_r-posix: fix on MacOS
15217         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15218         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15219         logic bug.
15220         * lib/strerror_r.c (strerror_r): Fix the bug.
15221         * lib/strerror.c (strerror): Likewise.
15222         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15223         problem.
15224         * doc/posix-functions/strerror.texi (strerror): Likewise.
15225         * doc/posix-functions/perror.texi (perror): Likewise.
15226         * tests/test-strerror.c (main): Enhance test.
15227         * tests/test-strerror_r.c (main): Likewise.
15228
15229 2011-06-08  Bruno Haible  <bruno@clisp.org>
15230
15231         gnulib-tool: Better isolation between different gnulib-tool invocations.
15232         * gnulib-tool: New option --witness-c-macro.
15233         (witness_c_macro): New variable.
15234         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15235         AM_CPPFLAGS define it as a C macro.
15236         (func_emit_tests_Makefile_am): Likewise.
15237         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15238         read it from there.
15239         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15240         m4_define, not AC_DEFUN.
15241         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15242         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15243         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15244         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15245         s|...|...|, to substitute the values of the GNULIB_* module indicator
15246         variables.
15247         * modules/dirent (Makefile.am): Likewise.
15248         * modules/fcntl-h (Makefile.am): Likewise.
15249         * modules/iconv-h (Makefile.am): Likewise.
15250         * modules/langinfo (Makefile.am): Likewise.
15251         * modules/locale (Makefile.am): Likewise.
15252         * modules/math (Makefile.am): Likewise.
15253         * modules/netdb (Makefile.am): Likewise.
15254         * modules/poll-h (Makefile.am): Likewise.
15255         * modules/pty (Makefile.am): Likewise.
15256         * modules/search (Makefile.am): Likewise.
15257         * modules/signal (Makefile.am): Likewise.
15258         * modules/spawn (Makefile.am): Likewise.
15259         * modules/stdio (Makefile.am): Likewise.
15260         * modules/stdlib (Makefile.am): Likewise.
15261         * modules/string (Makefile.am): Likewise.
15262         * modules/sys_ioctl (Makefile.am): Likewise.
15263         * modules/sys_select (Makefile.am): Likewise.
15264         * modules/sys_socket (Makefile.am): Likewise.
15265         * modules/sys_stat (Makefile.am): Likewise.
15266         * modules/sys_times (Makefile.am): Likewise.
15267         * modules/sys_utsname (Makefile.am): Likewise.
15268         * modules/sys_wait (Makefile.am): Likewise.
15269         * modules/termios (Makefile.am): Likewise.
15270         * modules/time (Makefile.am): Likewise.
15271         * modules/unistd (Makefile.am): Likewise.
15272         * modules/wchar (Makefile.am): Likewise.
15273
15274 2011-06-08  Eric Blake  <eblake@redhat.com>
15275
15276         strerror: simplify replacement
15277         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15278         * modules/strerror (configure.ac): No prereqs needed here...
15279         * modules/strerror-override (configure.ac): ...but this needs it.
15280         (Files): Add file for needed prereq macro.
15281
15282 2011-06-08  Bruno Haible  <bruno@clisp.org>
15283
15284         strerror_r-posix: Tweaks.
15285         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15286         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15287         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15288         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15289         (gl_FUNC_STRERROR_R): ... to here.
15290         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15291
15292 2011-06-07  Eric Blake  <eblake@redhat.com>
15293
15294         perror: document fixed bugs
15295         * doc/posix-functions/perror.texi (perror): Document recent
15296         patches.
15297
15298 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15299
15300         stat-time: get_stat_birthtime failure is better-defined
15301         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15302         return a timestamp whose tv_sec and tv_nsec values are both -1.
15303         Previously, the spec said only that the tv_nsec value was negative.
15304         This upward-compatible change simplifies GNU tar a bit.
15305
15306 2011-06-07  Eric Blake  <eblake@redhat.com>
15307
15308         strerror_r-posix: work around cygwin 1.7.9
15309         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15310         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15311         bug without replacing strerror_r.
15312         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15313         strerror_r is buggy, but without requiring strerror_r compilation.
15314         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15315
15316         test-perror: relax test to ignore cygwin bug
15317         * tests/test-perror2.c (main): Relax test on requiring detection
15318         of stream errors, and use unbuffered stream.
15319         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15320         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15321         * doc/posix-functions/fputc.texi (fputc): Likewise.
15322         * doc/posix-functions/fputs.texi (fputs): Likewise.
15323         * doc/posix-functions/fputws.texi (fputws): Likewise.
15324         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15325         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15326         * doc/posix-functions/getopt.texi (getopt): Likewise.
15327         * doc/posix-functions/perror.texi (perror): Likewise.
15328         * doc/posix-functions/printf.texi (printf): Likewise.
15329         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15330         * doc/posix-functions/psignal.texi (psignal): Likewise.
15331         * doc/posix-functions/putc.texi (putc): Likewise.
15332         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15333         Likewise.
15334         * doc/posix-functions/putchar.texi (putchar): Likewise.
15335         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15336         Likewise.
15337         * doc/posix-functions/puts.texi (puts): Likewise.
15338         * doc/posix-functions/putwc.texi (putwc): Likewise.
15339         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15340         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15341         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15342         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15343         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15344         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15345         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15346         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15347
15348 2011-05-22  Bruno Haible  <bruno@clisp.org>
15349
15350         strerror: Move AC_LIBOBJ invocations to module description.
15351         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15352         gl_PREREQ_STRERROR invocations from here...
15353         * modules/strerror (configure.ac): ... to here.
15354
15355 2011-05-21  Bruno Haible  <bruno@clisp.org>
15356
15357         perror: Use common idiom.
15358         * modules/perror (configure.ac): Reorder statements.
15359
15360 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15361
15362         tests: fix usage message in 'mktempd_'
15363         * tests/init.sh (mktempd_): In the usage message, use literal
15364         'mktempd_', not '$ME' (which is even undefined), as the name of
15365         the subroutine.
15366
15367 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15368
15369         tests init: new function 'fatal_', for hard errors
15370         Before this patch, the only way offered by tests/init.sh to
15371         properly signal a hard error was the `framework_failure_'
15372         function.  But the error message issued by that function,
15373         as its name would suggest, refers to a set-up failure in the
15374         testsuite, while hard errors can obviously also be due to
15375         other reasons.  The best way to fix this inconsistency is to
15376         introduce a new function with a more general error message.
15377         * tests/init.sh (fatal_): New function.
15378
15379 2011-06-06  Eric Blake  <eblake@redhat.com>
15380
15381         canonicalize-lgpl: use common idiom
15382         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15383         over newer POSIX -Rf.
15384         Reported by Bruno Haible.
15385
15386         canonicalize-lgpl: work around AIX realpath bug
15387         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15388         * doc/posix-functions/realpath.texi (realpath): Document it.
15389         Reported by Bruno Haible.
15390
15391         strerror: work around FreeBSD bug
15392         * lib/strerror.c (strerror): Special case 0.
15393         Reported by Bruno Haible.
15394
15395         strerror-override: avoid bloating errno module
15396         * modules/errno (Files, configure.ac): Move replacement strings...
15397         * modules/strerror-override: ...to new module.
15398         * modules/strerror (Depends-on): Add strerror-override.
15399         * modules/strerror_r-posix (Depends-on): Likewise.
15400         * MODULES.html.sh: Document new module.
15401         Reported by Bruno Haible.
15402
15403 2011-06-06  Bruno Haible  <bruno@clisp.org>
15404
15405         spawn-pipe tests: Rename program.
15406         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15407         * tests/test-spawn-pipe-child.c: Update comment.
15408         * tests/test-spawn-pipe.sh: Update.
15409         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15410
15411         spawn-pipe tests: Link the child program only against libc.
15412         * tests/test-spawn-pipe-child.c: New file, extracted from
15413         tests/test-spawn-pipe.c.
15414         (main): Expect only one argument.
15415         (is_open): New function, copied from tests/test-pipe.c.
15416         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15417         (child_main): Remove function.
15418         (test_pipe): Pass only one argument to the child program.
15419         (main): Remove child process code. Expect the child program's name as
15420         first argument.
15421         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15422         argument.
15423         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15424         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15425         test-spawn-pipe-child against no libraries.
15426
15427 2011-06-06  Bruno Haible  <bruno@clisp.org>
15428
15429         careadlinkat: Avoid mismatch between ssize_t and int.
15430         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15431         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15432
15433 2011-06-06  Jim Meyering  <meyering@redhat.com>
15434
15435         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15436         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15437         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15438
15439 2011-06-05  Bruno Haible  <bruno@clisp.org>
15440
15441         ansi-c++-opt: Interoperability with libtool.
15442         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15443         set the variable to "no", not to ":".
15444         * NEWS: Mention the change.
15445
15446 2011-06-05  Bruno Haible  <bruno@clisp.org>
15447
15448         acl: Fix test failure on AIX 7.
15449         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15450         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15451
15452 2011-06-05  Bruno Haible  <bruno@clisp.org>
15453
15454         pipe-filter-ii: Fix test failure on AIX and IRIX.
15455         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15456         with EAGAIN, retry with a smaller buffer size.
15457
15458 2011-06-05  Bruno Haible  <bruno@clisp.org>
15459
15460         localename: Fix link dependencies.
15461         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15462         * modules/localename-tests (Makefile.am): Link test-localename with
15463         $(LIBTHREAD).
15464
15465 2011-06-05  Bruno Haible  <bruno@clisp.org>
15466
15467         error: Avoid gcc warning.
15468         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15469
15470 2011-06-05  Bruno Haible  <bruno@clisp.org>
15471
15472         unsetenv: Avoid gcc warning.
15473         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15474
15475 2011-06-05  Bruno Haible  <bruno@clisp.org>
15476
15477         setenv: Avoid gcc warning.
15478         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15479
15480 2011-06-05  Bruno Haible  <bruno@clisp.org>
15481
15482         sys_select: Ensure memset is declared also on AIX 7.
15483         * lib/sys_select.in.h: Include <string.h> also on AIX.
15484         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15485         self-contained also on AIX 7.1.
15486
15487 2011-06-04  Jim Meyering  <meyering@redhat.com>
15488
15489         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15490         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15491         function name, "error".
15492         (_gl_translatable_diag_func_re): New configurable variable.
15493
15494 2011-06-04  Bruno Haible  <bruno@clisp.org>
15495
15496         getopt: Avoid gcc warning.
15497         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15498
15499 2011-06-04  Bruno Haible  <bruno@clisp.org>
15500
15501         strerror_r: Fix comments.
15502         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15503         commit.
15504
15505 2011-06-04  Bruno Haible  <bruno@clisp.org>
15506
15507         perror: Fix compilation error.
15508         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15509         Undefine fprintf, not sprintf.
15510         * modules/perror (Depends-on): Remove intprops, verify.
15511
15512 2011-06-04  Bruno Haible  <bruno@clisp.org>
15513
15514         setlocale: Enable replacement on Cygwin 1.5.
15515         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15516         Cygwin 1.5.x.
15517         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15518         LC_CTYPE category also exists on Cygwin 1.5.x.
15519
15520 2011-06-04  Bruno Haible  <bruno@clisp.org>
15521
15522         strerror-override: Don't disable symbol renamings.
15523         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15524         * lib/strerror-override.c: Include config.h.
15525         (strerror_override): Don't undefine.
15526
15527 2011-06-03  Bruno Haible  <bruno@clisp.org>
15528
15529         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15530         * lib/localename.h: Update copyright header.
15531         * lib/localename.c: Likewise.
15532         * lib/relocatable.h: Likewise.
15533         * lib/relocatable.c: Likewise.
15534
15535 2011-06-02  Bruno Haible  <bruno@clisp.org>
15536
15537         doc: Fix a module name.
15538         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15539
15540 2011-06-02  Bruno Haible  <bruno@clisp.org>
15541
15542         pipe2: Remove dependency on 'nonblocking' module.
15543         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15544         O_NONBLOCK is defined by gnulib.
15545         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15546         is zero.
15547         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15548         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15549         defined by gnulib.
15550         (get_nonblocking_flag): New function.
15551         (main): Test O_NONBLOCK flag only if it is nonzero.
15552         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15553
15554 2011-06-03  Jim Meyering  <meyering@redhat.com>
15555
15556         maint: three new prohibit-header-without-use rules
15557         Prohibit use of cloexec.h, posixver.h, same.h without use.
15558         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15559         (sc_prohibit_posixver_without_use): Likewise.
15560         (sc_prohibit_same_without_use): Likewise.
15561
15562 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15563
15564         allocator: 'die' routine is now given requested size
15565         * lib/allocator.h (struct allocator.die): New size arg.
15566         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15567         If the actual problem is an ssize_t limitation, not a size_t or
15568         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15569
15570 2011-06-01  Eric Blake  <eblake@redhat.com>
15571
15572         strerror: drop strerror_r dependency
15573         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15574         * lib/strerror-override.c (strerror_override): ...to new file.
15575         * lib/strerror-override.h: Add prototype.
15576         * lib/strerror-impl.h: Delete.
15577         * lib/strerror.c (strerror): New implementation.
15578         * modules/errno (Files): Add new files.
15579         (configure.ac): Compile new file as appropriate.
15580         * modules/strerror (Files): Drop unused file.
15581         (Depends-on): Drop strerror_r-posix.
15582         * MODULES.html.sh: Document strerror_r-posix.
15583         Requested by Sam Steingold.
15584
15585         perror: call strerror_r directly
15586         * modules/perror (Files): Drop strerror-impl.h.
15587         * lib/perror.c (perror): Use our own stack buffer, rather than
15588         calling a wrapper that uses static storage.
15589         * doc/posix-functions/perror.texi (perror): Document a limitation
15590         of our replacement.
15591
15592         strerror_r: fix includes for FreeBSD
15593         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15594         since we use abort on some platforms.
15595         Reported by Matthias Bolte.
15596
15597 2011-05-31  Bruno Haible  <bruno@clisp.org>
15598
15599         Fix link errors in tests: openat-die uses gettext-h.
15600         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15601         against $(LIBINTL).
15602         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15603         against $(LIBINTL).
15604         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15605         $(LIBINTL).
15606         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15607         against $(LIBINTL).
15608         * modules/linkat-tests (Makefile.am): Link test-linkat against
15609         $(LIBINTL).
15610         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15611         $(LIBINTL).
15612         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15613         against $(LIBINTL).
15614         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15615         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15616         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15617         $(LIBINTL).
15618         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15619         $(LIBINTL).
15620         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15621         $(LIBINTL).
15622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15623
15624 2011-05-31  Bruno Haible  <bruno@clisp.org>
15625
15626         Fix link errors in tests: wait-process uses gettext-h.
15627         * modules/nonblocking-pipe-tests (Makefile.am): Set
15628         test_nonblocking_pipe_main_LDADD.
15629         * modules/nonblocking-socket-tests (Makefile.am): Link
15630         test-nonblocking-socket-main against $(LIBINTL).
15631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15632
15633 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15634
15635         assert-h: work around 'verify' incompatibility
15636         * lib/verify.h: Use @...@ directives, not ifdef.
15637         * modules/assert-h (assert.h): Implement the directives.
15638         (assert.h): Substitute the symbol-prefix more consistently.
15639
15640 2011-05-29  Jim Meyering  <meyering@redhat.com>
15641
15642         trim: remove three superfluous assignments
15643         * lib/trim.c (trim2): Remove three superfluous assignments
15644         and correct brace positioning.
15645
15646 2011-05-29  Bruno Haible  <bruno@clisp.org>
15647
15648         wctype-h: Avoid namespace pollution on Solaris 2.6.
15649         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15650         identifiers.
15651         * doc/posix-headers/wctype.texi: Mention the problem.
15652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15653
15654 2011-05-28  Jim Meyering  <meyering@redhat.com>
15655
15656         parse-datetime.y: accommodate -Wstrict-overflow
15657         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15658         placate -Wstrict-overflow.
15659
15660         trim: avoid a warning from -O2 -Wstrict-overflow
15661         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15662
15663 2011-05-29  Bruno Haible  <bruno@clisp.org>
15664
15665         gnulib-tool: Fix bug in yesterday's commit.
15666         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15667         twice.
15668
15669 2011-05-29  Bruno Haible  <bruno@clisp.org>
15670
15671         Allow multiple gnulib generated include files to be combined.
15672         * gnulib-tool (func_compute_include_guard_prefix): New function.
15673         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15674         ${gl_include_guard_prefix} references.
15675         (func_import, func_create_testdir): Invoke
15676         func_compute_include_guard_prefix.
15677         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15678         * lib/ctype.in.h: Likewise.
15679         * lib/dirent.in.h: Likewise.
15680         * lib/errno.in.h: Likewise.
15681         * lib/fcntl.in.h: Likewise.
15682         * lib/float.in.h: Likewise.
15683         * lib/getopt.in.h: Likewise.
15684         * lib/iconv.in.h: Likewise.
15685         * lib/langinfo.in.h: Likewise.
15686         * lib/locale.in.h: Likewise.
15687         * lib/math.in.h: Likewise.
15688         * lib/netdb.in.h: Likewise.
15689         * lib/netinet_in.in.h: Likewise.
15690         * lib/poll.in.h: Likewise.
15691         * lib/pthread.in.h: Likewise.
15692         * lib/pty.in.h: Likewise.
15693         * lib/sched.in.h: Likewise.
15694         * lib/se-selinux.in.h: Likewise.
15695         * lib/search.in.h: Likewise.
15696         * lib/signal.in.h: Likewise.
15697         * lib/spawn.in.h: Likewise.
15698         * lib/stdarg.in.h: Likewise.
15699         * lib/stddef.in.h: Likewise.
15700         * lib/stdint.in.h: Likewise.
15701         * lib/stdio.in.h: Likewise.
15702         * lib/stdlib.in.h: Likewise.
15703         * lib/string.in.h: Likewise.
15704         * lib/strings.in.h: Likewise.
15705         * lib/sys_file.in.h: Likewise.
15706         * lib/sys_ioctl.in.h: Likewise.
15707         * lib/sys_select.in.h: Likewise.
15708         * lib/sys_socket.in.h: Likewise.
15709         * lib/sys_stat.in.h: Likewise.
15710         * lib/sys_time.in.h: Likewise.
15711         * lib/sys_times.in.h: Likewise.
15712         * lib/sys_uio.in.h: Likewise.
15713         * lib/sys_utsname.in.h: Likewise.
15714         * lib/sys_wait.in.h: Likewise.
15715         * lib/sysexits.in.h: Likewise.
15716         * lib/termios.in.h: Likewise.
15717         * lib/time.in.h: Likewise.
15718         * lib/unistd.in.h: Likewise.
15719         * lib/wchar.in.h: Likewise.
15720         * lib/wctype.in.h: Likewise.
15721         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15722         * modules/ctype (Makefile.am): Likewise.
15723         * modules/dirent (Makefile.am): Likewise.
15724         * modules/errno (Makefile.am): Likewise.
15725         * modules/fcntl-h (Makefile.am): Likewise.
15726         * modules/float (Makefile.am): Likewise.
15727         * modules/getopt-posix (Makefile.am): Likewise.
15728         * modules/iconv-h (Makefile.am): Likewise.
15729         * modules/langinfo (Makefile.am): Likewise.
15730         * modules/locale (Makefile.am): Likewise.
15731         * modules/math (Makefile.am): Likewise.
15732         * modules/netdb (Makefile.am): Likewise.
15733         * modules/netinet_in (Makefile.am): Likewise.
15734         * modules/poll-h (Makefile.am): Likewise.
15735         * modules/pthread (Makefile.am): Likewise.
15736         * modules/pty (Makefile.am): Likewise.
15737         * modules/sched (Makefile.am): Likewise.
15738         * modules/search (Makefile.am): Likewise.
15739         * modules/selinux-h (Makefile.am): Likewise.
15740         * modules/signal (Makefile.am): Likewise.
15741         * modules/spawn (Makefile.am): Likewise.
15742         * modules/stdarg (Makefile.am): Likewise.
15743         * modules/stddef (Makefile.am): Likewise.
15744         * modules/stdint (Makefile.am): Likewise.
15745         * modules/stdio (Makefile.am): Likewise.
15746         * modules/stdlib (Makefile.am): Likewise.
15747         * modules/string (Makefile.am): Likewise.
15748         * modules/strings (Makefile.am): Likewise.
15749         * modules/sys_file (Makefile.am): Likewise.
15750         * modules/sys_ioctl (Makefile.am): Likewise.
15751         * modules/sys_select (Makefile.am): Likewise.
15752         * modules/sys_socket (Makefile.am): Likewise.
15753         * modules/sys_stat (Makefile.am): Likewise.
15754         * modules/sys_time (Makefile.am): Likewise.
15755         * modules/sys_times (Makefile.am): Likewise.
15756         * modules/sys_uio (Makefile.am): Likewise.
15757         * modules/sys_utsname (Makefile.am): Likewise.
15758         * modules/sys_wait (Makefile.am): Likewise.
15759         * modules/sysexits (Makefile.am): Likewise.
15760         * modules/termios (Makefile.am): Likewise.
15761         * modules/time (Makefile.am): Likewise.
15762         * modules/unistd (Makefile.am): Likewise.
15763         * modules/wchar (Makefile.am): Likewise.
15764         * modules/wctype-h (Makefile.am): Likewise.
15765         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15766
15767 2011-05-29  Bruno Haible  <bruno@clisp.org>
15768
15769         assert-h: Allow multiple gnulib generated replacements to coexist.
15770         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15771
15772 2011-05-29  Bruno Haible  <bruno@clisp.org>
15773
15774         argp: Allow coexistence with strerror_r-posix module.
15775         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15776         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15777         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15778         not the glibc signature.
15779
15780 2011-05-28  Bruno Haible  <bruno@clisp.org>
15781
15782         gnulib-tool: Alternative structure of testdirs, similar to --import.
15783         * gnulib-tool: New option --single-configure.
15784         (func_usage): Document it.
15785         (single_configure): New variable.
15786         (func_modules_transitive_closure_separately,
15787         func_modules_transitive_closure_separately,
15788         func_determine_use_libtests, func_modules_add_dummy_separately,
15789         func_modules_to_filelist_separately): New functions, extracted from
15790         func_import.
15791         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15792         (func_import): Use the new functions.
15793         (func_create_testdir): Set final_modules. Handle $single_configure =
15794         true case.
15795
15796 2011-05-28  Bruno Haible  <bruno@clisp.org>
15797
15798         getloadavg: Remove an unreliable safety check.
15799         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15800         getloadavg.c is in place.
15801         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15802         Reported by Sam Steingold <sds@gnu.org>.
15803
15804 2011-05-28  Bruno Haible  <bruno@clisp.org>
15805
15806         doc: Cleanup yet another file produced by texinfo.tex.
15807         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15808
15809 2011-05-28  Bruno Haible  <bruno@clisp.org>
15810
15811         Finish the conditional dependencies mechanism.
15812         * gnulib-tool: New option --no-conditional-dependencies.
15813         (func_usage): Document it. Don't mark --conditional-dependencies as
15814         experimental.
15815         (cond_dependencies): The possible values can now be true, false, empty.
15816         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15817         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15818         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15819
15820 2011-05-28  Bruno Haible  <bruno@clisp.org>
15821
15822         doc: Use a recent texinfo.tex.
15823         * doc/Makefile (tex_opts): New variable.
15824         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15825
15826 2011-05-28  Jim Meyering  <meyering@redhat.com>
15827
15828         intprops.h: adjust comment to match code change
15829         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15830         only once, it *may* have side effects.  Also fix an unrelated typo.
15831         (_GL_INT_SIGNED): Likewise.
15832
15833 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15834
15835         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15836
15837 2011-05-26  Bruno Haible  <bruno@clisp.org>
15838
15839         mbsrchr: Avoid collision with system function on Interix.
15840         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15841         Reported by Markus Duft <mduft@gentoo.org>.
15842
15843 2011-05-15  James Youngman  <jay@gnu.org>
15844
15845         getopt: for ambiguous options, enumerate the possibilities.
15846         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15847         the ambiguous options when an ambiguous prefix is given. This was
15848         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15849         glibc change was
15850         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15851
15852 2011-05-25  Eric Blake  <eblake@redhat.com>
15853
15854         getcwd: work around mingw bug
15855         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15856         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15857         Reported by Matthias Bolte.
15858
15859 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15860
15861         test-intprops: disable -Wtype-limits diagnostics
15862         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15863         diagnostics.  Otherwise, the integer overflow macros generate many
15864         diagnostics.  Reported by Jim Meyering in
15865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15866
15867         intprops: shorten, to pacify gcc -Woverlength-strings
15868         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15869         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15870         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15871         likely to run afoul of C compiler limits for string constant lengths.
15872         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15873
15874 2011-05-24  Eric Blake  <eblake@redhat.com>
15875
15876         docs: document recently fixed glibc printf bug
15877         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15878         * doc/posix-functions/printf.texi (printf): Likewise.
15879         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15880         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15881
15882         closein-tests: convert to init.sh
15883         * modules/closein-tests (Files): Add init.sh
15884         * tests/test-closein.sh Use it.
15885
15886         yesno-tests: convert to init.sh
15887         * modules/yesno-tests (Files): Add init.sh.
15888         * tests/test-yesno.sh: Use it.
15889
15890         atexit-tests: ensure reliable exit status
15891         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15892         Reported by Bruno Haible.
15893
15894 2011-05-24  Bruno Haible  <bruno@clisp.org>
15895
15896         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15898         gl_PREREQ_STRERROR_R invocations from here...
15899         * modules/strerror_r-posix (configure.ac): ... to here.
15900
15901 2011-05-24  Eric Blake  <eblake@redhat.com>
15902
15903         strerror_r: fix missing header
15904         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15905
15906         strerror_r: fix AIX test failures
15907         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15908         ERANGE failure.
15909
15910         strerror_r: fix Solaris test failures
15911         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15912         failures.
15913         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15914
15915         strerror_r: enforce POSIX recommendations
15916         * lib/strerror_r.c (safe_copy): New helper method.
15917         (strerror_r): Guarantee a non-empty string.
15918         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15919         recent POSIX rulings and to match our strerror guarantees.
15920         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15921
15922 2011-05-24  Jim Meyering  <meyering@redhat.com>
15923
15924         test-perror2.c: avoid warning about unused variable
15925         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15926
15927 2011-05-24  Eric Blake  <eblake@redhat.com>
15928
15929         perror: avoid spurious test failure on HP-UX
15930         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15931
15932         tests: fix logic bug in init.sh
15933         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15934         shell.
15935
15936 2011-05-24  Jim Meyering  <meyering@redhat.com>
15937
15938         utimensat: do not reference an out-of-scope buffer
15939         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15940         declared in an inner scope, yet "times" would be dereferenced outside
15941         the scope in which "ts" was valid.
15942         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15943         of ts[2] "out/up", so that the use of aliased "times" (via
15944         "times = ts;") does not end up referencing an out-of-scope "ts"
15945
15946         opendir-safer.c: don't clobber errno; don't close negative FD
15947         * lib/opendir-safer.c (opendir_safer):
15948         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15949         file descriptor, and more importantly, don't clobber the
15950         offending errno value with EINVAL.  Before, upon failure
15951         of dup_safer, we would pass the negative file descriptor to
15952         fdopendir, which would clobber errno.
15953
15954 2011-05-23  Bruno Haible  <bruno@clisp.org>
15955
15956         idcache: Fix module description.
15957         * modules/idcache (Include): Set to "idcache.h".
15958
15959 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         gnulib-tool: fix portability problem with MacOS sed
15962         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15963         before the "}".  Problem reported by Leo in
15964         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15965         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15966         sed_extract_condition1, sed_extract_condition2.
15967
15968 2011-05-23  Bruno Haible  <bruno@clisp.org>
15969
15970         hash: Simplify autoconf macro.
15971         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15972
15973 2011-05-23  Bruno Haible  <bruno@clisp.org>
15974
15975         getugroups: Fix module description.
15976         * modules/getugroups (Include): Set to "getugroups.h".
15977
15978 2011-05-23  Bruno Haible  <bruno@clisp.org>
15979
15980         linkat: Simplify autoconf macro.
15981         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15982
15983 2011-05-23  Bruno Haible  <bruno@clisp.org>
15984             Eric Blake  <eblake@redhat.com>
15985
15986         linkat, renameat: Update dependencies.
15987         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15988         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15989         symlinkat.
15990
15991 2011-05-23  Jim Meyering  <meyering@redhat.com>
15992
15993         maint.mk: more tight_scope improvements
15994         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15995         (_gl_TS_headers): Define only in if-0'd block.
15996         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15997         sometimes we must *not* use it.  Adjust uses accordingly.
15998         (sc_tight_scope): Use much simpler grep-based test to determine
15999         whether we skip this rule.
16000
16001         maint.mk: generalize/improve the tight-scope rule
16002         * top/maint.mk: Emit a warning when the test is skipped.
16003         (_gl_TS_dir): Add $(srcdir)/ prefix.
16004         (_gl_TS_function_match): Simplify, rather than trying
16005         to enumerate common types.  Otherwise, it would fail to match an
16006         "extern unsigned char const *" declaration in idutils.
16007         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16008         a way to support use of that type of macro.
16009         (_gl_TS_var_match): Simplify regexp.
16010         (_gl_TS_obj_files): New configurable variable.
16011         (_gl_TS_headers): Likewise.
16012
16013 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16014
16015         verify: fix bug when gnulib <assert.h> is also included
16016         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16017         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16018         Perhaps there's a better way, but this fixes the immediate problem.
16019         Problem reported by Bruno Haible in
16020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16021
16022 2011-05-22  Bruno Haible  <bruno@clisp.org>
16023
16024         xgetcwd: Simplify autoconf macro.
16025         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16026
16027 2011-05-22  Bruno Haible  <bruno@clisp.org>
16028
16029         New module 'mktime-internal'.
16030         * modules/mktime-internal: New file.
16031         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16032         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16033         mktime_internal as a C macro if libc has __mktime_internal.
16034         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16035         conditions.
16036         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16037
16038 2011-05-22  Bruno Haible  <bruno@clisp.org>
16039
16040         timegm: Correct mktime replacement statements.
16041         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16042         defining mktime as a C macro. This completes a 2009-07-28 commit.
16043
16044 2011-05-22  Bruno Haible  <bruno@clisp.org>
16045
16046         timegm: Simplify autoconf macro.
16047         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16048
16049 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16050
16051         clock-time: change to LGPLv2+.
16052         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16053         BSD-like but we have no mark for that; this is good enough for now.
16054
16055 2011-05-21  Bruno Haible  <bruno@clisp.org>
16056
16057         strerror_r: Fix comments.
16058         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16059
16060 2011-05-21  Bruno Haible  <bruno@clisp.org>
16061
16062         relocatable-prog-wrapper: Fix possible link error.
16063         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16064         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16065         (gl_FUNC_SETENV): ... to here.
16066         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16067         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16068
16069 2011-05-21  Bruno Haible  <bruno@clisp.org>
16070
16071         relocatable-prog-wrapper: Assume strerror() exists.
16072         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16073         m4/strerror.m4.
16074         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16075         * lib/relocwrapper.c: Remove mention of strerror module.
16076         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16077         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16078         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16079         C macro.
16080
16081 2011-05-21  Bruno Haible  <bruno@clisp.org>
16082
16083         select: Simplify replacement idiom.
16084         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16085         Win32 platforms.
16086         * lib/sys_select.in.h (select): Simplify accordingly.
16087         * modules/select (Depends-on): Likewise.
16088
16089 2011-05-21  Bruno Haible  <bruno@clisp.org>
16090
16091         mkdir-p: Simplify autoconf macro.
16092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16093         gl_FUNC_LCHOWN.
16094
16095 2011-05-21  Eric Blake  <eblake@redhat.com>
16096
16097         strerror_r: avoid clobbering strerror on cygwin
16098         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16099         fall back instead to sys_errlist.
16100         * modules/strerror (configure.ac): Add witness.
16101         * tests/test-strerror_r.c (main): Enhance test.
16102         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16103         * tests/test-perror2.c (main): Free memory before exit.
16104
16105 2011-05-21  Bruno Haible  <bruno@clisp.org>
16106
16107         mkdtemp: Use gnulib naming conventions.
16108         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16109         * modules/mkdtemp (configure.ac): Update.
16110
16111 2011-05-20  Eric Blake  <eblake@redhat.com>
16112
16113         strerror_r: avoid corrupting errno on Solaris
16114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16115         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16116
16117         strerror_r: avoid compiler warning
16118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16119
16120         strerror_r: simplify AIX code
16121         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16122
16123         test-perror: avoid spurious failure on FreeBSD
16124         * modules/perror-tests (Depends-on): Add strerror, now that
16125         strerror_r no longer pulls it in.
16126
16127 2011-05-20  Bruno Haible  <bruno@clisp.org>
16128
16129         strerror_r-posix: Remove unused dependencies.
16130         * modules/strerror_r-posix (Depends-on): Remove strerror.
16131         Reported by Eric Blake.
16132
16133 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16134
16135         intprops: remove assumption about A|B representation
16136         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16137         is a valid integer if both A and B are.  Although this is true for
16138         all known practical hosts, the C standard doesn't guarantee it,
16139         and the code need not assume it.  Also, this change may work around
16140         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16142
16143 2011-05-20  Eric Blake  <eblake@redhat.com>
16144
16145         perror: work around FreeBSD bug
16146         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16147         is broken.  Move AC_LIBOBJ...
16148         * modules/perror (configure.ac): Here.
16149         * doc/posix-functions/perror.texi (perror): Document this.
16150         * tests/test-perror2.c (main): Enhance test.
16151
16152         test-perror: check for strerror interactions
16153         * tests/macros.h (STREQ): Add macro.
16154         * modules/perror-tests (Files): Add second test.
16155         * tests/test-perror2.c (main): New file.
16156         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16157
16158         test-perror: rewrite to use init script
16159         * modules/perror-tests (Files): Add init.sh.
16160         * tests/test-perror.sh: Use temporary directory.
16161
16162 2011-05-20  Jim Meyering  <meyering@redhat.com>
16163
16164         maint: replace misused "a" with "an"
16165         * doc/intprops.texi: "a integer"
16166         * doc/regex.texi: "a explanation"
16167         * lib/alignof.h: "a object"
16168         * lib/argmatch.h: "a explanation"
16169         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16170         * lib/stdint.in.h: "a integer"
16171         * lib/userspec.c: "a owner"
16172         * doc/gnulib.texi: Fix "a idea", and reword.
16173
16174 2011-05-19  Jim Meyering  <meyering@redhat.com>
16175
16176         maint: correct misuse of "a" and "an"
16177         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16178         * lib/argp-help.c: "an docum...": s/an/a/
16179         * lib/argp-parse.c: "An vector": s/An/A/
16180         * lib/execute.c: "an native": s/an/a/
16181         * lib/spawn-pipe.c: Likewise.
16182         * lib/gc.h: "an Gc_rc": s/an/a/
16183         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16184         * lib/fts.c: "an stat.st_dev": s/an/a/
16185
16186 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16187
16188         intprops-tests: work around HP-UX 11.23 cc bug with constants
16189         * tests/test-intprops.c (VERIFY): New macro.
16190         (main): Use it, instead of verify, to work around the compiler bug; see
16191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16192
16193         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16194         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16195         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16196         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16197         (_GL_REMAINDER_OVERFLOW): Use it.
16198
16199         intprops-tests: revert unsigned part of previous change
16200         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16201         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16202         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16204
16205 2011-05-19  Bruno Haible  <bruno@clisp.org>
16206
16207         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16208         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16209         strerror_r() returned without filling the buffer.
16210         Reported by Eric Blake.
16211
16212 2011-05-19  Eric Blake  <eblake@redhat.com>
16213
16214         strerror_r: guarantee unchanged errno
16215         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16216         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16217         failure.
16218         * tests/test-strerror_r.c (main): Enhance test.
16219
16220 2011-05-19  Bruno Haible  <bruno@clisp.org>
16221
16222         strerror_r: Reorder #if blocks.
16223         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16224         for consistency with the previous commit.
16225
16226 2011-05-19  Bruno Haible  <bruno@clisp.org>
16227
16228         perror: Avoid clobbering the strerror buffer when possible.
16229         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16230         * lib/strerror.c: Include it.
16231         * modules/strerror (Files): Add lib/strerror-impl.h.
16232         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16233         (my_strerror): New function, defined through lib/strerror-impl.h.
16234         (perror): Use it instead of strerror.
16235         * modules/perror (Files): Add lib/strerror-impl.h.
16236         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16237
16238 2011-05-19  Eric Blake  <eblake@redhat.com>
16239
16240         strerror_r: fix on newer cygwin
16241         * lib/strerror_r.c (strerror_r): Cygwin now has
16242         __xpg_strerror_r, use it.
16243
16244 2011-05-19  Bruno Haible  <bruno@clisp.org>
16245
16246         strerror_r: Avoid clobbering the strerror buffer when possible.
16247         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16248         (sys_nerr, sys_errlist): New declarations.
16249         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16250         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16251         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16252
16253 2011-05-19  Bruno Haible  <bruno@clisp.org>
16254
16255         strerror_r: Fix test failure on mingw.
16256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16257         EXTEND_STRERROR_R.
16258         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16259         macros from errno.in.h instead.
16260
16261 2011-05-19  Eric Blake  <eblake@redhat.com>
16262
16263         strerror: relax test for Solaris
16264         * tests/test-strerror.c (main): Permit Solaris behavior.
16265         * tests/test-strerror_r.c (main): Likewise.
16266
16267         strerror: enforce POSIX ruling on strerror(0)
16268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16270         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16271         * doc/posix-functions/strerror.texi (strerror): Document it.
16272         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16273         * tests/test-strerror.c (main): Strengthen test.
16274         * tests/test-strerror_r.c (main): Likewise.
16275
16276 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16277
16278         intprop-tests: port to older and more-pedantic compilers
16279         * modules/intprops-tests (Files): Add tests/macros.h.
16280         * tests/test-intprops.c: Include macros.h.
16281         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16282         it's no longer documented to expand to an integer constant expression.
16283         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16284         argument is floating point, as it's no longer documented to expand
16285         to an integer constant expression in that case.
16286         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16287         compiler bugs reported by Bruno Haible.  See
16288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16289         (U0, U1): New constants, to work around the same bugs.  Also,
16290         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16291
16292         intprops: work around C compiler bugs
16293         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16294         bug in Sun C 5.11 2010/08/13 and other compilers; see
16295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16296
16297         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16298         * doc/intprops.texi (Integer Type Determination): Fix
16299         documentation for TYPE_IS_INTEGER: it returns an constant
16300         expression, not an integer constant expression.  Fix doc for
16301         TYPE_SIGNED: it returns an integer constant expression only if its
16302         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16303         hardly worth documented that way....)
16304
16305 2011-05-18  Bruno Haible  <bruno@clisp.org>
16306
16307         strerror_r: Avoid clobbering the strerror buffer when possible.
16308         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16309         Handle gnulib defined errno values here. When strerror() returns NULL
16310         or an empty string, return EINVAL.
16311         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16312         gnulib defined errno values here.
16313         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16314
16315 2011-05-18  Eric Blake  <eblake@redhat.com>
16316
16317         fnmatch: avoid compiler warning
16318         * lib/fnmatch_loop.c (FCT): Use correct type.
16319         Reported by Matthias Bolte.
16320
16321 2011-05-13  Jim Meyering  <meyering@redhat.com>
16322
16323         maint.mk: three new prohibit_<HDR>_without_use rules
16324         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16325         (sc_prohibit_stdio-safer_without_use): Likewise.
16326         (sc_prohibit_xfreopen_without_use): Likewise.
16327
16328 2011-05-17  Jim Meyering  <meyering@redhat.com>
16329
16330         announce-gen: fail if the NEWS delta is empty
16331         If there's nothing noteworthy in NEWS, then either you forgot
16332         or you shouldn't be releasing.
16333         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16334
16335 2011-05-17  Pádraig Brady <P@draigBrady.com>
16336
16337         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16338         reserved symbols starting with double underscore from the check.
16339
16340 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         intprops: add doc
16343         * doc/intprops.texi: New file, documenting intprops.
16344         * doc/gnulib.texi (Particular Modules): Include it.
16345
16346         verify: add doc to gnulib manual and fix example
16347         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16348         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16349         (Compile-time Assertions): Fix example so it can't overflow.
16350
16351 2011-05-17  Jim Meyering  <meyering@redhat.com>
16352
16353         warnings.m4: don't usurp save_CPPFLAGS variable name
16354         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16355
16356         doc: fix typo
16357         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16358
16359 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16360             Bruno Haible  <bruno@clisp.org>
16361
16362         doc: Tweak recent change.
16363         * README (Portability guidelines): Tweak new text.
16364         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16365         Interix 6.1.
16366
16367 2011-05-16  Eric Blake  <eblake@redhat.com>
16368
16369         inttypes: avoid autoconf warning
16370         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16371         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16372
16373 2011-05-16  Sam Steingold <sds@gnu.org>
16374         and Eric Blake  <eblake@redhat.com>
16375
16376         vc-list-files: accept multiple directory operands
16377         * build-aux/vc-list-files: Iterate over all remaining operands.
16378
16379 2011-05-16  Bruno Haible  <bruno@clisp.org>
16380
16381         Fix confusion regarding deprecated modules.
16382         * modules/calloc (Status, Notice): Mark module as deprecated, not
16383         obsolete.
16384         * modules/fnmatch-posix (Status, Notice): Likewise.
16385         * modules/getdate (Status, Notice): Likewise.
16386         * modules/getopt (Status, Notice): Likewise.
16387         * modules/malloc (Status, Notice): Likewise.
16388         * modules/pipe (Status, Notice): Likewise.
16389         * modules/realloc (Status, Notice): Likewise.
16390         * modules/rename-dest-slash (Status, Notice): Likewise.
16391         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16392         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16393         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16394         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16395         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16396
16397 2011-05-16  Bruno Haible  <bruno@clisp.org>
16398
16399         doc: List the target platforms.
16400         * doc/gnulib-intro.texi (Target Platforms): New section.
16401         * doc/gnulib.texi (Introduction): Update menu.
16402         * README (Portability guidelines): Refer to the new section. Update
16403         statement about oldest supported environment. Remove rationale why
16404         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16405         unportable C89 function.
16406         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16407         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16408
16409 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16410
16411         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16412
16413 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16414
16415         intprops-tests: new module
16416         * modules/intprops-tests, tests/test-intprops.c: New files.
16417
16418         intprops: add safe, portable integer overflow checking
16419         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16420         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16421         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16422         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16423         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16424         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16425         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16426         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16427         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16428         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16429         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16430
16431 2011-05-12  James Youngman  <jay@gnu.org>
16432
16433         Add a test for glibc's Bugzilla bug #12378.
16434         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16435         doesn't allow the literal matching of a lone "[" (which is
16436         required by POSIX).
16437         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16438
16439 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16440
16441         Sync glibc change fixing Bugzilla bug #12378.
16442         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16443         beginning and fall back to matching as normal character if the
16444         string ends before the matching ']' is found.  This is what POSIX
16445         requires.
16446
16447 2011-05-13  Eric Blake  <eblake@redhat.com>
16448
16449         getcwd-lgpl: relax test for FreeBSD
16450         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16451         issue.
16452         * tests/test-getcwd-lgpl.c (main): Relax test.
16453         Reported by Matthias Bolte.
16454
16455 2011-05-11  Eric Blake  <eblake@redhat.com>
16456
16457         test-fflush: silence compiler warning
16458         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16459
16460 2011-05-11  Bruno Haible  <bruno@clisp.org>
16461
16462         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16463         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16464         * modules/canonicalize (Depends-on): Add 'nocrash'.
16465         * modules/canonicalize-lgpl (Depends-on): Likewise.
16466         * doc/posix-functions/realpath.texi: Update platforms list.
16467         Reported by Ryan Schmidt <ryandesign@macports.org>.
16468
16469 2011-05-11  Bruno Haible  <bruno@clisp.org>
16470
16471         group-member: Declare function in <unistd.h>.
16472         * lib/unistd.in.h (group_member): New declaration.
16473         * lib/group-member.h: Remove file.
16474         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16475         * tests/test-unistd-c++.cc: Check signature of group_member.
16476         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16477         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16478         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16479         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16480         HAVE_GROUP_MEMBER.
16481         * modules/group-member (Files): Remove lib/group-member.h.
16482         (Depends-on): Add unistd. Specify conditions.
16483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16484         (Include): Change to <unistd.h>.
16485         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16486         HAVE_GROUP_MEMBER.
16487         * NEWS: Mention the change.
16488         * lib/euidaccess.c: Don't include group-member.h.
16489
16490 2011-05-11  Bruno Haible  <bruno@clisp.org>
16491
16492         group-member: Document module.
16493         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16494         module.
16495
16496 2011-05-11  Bruno Haible  <bruno@clisp.org>
16497
16498         fclose: Fix mistake earlier today.
16499         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16500
16501 2011-05-11  Eric Blake  <eblake@redhat.com>
16502
16503         fclose: preserve fflush errors
16504         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16505         Reported by Jim Meyering.
16506
16507         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16508         * build-aux/bootstrap (check_versions): When no specific version
16509         is required, merely check that the app produces an exit status
16510         that indicates its existence.
16511
16512         maint.mk: drop redundant check
16513         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16514         the same but better.
16515
16516 2011-05-11  Bruno Haible  <bruno@clisp.org>
16517
16518         fclose: Fix possible link error.
16519         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16520         unregister_shadow_fd. Improve comments.
16521         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16522         Eric Blake.
16523
16524 2011-05-11  Jim Meyering  <meyering@redhat.com>
16525
16526         maint.mk: improve "can not" detection and generalize rule name
16527         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16528         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16529         Use the same technique as in sc_prohibit_doubled_word, so that
16530         we recognize "can not" also when the words are separated by a newline.
16531         Suggested by Eric Blake.
16532         (perl_filename_lineno_text_): Define.  Factored out of...
16533         (prohibit_doubled_word_): ...here.  Use the new definition.
16534         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16535         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16536         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16537
16538 2011-05-10  Eric Blake  <eblake@redhat.com>
16539
16540         fclose: avoid double close race when possible
16541         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16542         all but WINDOWS_SOCKETS.
16543
16544 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16545
16546         openat: correct new comment
16547         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16548
16549 2011-05-10  Jim Meyering  <meyering@redhat.com>
16550
16551         openat: add comments
16552         * lib/openat-proc.c (openat_proc_name): Add comments,
16553         mostly from Eric Blake.
16554
16555 2011-05-09  Eric Blake  <eblake@redhat.com>
16556
16557         openat: reduce syscalls in first probe of /proc
16558         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16559         be a directory.  Simplify the probe for .. bugs.
16560         * modules/openat (Depends-on): Drop same-inode.
16561         Reported by Bastien ROUCARIES.
16562
16563 2011-05-09  Jim Meyering  <meyering@redhat.com>
16564
16565         maint.mk: change semantics/name of tight_scope variables
16566         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16567         Rename variables to align with semantics that make them more useful.
16568
16569         maint.mk: tweak new rule's name not to impinge
16570         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16571         (sc_tight_scope): Use new rule name rather than $@-0.
16572
16573         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16574         * top/maint.mk (sc_tight_scope): New rule.
16575         (sc_tight_scope-0): New rule, ifdef'd out.
16576         (_gl_TS_dir): Default.
16577         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16578         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16579
16580 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16581
16582         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16583         Haible <bruno@clisp.org>.
16584
16585 2011-05-08  Bruno Haible  <bruno@clisp.org>
16586
16587         Comments.
16588         * m4/isnanf.m4: Add comment.
16589         * m4/isnanl.m4: Likewise.
16590
16591 2011-05-08  Bruno Haible  <bruno@clisp.org>
16592
16593         glob: Remove obsolete macro.
16594         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16595
16596 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16597
16598         intprops: Sun C 5.11 supports __typeof__
16599         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16600         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16601         which is new.
16602         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16603
16604         intprops: switch to usual gnulib indenting and naming
16605         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16606         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16607
16608         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16609
16610 2011-05-08  Jim Meyering  <meyering@redhat.com>
16611
16612         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16613         * top/maint.mk (release-prep): Use make's --no-print-directory
16614         option when generating the announcement.  This eliminates the
16615         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16616         generated announcement template.
16617
16618 2011-05-08  Bruno Haible  <bruno@clisp.org>
16619
16620         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16621         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16622         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16623
16624 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16625
16626         ignore-value, verify: Omit include files from lib_SOURCES.
16627         * modules/ignore-value, modules/verify (Makefile.am):
16628         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16629         that leads Automake to duplicate use of am__objects_... variables
16630         in Makefile.in.  See
16631         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16632
16633 2011-05-07  Bruno Haible  <bruno@clisp.org>
16634
16635         fclose: Simplify autoconf macro.
16636         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16637         defined.
16638
16639 2011-05-07  Bruno Haible  <bruno@clisp.org>
16640
16641         canonicalize-lgpl: Fix autoconf macro ordering bug.
16642         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16643         gl_STDLIB_H_DEFAULTS.
16644
16645 2011-05-06  Eric Blake  <eblake@redhat.com>
16646
16647         maintainer-makefile: make sc_po_check easier to tune
16648         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16649         to probe for strings, such as an alternate location for gnulib.
16650
16651         fclose: guarantee behavior on seekable stdin
16652         * modules/fclose (Depends-on): Add fflush.
16653         * doc/posix-functions/fclose.texi (fclose): Document this.
16654         * tests/test-fclose.c (main): Make test for this unconditional.
16655
16656 2011-05-06  Bruno Haible  <bruno@clisp.org>
16657
16658         fflush, fpurge: Relicense under LGPLv2+.
16659         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16660         * modules/fpurge (License): Likewise.
16661         With permission from Eric Blake and Jim Meyering.
16662         Suggested by Eric Blake.
16663
16664 2011-05-06  Karl Berry  <karl@gnu.org>
16665
16666         * MODULES.html.sh (func_all_modules): remove exit.
16667
16668 2011-05-06  Jim Meyering  <meyering@redhat.com>
16669
16670         maint.mk: use info-gnu@ as the default only for a stable release
16671         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16672         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16673         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16675
16676 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16677
16678         assert-h: new module, which supports C1X-style static_assert
16679         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16680         * lib/verify.h: Revamp so that this can be copied into assert.h,
16681         while retaining the ability to use it standalone as before.
16682         Rename private identifiers so as not to encroach on the
16683         standard C namespace, since this is now used by assert.h.
16684         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16685         the old verify_true.
16686         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16687         the old verify_true.  Use _GL_VERIFY_TYPE.
16688         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16689         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16690         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16691         defined when this file is copied into the replacement assert.h.
16692         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16693         and _Static_assert is not built in.
16694         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16695         defined, and use the new macros mentioned above.
16696         * doc/posix-headers/assert.texi: Document this.
16697
16698 2011-05-05  Bruno Haible  <bruno@clisp.org>
16699
16700         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16701         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16702         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16703         gl_REPLACE_FCLOSE here.
16704         * modules/fflush (Depends-on): Remove fclose.
16705         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16706         combination with module 'fclose'.
16707
16708 2011-05-05  Bruno Haible  <bruno@clisp.org>
16709
16710         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16711         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16712         gl_FUNC_FFLUSH.
16713         (gl_FUNC_FFLUSH): Use it.
16714         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16716         gl_REPLACE_FSEEKO here.
16717
16718 2011-05-05  Bruno Haible  <bruno@clisp.org>
16719
16720         tzset: Relicense under LGPL.
16721         * modules/tzset (License): Change to LGPL.
16722         No agreement needed; it's a no-op.
16723
16724         strtoimax, strtoumax: Relicense under LGPL.
16725         * modules/strtoimax (License): Change to LGPL.
16726         * modules/strtoumax (License): Likewise.
16727         With permission from Jim Meyering, Paul Eggert:
16728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16730
16731         getgroups: Relicense under LGPL.
16732         * modules/getgroups (License): Change to LGPL.
16733         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16737
16738         nanosleep: Relicense under LGPL.
16739         * modules/nanosleep (License): Change to LGPL.
16740         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16741         Haible:
16742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16746
16747         futimens: Relicense under LGPL.
16748         * modules/futimens (License): Change to LGPL.
16749         With permission from Eric Blake:
16750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16751
16752         fflush: Relicense under LGPL.
16753         * modules/fflush (License): Change to LGPL.
16754         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16758
16759         tmpfile: Relicense under LGPL.
16760         * modules/tmpfile (License): Change to LGPL.
16761         With permission from Ben Pfaff:
16762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16763
16764         isfinite: Relicense under LGPL.
16765         * modules/isfinite (License): Change to LGPL.
16766         With permission from Ben Pfaff, Bruno Haible:
16767         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16769
16770         acosl..tanl: Relicense under LGPL.
16771         * modules/acosl (License): Change to LGPL.
16772         * modules/asinl (License): Likewise.
16773         * modules/atanl (License): Likewise.
16774         * modules/cosl (License): Likewise.
16775         * modules/expl (License): Likewise.
16776         * modules/logl (License): Likewise.
16777         * modules/sinl (License): Likewise.
16778         * modules/sqrtl (License): Likewise.
16779         * modules/tanl (License): Likewise.
16780         Source code originally from glibc and Paolo Bonzini. Agreements:
16781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16783
16784 2011-05-05  Bruno Haible  <bruno@clisp.org>
16785
16786         signal: Define sighandler_t.
16787         * lib/signal.in.h (sighandler_t): New type.
16788         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16789         whether sighandler_t is defined.
16790         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16791         * modules/signal (Depends-on): Add extensions.
16792         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16793         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16794         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16795
16796 2011-05-05  Eric Blake  <eblake@redhat.com>
16797
16798         maint: remove useless REPLACE_*_H macros
16799         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16800         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16801         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16802         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16803         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16804         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16805         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16806         * m4/btowc.m4: Update callers.
16807         * m4/dirfd.m4: Likewise.
16808         * m4/duplocale.m4: Likewise.
16809         * m4/fchdir.m4: Likewise.
16810         * m4/fdopendir.m4: Likewise.
16811         * m4/inet_ntop.m4: Likewise.
16812         * m4/inet_pton.m4: Likewise.
16813         * m4/ioctl.m4: Likewise.
16814         * m4/mbrlen.m4: Likewise.
16815         * m4/mbrtowc.m4: Likewise.
16816         * m4/mbsinit.m4: Likewise.
16817         * m4/mbsnrtowcs.m4: Likewise.
16818         * m4/mbsrtowcs.m4: Likewise.
16819         * m4/poll.m4: Likewise.
16820         * m4/setlocale.m4: Likewise.
16821         * m4/wcrtomb.m4: Likewise.
16822         * m4/wcsnrtombs.m4: Likewise.
16823         * m4/wcsrtombs.m4: Likewise.
16824         * m4/wctob.m4: Likewise.
16825         * m4/wcwidth.m4: Likewise.
16826         * modules/posix_spawn: Likewise.
16827         * modules/posix_spawn_file_actions_addclose: Likewise.
16828         * modules/posix_spawn_file_actions_adddup2: Likewise.
16829         * modules/posix_spawn_file_actions_addopen: Likewise.
16830         * modules/posix_spawn_file_actions_destroy: Likewise.
16831         * modules/posix_spawn_file_actions_init: Likewise.
16832         * modules/posix_spawnattr_destroy: Likewise.
16833         * modules/posix_spawnattr_getflags: Likewise.
16834         * modules/posix_spawnattr_getpgroup: Likewise.
16835         * modules/posix_spawnattr_getschedparam: Likewise.
16836         * modules/posix_spawnattr_getschedpolicy: Likewise.
16837         * modules/posix_spawnattr_getsigdefault: Likewise.
16838         * modules/posix_spawnattr_getsigmask: Likewise.
16839         * modules/posix_spawnattr_init: Likewise.
16840         * modules/posix_spawnattr_setflags: Likewise.
16841         * modules/posix_spawnattr_setpgroup: Likewise.
16842         * modules/posix_spawnattr_setschedparam: Likewise.
16843         * modules/posix_spawnattr_setschedpolicy: Likewise.
16844         * modules/posix_spawnattr_setsigdefault: Likewise.
16845         * modules/posix_spawnattr_setsigmask: Likewise.
16846         * modules/posix_spawnp: Likewise.
16847
16848 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16849
16850         Add option to do-release-commit-and-tag to specify branch.
16851         * build-aux/do-release-commit-and-tag: Add --branch.
16852
16853 2011-05-03  Bruno Haible  <bruno@clisp.org>
16854
16855         Avoid unnecessary compilation units, through conditional dependencies.
16856         * modules/accept (Depends-on): Add conditions to the dependencies.
16857         * modules/acosl (Depends-on): Likewise.
16858         * modules/argz (Depends-on): Likewise.
16859         * modules/asinl (Depends-on): Likewise.
16860         * modules/atanl (Depends-on): Likewise.
16861         * modules/atoll (Depends-on): Likewise.
16862         * modules/bind (Depends-on): Likewise.
16863         * modules/btowc (Depends-on): Likewise.
16864         * modules/canonicalize-lgpl (Depends-on): Likewise.
16865         * modules/ceil (Depends-on): Likewise.
16866         * modules/ceilf (Depends-on): Likewise.
16867         * modules/ceill (Depends-on): Likewise.
16868         * modules/chdir-long (Depends-on): Likewise.
16869         * modules/chown (Depends-on): Likewise.
16870         * modules/close (Depends-on): Likewise.
16871         * modules/connect (Depends-on): Likewise.
16872         * modules/cosl (Depends-on): Likewise.
16873         * modules/dirfd (Depends-on): Likewise.
16874         * modules/dprintf (Depends-on): Likewise.
16875         * modules/dprintf-posix (Depends-on): Likewise.
16876         * modules/error (Depends-on): Likewise.
16877         * modules/euidaccess (Depends-on): Likewise.
16878         * modules/expl (Depends-on): Likewise.
16879         * modules/faccessat (Depends-on): Likewise.
16880         * modules/fchdir (Depends-on): Likewise.
16881         * modules/fclose (Depends-on): Likewise.
16882         * modules/fcntl (Depends-on): Likewise.
16883         * modules/fdopendir (Depends-on): Likewise.
16884         * modules/fflush (Depends-on): Likewise.
16885         * modules/floor (Depends-on): Likewise.
16886         * modules/floorf (Depends-on): Likewise.
16887         * modules/floorl (Depends-on): Likewise.
16888         * modules/fnmatch (Depends-on): Likewise.
16889         * modules/fopen (Depends-on): Likewise.
16890         * modules/fprintf-posix (Depends-on): Likewise.
16891         * modules/frexp (Depends-on): Likewise.
16892         * modules/frexp-nolibm (Depends-on): Likewise.
16893         * modules/frexpl (Depends-on): Likewise.
16894         * modules/frexpl-nolibm (Depends-on): Likewise.
16895         * modules/fseek (Depends-on): Likewise.
16896         * modules/fsusage (Depends-on): Likewise.
16897         * modules/ftell (Depends-on): Likewise.
16898         * modules/ftello (Depends-on): Likewise.
16899         * modules/futimens (Depends-on): Likewise.
16900         * modules/getcwd (Depends-on): Likewise.
16901         * modules/getcwd-lgpl (Depends-on): Likewise.
16902         * modules/getdelim (Depends-on): Likewise.
16903         * modules/getdomainname (Depends-on): Likewise.
16904         * modules/getgroups (Depends-on): Likewise.
16905         * modules/gethostname (Depends-on): Likewise.
16906         * modules/getline (Depends-on): Likewise.
16907         * modules/getlogin_r (Depends-on): Likewise.
16908         * modules/getopt-posix (Depends-on): Likewise.
16909         * modules/getpeername (Depends-on): Likewise.
16910         * modules/getsockname (Depends-on): Likewise.
16911         * modules/getsockopt (Depends-on): Likewise.
16912         * modules/getsubopt (Depends-on): Likewise.
16913         * modules/getusershell (Depends-on): Likewise.
16914         * modules/glob (Depends-on): Likewise.
16915         * modules/grantpt (Depends-on): Likewise.
16916         * modules/iconv_open (Depends-on): Likewise.
16917         * modules/iconv_open-utf (Depends-on): Likewise.
16918         * modules/inet_ntop (Depends-on): Likewise.
16919         * modules/inet_pton (Depends-on): Likewise.
16920         * modules/ioctl (Depends-on): Likewise.
16921         * modules/isapipe (Depends-on): Likewise.
16922         * modules/isfinite (Depends-on): Likewise.
16923         * modules/isinf (Depends-on): Likewise.
16924         * modules/lchown (Depends-on): Likewise.
16925         * modules/ldexpl (Depends-on): Likewise.
16926         * modules/link (Depends-on): Likewise.
16927         * modules/linkat (Depends-on): Likewise.
16928         * modules/listen (Depends-on): Likewise.
16929         * modules/logl (Depends-on): Likewise.
16930         * modules/lstat (Depends-on): Likewise.
16931         * modules/mbrlen (Depends-on): Likewise.
16932         * modules/mbrtowc (Depends-on): Likewise.
16933         * modules/mbsinit (Depends-on): Likewise.
16934         * modules/mbsnrtowcs (Depends-on): Likewise.
16935         * modules/mbsrtowcs (Depends-on): Likewise.
16936         * modules/mbtowc (Depends-on): Likewise.
16937         * modules/memcmp (Depends-on): Likewise.
16938         * modules/mkdir (Depends-on): Likewise.
16939         * modules/mkdtemp (Depends-on): Likewise.
16940         * modules/mkfifo (Depends-on): Likewise.
16941         * modules/mkfifoat (Depends-on): Likewise.
16942         * modules/mknod (Depends-on): Likewise.
16943         * modules/mkostemp (Depends-on): Likewise.
16944         * modules/mkostemps (Depends-on): Likewise.
16945         * modules/mkstemp (Depends-on): Likewise.
16946         * modules/mkstemps (Depends-on): Likewise.
16947         * modules/mktime (Depends-on): Likewise.
16948         * modules/nanosleep (Depends-on): Likewise.
16949         * modules/open (Depends-on): Likewise.
16950         * modules/openat (Depends-on): Likewise.
16951         * modules/perror (Depends-on): Likewise.
16952         * modules/poll (Depends-on): Likewise.
16953         * modules/popen (Depends-on): Likewise.
16954         * modules/posix_spawn (Depends-on): Likewise.
16955         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16956         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16957         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16958         * modules/posix_spawnp (Depends-on): Likewise.
16959         * modules/pread (Depends-on): Likewise.
16960         * modules/printf-posix (Depends-on): Likewise.
16961         * modules/ptsname (Depends-on): Likewise.
16962         * modules/putenv (Depends-on): Likewise.
16963         * modules/pwrite (Depends-on): Likewise.
16964         * modules/readline (Depends-on): Likewise.
16965         * modules/readlink (Depends-on): Likewise.
16966         * modules/readlinkat (Depends-on): Likewise.
16967         * modules/recv (Depends-on): Likewise.
16968         * modules/recvfrom (Depends-on): Likewise.
16969         * modules/regex (Depends-on): Likewise.
16970         * modules/remove (Depends-on): Likewise.
16971         * modules/rename (Depends-on): Likewise.
16972         * modules/renameat (Depends-on): Likewise.
16973         * modules/rmdir (Depends-on): Likewise.
16974         * modules/round (Depends-on): Likewise.
16975         * modules/roundf (Depends-on): Likewise.
16976         * modules/roundl (Depends-on): Likewise.
16977         * modules/rpmatch (Depends-on): Likewise.
16978         * modules/select (Depends-on): Likewise.
16979         * modules/send (Depends-on): Likewise.
16980         * modules/sendto (Depends-on): Likewise.
16981         * modules/setenv (Depends-on): Likewise.
16982         * modules/setlocale (Depends-on): Likewise.
16983         * modules/setsockopt (Depends-on): Likewise.
16984         * modules/shutdown (Depends-on): Likewise.
16985         * modules/sigaction (Depends-on): Likewise.
16986         * modules/signbit (Depends-on): Likewise.
16987         * modules/sigprocmask (Depends-on): Likewise.
16988         * modules/sinl (Depends-on): Likewise.
16989         * modules/sleep (Depends-on): Likewise.
16990         * modules/snprintf (Depends-on): Likewise.
16991         * modules/snprintf-posix (Depends-on): Likewise.
16992         * modules/socket (Depends-on): Likewise.
16993         * modules/sprintf-posix (Depends-on): Likewise.
16994         * modules/sqrtl (Depends-on): Likewise.
16995         * modules/stat (Depends-on): Likewise.
16996         * modules/strchrnul (Depends-on): Likewise.
16997         * modules/strdup-posix (Depends-on): Likewise.
16998         * modules/strerror (Depends-on): Likewise.
16999         * modules/strerror_r-posix (Depends-on): Likewise.
17000         * modules/strndup (Depends-on): Likewise.
17001         * modules/strnlen (Depends-on): Likewise.
17002         * modules/strptime (Depends-on): Likewise.
17003         * modules/strsep (Depends-on): Likewise.
17004         * modules/strsignal (Depends-on): Likewise.
17005         * modules/strstr-simple (Depends-on): Likewise.
17006         * modules/strtod (Depends-on): Likewise.
17007         * modules/strtoimax (Depends-on): Likewise.
17008         * modules/strtok_r (Depends-on): Likewise.
17009         * modules/strtoumax (Depends-on): Likewise.
17010         * modules/symlink (Depends-on): Likewise.
17011         * modules/symlinkat (Depends-on): Likewise.
17012         * modules/tanl (Depends-on): Likewise.
17013         * modules/tcgetsid (Depends-on): Likewise.
17014         * modules/tmpfile (Depends-on): Likewise.
17015         * modules/trunc (Depends-on): Likewise.
17016         * modules/truncf (Depends-on): Likewise.
17017         * modules/truncl (Depends-on): Likewise.
17018         * modules/uname (Depends-on): Likewise.
17019         * modules/unlink (Depends-on): Likewise.
17020         * modules/unlockpt (Depends-on): Likewise.
17021         * modules/unsetenv (Depends-on): Likewise.
17022         * modules/usleep (Depends-on): Likewise.
17023         * modules/utimensat (Depends-on): Likewise.
17024         * modules/vasprintf (Depends-on): Likewise.
17025         * modules/vdprintf (Depends-on): Likewise.
17026         * modules/vdprintf-posix (Depends-on): Likewise.
17027         * modules/vfprintf-posix (Depends-on): Likewise.
17028         * modules/vprintf-posix (Depends-on): Likewise.
17029         * modules/vsnprintf (Depends-on): Likewise.
17030         * modules/vsnprintf-posix (Depends-on): Likewise.
17031         * modules/vsprintf-posix (Depends-on): Likewise.
17032         * modules/wcrtomb (Depends-on): Likewise.
17033         * modules/wcscasecmp (Depends-on): Likewise.
17034         * modules/wcscspn (Depends-on): Likewise.
17035         * modules/wcsdup (Depends-on): Likewise.
17036         * modules/wcsncasecmp (Depends-on): Likewise.
17037         * modules/wcsnrtombs (Depends-on): Likewise.
17038         * modules/wcspbrk (Depends-on): Likewise.
17039         * modules/wcsrtombs (Depends-on): Likewise.
17040         * modules/wcsspn (Depends-on): Likewise.
17041         * modules/wcsstr (Depends-on): Likewise.
17042         * modules/wcstok (Depends-on): Likewise.
17043         * modules/wcswidth (Depends-on): Likewise.
17044         * modules/wctob (Depends-on): Likewise.
17045         * modules/wctomb (Depends-on): Likewise.
17046         * modules/wctype (Depends-on): Likewise.
17047         * modules/wcwidth (Depends-on): Likewise.
17048         * modules/write (Depends-on): Likewise.
17049
17050 2011-05-03  Bruno Haible  <bruno@clisp.org>
17051
17052         Support for conditional dependencies.
17053         * doc/gnulib.texi (Module description): Document the syntax of
17054         conditional dependencies.
17055         * gnulib-tool: New option --conditional-dependencies.
17056         (func_usage): Document it.
17057         (cond_dependencies): New variable.
17058         (func_get_automake_snippet_conditional,
17059         func_get_automake_snippet_unconditional): New functions, extracted from
17060         func_get_automake_snippet.
17061         (func_get_automake_snippet): Use them.
17062         (sed_first_32_chars): New variable.
17063         (func_module_shellfunc_name): New function.
17064         (func_module_shellvar_name): New function.
17065         (func_module_conditional_name): New function.
17066         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17067         func_cond_module_condition): New functions.
17068         (func_modules_transitive_closure): Add support for conditional
17069         dependencies.
17070         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17071         conditional automake snippet in an automake conditional.
17072         (func_emit_autoconf_snippets): Emit shell functions that contain the
17073         code for conditional modules.
17074         (func_import, func_create_testdir): Update specification.
17075
17076 2011-05-03  Eric Blake  <eblake@redhat.com>
17077
17078         test-getaddrinfo: report error information
17079         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17080
17081 2011-05-03  Jim Meyering  <meyering@redhat.com>
17082
17083         bootstrap: avoid build failure when $GZIP is set
17084         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17085         program name.  If defined at all, it is supposed to list gzip options.
17086         Reported by Alan Curry in http://debbugs.gnu.org/8609
17087
17088 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17089
17090         readme-release: new module with release instructions
17091         * modules/readme-release: New module.
17092         * top/README-release: New file, from coreutils, grep, diffutils.
17093         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17094
17095 2011-05-02  Eric Blake  <eblake@redhat.com>
17096
17097         fflush: also replace fclose when fixing fflush
17098         * modules/fflush (Depends-on): Add fclose.
17099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17100         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17101         memstreams with no backing fd.
17102         * doc/posix-functions/fclose.texi (fclose): Document the use of
17103         fflush module to fix the bug.
17104         * tests/test-fclose.c (main): Relax test when fclose is used in
17105         isolation.
17106
17107         fclose: add some tests
17108         * modules/fclose-tests: New test module.
17109         * tests/test-fclose.c: New file.
17110         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17111
17112         fclose: reduced dependencies
17113         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17114         simpler lseek.
17115         * lib/fclose.c (rpl_fclose): Likewise.
17116         Reported by Simon Josefsson.
17117
17118         exit: drop remaining clients
17119         * modules/argmatch (Depends-on): Replace exit with stdlib.
17120         * modules/copy-file (Depends-on): Likewise.
17121         * modules/execute (Depends-on): Likewise.
17122         * modules/exitfail (Depends-on): Likewise.
17123         * modules/obstack (Depends-on): Likewise.
17124         * modules/pagealign_alloc (Depends-on): Likewise.
17125         * modules/pipe-filter-gi (Depends-on): Likewise.
17126         * modules/pipe-filter-ii (Depends-on): Likewise.
17127         * modules/savewd (Depends-on): Likewise.
17128         * modules/spawn-pipe (Depends-on): Likewise.
17129         * modules/wait-process (Depends-on): Likewise.
17130         * modules/xsetenv (Depends-on): Likewise.
17131         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17132         * modules/git-merge-changelog (Depends-on): Likewise.
17133         * modules/long-options (Depends-on): Likewise.
17134         * modules/pt_chown (Depends-on): Likewise.
17135         * modules/sysexits (Depends-on): Likewise.
17136
17137         freading: relax license from LGPLv3+ to LGPLv2+
17138         * modules/freading (License): Relax LGPL version.
17139
17140 2011-05-02  Bruno Haible  <bruno@clisp.org>
17141
17142         fchdir: Remove unused dependencies.
17143         * modules/fchdir (Depends-on): Remove include_next.
17144
17145 2011-05-02  Bruno Haible  <bruno@clisp.org>
17146
17147         gnulib-tool: Refactor.
17148         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17149         from func_emit_autoconf_snippets.
17150         (func_emit_autoconf_snippets): Use it.
17151
17152 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17153
17154         * NEWS: Document removal of 'exit'.
17155         * modules/exit: Remove file.
17156
17157 2011-05-01  Bruno Haible  <bruno@clisp.org>
17158
17159         Update DEPENDENCIES.
17160         * DEPENDENCIES (gettext): Recommend the newest release.
17161         Reported by Simon Josefsson.
17162
17163 2011-05-01  Bruno Haible  <bruno@clisp.org>
17164
17165         gnulib-tool: Reduce code duplication.
17166         * gnulib-tool (func_emit_autoconf_snippets): New function.
17167         (func_import, func_create_testdir): Use it.
17168
17169 2011-04-30  Eric Blake  <eblake@redhat.com>
17170
17171         fclose: don't fail on non-seekable input stream
17172         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17173         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17174         since fflush is allowed to fail in that case.
17175
17176 2011-04-30  Bruno Haible  <bruno@clisp.org>
17177
17178         dup3: cleanup
17179         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17180
17181 2011-04-30  Bruno Haible  <bruno@clisp.org>
17182
17183         netdb: Make it work in C++ mode.
17184         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17185         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17186         module.
17187         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17188         gl_MODULE_INDICATOR_FOR_TESTS.
17189         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17190         * modules/netdb-c++-tests: New file.
17191         * tests/test-netdb-c++.cc: New file.
17192
17193 2011-04-30  Bruno Haible  <bruno@clisp.org>
17194
17195         New modules 'vfscanf', 'vscanf'.
17196         * modules/vfscanf: New file.
17197         * modules/vscanf: New file.
17198         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17199         here.
17200         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17201         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17202
17203 2011-04-30  Bruno Haible  <bruno@clisp.org>
17204
17205         passfd: Add comments.
17206         * lib/passfd.c: Add comments about platforms.
17207
17208 2011-04-30  Bruno Haible  <bruno@clisp.org>
17209
17210         sys_uio: Make <sys/uio.h> self-contained.
17211         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17212         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17213
17214 2011-04-30  Bruno Haible  <bruno@clisp.org>
17215
17216         sys_socket: Ensure 'struct iovec' definition.
17217         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17218         <sys/socket.h>.
17219         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17220
17221 2011-04-30  Bruno Haible  <bruno@clisp.org>
17222
17223         sys_uio: Protect definition of 'struct iovec'.
17224         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17225         it as a C struct.
17226
17227 2011-04-30  Bruno Haible  <bruno@clisp.org>
17228
17229         manywarnings: fix indentation
17230         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17231
17232 2011-04-30  Pádraig Brady <P@draigBrady.com>
17233
17234         manywarnings: add -Wno-missing-field-initializers if needed.
17235         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17236         option if it's needed to allow initialization with { 0, }
17237
17238 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17239
17240         announce-gen: cosmetic improvement
17241         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17242
17243 2011-04-29  Jim Meyering  <meyering@redhat.com>
17244
17245         vc-list-files: indent with spaces, not TABs
17246         * build-aux/vc-list-files: Convert leading TABs to spaces,
17247         to match the style of most other files in gnulib.
17248
17249         announce-gen: indent with spaces, not TABs
17250         * build-aux/announce-gen: Convert all TABs to spaces, to match
17251         the style of most other files in gnulib.
17252
17253 2011-04-29  Eric Blake  <eblake@redhat.com>
17254
17255         quotearg: avoid uninitialized variable use
17256         * lib/quotearg.c (quoting_options_from_style): Initialize
17257         remaining fields, and ensure that custom styles are only used via
17258         quoting_options rather than quoting_style.
17259
17260 2011-04-29  Jim Meyering  <meyering@redhat.com>
17261
17262         maint.mk: remove unused VC-tag variable
17263         * top/maint.mk (VC-tag): Remove unused variable.
17264
17265 2011-04-29  Bruno Haible  <bruno@clisp.org>
17266
17267         netdb: fix gai_strerror replacements
17268         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17269         * modules/netdb: Substitute it.
17270
17271 2011-04-29  Jim Meyering  <meyering@redhat.com>
17272
17273         test-getcwd.c: avoid new set-but-not-used warning
17274         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17275         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17276         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17277         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17278
17279         test-hash.c: avoid a new shadowing warning
17280         * tests/test-hash.c (main): Don't shadow "dup".
17281
17282 2011-04-28  Eric Blake  <eblake@redhat.com>
17283
17284         getaddrinfo: fix gai_strerror signature
17285         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17286         and work around mingw with UNICODE defined.
17287         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17288         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17289         * modules/netdb (Makefile.am): Substitute it.
17290         * lib/netdb.in.h (gai_strerror): Declare replacement.
17291         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17292         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17293         the fix.
17294
17295         getsockopt: avoid compiler warning
17296         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17297         Reported by Matthias Bolte.
17298
17299         tests: drop unused link dependency
17300         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17301         * modules/dirent-safer-tests (Makefile.am): Likewise.
17302         * modules/fdopendir-tests (Makefile.am): Likewise.
17303         * modules/mkfifoat-tests (Makefile.am): Likewise.
17304         * modules/openat-safer-tests (Makefile.am): Likewise.
17305         * modules/openat-tests (Makefile.am): Likewise.
17306         * modules/readlinkat-tests (Makefile.am): Likewise.
17307         * modules/symlinkat-tests (Makefile.am): Likewise.
17308         * modules/linkat-tests (Makefile.am): Likewise.
17309         (Depends-on): Switch to filenamecat-lgpl.
17310         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17311         LIBINTL.
17312         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17313         * tests/test-linkat.c (main): Don't require xalloc.
17314
17315         hash, mgetgroups: drop xalloc dependency
17316         * lib/hash.c (includes): Adjust includes.
17317         * lib/mgetgroups.c (includes): Likewise.
17318         (xgetgroups): Move...
17319         * lib/xgetgroups.c: ...to new file.
17320         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17321         * modules/xgetgroups: New file, split from...
17322         * modules/mgetgroups: ...here.
17323         (Depends-on): Add xalloc-oversized.
17324         * modules/hash (Depends-on): Likewise.
17325         * modules/hash-tests (Depends-on): Drop xalloc.
17326         (test_hash_LDADD): Drop unused library.
17327         * tests/test-hash.c (main): Break xalloc dependency.
17328         (includes): Drop unused include.
17329
17330         xalloc-oversized: new module
17331         * modules/xalloc-oversized: New module.
17332         * modules/xalloc (Depends-on): Add it.
17333         * lib/xalloc.h (xalloc_oversized): Move...
17334         * lib/xalloc-oversized.h: ...into new file.
17335
17336         utimecmp: drop dependency on xmalloc
17337         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17338         due to memory pressure.
17339         * modules/utimecmp (Depends-on): Drop xalloc.
17340
17341 2011-04-27  Eric Blake  <eblake@redhat.com>
17342
17343         getcwd: fix mingw bugs
17344         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17345         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17346         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17347
17348 2011-04-27  Bruno Haible  <bruno@clisp.org>
17349
17350         mkstemps: Ensure declaration on MacOS X 10.5.
17351         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17352         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17353         MacOS X.
17354
17355 2011-04-27  Bruno Haible  <bruno@clisp.org>
17356
17357         mkstemp: More documentation.
17358         * doc/posix-functions/mkstemp.texi: Document header file problem on
17359         MacOS X.
17360
17361 2011-04-27  Bruno Haible  <bruno@clisp.org>
17362
17363         mkstemp: Tweak configure message when cross-compiling.
17364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17365         result as a guess.
17366
17367 2011-04-27  Bruno Haible  <bruno@clisp.org>
17368
17369         clean-temp: Clarify what it does.
17370         * lib/clean-temp.h: Add more comments.
17371         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17372         module.
17373         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17374         * doc/glibc-functions/mkstemps.texi: Likewise.
17375         * doc/glibc-functions/mkostemps.texi: Likewise.
17376
17377 2011-04-27  Eric Blake  <eblake@redhat.com>
17378
17379         fchdir: avoid extra chdir and fix test
17380         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17381         getcwd-lgpl.
17382         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17383         have to be canonical.
17384         (canonicalize_file_name): Drop unused macro.
17385         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17386
17387         filenamecat-lgpl: fix licence
17388         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17389         when it was first created.
17390
17391         linkat, renameat: add missing dependency
17392         * modules/linkat (Depends-on): Require getcwd-lgpl.
17393         * modules/renameat (Depends-on): Likewise.
17394
17395         tests: reduce dependencies
17396         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17397         * tests/test-renameat.c (main): Likewise.
17398         * modules/linkat-tests (Depends-on): Relax dependency.
17399         * modules/renameat-tests (Depends-on): Likewise.
17400         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17401         dependency explicit.
17402
17403         save-cwd: reduce default dependency
17404         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17405         * lib/save-cwd.c: Update comments.
17406         * NEWS: Document the semantic change.
17407
17408         getcwd: enhance tests
17409         * tests/test-getcwd-lgpl.c: New file, taken from...
17410         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17411         repeat long path stress tests from m4 probe.
17412         * modules/getcwd-lgpl-tests: New module.
17413         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17414         * m4/getcwd-abort-bug.m4: Update comment.
17415         * m4/getcwd-path-max.m4: Likewise.
17416
17417         getcwd-lgpl: new module
17418         * modules/getcwd-lgpl: New module.
17419         * lib/getcwd-lgpl.c: New file.
17420         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17421         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17422         * modules/getcwd (configure.ac): Set C witness.
17423         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17424
17425         getcwd: tweak comments
17426         * m4/getcwd-abort-bug.m4: Fix comments.
17427         * m4/getcwd-path-max.m4: Likewise.
17428         * m4/getcwd.m4: Likewise.
17429
17430 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17431         and Eric Blake  <eblake@redhat.com>
17432
17433         mkstemp: replace if system version uses wrong permissions
17434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17435         read/write mode bits set in file created by mkstemp.
17436         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17437
17438 2011-04-27  Eric Blake  <eblake@redhat.com>
17439
17440         passfd: avoid compiler warning
17441         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17442         Reported by Laine Stump.
17443
17444 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17445
17446         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17447         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17448
17449 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17450         and Eric Blake  <eblake@redhat.com>
17451
17452         mkstemp: mention clean-temp module
17453         * lib/mkstemp.c: Add comment.
17454         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17455
17456 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17457
17458         inttypes: also provide default values for 32-bit tests
17459         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17460         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17461
17462 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17463
17464         strtoumax: remove dependency on strtoimax
17465         This is like the strtoull change of yesterday.
17466         * modules/strtoumax (Files): Add lib/strtoimax.c.
17467         (Depends-on): Remove strtoimax and add verify.
17468
17469         inttypes-incomplete: new module
17470         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17471         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17472         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17473         of gl_INTTYPES_H.
17474         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17475         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17476         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17477         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17478         * modules/strtoumax, modules/xstrtol (Depends-on):
17479         Depend on inttypes-incomplete, not inttypes.
17480         * modules/inttypes-incomplete: New module, containing the contents
17481         of the old modules/inttypes module, except that the Files: section
17482         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17483         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17484         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17485         (Depends-on): Depend only on inttypes-incomplete.
17486         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17487
17488         inttypes: omit now-redundant strtoimax and strtoumax work
17489         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17490         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17491
17492         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17493         This supports apps that need pointers to strtoimax and strtoumax,
17494         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17495         nonexistent functions.  See
17496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17497         et seq.
17498         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17499         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17500         a macro.
17501         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17502
17503 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17504
17505         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17506
17507 2011-04-25  Bruno Haible  <bruno@clisp.org>
17508
17509         strtol, strtoul: Mark modules as obsolete.
17510         * modules/strtol (Status, Notice): New sections.
17511         * modules/strtoul (Status, Notice): New sections.
17512
17513 2011-04-25  Bruno Haible  <bruno@clisp.org>
17514
17515         strtod: Remove check for strtod, unless supporting old platforms.
17516         * modules/strtod-obsolete: New file.
17517         * m4/strtod-obsolete.m4: New file.
17518         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17519         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17520         * modules/strtod (Depends-on): Add strtod-obsolete.
17521         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17522
17523 2011-04-25  Bruno Haible  <bruno@clisp.org>
17524
17525         strcase: Make module obsolete.
17526         * modules/strcase (Status, Notice): New sections.
17527
17528 2011-04-25  Bruno Haible  <bruno@clisp.org>
17529
17530         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17531         * modules/dup2-obsolete: New file.
17532         * m4/dup2-obsolete.m4: New file.
17533         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17534         gl_FUNC_DUP2_OBSOLETE is not also defined.
17535         * modules/dup2 (Depends-on): Add dup2-obsolete.
17536         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17537
17538 2011-04-25  Bruno Haible  <bruno@clisp.org>
17539
17540         strnlen: Avoid memchr related link error on old obsolete platforms.
17541         * modules/memchr-obsolete: New file.
17542         * m4/memchr-obsolete.m4: New file.
17543         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17544         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17545         * modules/memchr (Depends-on): Add memchr-obsolete.
17546         * modules/strnlen (Depends-on): Likewise.
17547         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17548
17549 2011-04-25  Jim Meyering  <meyering@redhat.com>
17550
17551         maint.mk: makefile_at_at_check extend and clean up
17552         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17553         in addition to */Makefile.am.
17554         Exempt legitimate uses of @VAR@ notation, e.g.,
17555         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17556         Remove obsolete coreutils-specific comment.
17557         Prompted by discussion here:
17558         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17559
17560 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17561
17562         strtoul: remove dependency on strtol
17563         This is so that 'configure' need not check for strtol merely because
17564         the application needs strtoul.
17565         * modules/strtoul (Files): Add lib/strtol.c.
17566         (Depends-on): Remove strtol.
17567
17568         strtoull: remove dependency on strtoul
17569         This is like the strtoll change.
17570         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17571         (Depends-on): Remove strtoul.
17572
17573         strtoll: remove dependency on strtol
17574         This is so that 'configure' need not check for strtol merely because
17575         the application needs strtoll.
17576         * modules/strtoll (Files): Add lib/strtol.c.
17577         (Depends-on): Remove strtol.
17578
17579 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17580
17581         inttypes: Move some configure check to module 'imaxdiv'.
17582         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17583         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17584         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17585
17586 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17587
17588         inttypes: Move some configure check to module 'imaxabs'.
17589         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17590         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17591         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17592
17593 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17594
17595         inttypes: Remove configure tests that are not needed since 2009-12-31.
17596         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17597         gl_cv_header_working_inttypes_h.
17598
17599 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17600
17601         * modules/strnlen (Depends-on): Remove memchr.
17602         The strnlen implementation doesn't need the memchr module's fixes; see
17603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17604
17605         strtol: remove dependency on wchar
17606         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17607         * modules/strtol (Depends-on): Remove wchar.
17608
17609 2011-04-21  Eric Blake  <eblake@redhat.com>
17610
17611         passfd: fix test regression on Linux
17612         * modules/passfd-tests (configure.ac): Correct socketpair check.
17613
17614         passfd: speed up configure and drop unused code
17615         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17616         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17617         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17618         Instead of probing at configure for unix_scm_rights_bsd44_way,
17619         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17620         check to a struct member probe.
17621         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17622         (sendfd, recvfd): Update preprocessor checks.
17623         * modules/passfd (Files): Reflect rename, and drop unused file.
17624         (Depends-on): Drop unused dependency.
17625
17626         passfd: allow compilation on mingw
17627         * modules/sys_socket (Depends-on): Add sys_uio.
17628         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17629         iovec and a minimal struct msghdr.
17630         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17631         * tests/test-sys_socket.c (main): Enhance test.
17632         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17633         guaranteed to provide what we need.
17634         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17635         * modules/passfd-tests (Depends-on): Add sys_wait.
17636         * tests/test-passfd.c (main): Skip test on mingw, for now.
17637         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17638         partial 'struct msghdr' implementation.
17639
17640         sys_uio: new module
17641         * modules/sys_uio: New module.
17642         * modules/sys_uio-tests: Likewise.
17643         * lib/sys_uio.in.h: New file.
17644         * m4/sys_uio_h.m4: Likewise.
17645         * tests/test-sys_uio.c: Likewise.
17646         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17647         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17648
17649 2011-04-20  Jim Meyering  <meyering@redhat.com>
17650
17651         useless-if-before-free: avoid false-positive
17652         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17653         disjunct so that it too requires a terminating ";".  Without that,
17654         this script would identify as useless one statement from gcc that
17655         was not:
17656           if (aligned_ptr)
17657             free (((void **) aligned_ptr) [-1]);
17658
17659 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17660
17661         doc: update users.txt.
17662         * users.txt: Add barcode.
17663
17664 2011-04-19  Bruno Haible  <bruno@clisp.org>
17665
17666         ioctl: Remove link dependency on native Windows.
17667         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17668         (gl_close_fn, gl_ioctl_fn): New types.
17669         (struct fd_hook): Renamed from struct close_hook. Change type of
17670         private_close_fn field. Add private_ioctl_fn field.
17671         (close_hook_fn): Add parameter for primary close method.
17672         (execute_close_hooks, execute_all_close_hooks): Likewise.
17673         (ioctl_hook_fn): New type.
17674         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17675         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17676         argument.
17677         (unregister_fd_hook): Renamed from unregister_close_hook.
17678         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17679         Don't include <unistd.h>.
17680         (close): Remove undef.
17681         (anchor): Update.
17682         (execute_close_hooks): Add argument for primary close method.
17683         (execute_all_close_hooks): Likewise.
17684         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17685         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17686         argument. Allow each argument to be NULL.
17687         (unregister_fd_hook): Renamed from unregister_close_hook.
17688         * lib/close.c (rpl_close): Pass 'close' function pointer to
17689         execute_all_close_hooks.
17690         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17691         (primary_ioctl): New function.
17692         (ioctl): Don't call ioctlsocket here. Instead, call
17693         execute_all_ioctl_hooks.
17694         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17695         close method.
17696         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17697         (fd_sockets_hook): Renamed from close_sockets_hook.
17698         (gl_sockets_startup, gl_sockets_cleanup): Update.
17699         * modules/fd-hook: Renamed from modules/close-hook. Update.
17700         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17701         * modules/sockets (Depends-on): Likewise.
17702         * modules/ioctl (Depends-on): Add fd-hook.
17703         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17704         GNULIB_SOCKET.
17705
17706 2011-04-19  Bruno Haible  <bruno@clisp.org>
17707
17708         Move the support of O_NONBLOCK in open() to the 'open' module.
17709         * modules/nonblocking (Depends-on): Remove 'open'.
17710         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17711         gl_cv_have_open_O_NONBLOCK.
17712         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17713         O_NONBLOCK support.
17714         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17715
17716 2011-04-17  Bruno Haible  <bruno@clisp.org>
17717
17718         pipe2: Simplify code.
17719         * lib/pipe2.c (pipe2): Reduce code duplication.
17720
17721 2011-04-17  Bruno Haible  <bruno@clisp.org>
17722
17723         nonblocking: Add comment.
17724         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17725
17726 2011-04-17  Bruno Haible  <bruno@clisp.org>
17727
17728         nonblocking: Add tests for sockets.
17729         * tests/test-nonblocking-socket.sh: New file.
17730         * tests/test-nonblocking-socket-main.c: New file.
17731         * tests/test-nonblocking-socket-child.c: New file.
17732         * tests/test-nonblocking-socket.h: New file.
17733         * tests/socket-server.h: New file.
17734         * tests/socket-client.h: New file.
17735         * modules/nonblocking-socket-tests: New file.
17736         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17737
17738 2011-04-17  Bruno Haible  <bruno@clisp.org>
17739
17740         nonblocking: Add tests for pipes.
17741         * tests/test-nonblocking-pipe.sh: New file.
17742         * tests/test-nonblocking-pipe-main.c: New file.
17743         * tests/test-nonblocking-pipe-child.c: New file.
17744         * tests/test-nonblocking-pipe.h: New file.
17745         * tests/test-nonblocking-writer.h: New file.
17746         * tests/test-nonblocking-reader.h: New file.
17747         * tests/test-nonblocking-misc.h: New file.
17748         * modules/nonblocking-pipe-tests: New file.
17749         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17750
17751 2011-04-16  Bruno Haible  <bruno@clisp.org>
17752
17753         gettext: Clarify the needed programmer actions.
17754         * modules/gettext (Notice): New field.
17755         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17756
17757 2011-04-16  Bruno Haible  <bruno@clisp.org>
17758
17759         strchrnul: Tweak last commit.
17760         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17761         bug.
17762         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17763         as in _GL_FUNCDECL_SYS.
17764         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17765         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17766
17767 2011-04-15  Eric Blake  <eblake@redhat.com>
17768
17769         strchrnul: work around cygwin bug
17770         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17771         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17773         * modules/string (Makefile.am): Substitute it.
17774         * lib/string.in.h (strchrnul): Use it.
17775
17776 2011-04-15  Bruno Haible  <bruno@clisp.org>
17777
17778         Don't require lib/stdio-write.c when only module 'stdio' is used.
17779         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17780         invocation.
17781         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17782
17783 2011-04-14  Bruno Haible  <bruno@clisp.org>
17784
17785         Support non-blocking pipe I/O in read() on native Windows.
17786         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17787         (read): New declaration.
17788         * lib/read.c: New file.
17789         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17790         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17791         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17792         vscanf): New declarations.
17793         * lib/stdio-read.c: New file.
17794         * m4/read.m4: New file.
17795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17796         REPLACE_READ.
17797         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17798         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17799         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17800         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17801         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17802         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17803         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17804         * modules/read: New file.
17805         * modules/nonblocking (Files): Add lib/stdio-read.c.
17806         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17807         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17808         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17809         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17810         * modules/pread (Depends-on): Add read.
17811         * modules/safe-read (Depends-on): Likewise.
17812         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17813         gets, scanf, vfscanf, vscanf): Verify signatures.
17814         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17815         problem with non-blocking pipes.
17816         * doc/posix-functions/fgetc.texi: Likewise.
17817         * doc/posix-functions/fgets.texi: Likewise.
17818         * doc/posix-functions/fread.texi: Likewise.
17819         * doc/posix-functions/fscanf.texi: Likewise.
17820         * doc/posix-functions/getc.texi: Likewise.
17821         * doc/posix-functions/getchar.texi: Likewise.
17822         * doc/posix-functions/gets.texi: Likewise.
17823         * doc/posix-functions/scanf.texi: Likewise.
17824         * doc/posix-functions/vfscanf.texi: Likewise.
17825         * doc/posix-functions/vscanf.texi: Likewise.
17826
17827 2011-04-14  Bruno Haible  <bruno@clisp.org>
17828
17829         Support non-blocking pipe I/O in write() on native Windows.
17830         * lib/write.c (rpl_write): Split a write request that failed merely
17831         because the byte count was larger than the pipe buffer's size.
17832         * doc/posix-functions/write.texi: Mention the problem with large byte
17833         counts.
17834
17835 2011-04-14  Bruno Haible  <bruno@clisp.org>
17836
17837         wchar: Ensure that wchar_t gets defined on uClibc.
17838         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17839         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17840
17841 2011-04-13  Bruno Haible  <bruno@clisp.org>
17842
17843         safe-write, full-read: Avoid unnecessary compilation units.
17844         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17845         (Depends-on): Remove safe-read. Add ssize_t.
17846         * modules/full-read (Files): Add lib/full-write.c.
17847         (Depends-on): Add full-write.
17848
17849 2011-04-13  Bruno Haible  <bruno@clisp.org>
17850
17851         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17852         * modules/pwrite (Depends-on): Add 'write'.
17853
17854 2011-04-13  Bruno Haible  <bruno@clisp.org>
17855
17856         Support non-blocking pipe I/O in write() on native Windows.
17857         * lib/unistd.in.h (write): Enable replacement also if
17858         GNULIB_UNISTD_H_NONBLOCKING is 1.
17859         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17860         (rpl_write): When failing to write on a non-blocking pipe, change
17861         errno from ENOSPC to EAGAIN.
17862         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17863         putchar, puts, vfprintf, vprintf): Enable replacement also if
17864         GNULIB_STDIO_H_NONBLOCKING is 1.
17865         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17866         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17867         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17868         CALL_WITH_SIGPIPE_EMULATION.
17869         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17870         * m4/nonblocking.m4: New file.
17871         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17872         for non-blocking I/O support.
17873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17874         GNULIB_UNISTD_H_NONBLOCKING.
17875         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17876         required for non-blocking I/O support.
17877         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17878         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17879         lib/stdio-write.c, m4/asm-underscore.m4.
17880         (Depends-on): Add stdio, unistd.
17881         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17882         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17883         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17884         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17885         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17886         problem with non-blocking pipes.
17887         * doc/posix-functions/fputc.texi: Likewise.
17888         * doc/posix-functions/fputs.texi: Likewise.
17889         * doc/posix-functions/fwrite.texi: Likewise.
17890         * doc/posix-functions/printf.texi: Likewise.
17891         * doc/posix-functions/putc.texi: Likewise.
17892         * doc/posix-functions/putchar.texi: Likewise.
17893         * doc/posix-functions/puts.texi: Likewise.
17894         * doc/posix-functions/vfprintf.texi: Likewise.
17895         * doc/posix-functions/vprintf.texi: Likewise.
17896         * doc/posix-functions/write.texi: Likewise.
17897
17898 2011-04-10  Jim Meyering  <meyering@redhat.com>
17899
17900         maint.mk: prohibit doubled words
17901         Detect them also when they're separated by a newline.
17902         There are 3 ways to customize it:
17903           - disable the test on a per file basis, as usual with rules using
17904             $(VC_LIST_EXCEPT)
17905           - replace the default doubled-word-selecting regexp (affects all files)
17906           - ignore a particular file-vs-doubled-word match
17907         I nearly used that last one to ignore the "is is" match in
17908         coreutils' NEWS file, since the text was "ls -is is ..."
17909         To do that, I would have added this line to cfg.mk:
17910           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17911         but it would have ignored any "is is" match in NEWS.
17912         Low probability, but still...
17913         Instead, I changed the text, slightly:
17914           -  ls -is is now consistent with ls -lis in ignoring values returned
17915           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17916         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17917         (prohibit_doubled_word_): Define.
17918         (sc_prohibit_doubled_word): New rule.
17919         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17920
17921 2011-04-10  Jim Meyering  <meyering@redhat.com>
17922
17923         maint: fix doubled-word typo in comment
17924         * m4/gethostname.m4: s/is is/it is/
17925         * m4/getdomainname.m4: Likewise.
17926
17927 2011-04-10  Jim Meyering  <meyering@redhat.com>
17928
17929         maint: remove doubled word: s/it it/it/
17930         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17931
17932 2011-04-10  Jim Meyering  <meyering@redhat.com>
17933
17934         maint.mk: remove useless semicolon and backslash
17935         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17936         semicolon and backslash.
17937
17938 2011-04-10  Bruno Haible  <bruno@clisp.org>
17939
17940         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17941         * modules/stdint-tests (Depends-on): Add wchar.
17942
17943 2011-04-10  Jim Meyering  <meyering@redhat.com>
17944
17945         maint: remove doubled words in comments, e.g., s/a a/a/
17946         * lib/strptime.c (day_of_the_week): s/the the/the/
17947         * tests/test-chown.h (test_chown): s/a a/a/
17948
17949         test-chown.h: correct a cast
17950         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17951         when the destination is a stat.st_gid.
17952
17953 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17954
17955         getaddrinfo: Fix test for sa_len member.
17956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17957         include <sys/types.h> before <sys/socket.h>.
17958
17959 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17960
17961         maint: change "can not" to "cannot"
17962         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17963         boundaries.
17964
17965 2011-04-09  Jim Meyering  <meyering@redhat.com>
17966
17967         maint: change "a a" to "a"
17968         * tests/test-lchown.h (test_lchown): s/a a/a/
17969
17970         maint.mk: prohibit \<the the\>
17971         * top/maint.mk (sc_prohibit_the_the): New rule.
17972
17973         maint: fix "the the" in comment
17974         * lib/count-one-bits.h: s/the the/the/
17975
17976         maint: change "can not" to "cannot"
17977         But do not change the occurrences in maintain.texi or in
17978         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17979         * doc/gnulib-tool.texi: s/can not/cannot/
17980         * doc/posix-functions/accept.texi (accept): Likewise.
17981         * doc/posix-functions/socket.texi (socket): Likewise.
17982         * lib/mbrtowc.c: Likewise.
17983
17984         maint.mk: prohibit use of "can not"
17985         * top/maint.mk (sc_prohibit_can_not): New rule.
17986         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17987
17988 2011-04-09  Bruno Haible  <bruno@clisp.org>
17989
17990         careadlinkat: Guard against misuse of careadlinkatcwd.
17991         * lib/careadlinkat.c: Include <stdlib.h>.
17992         (careadlinkatcwd): Check that the fd argument is as expected.
17993
17994 2011-04-09  Bruno Haible  <bruno@clisp.org>
17995
17996         careadlinkat: Use common coding style.
17997         * lib/careadlinkat.c: Move gnulib includes after system includes.
17998
17999 2011-04-09  Bruno Haible  <bruno@clisp.org>
18000
18001         careadlinkat: Clarify specification.
18002         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18003         (careadlinkatcwd): Add comment.
18004         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18005
18006 2011-04-09  Bruno Haible  <bruno@clisp.org>
18007
18008         areadlinkat: Avoid link error on many platforms.
18009         * modules/areadlinkat (Depends-on): Add areadlink.
18010
18011 2011-04-09  Bruno Haible  <bruno@clisp.org>
18012
18013         allocator, careadlinkat: Fix double-inclusion guard.
18014         * lib/allocator.h: Fix double-inclusion guard.
18015         * lib/careadlinkat.h: Likewise.
18016
18017 2011-04-09  Bruno Haible  <bruno@clisp.org>
18018
18019         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18020         * lib/relocwrapper.c: Update dependencies hierarchy.
18021         * build-aux/install-reloc: Update list of files to be compiled.
18022         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18023         lib/allocator.[hc].
18024
18025 2011-04-08  Eric Blake  <eblake@redhat.com>
18026
18027         strftime: silence gnulib-tool warning
18028         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18029
18030 2011-04-08  Bruno Haible  <bruno@clisp.org>
18031
18032         verify: Fix syntax error with GCC 4.6 in C++ mode.
18033         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18034         (HAVE_STATIC_ASSERT): New macro.
18035         (verify_true, verify): Use 'static_assert' if it is supported and
18036         '_Static_assert' is not supported.
18037
18038 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         allocator: New module.
18041         * modules/allocator, lib/allocator.c: New files.
18042         * lib/allocator.h (stdlib_allocator): New decl.
18043         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18044         Remove.  Do not include <stdlib.h>.
18045         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18046         * modules/careadlinkat (Files): Remove lib/allocator.h.
18047         (Depends-on): Add allocator.
18048
18049         stdlib: let modules use system malloc, realloc
18050         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18051         if !_GL_USE_STDLIB_ALLOC.
18052         (malloc, realloc): Limit this change to a smaller scope.
18053
18054         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18055         (malloc, realloc): Don't #undef; no longer needed.
18056         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18057         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18058         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18059         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18060         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18061         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18062         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18063         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18064
18065         careadlinkat: rename members to avoid problem
18066         * lib/allocator.h (struct allocator): Rename members from
18067         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18068         and realloc are #define'd.  Reported by Eric Blake in
18069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18070         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18071
18072 2011-04-08  Eric Blake  <eblake@redhat.com>
18073
18074         nonblocking: reduce dependency
18075         * tests/test-nonblocking.c: Only test sockets when in use.
18076         * modules/nonblocking-tests (Depends-on): Drop socket.
18077         (Makefile.am): Link even if sockets are not present.
18078         * modules/pipe2-tests (Makefile.am): Likewise.
18079         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18080
18081         pipe2: fix O_NONBLOCK support on mingw
18082         * modules/pipe2 (Depends-on): Add nonblocking.
18083         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18084         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18085         * tests/test-nonblocking.c (main): Likewise.
18086         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18087
18088         fcntl-h: fix O_ACCMODE on cygwin
18089         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18090         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18091
18092         pipe-filter: drop O_NONBLOCK workarounds
18093         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18094         * modules/pipe-filter-ii (Depends-on): Likewise.
18095         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18096
18097         nonblocking: provide O_NONBLOCK for mingw
18098         * modules/nonblocking (Depends-on): Add open.
18099         (configure.ac): Set new witness macro.
18100         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18101         * modules/fcntl-h (Makefile.am): Substitute it.
18102         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18103         nonblocking module is in use.
18104         * lib/nonblocking.c: Adjust portability test.
18105         * lib/open.c (open): Don't let native open see gnulib flag.
18106         * tests/test-fcntl-h.c (main): Enhance test.
18107         * tests/test-open.h (test_open): Likewise.
18108         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18109
18110         careadlinkat: fix compilation error on mingw
18111         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18112         within struct allocator.
18113
18114 2011-04-06  Eric Blake  <eblake@redhat.com>
18115
18116         binary-io: relicense under LGPLv2+
18117         * modules/binary-io (License): Relax to LGPLv2+.
18118         Requested for libvirt, and required by pipe2.
18119
18120 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18121
18122         verify: use _Static_assert if available
18123         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18124         (verify_true, verify): Use it if available.  This generates better
18125         diagnostics with GCC 4.6.0 and later.
18126
18127 2011-04-05  Bruno Haible  <bruno@clisp.org>
18128
18129         Remove leftover generated .h files after config.status changed.
18130
18131         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18132         GL_GENERATE_ALLOCA_H.
18133         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18134         GL_GENERATE_ALLOCA_H evaluates to false.
18135
18136         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18137         GL_GENERATE_ARGZ_H.
18138         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18139         evaluates to false.
18140
18141         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18142         GL_GENERATE_BYTESWAP_H.
18143         * modules/byteswap (Makefile.am): Remove byteswap.h if
18144         GL_GENERATE_BYTESWAP_H evaluates to false.
18145
18146         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18147         GL_GENERATE_ERRNO_H.
18148         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18149         evaluates to false.
18150
18151         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18152         GL_GENERATE_FLOAT_H.
18153         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18154         evaluates to false.
18155
18156         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18157         GL_GENERATE_FNMATCH_H.
18158         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18159         GL_GENERATE_FNMATCH_H evaluates to false.
18160
18161         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18162         GL_GENERATE_GLOB_H.
18163         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18164         evaluates to false.
18165
18166         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18167         automake conditional GL_GENERATE_ICONV_H.
18168         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18169         evaluates to false.
18170
18171         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18172         GL_GENERATE_NETINET_IN_H.
18173         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18174         GL_GENERATE_NETINET_IN_H evaluates to false.
18175
18176         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18177         conditional GL_GENERATE_PTHREAD_H.
18178         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18179         * modules/pthread (Makefile.am): Remove pthread.h if
18180         GL_GENERATE_PTHREAD_H evaluates to false.
18181
18182         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18183         GL_GENERATE_SCHED_H.
18184         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18185         evaluates to false.
18186
18187         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18188         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18189         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18190         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18191
18192         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18193         GL_GENERATE_STDARG_H.
18194         * modules/stdarg (Makefile.am): Remove stdarg.h if
18195         GL_GENERATE_STDARG_H evaluates to false.
18196
18197         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18198         GL_GENERATE_STDBOOL_H.
18199         * modules/stdbool (Makefile.am): Remove stdbool.h if
18200         GL_GENERATE_STDBOOL_H evaluates to false.
18201
18202         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18203         conditional GL_GENERATE_STDDEF_H.
18204         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18205         * modules/stddef (Makefile.am): Remove stddef.h if
18206         GL_GENERATE_STDDEF_H evaluates to false.
18207
18208         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18209         GL_GENERATE_STDINT_H.
18210         * modules/stdint (Makefile.am): Remove stdint.h if
18211         GL_GENERATE_STDINT_H evaluates to false.
18212
18213         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18214         GL_GENERATE_SYSEXITS_H.
18215         * modules/sysexits (Makefile.am): Remove sysexits.h if
18216         GL_GENERATE_SYSEXITS_H evaluates to false.
18217
18218         Reported by Karl Berry and Ralf Wildenhues.
18219
18220 2011-04-05  Bruno Haible  <bruno@clisp.org>
18221
18222         Ensure to rebuild generated .h files when config.status has changed.
18223         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18224         config.status.
18225         * modules/ctype (Makefile.am): Likewise.
18226         * modules/dirent (Makefile.am): Likewise.
18227         * modules/errno (Makefile.am): Likewise.
18228         * modules/fcntl-h (Makefile.am): Likewise.
18229         * modules/float (Makefile.am): Likewise.
18230         * modules/getopt-posix (Makefile.am): Likewise.
18231         * modules/glob (Makefile.am): Likewise.
18232         * modules/iconv-h (Makefile.am): Likewise.
18233         * modules/inttypes (Makefile.am): Likewise.
18234         * modules/langinfo (Makefile.am): Likewise.
18235         * modules/locale (Makefile.am): Likewise.
18236         * modules/math (Makefile.am): Likewise.
18237         * modules/netdb (Makefile.am): Likewise.
18238         * modules/netinet_in (Makefile.am): Likewise.
18239         * modules/poll-h (Makefile.am): Likewise.
18240         * modules/pthread (Makefile.am): Likewise.
18241         * modules/pty (Makefile.am): Likewise.
18242         * modules/sched (Makefile.am): Likewise.
18243         * modules/search (Makefile.am): Likewise.
18244         * modules/selinux-h (Makefile.am): Likewise.
18245         * modules/signal (Makefile.am): Likewise.
18246         * modules/spawn (Makefile.am): Likewise.
18247         * modules/stdarg (Makefile.am): Likewise.
18248         * modules/stdbool (Makefile.am): Likewise.
18249         * modules/stddef (Makefile.am): Likewise.
18250         * modules/stdint (Makefile.am): Likewise.
18251         * modules/stdio (Makefile.am): Likewise.
18252         * modules/stdlib (Makefile.am): Likewise.
18253         * modules/string (Makefile.am): Likewise.
18254         * modules/strings (Makefile.am): Likewise.
18255         * modules/sys_file (Makefile.am): Likewise.
18256         * modules/sys_ioctl (Makefile.am): Likewise.
18257         * modules/sys_select (Makefile.am): Likewise.
18258         * modules/sys_socket (Makefile.am): Likewise.
18259         * modules/sys_stat (Makefile.am): Likewise.
18260         * modules/sys_time (Makefile.am): Likewise.
18261         * modules/sys_times (Makefile.am): Likewise.
18262         * modules/sys_utsname (Makefile.am): Likewise.
18263         * modules/sys_wait (Makefile.am): Likewise.
18264         * modules/sysexits (Makefile.am): Likewise.
18265         * modules/termios (Makefile.am): Likewise.
18266         * modules/time (Makefile.am): Likewise.
18267         * modules/unistd (Makefile.am): Likewise.
18268         * modules/wchar (Makefile.am): Likewise.
18269         * modules/wctype-h (Makefile.am): Likewise.
18270         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18271
18272 2011-04-05  Bruno Haible  <bruno@clisp.org>
18273
18274         pipe2: Relicense under LGPLv2+.
18275         * modules/pipe2 (License): Change to LGPLv2+.
18276         Requested by Eric Blake, for libvirt.
18277
18278 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18279
18280         bootstrap: compute gnulib_extra_files after updating build_aux
18281         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18282         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18283
18284 2011-04-05  Eric Blake  <eblake@redhat.com>
18285
18286         bootstrap: preserve git whitelist item sorting
18287         * build-aux/bootstrap (sort_patterns): New function.
18288         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18289
18290 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18291
18292         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18293         sc_space_tab check.
18294
18295 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         areadlink, areadlinkat: rewrite in terms of careadlinkat
18298         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18299         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18300         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18301         (malloc, realloc): Remove #undefs.
18302         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18303         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18304         readlink, ssize_t, stdint, unistd.
18305         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18306         areadlink, stdint.
18307
18308         careadlinkat: new module
18309         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18310         * modules/careadlinkat: New files, written by me with
18311         a review and feedback from Ben Pfaff in
18312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18313
18314 2011-04-01  Bruno Haible  <bruno@clisp.org>
18315
18316         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18317         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18318         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18319         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18320         Reported by Bruce Korb <bruce.korb@gmail.com>.
18321
18322 2011-04-01  Bruno Haible  <bruno@clisp.org>
18323
18324         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18325         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18326         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18327         * modules/wcpcpy (Depends-on): Add extensions.
18328         * modules/wcpncpy (Depends-on): Likewise.
18329         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18330         systems.
18331         * doc/posix-functions/wcpncpy.texi: Likewise.
18332         * doc/posix-functions/wcwidth.texi: Likewise.
18333
18334 2011-03-31  Eric Blake  <eblake@redhat.com>
18335
18336         nonblocking: fix mingw test failures
18337         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18338         non-blocking flag on regular file.
18339         (get_nonblocking_flag): Set errno on invalid fd.
18340         * tests/test-nonblocking.c (main): Avoid test failure on
18341         directories if fchdir is not active.
18342         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18343
18344 2011-03-31  Bruno Haible  <bruno@clisp.org>
18345
18346         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18347         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18348         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18349         Reported by Simon Josefsson <simon@josefsson.org>.
18350
18351 2011-03-31  Bruno Haible  <bruno@clisp.org>
18352         and Eric Blake  <eblake@redhat.com>
18353
18354         nonblocking: new module
18355         * modules/nonblocking: New module.
18356         * modules/nonblocking-tests: Likewise.
18357         * lib/nonblocking.h: New file.
18358         * lib/nonblocking.c: Likewise.
18359         * tests/test-nonblocking.c: New test.
18360         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18361
18362 2011-03-30  Bruno Haible  <bruno@clisp.org>
18363
18364         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18365         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18366         instead of 'printf' format for GCC >= 4.4.
18367         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18368         (fprintf, printf, vfprintf, vprintf): Declare with
18369         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18370         the system's vfprintf() function.
18371         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18372
18373 2011-03-30  Eric Blake  <eblake@redhat.com>
18374
18375         passfd: fix scoping bug
18376         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18377         before sendmsg/recvmsg.
18378
18379         passfd: standardize coding conventions
18380         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18381         can be learned at compile time.
18382         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18383         ifdefs.
18384         (sendfd, recvfd): Follow gnulib code conventions.
18385
18386         passfd: fix incorrect sendmsg arguments
18387         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18388         incorrect msg_controllen value.
18389         * modules/passfd-tests (Depends-on): Check for alarm.
18390         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18391         Reported by Bastien ROUCARIES.
18392
18393 2011-03-30  Bruno Haible  <bruno@clisp.org>
18394
18395         c-strcasestr: Relicense under LGPLv2+.
18396         * modules/c-strcasestr (License): Change to LGPLv2+.
18397         Requested by Eric Blake, for libvirt.
18398
18399 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18400
18401         * users.txt: Add libidn2.  Fix libtasn1 link.
18402
18403 2011-03-30  Jim Meyering  <meyering@redhat.com>
18404
18405         tests: readlink* ("",... fails with EINVAL on newer kernels
18406         readlink and readlinkat have typically failed with ENOENT for
18407         the invalid, empty file name,  "".  However, with the advent
18408         of linux-2.6.39, they fail with EINVAL.
18409         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18410         when operating on the empty file name.
18411         * tests/test-readlink.h (test_readlink): Likewise.
18412
18413 2011-03-29  Bruno Haible  <bruno@clisp.org>
18414
18415         Relicense some modules under LGPLv2+, for libidn2.
18416         * modules/array-mergesort (License): Change to LGPLv2+.
18417         * modules/c-strcaseeq (License): Likewise.
18418         * modules/striconveh (License): Likewise.
18419         * modules/striconveha (License): Likewise.
18420         * modules/uniconv/base (License): Likewise.
18421         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18422         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18423         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18424         * modules/unictype/base (License): Likewise.
18425         * modules/unictype/bidiclass-of (License): Likewise.
18426         * modules/unictype/category-M (License): Likewise.
18427         * modules/unictype/category-none (License): Likewise.
18428         * modules/unictype/category-of (License): Likewise.
18429         * modules/unictype/category-test (License): Likewise.
18430         * modules/unictype/category-test-withtable (License): Likewise.
18431         * modules/unictype/combining-class (License): Likewise.
18432         * modules/unictype/joiningtype-of (License): Likewise.
18433         * modules/unictype/scripts (License): Likewise.
18434         * modules/uninorm/base (License): Likewise.
18435         * modules/uninorm/canonical-decomposition (License): Likewise.
18436         * modules/uninorm/composition (License): Likewise.
18437         * modules/uninorm/decompose-internal (License): Likewise.
18438         * modules/uninorm/decomposition-table (License): Likewise.
18439         * modules/uninorm/nfc (License): Likewise.
18440         * modules/uninorm/nfd (License): Likewise.
18441         * modules/uninorm/u32-normalize (License): Likewise.
18442         * modules/unistr/base (License): Likewise.
18443         * modules/unistr/u32-cpy (License): Likewise.
18444         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18445         * modules/unistr/u32-to-u8 (License): Likewise.
18446         * modules/unistr/u32-uctomb (License): Likewise.
18447         * modules/unistr/u8-check (License): Likewise.
18448         * modules/unistr/u8-mblen (License): Likewise.
18449         * modules/unistr/u8-mbtouc (License): Likewise.
18450         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18451         * modules/unistr/u8-mbtoucr (License): Likewise.
18452         * modules/unistr/u8-prev (License): Likewise.
18453         * modules/unistr/u8-strlen (License): Likewise.
18454         * modules/unistr/u8-to-u32 (License): Likewise.
18455         * modules/unistr/u8-uctomb (License): Likewise.
18456         * modules/unitypes (License): Likewise.
18457         Requested by Simon Josefsson.
18458
18459 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18460
18461         lib-symbol-visibility: Add a notice.
18462         * modules/lib-symbol-visibility (Notice): New field.
18463
18464 2011-03-29  Bruno Haible  <bruno@clisp.org>
18465
18466         getaddrinfo: Doc fix.
18467         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18468         section "fixed in Gnulib".
18469
18470 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18471
18472         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18473         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18474
18475 2011-03-26  Bruno Haible  <bruno@clisp.org>
18476
18477         unictype/property-byname: Reduce the number of load-time relocations.
18478         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18479         (UC_PROPERTY_INDEX_*): New enumeration values.
18480         (uc_property_byname): Convert an index from the lookup table to an
18481         uc_property_t.
18482         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18483         values.
18484
18485 2011-03-26  Bruno Haible  <bruno@clisp.org>
18486
18487         unictype/property-byname: Allow omitted word separators and aliases.
18488         * lib/unictype/pr_byname.gperf: Add property names without word
18489         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18490         for 'space'.
18491
18492 2011-03-26  Bruno Haible  <bruno@clisp.org>
18493
18494         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18495         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18496         also hyphens to space.
18497         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18498         without spaces.
18499         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18500
18501 2011-03-26  Bruno Haible  <bruno@clisp.org>
18502
18503         unictype/joiningtype-byname: Recognize long names as well.
18504         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18505         a long name.
18506         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18507         unictype/joiningtype_byname.h.
18508         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18509         * lib/unictype/joiningtype_byname.gperf: New file.
18510         * modules/unictype/joiningtype-byname (Files): Add
18511         lib/unictype/joiningtype_byname.gperf.
18512         (Depends-on): Add gperf.
18513         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18514         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18515         long names.
18516
18517         Tests for module 'unictype/joiningtype-longname'.
18518         * modules/unictype/joiningtype-longname-tests: New file.
18519         * tests/unictype/test-joiningtype_longname.c: New file.
18520
18521         New module 'unictype/joiningtype-longname'.
18522         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18523         * lib/unictype/joiningtype_longname.c: New file.
18524         * modules/unictype/joiningtype-longname: New file.
18525         * modules/unictype/joiningtype-all (Depends-on): Add
18526         unictype/joiningtype-longname.
18527
18528 2011-03-26  Bruno Haible  <bruno@clisp.org>
18529
18530         unictype/bidiclass-byname: Recognize long names as well.
18531         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18532         name.
18533         * lib/unictype/bidi_byname.c: Include <string.h>,
18534         unictype/bidi_byname.h.
18535         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18536         * lib/unictype/bidi_byname.gperf: New file.
18537         * modules/unictype/bidiclass-byname (Files): Add
18538         lib/unictype/bidi_byname.gperf.
18539         (Depends-on): Add gperf.
18540         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18541         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18542         long names.
18543
18544         Tests for module 'unictype/bidiclass-longname'.
18545         * modules/unictype/bidiclass-longname-tests: New file.
18546         * tests/unictype/test-bidi_longname.c: New file.
18547
18548         New module 'unictype/bidiclass-longname'.
18549         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18550         * lib/unictype/bidi_longname.c: New file.
18551         * modules/unictype/bidiclass-longname: New file.
18552         * modules/unictype/bidiclass-all (Depends-on): Add
18553         unictype/bidiclass-longname.
18554
18555 2011-03-26  Bruno Haible  <bruno@clisp.org>
18556
18557         unictype/bidi*: Rename modules.
18558         * modules/unictype/bidiclass-all: Renamed from
18559         modules/unictype/bidicategory-all.
18560         * modules/unictype/bidiclass-name: Renamed from
18561         modules/unictype/bidiclass-name.
18562         (Description): Update.
18563         * modules/unictype/bidiclass-name-tests: Renamed from
18564         modules/unictype/bidicategory-name-tests.
18565         * modules/unictype/bidiclass-byname: Renamed from
18566         modules/unictype/bidicategory-byname.
18567         (Description): Update.
18568         * modules/unictype/bidiclass-byname-tests: Renamed from
18569         modules/unictype/bidicategory-byname-tests.
18570         * modules/unictype/bidiclass-of: Renamed from
18571         modules/unictype/bidicategory-of.
18572         (Description): Update.
18573         * modules/unictype/bidiclass-of-tests: Renamed from
18574         modules/unictype/bidicategory-of-tests.
18575         * modules/unictype/bidiclass-test: Renamed from
18576         modules/unictype/bidicategory-test.
18577         (Description): Update.
18578         * modules/unictype/bidiclass-test-tests: Renamed from
18579         modules/unictype/bidicategory-test-tests.
18580         * modules/unictype/bidicategory-all: New file, a simple redirection.
18581         * modules/unictype/bidicategory-name: Likewise.
18582         * modules/unictype/bidicategory-byname: Likewise.
18583         * modules/unictype/bidicategory-of: Likewise.
18584         * modules/unictype/bidicategory-test: Likewise.
18585         * modules/unictype/property-bidi-* (Dependencies): Update.
18586         * lib/unictype/bidi_*.c: Update comment.
18587
18588 2011-03-26  Bruno Haible  <bruno@clisp.org>
18589
18590         unictype/bidi*: Rename functions, part 2.
18591         * modules/unictype/bidicategory-name (configure.ac): Update required
18592         libunistring version.
18593         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18594
18595 2011-03-25  Bruno Haible  <bruno@clisp.org>
18596
18597         New module 'unictype/combining-class-all'.
18598         * modules/unictype/combining-class-all: New file.
18599
18600         Tests for module 'unictype/combining-class-byname'.
18601         * modules/unictype/combining-class-byname-tests: New file.
18602         * tests/unictype/test-combiningclass_byname.c: New file.
18603
18604         New module 'unictype/combining-class-byname'.
18605         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18606         * lib/unictype/combiningclass_byname.c: New file.
18607         * lib/unictype/combiningclass_byname.gperf: New file.
18608         * modules/unictype/combining-class-byname: New file.
18609
18610         Tests for module 'unictype/combining-class-longname'.
18611         * modules/unictype/combining-class-longname-tests: New file.
18612         * tests/unictype/test-combiningclass_longname.c: New file.
18613
18614         New module 'unictype/combining-class-longname'.
18615         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18616         * lib/unictype/combiningclass_longname.c: New file.
18617         * modules/unictype/combining-class-longname: New file.
18618
18619         Tests for module 'unictype/combining-class-name'.
18620         * modules/unictype/combining-class-name-tests: New file.
18621         * tests/unictype/test-combiningclass_name.c: New file.
18622
18623         New module 'unictype/combining-class-name'.
18624         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18625         * lib/unictype/combiningclass_name.c: New file.
18626         * modules/unictype/combining-class-name: New file.
18627
18628 2011-03-25  Bruno Haible  <bruno@clisp.org>
18629
18630         unictype/combining-class: Rename source files.
18631         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18632         of unictype/combining.h.
18633         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18634         Update.
18635         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18636         * modules/unictype/combining-class (Description): Fix.
18637         (Files, Makefile.am): Update.
18638         * tests/unictype/test-combiningclass.c: Renamed from
18639         tests/unictype/test-combining.c.
18640         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18641
18642 2011-03-25  Bruno Haible  <bruno@clisp.org>
18643
18644         unictype: Update list of canonical combining classes.
18645         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18646
18647 2011-03-25  Bruno Haible  <bruno@clisp.org>
18648
18649         unictype/category-byname: Recognize long names as well.
18650         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18651         a long name.
18652         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18653         unictype/categ_byname.h.
18654         (UC_CATEGORY_INDEX_*): New enumeration values.
18655         (uc_general_category_byname): Use uc_general_category_lookup and
18656         convert from index to value.
18657         * lib/unictype/categ_byname.gperf: New file.
18658         * modules/unictype/category-byname (Files): Add
18659         lib/unictype/categ_byname.gperf.
18660         (Depends-on): Add gperf.
18661         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18662         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18663         long names.
18664
18665         Tests for module 'unictype/category-longname'.
18666         * modules/unictype/category-longname-tests: New file.
18667         * tests/unictype/test-categ_longname.c: New file.
18668
18669         New module 'unictype/category-longname'.
18670         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18671         * lib/unictype/categ_longname.c: New file.
18672         * modules/unictype/category-longname: New file.
18673         * modules/unictype/category-all (Depends-on): Add it.
18674
18675 2011-03-25  Bruno Haible  <bruno@clisp.org>
18676
18677         Tests for module 'unictype/category-LC'.
18678         * modules/unictype/category-LC-tests: New file.
18679         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18680
18681         New module 'unictype/category-LC'.
18682         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18683         (UC_CATEGORY_LC): New declaration.
18684         (UC_CASED_LETTER): New macro.
18685         * lib/gen-uni-tables.c (is_category_LC): New function.
18686         (output_categories): Also handle category LC.
18687         (UC_CATEGORY_MASK_LC): New enumeration value.
18688         (general_category_byname): Also handle category LC.
18689         * lib/unictype/categ_LC.c: New file.
18690         * lib/unictype/categ_LC.h: New file, automatically generated.
18691         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18692         category LC.
18693         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18694         * modules/unictype/category-LC: New file.
18695         * modules/unictype/category-byname (Depends-on): Add
18696         unictype/category-LC.
18697         * modules/unictype/category-all (Depends-on): Likewise.
18698
18699 2011-03-25  Eric Blake  <eblake@redhat.com>
18700
18701         xmalloc: revert yesterday's regression
18702         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18703         realloc's underlying behavior (allowing allocation of zero-size
18704         objects, especially if malloc-gnu is also in use).
18705
18706 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18707
18708         maint.mk: add missing version to VC-tag
18709         * top/maint.mk: git tag was missing actual tag name; add it.
18710
18711         valgrind: do leak checking, and exit with code 1 on error (not 0)
18712         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18713         to VALGRIND.
18714
18715 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18716
18717         posix-modules: say what it does.
18718         * posix-modules: Add a line to the --help output saying what it does.
18719
18720 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18721
18722         xmalloc: Do not leak if underlying realloc is C99 compatible.
18723         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18724         This avoids a leak on C99-based systems.  See
18725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18726
18727 2011-03-24  Eric Blake  <eblake@redhat.com>
18728
18729         realloc: document portability problem
18730         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18731         passing 0 size to realloc.
18732
18733 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18734
18735         doc: update users.txt
18736         * users.txt: Add cvsps, tmpwatch
18737
18738 2011-03-23  Matt Rice  <ratmice@gmail.com>
18739
18740         doc: update users.txt
18741         * users.txt: Add gdb.
18742
18743 2011-03-23  Jim Meyering  <meyering@redhat.com>
18744
18745         doc: update users.txt
18746         Looking through matches up to the following URL (there are still
18747         several more pages), I found several projects that use gnulib:
18748         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18749         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18750         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18751
18752 2011-03-22  Bruno Haible  <bruno@clisp.org>
18753
18754         unictype/bidi*: Rename functions.
18755         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18756         uc_bidi_class, uc_is_bidi_class): New declarations.
18757         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18758         uc_bidi_category_byname.
18759         (uc_bidi_category_byname): New function.
18760         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18761         u_bidi_category_name.
18762         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18763         (uc_bidi_category_name): New function.
18764         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18765         uc_bidi_category.
18766         (uc_bidi_category): New function.
18767         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18768         uc_is_bidi_category. Invoke uc_bidi_class.
18769         (uc_is_bidi_category): New function.
18770         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18771         instead of uc_bidi_category_byname.
18772         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18773         instead of uc_bidi_category_name.
18774         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18775         uc_bidi_category.
18776         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18777         instead of uc_is_bidi_category.
18778
18779 2011-03-21  Bruno Haible  <bruno@clisp.org>
18780
18781         New module 'unictype/joininggroup-all'.
18782         * modules/unictype/joininggroup-all: New file.
18783
18784         Tests for module 'unictype/joininggroup-of'.
18785         * modules/unictype/joininggroup-of-tests: New file.
18786         * tests/unictype/test-joininggroup_of.c: New file.
18787         * tests/unictype/test-joininggroup_of.h: New file, automatically
18788         generated by gen-uni-tables.
18789
18790         New module 'unictype/joininggroup-of'.
18791         * modules/unictype/joininggroup-of: New file.
18792         * lib/unictype/joininggroup_of.c: New file.
18793         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18794         gen-uni-tables.
18795
18796         Tests for module 'unictype/joininggroup-byname'.
18797         * modules/unictype/joininggroup-byname-tests: New file.
18798         * tests/unictype/test-joininggroup_byname.c: New file.
18799
18800         New module 'unictype/joininggroup-byname'.
18801         * modules/unictype/joininggroup-byname: New file.
18802         * lib/unictype/joininggroup_byname.c: New file.
18803         * lib/unictype/joininggroup_byname.gperf: New file.
18804
18805         Tests for module 'unictype/joininggroup-name'.
18806         * modules/unictype/joininggroup-name-tests: New file.
18807         * tests/unictype/test-joininggroup_name.c: New file.
18808
18809         New module 'unictype/joininggroup-name'.
18810         * modules/unictype/joininggroup-name: New file.
18811         * lib/unictype/joininggroup_name.c: New file.
18812         * lib/unictype/joininggroup_name.h: New file.
18813
18814         New module 'unictype/joiningtype-all'.
18815         * modules/unictype/joiningtype-all: New file.
18816
18817         Tests for module 'unictype/joiningtype-of'.
18818         * modules/unictype/joiningtype-of-tests: New file.
18819         * tests/unictype/test-joiningtype_of.c: New file.
18820         * tests/unictype/test-joiningtype_of.h: New file, automatically
18821         generated by gen-uni-tables.
18822
18823         New module 'unictype/joiningtype-of'.
18824         * modules/unictype/joiningtype-of: New file.
18825         * lib/unictype/joiningtype_of.c: New file.
18826         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18827         gen-uni-tables.
18828
18829         Tests for module 'unictype/joiningtype-byname'.
18830         * modules/unictype/joiningtype-byname-tests: New file.
18831         * tests/unictype/test-joiningtype_byname.c: New file.
18832
18833         New module 'unictype/joiningtype-byname'.
18834         * modules/unictype/joiningtype-byname: New file.
18835         * lib/unictype/joiningtype_byname.c: New file.
18836
18837         Tests for module 'unictype/joiningtype-name'.
18838         * modules/unictype/joiningtype-name-tests: New file.
18839         * tests/unictype/test-joiningtype_name.c: New file.
18840
18841         New module 'unictype/joiningtype-name'.
18842         * modules/unictype/joiningtype-name: New file.
18843         * lib/unictype/joiningtype_name.c: New file.
18844
18845         unictype: Add support for Arabic shaping properties.
18846         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18847         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18848         declarations.
18849         (UC_JOINING_GROUP_*): New enumeration values.
18850         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18851         declarations.
18852         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18853         (unicode_joining_type): New variable.
18854         (UC_JOINING_GROUP_*): New enumeration values.
18855         (unicode_joining_group): New variable.
18856         (fill_arabicshaping, joining_type_as_c_identifier,
18857         output_joining_type_test, output_joining_type,
18858         joining_group_as_c_identifier, output_joining_group_test,
18859         output_joining_group): New functions.
18860         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18861         fill_arabicshaping and output_joining_type_test, output_joining_type,
18862         output_joining_group_test, output_joining_group.
18863         Reported by Simon Josefsson.
18864
18865 2011-03-21  Jim Meyering  <meyering@redhat.com>
18866
18867         strftime: fix a bug in yesterday's change
18868         * lib/strftime.c (add): Accommodate width's initial value of -1.
18869         Otherwise, nstrftime would copy uninitialized data into
18870         the result buffer.
18871
18872 2011-03-21  Jim Meyering  <meyering@redhat.com>
18873
18874         tests: add strftime-tests module
18875         * tests/test-strftime.c: New file.
18876         * modules/strftime-tests: New module.
18877
18878 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18879
18880         strftime: don't assume a byte count fits in 'int'
18881         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18882         found this problem by static analysis, using gcc -Wstrict-overflow
18883         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18884         on an integer overflow having undefined behavior, but it turns out
18885         that the argument is a size, which might not fit in 'int' anyway,
18886
18887 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18888
18889         stdio: don't require ignore_value around fwrite
18890
18891         This patch works around libc bug 11959
18892         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18893         Without this patch, applications must often write
18894         ignore_value (fwrite (...)) even though the ignore_value is
18895         not helpful here.  It's common to write many objects, using
18896         fwrite/printf/etc., and then use ferror to detect output error.
18897
18898         I considered making this patch optional, but decided against it,
18899         because libc is obviously being inconsistent here: there is no
18900         reason libc should insist that user code must inspect fwrite
18901         return's value without also insisting that it inspect printf's,
18902         putchar's, etc.  If user code wants to have a strict style where
18903         all these functions' values are checked (so that ferror need not
18904         be checked), we could add support for that style in a new gnulib
18905         module, but in the meantime it's better to be consistent and to
18906         support common usage.
18907
18908         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18909         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18910         that we are compiling in checking mode, and if not C++, and
18911         if not already wrapping fwrite for some other reason.
18912         (fwrite): #define to rpl_fwrite if the latter is defined.
18913
18914 2011-03-20  Bruno Haible  <bruno@clisp.org>
18915
18916         verror: Fix compilation error introduced on 2011-02-13.
18917         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18918         instead of __attribute__.
18919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18920
18921 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18922             Bruno Haible  <bruno@clisp.org>
18923
18924         socklen: do not depend on sys_socket
18925         While trying to modify Emacs to use gnulib's socklen module,
18926         I discovered a circular dependency: socklen depends on sys_socket
18927         and vice versa.  Emacs can use socklen, but it does not need
18928         sys_socket because it has its own substitute for sys/socket.h.
18929         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18930         gl_TYPE_SOCKLEN_T.
18931         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18932         gl_PREREQ_SYS_H_SOCKET.
18933         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18934         gl_PREREQ_SYS_H_SOCKET.
18935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18936         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18937         * modules/socklen (Depends-on): Do not depend on sys_socket.
18938         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18939
18940 2011-03-20  Jim Meyering  <meyering@redhat.com>
18941
18942         maint.mk: sort file names *after* new transformation
18943         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18944         prefix would have led to an unwarranted failure in GNU parted.
18945         Sort after that transformation.
18946
18947 2011-03-19  Jim Meyering  <meyering@redhat.com>
18948
18949         maint.mk: fix po-file syntax-check rule
18950         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18951         Patch by Bruno Haible.
18952
18953 2011-03-19  Bruno Haible  <bruno@clisp.org>
18954
18955         socklen: Update comment.
18956         * m4/socklen.m4: Update comment about platforms.
18957
18958 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18959             Bruno Haible  <bruno@clisp.org>
18960
18961         inet_ntop, inet_pton: Simplify.
18962         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18963         documented to provide socklen_t and we already depend on sys_socket.
18964         * modules/inet_pton (Depends-on): Likewise.
18965         * lib/arpa_inet.in.h: Adjust comment.
18966
18967 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18968             Bruno Haible  <bruno@clisp.org>
18969
18970         netdb: Simplify.
18971         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18972         documented to provide socklen_t and we already depend on sys_socket.
18973         * lib/netdb.in.h: Adjust comment.
18974
18975 2011-03-19  Bruno Haible  <bruno@clisp.org>
18976
18977         sys_socket, netdb: Document problem with socklen_t.
18978         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18979         platforms.
18980         * doc/posix-headers/netdb.texi: Likewise.
18981
18982 2011-03-18  Eric Blake  <eblake@redhat.com>
18983
18984         maint.mk: let po check work in VPATH build
18985         * top/maint.mk (po_file): Allow cfg.mk override.
18986         (sc_po_check): Allow VPATH use.
18987         Reported by Jiri Denemark.
18988
18989 2011-03-16  Jim Meyering  <meyering@redhat.com>
18990
18991         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18992         Before, you would have had to create one .x-sc_ file per rule in order
18993         to exempt offending files.  Now, you may instead use a Make variable --
18994         usually defined in cfg.mk -- whose name identifies the affected rule.
18995         * top/maint.mk (_sc_excl): Define.
18996         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18997         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18998
18999 2011-03-13  Bruno Haible  <bruno@clisp.org>
19000
19001         ignore-value tests: Avoid warnings.
19002         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19003         empty for gcc < 3.4.
19004
19005 2011-03-13  Bruno Haible  <bruno@clisp.org>
19006
19007         passfd: Fix link error on Solaris.
19008         * modules/passfd (Description): Correct.
19009         (Depends-on): Add socketlib.
19010         (Link): New section.
19011         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19012
19013 2011-03-13  Bruno Haible  <bruno@clisp.org>
19014
19015         passfd: Fix link error on AIX 5.2.
19016         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19017
19018 2011-03-13  Bruno Haible  <bruno@clisp.org>
19019
19020         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19021         * lib/sys_socket.in.h: Include <stddef.h>.
19022         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19023         CMSG_FIRSTHDR. Remove unused variable.
19024
19025 2011-03-13  Bruno Haible  <bruno@clisp.org>
19026
19027         passfd: Fix compilation error on OpenBSD.
19028         * lib/passfd.c: Include <sys/uio.h>.
19029
19030 2011-03-13  Bruno Haible  <bruno@clisp.org>
19031
19032         passfd test: Fix warnings.
19033         * tests/test-passfd.c: Include <sys/wait.h>.
19034         (main): Fix typo.
19035
19036 2011-03-13  Bruno Haible  <bruno@clisp.org>
19037
19038         passfd module, part 4, tweaks.
19039         * tests/test-passfd.c: Reorder includes.
19040         (main): Fix perror and printf calls.
19041
19042 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19043
19044         passfd module, part 4.
19045         * modules/passfd-tests: New file.
19046         * tests/test-passfd.c: New file.
19047
19048 2011-03-13  Jim Meyering  <meyering@redhat.com>
19049
19050         Makefile: rely on GNU make; derive syntax-check rule names
19051         Rather than requiring that each sc_ rule be listed as a dependent
19052         of "check", use features of GNU make to derive the list.
19053         * Makefile (syntax-check-rules): Define.
19054         (check): Depend on the new variable, not the hard-coded list.
19055
19056 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19057             Bruno Haible  <bruno@clisp.org>
19058
19059         passfd module, part 3.
19060         * lib/passfd.h (recvfd): Add a flags argument.
19061         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19062         (recvfd): Add a flags argument.
19063         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19064         exists.
19065         * modules/passfd (Depends-on): Add cloexec.
19066         Suggested by Eric Blake.
19067
19068 2011-03-13  Bruno Haible  <bruno@clisp.org>
19069
19070         passfd module, part 2, tweaks.
19071         * modules/passfd (Files): Reorder.
19072         (Depends-on): Remove errno.
19073         (Include): Remove <sys/socket.h>, <sys/un.h>.
19074         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19075         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19076         specification header. Include <sys/socket.h> always. Don't include
19077         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19078         (sendfd): Clarify that it sets errno when it fails.
19079         (recvfd): Fix specification.
19080
19081 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19082
19083         passfd module, part 2.
19084         * modules/passfd: New file.
19085         * lib/passfd.h: New file.
19086         * lib/passfd.c: New file.
19087
19088 2011-03-12  Bruno Haible  <bruno@clisp.org>
19089
19090         wcswidth, mbswidth: Avoid integer overflow.
19091         * lib/wcswidth.c: Include <limits.h>.
19092         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19093         * lib/mbswidth.c: Include <limits.h>.
19094         (mbsnwidth): Avoid 'int' overflow.
19095         Reported by Jim Meyering.
19096
19097 2011-03-12  Bruno Haible  <bruno@clisp.org>
19098
19099         futimens, utimensat: Avoid endless recursion on Solaris 10.
19100         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19101         Solaris.
19102         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19103         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19104
19105 2011-03-11  Jim Meyering  <meyering@redhat.com>
19106
19107         maint.mk: relax a regexp to accommodate other formatting styles
19108         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19109         between "ngettext" and the following "(".
19110
19111 2011-03-11  Pádraig Brady <P@draigBrady.com>
19112
19113         maint.mk: suppress a false positive warning
19114         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19115         diagnostics are marked with ngettext.
19116
19117 2011-03-10  Eric Blake  <eblake@redhat.com>
19118
19119         wchar: add explicit dependencies, for Tru64
19120         * modules/mbmemcasecoll (Depends-on): Add wchar.
19121         * modules/mbtowc (Depends-on): Likewise.
19122         * modules/vasnprintf (Depends-on): Likewise.
19123         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19124         * modules/wctomb (Depends-on): Likewise.
19125         Reported by Peter O'Gorman.
19126
19127 2011-03-08  Bruno Haible  <bruno@clisp.org>
19128
19129         passfd module, part 1, tweaks.
19130         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19131         Improve indentation. Improve AC_MSG_CHECKING messages.
19132         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19133         gl_SOCKET_FAMILIES.
19134
19135 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19136
19137         passfd module, part 1.
19138         * m4/afunix.m4: New file.
19139         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19140         sockets.
19141
19142 2011-03-08  Bruno Haible  <bruno@clisp.org>
19143
19144         regex-quote: New API.
19145         * lib/regex-quote.h: Include <stdbool.h>.
19146         (struct regex_quote_spec): New type.
19147         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19148         New declarations.
19149         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19150         'const struct regex_quote_spec *' argument.
19151         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19152         (pcre_special): New constant.
19153         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19154         New functions.
19155         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19156         'const struct regex_quote_spec *' argument.
19157         * modules/regex-quote (Depends-on): Add stdbool.
19158         * tests/test-regex-quote.c (check): Update for new API. Add test for
19159         anchored results.
19160         * NEWS: Mention the API change.
19161         Reported by Reuben Thomas and Eric Blake.
19162
19163 2011-03-06  Bruno Haible  <bruno@clisp.org>
19164
19165         regex-quote: Fix creation of POSIX extended regular expressions.
19166         * lib/regex-quote.c (ere_special): Add grouping and alternation
19167         operators.
19168
19169 2011-03-05  Bruno Haible  <bruno@clisp.org>
19170
19171         doc: Improve doc regarding autopoint vs. gnulib.
19172         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19173         disable autopoint while running autoreconf.
19174         Suggested by Ralf Wildenhues.
19175
19176 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19177
19178         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19179         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19180
19181 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19182
19183         parse-duration: remove xalloc.h dependency
19184         * lib/parse-duration.c (parse_period): handle NULL return from
19185         strdup instead of calling xstrdup().
19186         * modules/parse-duration: remove "xalloc" dependency
19187
19188 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19189
19190         bootstrap: honor m4_base when running aclocal
19191         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19192
19193 2011-03-02  Jim Meyering  <meyering@redhat.com>
19194
19195         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19196         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19197         on request from Matt Booth.
19198
19199 2011-03-01  Eric Blake  <eblake@redhat.com>
19200
19201         test-link: work on Hurd
19202         * tests/test-link.h (test_link): Hurd rejects linking directories
19203         with EISDIR instead of the POSIX-mandated EPERM.
19204
19205 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19206
19207         stdio: simplify by moving files to printf-posix, sigpipe
19208         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19209         since this symbol is needed only if printf is replaced.
19210         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19211         Require gl_ASM_SYMBOL_PREFIX.
19212         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19213         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19214         (Depends-on): Add 'raise'.
19215         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19216         * modules/stdio (Files): Remove lib/stdio-write.c,
19217         m4/asm-underscore.m4.
19218         (Depends-on): Remove 'raise'.
19219
19220         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19221         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19222         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19223         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19224
19225 2011-02-28  Bruno Haible  <bruno@clisp.org>
19226
19227         localcharset: Assume ANSI C behaviour of free().
19228         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19229         calling free().
19230         Suggested by Simon Josefsson <simon@josefsson.org>.
19231
19232 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19233             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19234             Bruno Haible  <bruno@clisp.org>  (tiny change)
19235
19236         On Cygwin, use /proc file system instead of win32 API.
19237         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19238         Win32 file names.
19239         (DllMain): Simplify by removing Cygwin specific code.
19240         (find_shared_library_fullname): Use Linux specific implementation also
19241         for Cygwin.
19242         (get_shared_library_fullname): Update accordingly.
19243         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19244         Win32 file names.
19245         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19246         Cygwin specific code.
19247
19248 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19249             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19250
19251         Fix OpenMP flag detection for various Fortran compilers.
19252         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19253         OpenMP-conditional compilation construct, to force compile
19254         failure with missing OpenMP flag.
19255         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19256
19257 2011-02-25  Eric Blake  <eblake@redhat.com>
19258
19259         strstr: expand test coverage
19260         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19261         compilation.
19262         * tests/test-memmem.c (main): Duplicate tests.
19263         * tests/test-strcasestr.c (main): Likewise.
19264         * tests/test-c-strcasestr.c (main): Likewise.
19265
19266 2011-02-25  Jim Meyering  <meyering@redhat.com>
19267
19268         maint.mk: detect missing-NL-at-EOF, too
19269         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19270         it also detects when a file lacks a newline at EOF.
19271         (require_exactly_one_NL_at_EOF_): Renamed from
19272         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19273         since people may well have .x-sc_... file names tied to the
19274         existing name.  Suggested by Eric Blake.
19275
19276 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19277
19278         dirname: move m4/dos.m4 functionality into lib/dosname.h
19279
19280         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19281         extracts symbols from it, puts them into config.h; but it's much
19282         easier to use the symbols directly.  filename.h already does this,
19283         but it disagrees with dos.m4 in some respects.  This patch
19284         introduces a different include file dosname.h that packages up
19285         dos.m4, and then later we can work on merging filename.h and
19286         dosname.h.  Applications that need only the easy-to-configure
19287         symbols should consider including dosname.h rather than dirname.h.
19288         * NEWS: Mention incompatible changes.
19289         * m4/dos.m4: Remove.
19290         * lib/dosname.h, modules/dosname: New files.
19291         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19292         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19293         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19294         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19295         Include dosname.h, not dirname.h.
19296         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19297         Include dosname.h, for definitions of symbols like ISSLASH
19298         that used to be in config.h.
19299         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19301         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19302         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19303         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19304         * modules/rmdir (Files): Likewise.
19305         * modules/stat (Files): Likewise.
19306         * modules/unlink (Files): Likewise.
19307         * modules/dirname-lgpl (Depends-on): Add dosname.
19308         * modules/lstat (Depends-on): Likewise.
19309         * modules/openat (Depends-on): Likewise.
19310         * modules/rmdir (Depends-on): Likewise.
19311         * modules/savewd (Depends-on): Likewise.
19312         * modules/stat (Depends-on): Likewise.
19313         * modules/unlink (Depends-on): Likewise.
19314         * modules/openat (Depends-on): Remove dirname-lgpl.
19315         * modules/savewd (Depends-on): Likewise.
19316         * tests/test-dirname.c: Do not use removed symbols like
19317         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19318         the remaining symbols, e.g., ISSLASH ('\\').
19319
19320 2011-02-25  Eric Blake  <eblake@redhat.com>
19321
19322         strstr: revert patches that introduced bug and pessimization
19323         * lib/str-two-way.h: Add another reference.
19324         (two_way_short_needle, two_way_long_needle): Revert changes from
19325         2011-02-24; they pessimize search speed.
19326         (critical_factorization): Partially revert changes from
19327         2010-06-22; they violate the requirement that the left half of the
19328         needle be smaller than the period of the needle.
19329
19330 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19331
19332         filenamecat: remove unnecessary dependency on dirname-lgpl
19333         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19334         is no direct dependency, just an indirect one via filenamecat-lgpl.
19335
19336         remove: remove unnecessary use of m4/dos.m4
19337         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19338         * modules/remove (FILES): Remove m4/dos.m4.
19339
19340         * lib/openat-proc.c: Don't include dirname.h; not needed.
19341
19342         backupfile: remove unnecessary use of m4/dos.m4
19343         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19344         of its symbols are used by the backupfile code.  backupfile.c does
19345         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19346         for the rare case of programs that want all their backup file
19347         names to live within 8+3 limits, and dos.m4 doesn't address that.
19348         * modules/backupfile (Files): Remove m4/dos.m4.
19349
19350 2011-02-24  Jim Meyering  <meyering@redhat.com>
19351
19352         strstr: fix a bug whereby strstr would mistakenly return NULL
19353         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19354         in period calculation.
19355         (two_way_long_needle): Likewise.
19356         The original problem was reported by Mike Stump in
19357         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19358         Ralf Wildenhues provided the short needle and haystack.
19359         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19360         Add a more involved test to trigger the bug in two_way_long_needle.
19361
19362 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19363
19364         gnulib-tool: remove use of bold display in help screen
19365         * gnulib-tool (func_usage): Do not use bold display anymore in the
19366         help screen.  That was just meant to be a temporary emphasis for a
19367         backward-incompatible change.
19368
19369 2011-02-23  Bruno Haible  <bruno@clisp.org>
19370
19371         Fix misindentation of preprocessor directives.
19372         * lib/argp-namefrob.h: Reindent preprocessor directives.
19373         * lib/getopt_int.h (struct _getopt_data): Likewise.
19374         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19375         * lib/vasnprintf.c (decode_long_double): Likewise.
19376         * tests/test-argmatch.c: Insert blank lines, for clarity.
19377         * tests/test-exclude.c: Likewise.
19378
19379 2011-02-22  Bruno Haible  <bruno@clisp.org>
19380
19381         ioctl: Fix for MacOS X in 64-bit mode.
19382         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19383         value.
19384         Suggested by Eric Blake.
19385         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19386
19387 2011-02-22  Jim Meyering  <meyering@redhat.com>
19388
19389         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19390         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19391         in lib/.
19392
19393 2011-02-22  Eric Blake  <eblake@redhat.com>
19394
19395         maint: avoid any CDPATH issue
19396         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19397
19398         maint: adjust cpp indentation for my modules, as well
19399         * Makefile (sc_cpp_indent_check): Add my name.
19400         * lib/fbufmode.c: Filter through cppi.
19401         * lib/fpurge.c: Likewise.
19402         * lib/freadable.c: Likewise.
19403         * lib/freading.c: Likewise.
19404         * lib/fwritable.c: Likewise.
19405         * lib/fwriting.c: Likewise.
19406         * lib/sigaction.c: Likewise.
19407
19408 2011-02-22  Jim Meyering  <meyering@redhat.com>
19409
19410         maint: adjust cpp indentation to reflect nesting depth
19411         I.e., in a block of code that begins with an unnested "#if",
19412         put one space between the "#" in column 1 and following token.
19413         For example,
19414         -#include <sys/vfs.h>
19415         +# include <sys/vfs.h>
19416         Do this only in .c files that are part of a module I maintain.
19417         * lib/linkat.c: Filter through cppi.
19418         * lib/nanosleep.c: Likewise.
19419         * lib/openat.c: Likewise.
19420         * lib/openat-die.c: Likewise.
19421         * lib/dup3.c: Likewise.
19422         * lib/fchownat.c: Likewise.
19423         * lib/flock.c: Likewise.
19424         * lib/fsync.c: Likewise.
19425         * lib/fts.c: Likewise.
19426         * lib/getpass.c: Likewise.
19427         * lib/gettimeofday.c: Likewise.
19428         * lib/userspec.c: Likewise.
19429         * Makefile (sc_cpp_indent_check): New rule, to check this.
19430
19431 2011-02-22  Bruno Haible  <bruno@clisp.org>
19432
19433         New module 'wctomb'.
19434         * lib/stdlib.in.h (wctomb): New declaration.
19435         * lib/wctomb.c: New file.
19436         * lib/wctomb-impl.h: New file.
19437         * m4/wctomb.m4: New file.
19438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19439         REPLACE_WCTOMB.
19440         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19441         REPLACE_WCTOMB.
19442         * modules/wctomb: New file.
19443         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19444         * doc/posix-functions/wctomb.texi: Mention the new module.
19445         * modules/wctob (Depends-on): Add wctomb.
19446
19447 2011-02-22  Bruno Haible  <bruno@clisp.org>
19448
19449         New module 'mbtowc'.
19450         * lib/stdlib.in.h (mbtowc): New declaration.
19451         * lib/mbtowc.c: New file.
19452         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19453         * m4/mbtowc.m4: New file.
19454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19455         REPLACE_MBTOWC.
19456         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19457         REPLACE_MBTOWC.
19458         * modules/mbtowc: New file.
19459         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19460         * doc/posix-functions/mbtowc.texi: Mention the new module.
19461         * modules/btowc (Depends-on): Add mbtowc.
19462
19463 2011-02-22  Bruno Haible  <bruno@clisp.org>
19464
19465         wcrtomb: Add more tests for native Windows platforms.
19466         * tests/test-wcrtomb-w32-1.sh: New file.
19467         * tests/test-wcrtomb-w32-2.sh: New file.
19468         * tests/test-wcrtomb-w32-3.sh: New file.
19469         * tests/test-wcrtomb-w32-4.sh: New file.
19470         * tests/test-wcrtomb-w32-5.sh: New file.
19471         * tests/test-wcrtomb-w32.c: New file.
19472         * modules/wcrtomb-tests (Files): Add them.
19473         (Makefile.am): Arrange to run these tests.
19474         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19475         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19476
19477 2011-02-20  Bruno Haible  <bruno@clisp.org>
19478
19479         wcrtomb: Enhance test.
19480         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19481
19482 2011-02-20  Bruno Haible  <bruno@clisp.org>
19483
19484         mbrtowc: Tiny optimization.
19485         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19486
19487 2011-02-20  Jim Meyering  <meyering@redhat.com>
19488
19489         test-exclude.c: remove unmatched #endif
19490         * tests/test-exclude.c: Remove stray #endif, left over from
19491         the change of a week ago.
19492
19493 2011-02-19  Jim Meyering  <meyering@redhat.com>
19494
19495         git-version-gen: skip "-dirty" check when appropriate
19496         * build-aux/git-version-gen: Don't run any git commands when the
19497         version string comes from .tarball-version.  Prior to this, we
19498         would run git update-index --refresh even from a just-unpacked
19499         tarball directory, and that could affect a .git/ directory in a
19500         parent of the build directory.  Reported by Mike Frysinger.
19501
19502 2011-02-19  Bruno Haible  <bruno@clisp.org>
19503
19504         unictype/property-byname: Reduce the size of the 'data' segment.
19505         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19506
19507 2011-02-19  Bruno Haible  <bruno@clisp.org>
19508
19509         unictype/scripts: Reduce the size of the 'data' segment.
19510         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19511         '%pic'.
19512         * lib/unictype/scripts_byname.gperf: Regenerated.
19513
19514 2011-02-19  Bruno Haible  <bruno@clisp.org>
19515
19516         stdint: Update documentation.
19517         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19518
19519 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19520
19521         stdint: omit redundant check for wchar.h
19522         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19523         always tests whether wchar.h exists, so remove the now-redundant test.
19524
19525 2011-02-18  Bruno Haible  <bruno@clisp.org>
19526
19527         stdint: Cut dependency to module 'wchar'.
19528         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19529         include the necessary prerequisites.
19530         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19531         * modules/stdint (Depends-on): Remove wchar.
19532         (Makefile.am): Substitute HAVE_WCHAR_H.
19533         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19534
19535 2011-02-18  Eric Blake  <eblake@redhat.com>
19536
19537         longlong: skip, rather than fail, on cross-compilation
19538         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19539         when cross-compiling; regression from 2011-02-16.
19540
19541 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19542
19543         * NEWS: Mention 2011-02-08 change to stdlib.
19544
19545 2011-02-17  Bruno Haible  <bruno@clisp.org>
19546
19547         getloadavg: Add comments about platforms.
19548         * m4/getloadavg.m4: Add comment.
19549         * lib/getloadavg.c: Likewise.
19550
19551 2011-02-17  Bruno Haible  <bruno@clisp.org>
19552
19553         getloadavg: Fix link error on Solaris 2.6.
19554         * modules/getloadavg (Link): New section.
19555         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19556         linking test-getloadavg.
19557         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19558         getloadavg.
19559
19560 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19561
19562         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19563         It was 'int', but this doesn't match the IRIX 6.5 manual.
19564         Suggested by Bruno Haible in
19565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19566
19567 2011-02-17  Bruno Haible  <bruno@clisp.org>
19568
19569         havelib: Fix comments.
19570         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19571         change.
19572
19573 2011-02-17  Bruno Haible  <bruno@clisp.org>
19574
19575         havelib: Update config.rpath.
19576         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19577
19578 2011-02-17  Bruno Haible  <bruno@clisp.org>
19579
19580         getloadavg test: Add some plausibility checks.
19581         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19582         is improbable.
19583
19584 2011-02-16  Eric Blake  <eblake@redhat.com>
19585
19586         maintainer-makefile: make syntax-check a no-op from tarballs
19587         * top/maint.mk (no-vc-detected): New rule.
19588         (local-checks-available): Use it to avoid hanging if someone tries
19589         'make syntax-check' from a tarball.  Also append to any non-syntax
19590         checks already defined in cfg.mk.
19591
19592 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19593
19594         longlong: tune, particularly for common case of c99
19595
19596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19597         or running anything if c99, or if unsigned long long int does not
19598         work.  In either case, we know the answer without further tests.
19599         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19600         it at most once, and use its results for both long long int and
19601         unsigned long long int.  This is more likely to be efficient in
19602         the common case where the program wants to check for both long
19603         long int and unsigned long long int.
19604         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19605         since the answer is already known.
19606
19607 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19608
19609         getloadavg: set errno
19610         * lib/getloadavg.c: Set errno when returning -1.  If no other
19611         error number looks appropriate, set it to ENOSYS if the getloadavg
19612         looks like it can't possibly ever work, ENOTSUP otherwise.
19613         Suggested by Bruno Haible in
19614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19615
19616         getloadavg: trim unused parts and speed up 'configure'
19617         * NEWS: Document this.
19618         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19619         always compiled if getloadavg is absent.
19620         Move test code to ...
19621         * tests/test-getloadavg.c: New file, containing previous
19622         contents of test from lib/getloadavg.c.  It also contains
19623         suggestions by Bruno Haible in
19624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19625         * modules/getloadavg-tests: New file.
19626         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19627         Do tests in the same order as they're needed for getloadavg.c.
19628         Omit setgid-related tests that generate symbols KMEM_GROUP,
19629         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19630         Do only the tests that are needed to see whether the system has
19631         getloadavg, moving the other tests into ...
19632         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19633         NLIST_NAME_UNION; nobody should be using it.  Do not define
19634         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19635         relevant, as the user of this module shouldn't care how getloadavg
19636         is implemented.
19637
19638         getloadavg: omit unused var
19639         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19640
19641 2011-02-15  Jim Meyering  <meyering@redhat.com>
19642
19643         doc: update users.txt
19644         * users.txt: Update iwhd's URL.
19645
19646 2011-02-13  Bruno Haible  <bruno@clisp.org>
19647
19648         Consistent macro naming for macros that use GCC __attribute__.
19649         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19650         _ATTRIBUTE_NONNULL_.
19651         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19652         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19653         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19654         ATTRIBUTE_DEPRECATED.
19655         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19656         ATTRIBUTE_NORETURN.
19657         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19658         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19659         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19660         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19661         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19662         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19663         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19664         ATTRIBUTE_SENTINEL.
19665         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19666         ATTRIBUTE_RETURN_CHECK.
19667         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19668         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19669         ATTRIBUTE_NORETURN.
19670         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19671         Reported by Paul Eggert.
19672
19673 2011-02-13  Bruno Haible  <bruno@clisp.org>
19674
19675         Don't interfere with a program's definition of __attribute__.
19676         * lib/argp.h (__attribute__): Remove definition.
19677         (_GL_ATTRIBUTE_FORMAT): New macro.
19678         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19679         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19680         (_GL_ATTRIBUTE_FORMAT): New macro.
19681         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19682         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19683         GCC 3 or newer.
19684         * lib/error.h (__attribute__): Remove definition.
19685         (_GL_ATTRIBUTE_FORMAT): New macro.
19686         (error, error_at_line): Use it.
19687         * lib/hash.h (__attribute__): Remove definition.
19688         (ATTRIBUTE_WUR): Update definition. Define always.
19689         * lib/openat.h (__attribute__): Remove definition.
19690         (ATTRIBUTE_NORETURN): Update definition. Define always.
19691         * lib/sigpipe-die.h (__attribute__): Remove definition.
19692         (ATTRIBUTE_NORETURN): Update definition. Define always.
19693         * lib/vasnprintf.h (__attribute__): Remove definition.
19694         (_GL_ATTRIBUTE_FORMAT): New macro.
19695         (asnprintf, vasnprintf): Use it.
19696         * lib/xalloc.h (__attribute__): Remove definition.
19697         (ATTRIBUTE_NORETURN): Update definition. Define always.
19698         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19699         * lib/xmemdup0.h (__attribute__): Remove definition.
19700         (ATTRIBUTE_NORETURN): Update definition. Define always.
19701         * lib/xprintf.h (__attribute__): Remove definition.
19702         (_GL_ATTRIBUTE_FORMAT): New macro.
19703         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19704         * lib/xstrtol.h (__attribute__): Remove definition.
19705         (ATTRIBUTE_NORETURN): Update definition. Define always.
19706         * lib/xvasprintf.h (__attribute__): Remove definition.
19707         (_GL_ATTRIBUTE_FORMAT): New macro.
19708         (xasprintf, xvasprintf): Use it.
19709         * tests/test-argmatch.c (__attribute__): Remove definition.
19710         (ATTRIBUTE_NORETURN): Update definition. Define always.
19711         * tests/test-exclude.c (__attribute__): Remove definition.
19712         (ATTRIBUTE_NORETURN): Update definition. Define always.
19713         Reported by Paul Eggert.
19714
19715 2011-02-13  Bruno Haible  <bruno@clisp.org>
19716
19717         mbrtowc: Add more tests for native Windows platforms.
19718         * tests/test-mbrtowc-w32-1.sh: New file.
19719         * tests/test-mbrtowc-w32-2.sh: New file.
19720         * tests/test-mbrtowc-w32-3.sh: New file.
19721         * tests/test-mbrtowc-w32-4.sh: New file.
19722         * tests/test-mbrtowc-w32-5.sh: New file.
19723         * tests/test-mbrtowc-w32.c: New file.
19724         * modules/mbrtowc-tests (Files): Add them.
19725         (Makefile.am): Arrange to run these tests.
19726         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19727         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19728
19729 2011-02-13  Bruno Haible  <bruno@clisp.org>
19730
19731         mbrtowc: Work around native Windows bug.
19732         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19733         guess when no suitable locale for testing was found.
19734         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19735
19736 2011-02-13  Bruno Haible  <bruno@clisp.org>
19737
19738         mbsinit: Work around mingw bug.
19739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19740         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19741         Windows.
19742         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19743
19744 2011-02-13  Bruno Haible  <bruno@clisp.org>
19745
19746         mbsinit: Don't crash for a NULL argument.
19747         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19748         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19749
19750 2011-02-13  Bruno Haible  <bruno@clisp.org>
19751
19752         Don't interfere with a program's definition of __attribute__.
19753         * lib/stdio.in.h (__attribute__): Remove definition.
19754         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19755         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19756         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19757         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19758         * lib/string.in.h (__attribute__): Remove definition.
19759         Reported by Paul Eggert.
19760
19761 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19762
19763         stdlib: don't get in the way of non-GCC __attribute__
19764         See thread starting at
19765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19766         Revert previous stdlib change, installing the following instead:
19767         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19768         to get in the way of a non-GCC compiler that supports __attribute__.
19769         (_GL_ATTRIBUTE_RETURN): New macro.
19770         (_Exit): Use it instead of __attribute__.
19771
19772 2011-02-12  Bruno Haible  <bruno@clisp.org>
19773
19774         quotearg test: Avoid test failure on mingw.
19775         * tests/test-quotearg.sh: Convert the locale identifier from native
19776         Windows syntax to Unix syntax.
19777
19778 2011-02-12  Bruno Haible  <bruno@clisp.org>
19779
19780         setlocale: Prefer gnulib's override over libintl's override.
19781         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19782         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19783         GNULIB_defined_setlocale is set.
19784
19785 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         stdlib: support non-GCC __attribute__
19788
19789         Fix a serious and tricky problem encountered when attempting to
19790         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19791         5.5, but it crashed due to memory corruption on Solaris 10 with
19792         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19793         bits that are otherwise zero.  This tagging is optional inside
19794         Emacs but is preferred and is used when __attribute__ ((__aligned
19795         (8))) works, as it does with both recent-enough GCC and with Sun C
19796         5.11.  However, Sun C 5.11 is not GCC and does not #define
19797         __GNUC__ and __GNUC_MINOR__.
19798
19799         When I added the getloadavg module to Emacs, it brought in
19800         stdlib.in.h, which contained this fragment:
19801
19802            #ifndef __attribute__
19803            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19804            #  define __attribute__(Spec)   /* empty */
19805            # endif
19806            #endif
19807
19808         When files that include <stdlib.h> were compiled with Sun C 5.11,
19809         the above code disabled __attribute__ ((__aligned (8))), which
19810         caused variables to not be properly aligned, which eventually led
19811         to the pointer corruption mentioned above.  (This was a bit hard
19812         to diagnose, unfortunately.)
19813
19814         Several "#define __attribute__(X) /* empty */" code snippets need
19815         to be eradicated from Gnulib to work with non-GCC compilers that
19816         support __attribute__.  The Autoconf way to do this is to test for
19817         each kind of attribute that we want support for, and selectively
19818         enable that in source code.
19819
19820         Fix this problem just for stdlib.h, by adding a test for the
19821         __noreturn__ attribute, and change stdlib.in.h to use that test
19822         when needed.  This technique can be easily generalized to the
19823         other *.in.h files and attributes, and a similar technique can be
19824         used for *.h and *.c files.  This patch is enough to solve the
19825         problem for Emacs + getloadavg, and I thought I'd publish it for
19826         feedback before undertaking further, similar fixes in other
19827         modules.
19828
19829         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19830         because it's not needed for stdlib.h.  It merely substitutes the
19831         value directly into stdlib.h.  We may well need to #define it, or
19832         similar symbols, for other modules, but it's nice to also have an
19833         option to not #define it for applications like Emacs that do not
19834         need it.
19835
19836         * lib/stdlib.in.h (__attribute__): Do not #define.
19837         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19838         be defined only if the _Exit module is also used.
19839         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19841         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19842         platforms.
19843         * modules/_Exit (Files): Add m4/attribute.m4.
19844         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19845         * m4/attribute.m4: New file.
19846
19847 2011-02-12  Bruno Haible  <bruno@clisp.org>
19848
19849         wcsrtombs: Work around bug on native Windows.
19850         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19851         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19852         instead of len.
19853         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19854
19855 2011-02-12  Bruno Haible  <bruno@clisp.org>
19856
19857         mbsrtowcs: Work around bug on native Windows.
19858         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19859         against mingw bug.
19860         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19861
19862 2011-02-12  Bruno Haible  <bruno@clisp.org>
19863
19864         Avoid setlocale bugs in tests.
19865         * modules/btowc (Dependencies): Add setlocale.
19866         * modules/c-strcase (Dependencies): Likewise.
19867         * modules/mbmemcasecmp (Dependencies): Likewise.
19868         * modules/mbmemcasecoll (Dependencies): Likewise.
19869         * modules/mbrtowc (Dependencies): Likewise.
19870         * modules/mbscasecmp (Dependencies): Likewise.
19871         * modules/mbscasestr (Dependencies): Likewise.
19872         * modules/mbschr (Dependencies): Likewise.
19873         * modules/mbscspn (Dependencies): Likewise.
19874         * modules/mbsinit (Dependencies): Likewise.
19875         * modules/mbsncasecmp (Dependencies): Likewise.
19876         * modules/mbsnrtowcs (Dependencies): Likewise.
19877         * modules/mbspbrk (Dependencies): Likewise.
19878         * modules/mbspcasecmp (Dependencies): Likewise.
19879         * modules/mbsrchr (Dependencies): Likewise.
19880         * modules/mbsrtowcs (Dependencies): Likewise.
19881         * modules/mbsspn (Dependencies): Likewise.
19882         * modules/mbsstr (Dependencies): Likewise.
19883         * modules/nl_langinfo (Dependencies): Likewise.
19884         * modules/quotearg (Dependencies): Likewise.
19885         * modules/unicase/locale-language (Dependencies): Likewise.
19886         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19887         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19888         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19889         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19890         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19891         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19892         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19893         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19894         * modules/vasnprintf-posix (Dependencies): Likewise.
19895         * modules/wcrtomb (Dependencies): Likewise.
19896         * modules/wcsnrtombs (Dependencies): Likewise.
19897         * modules/wcsrtombs (Dependencies): Likewise.
19898
19899 2011-02-12  Bruno Haible  <bruno@clisp.org>
19900
19901         setlocale: Workaround native Windows bug.
19902         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19903         succeeds but sets LC_CTYPE to "C", report a failure.
19904         * tests/test-setlocale2.sh: New file.
19905         * tests/test-setlocale2.c: New file.
19906         * modules/setlocale-tests (Files): Add the new files.
19907         (Makefile.am): Enable test-setlocale2.sh test.
19908         * doc/posix-functions/setlocale.texi: Mention workaround.
19909
19910 2011-02-11  Bruno Haible  <bruno@clisp.org>
19911
19912         Tests for module 'setlocale'.
19913         * modules/setlocale-tests: New file.
19914         * tests/test-setlocale1.sh: New file.
19915         * tests/test-setlocale1.c: New file.
19916
19917         New module 'setlocale'.
19918         * lib/locale.in.h (setlocale): New declaration.
19919         * lib/setlocale.c: New file, based on
19920         gettext/gettext-runtime/intl/setlocale.c.
19921         * m4/setlocale.m4: New file.
19922         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19923         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19924         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19925         REPLACE_SETLOCALE.
19926         * modules/setlocale: New file.
19927         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19928         * doc/posix-functions/setlocale.texi: Mention the new module.
19929
19930 2011-02-11  Bruno Haible  <bruno@clisp.org>
19931
19932         Prepare for locale dependent tests on mingw.
19933         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19934         because it has the wrong locale encoding.
19935         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19936         French_France.1252 instead of "fr".
19937         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19938         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19939         because it has the wrong locale encoding.
19940         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19941         native Windows, try Turkish_Turkey.65001.
19942         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19943         Chinese_China.54936.
19944
19945         Prepare for locale dependent tests on mingw.
19946         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19947         differently.
19948         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19949         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19950         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19951         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19952
19953 2011-02-11  Eric Blake  <eblake@redhat.com>
19954
19955         strptime: avoid compiler warnings
19956         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19957         compiler warnings about dead code.
19958         Reported by Daniel P. Berrange.
19959
19960 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19961
19962         doc: update users.txt
19963         * users.txt: Add rcs.
19964
19965 2011-02-10  John W. Eaton  <jwe@gnu.org>
19966
19967         doc: update users.txt
19968         * users.txt: Add octave.
19969
19970 2011-02-10  Jim Meyering  <meyering@redhat.com>
19971
19972         doc: update users.txt
19973         * users.txt: Add iwhd.
19974
19975 2011-02-09  Bruno Haible  <bruno@clisp.org>
19976
19977         gnulib-tool: Make copyright notice adjustment more robust.
19978         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19979         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19980         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19981         License".
19982         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19983
19984 2011-02-06  Bruno Haible  <bruno@clisp.org>
19985
19986         New module 'towctrans'.
19987         * modules/towctrans: New file.
19988         * lib/wctype.in.h (towctrans): New declaration.
19989         * lib/towctrans.c: New file.
19990         * lib/towctrans-impl.h: New file.
19991         * m4/towctrans.m4: New file.
19992         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19993         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19994         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19995         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19996         * doc/posix-functions/towctrans.texi: Mention the new module.
19997
19998 2011-02-06  Bruno Haible  <bruno@clisp.org>
19999
20000         New module 'wctrans'.
20001         * modules/wctrans: New file.
20002         * lib/wctype.in.h (wctrans): New declaration.
20003         * lib/wctrans.c: New file.
20004         * lib/wctrans-impl.h: New file.
20005         * m4/wctrans.m4: New file.
20006         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20007         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20008         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20009         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20010         * doc/posix-functions/wctrans.texi: Mention the new module.
20011
20012 2011-02-06  Bruno Haible  <bruno@clisp.org>
20013
20014         New module 'iswctype'.
20015         * modules/iswctype: New file.
20016         * lib/wctype.in.h (iswctype): New declaration.
20017         * lib/iswctype.c: New file.
20018         * lib/iswctype-impl.h: New file.
20019         * m4/iswctype.m4: New file.
20020         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20021         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20022         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20023         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20024         * doc/posix-functions/iswctype.texi: Mention the new module and the
20025         HP-UX 11.00 problem.
20026
20027 2011-02-06  Bruno Haible  <bruno@clisp.org>
20028
20029         New module 'wctype'.
20030         * modules/wctype: Change to represent the wctype() substitute.
20031         * lib/wctype.in.h (wctype): New declaration.
20032         * lib/wctype.c: New file.
20033         * lib/wctype-impl.h: New file.
20034         * m4/wctype.m4: New file.
20035         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20036         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20037         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20038         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20039         * doc/posix-functions/wctype.texi: Mention the new module and the
20040         HP-UX 11.00 problem.
20041
20042 2011-02-06  Bruno Haible  <bruno@clisp.org>
20043
20044         wctype-h: Ensure wctype_t and wctrans_t are defined.
20045         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20046         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20047         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20048         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20049         HAVE_WCTRANS_T.
20050         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20051
20052 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20053
20054         flock: fix license typo
20055
20056         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20057         omitted.
20058
20059 2011-02-08  Bruno Haible  <bruno@clisp.org>
20060
20061         Split large sed scripts, for HP-UX sed.
20062         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20063         to avoid HP-UX limit of 99 commands, in the near future.
20064         * modules/stdlib (Makefile.am): Likewise.
20065         * modules/unistd (Makefile.am): Likewise.
20066         * modules/wchar (Makefile.am): Likewise.
20067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20068         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20070
20071 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20072             Bruno Haible  <bruno@clisp.org>
20073
20074         stdlib: improve random_r modularization
20075         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20076         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20077         you also need the random_r module to get this material right.
20078         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20079         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20080         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20081
20082 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20083
20084         stdlib: don't depend on stdint
20085         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20086         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20087         be independent of whether stdint.h is needed.
20088         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20089         here, instead of ...
20090         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20091         struct random_data should be using the random_r module, not just
20092         the stdlib module (which wouldn't make sense: what package needs
20093         just struct random_data without also needing random_r?).
20094         * modules/stdlib (Depends-on): Remove stdint.
20095
20096         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20097         See the thread rooted at
20098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20099         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20100         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20101         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20102         __VMS)); previously it was always included (via fcntl--.h).
20103         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20104         hand; this is good enough for load averages.  Also, do not use
20105         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20106         flags directly if available and don't bother otherwise.  (Packages
20107         that need the extra reliability should use the modules that define
20108         these flags on older platforms that lack them.)
20109         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20110         fcntl-safer.
20111
20112 2011-02-08  Jim Meyering  <meyering@redhat.com>
20113
20114         di-set.h, ino-map.h: add multiple-inclusion guard
20115         Technically, the guard is required only for ino-map.h, due to its
20116         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20117         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20118         * lib/ino-map.h: Likewise.
20119
20120 2011-02-06  Bruno Haible  <bruno@clisp.org>
20121
20122         iswblank: Ensure declaration on glibc systems.
20123         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20124         * modules/iswblank (Dependencies): Add 'extensions'.
20125         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20126
20127 2011-02-06  Bruno Haible  <bruno@clisp.org>
20128
20129         New module 'iswblank'.
20130         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20131         * modules/iswblank: New file.
20132         * modules/wctype-h (Files): Remove lib/iswblank.c.
20133         (Makefile.am): Substitute GNULIB_ISWBLANK.
20134         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20135         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20136         (gl_WCTYPE_H_DEFAULTS): New macro.
20137         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20138         * modules/iswblank-tests: New file.
20139         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20140         * tests/test-wctype-h.c (main): Remove iswblank tests.
20141         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20142         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20143         of 'wctype-h'.
20144         * NEWS: Mention the change.
20145         * modules/mbchar (Depends-on): Add iswblank.
20146
20147 2011-02-08  Bruno Haible  <bruno@clisp.org>
20148
20149         di-set tests: Refactor.
20150         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20151         unnecessary includes.
20152         (ASSERT): Remove macro.
20153         (main): Make C90 compliant by avoiding variable declaration after
20154         statement.
20155         * modules/di-set-tests (Files): Add tests/macros.h.
20156
20157 2011-02-08  Bruno Haible  <bruno@clisp.org>
20158
20159         ino-map tests: Refactor.
20160         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20161         unnecessary includes.
20162         (ASSERT): Remove macro.
20163         (main): Make C90 compliant by avoiding variable declaration after
20164         statement.
20165         * modules/ino-map-tests (Files): Add tests/macros.h.
20166
20167 2011-02-08  Jim Meyering  <meyering@redhat.com>
20168
20169         di-set: add "const" to a cast
20170         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20171         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20172
20173 2011-02-06  Bruno Haible  <bruno@clisp.org>
20174
20175         Rename module 'wctype' to 'wctype-h'.
20176         * modules/wctype-h: Renamed from modules/wctype.
20177         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20178         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20179         (Files, Depends-on, Makefile.am): Update.
20180         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20181         (Files, Makefile.am): Update.
20182         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20183         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20184         * doc/posix-headers/wctype.texi: Update.
20185         * doc/posix-functions/iswalnum.texi: Update.
20186         * doc/posix-functions/iswalpha.texi: Update.
20187         * doc/posix-functions/iswblank.texi: Update.
20188         * doc/posix-functions/iswcntrl.texi: Update.
20189         * doc/posix-functions/iswdigit.texi: Update.
20190         * doc/posix-functions/iswgraph.texi: Update.
20191         * doc/posix-functions/iswlower.texi: Update.
20192         * doc/posix-functions/iswprint.texi: Update.
20193         * doc/posix-functions/iswpunct.texi: Update.
20194         * doc/posix-functions/iswspace.texi: Update.
20195         * doc/posix-functions/iswupper.texi: Update.
20196         * doc/posix-functions/iswxdigit.texi: Update.
20197         * doc/posix-functions/towlower.texi: Update.
20198         * doc/posix-functions/towupper.texi: Update.
20199         * NEWS: Mention the change.
20200         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20201         * modules/mbchar (Dependencies): Likewise.
20202         * modules/mbswidth (Dependencies): Likewise.
20203         * modules/quotearg (Dependencies): Likewise.
20204         * modules/regex (Dependencies): Likewise.
20205         * modules/wcscasecmp (Dependencies): Likewise.
20206         * modules/wcsncasecmp (Dependencies): Likewise.
20207         * modules/wcwidth (Dependencies): Likewise.
20208
20209 2011-02-06  Bruno Haible  <bruno@clisp.org>
20210
20211         New module 'wcswidth'.
20212         * modules/wcswidth: New file.
20213         * lib/wchar.in.h (wcswidth): New declaration.
20214         * lib/wcswidth.c: New file.
20215         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20216         * m4/wcswidth.m4: New file.
20217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20219         REPLACE_WCSWIDTH.
20220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20221         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20222         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20223         * doc/posix-functions/wcswidth.texi: Mention the new module.
20224
20225 2011-02-06  Bruno Haible  <bruno@clisp.org>
20226
20227         New module 'wcstok'.
20228         * modules/wcstok: New file.
20229         * lib/wchar.in.h (wcstok): New declaration.
20230         * lib/wcstok.c: New file.
20231         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20232         * m4/wcstok.m4: New file.
20233         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20234         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20236         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20237         * doc/posix-functions/wcstok.texi: Mention the new module.
20238
20239 2011-02-06  Bruno Haible  <bruno@clisp.org>
20240
20241         New module 'wcsstr'.
20242         * modules/wcsstr: New file.
20243         * lib/wchar.in.h (wcsstr): New declaration.
20244         * lib/wcsstr.c: New file.
20245         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20246         * m4/wcsstr.m4: New file.
20247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20250         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20251         * doc/posix-functions/wcsstr.texi: Mention the new module.
20252
20253 2011-02-06  Bruno Haible  <bruno@clisp.org>
20254
20255         New module 'wcspbrk'.
20256         * modules/wcspbrk: New file.
20257         * lib/wchar.in.h (wcspbrk): New declaration.
20258         * lib/wcspbrk.c: New file.
20259         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20260         * m4/wcspbrk.m4: New file.
20261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20264         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20265         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20266
20267 2011-02-06  Bruno Haible  <bruno@clisp.org>
20268
20269         New module 'wcsspn'.
20270         * modules/wcsspn: New file.
20271         * lib/wchar.in.h (wcsspn): New declaration.
20272         * lib/wcsspn.c: New file.
20273         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20274         * m4/wcsspn.m4: New file.
20275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20277         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20278         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20279         * doc/posix-functions/wcsspn.texi: Mention the new module.
20280
20281 2011-02-06  Bruno Haible  <bruno@clisp.org>
20282
20283         New module 'wcscspn'.
20284         * modules/wcscspn: New file.
20285         * lib/wchar.in.h (wcscspn): New declaration.
20286         * lib/wcscspn.c: New file.
20287         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20288         * m4/wcscspn.m4: New file.
20289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20291         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20292         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20293         * doc/posix-functions/wcscspn.texi: Mention the new module.
20294
20295 2011-02-06  Bruno Haible  <bruno@clisp.org>
20296
20297         New module 'wcsrchr'.
20298         * modules/wcsrchr: New file.
20299         * lib/wchar.in.h (wcsrchr): New declaration.
20300         * lib/wcsrchr.c: New file.
20301         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20302         * m4/wcsrchr.m4: New file.
20303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20306         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20307         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20308
20309 2011-02-06  Bruno Haible  <bruno@clisp.org>
20310
20311         New module 'wcschr'.
20312         * modules/wcschr: New file.
20313         * lib/wchar.in.h (wcschr): New declaration.
20314         * lib/wcschr.c: New file.
20315         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20316         * m4/wcschr.m4: New file.
20317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20320         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20321         * doc/posix-functions/wcschr.texi: Mention the new module.
20322
20323 2011-02-06  Bruno Haible  <bruno@clisp.org>
20324
20325         New module 'wcsdup'.
20326         * modules/wcsdup: New file.
20327         * lib/wchar.in.h (wcsdup): New declaration.
20328         * lib/wcsdup.c: New file.
20329         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20330         * m4/wcsdup.m4: New file.
20331         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20332         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20333         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20334         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20335         * doc/posix-functions/wcsdup.texi: Mention the new module.
20336
20337 2011-02-06  Bruno Haible  <bruno@clisp.org>
20338
20339         New module 'wcsxfrm'.
20340         * modules/wcsxfrm: New file.
20341         * lib/wchar.in.h (wcsxfrm): New declaration.
20342         * lib/wcsxfrm.c: New file.
20343         * lib/wcsxfrm-impl.h: New file.
20344         * m4/wcsxfrm.m4: New file.
20345         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20346         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20347         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20348         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20349         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20350
20351 2011-02-06  Bruno Haible  <bruno@clisp.org>
20352
20353         New module 'wcscoll'.
20354         * modules/wcscoll: New file.
20355         * lib/wchar.in.h (wcscoll): New declaration.
20356         * lib/wcscoll.c: New file.
20357         * lib/wcscoll-impl.h: New file.
20358         * m4/wcscoll.m4: New file.
20359         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20360         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20361         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20362         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20363         * doc/posix-functions/wcscoll.texi: Mention the new module.
20364
20365 2011-02-06  Bruno Haible  <bruno@clisp.org>
20366
20367         New module 'wcsncasecmp'.
20368         * modules/wcsncasecmp: New file.
20369         * lib/wchar.in.h (wcsncasecmp): New declaration.
20370         * lib/wcsncasecmp.c: New file.
20371         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20372         * m4/wcsncasecmp.m4: New file.
20373         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20374         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20376         HAVE_WCSNCASECMP.
20377         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20378         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20379
20380 2011-02-06  Bruno Haible  <bruno@clisp.org>
20381
20382         New module 'wcscasecmp'.
20383         * modules/wcscasecmp: New file.
20384         * lib/wchar.in.h (wcscasecmp): New declaration.
20385         * lib/wcscasecmp.c: New file.
20386         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20387         * m4/wcscasecmp.m4: New file.
20388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20391         HAVE_WCSCASECMP.
20392         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20393         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20394
20395 2011-02-05  Bruno Haible  <bruno@clisp.org>
20396
20397         New module 'wcsncmp'.
20398         * modules/wcsncmp: New file.
20399         * lib/wchar.in.h (wcsncmp): New declaration.
20400         * lib/wcsncmp.c: New file.
20401         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20402         * m4/wcsncmp.m4: New file.
20403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20406         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20407         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20408
20409 2011-02-05  Bruno Haible  <bruno@clisp.org>
20410
20411         New module 'wcscmp'.
20412         * modules/wcscmp: New file.
20413         * lib/wchar.in.h (wcscmp): New declaration.
20414         * lib/wcscmp.c: New file.
20415         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20416         * m4/wcscmp.m4: New file.
20417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20420         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20421         * doc/posix-functions/wcscmp.texi: Mention the new module.
20422
20423 2011-02-05  Bruno Haible  <bruno@clisp.org>
20424
20425         New module 'wcsncat'.
20426         * modules/wcsncat: New file.
20427         * lib/wchar.in.h (wcsncat): New declaration.
20428         * lib/wcsncat.c: New file.
20429         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20430         * m4/wcsncat.m4: New file.
20431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20434         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20435         * doc/posix-functions/wcsncat.texi: Mention the new module.
20436
20437 2011-02-05  Bruno Haible  <bruno@clisp.org>
20438
20439         New module 'wcscat'.
20440         * modules/wcscat: New file.
20441         * lib/wchar.in.h (wcscat): New declaration.
20442         * lib/wcscat.c: New file.
20443         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20444         * m4/wcscat.m4: New file.
20445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20448         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20449         * doc/posix-functions/wcscat.texi: Mention the new module.
20450
20451 2011-02-05  Bruno Haible  <bruno@clisp.org>
20452
20453         New module 'wcpncpy'.
20454         * modules/wcpncpy: New file.
20455         * lib/wchar.in.h (wcpncpy): New declaration.
20456         * lib/wcpncpy.c: New file.
20457         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20458         * m4/wcpncpy.m4: New file.
20459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20461         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20462         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20463         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20464
20465 2011-02-05  Bruno Haible  <bruno@clisp.org>
20466
20467         New module 'wcsncpy'.
20468         * modules/wcsncpy: New file.
20469         * lib/wchar.in.h (wcsncpy): New declaration.
20470         * lib/wcsncpy.c: New file.
20471         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20472         * m4/wcsncpy.m4: New file.
20473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20476         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20477         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20478
20479 2011-02-05  Bruno Haible  <bruno@clisp.org>
20480
20481         New module 'wcpcpy'.
20482         * modules/wcpcpy: New file.
20483         * lib/wchar.in.h (wcpcpy): New declaration.
20484         * lib/wcpcpy.c: New file.
20485         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20486         * m4/wcpcpy.m4: New file.
20487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20489         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20490         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20491         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20492
20493 2011-02-05  Bruno Haible  <bruno@clisp.org>
20494
20495         New module 'wcscpy'.
20496         * modules/wcscpy: New file.
20497         * lib/wchar.in.h (wcscpy): New declaration.
20498         * lib/wcscpy.c: New file.
20499         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20500         * m4/wcscpy.m4: New file.
20501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20504         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20505         * doc/posix-functions/wcscpy.texi: Mention the new module.
20506
20507 2011-02-05  Bruno Haible  <bruno@clisp.org>
20508
20509         New module 'wcsnlen'.
20510         * modules/wcsnlen: New file.
20511         * lib/wchar.in.h (wcsnlen): New declaration.
20512         * lib/wcsnlen.c: New file.
20513         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20514         * m4/wcsnlen.m4: New file.
20515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20518         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20519         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20520
20521 2011-02-05  Bruno Haible  <bruno@clisp.org>
20522
20523         New module 'wcslen'.
20524         * modules/wcslen: New file.
20525         * lib/wchar.in.h (wcslen): New declaration.
20526         * lib/wcslen.c: New file.
20527         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20528         * m4/wcslen.m4: New file.
20529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20532         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20533         * doc/posix-functions/wcslen.texi: Mention the new module.
20534
20535 2011-02-05  Bruno Haible  <bruno@clisp.org>
20536
20537         New module 'wmemset'.
20538         * modules/wmemset: New file.
20539         * lib/wchar.in.h (wmemset): New declaration.
20540         * lib/wmemset.c: New file.
20541         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20542         * m4/wmemset.m4: New file.
20543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20545         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20546         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20547         * doc/posix-functions/wmemset.texi: Mention the new module.
20548
20549 2011-02-05  Bruno Haible  <bruno@clisp.org>
20550
20551         New module 'wmemmove'.
20552         * modules/wmemmove: New file.
20553         * lib/wchar.in.h (wmemmove): New declaration.
20554         * lib/wmemmove.c: New file.
20555         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20556         * m4/wmemmove.m4: New file.
20557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20559         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20560         HAVE_WMEMMOVE.
20561         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20562         * doc/posix-functions/wmemmove.texi: Mention the new module.
20563
20564 2011-02-05  Bruno Haible  <bruno@clisp.org>
20565
20566         New module 'wmemcpy'.
20567         * modules/wmemcpy: New file.
20568         * lib/wchar.in.h (wmemcpy): New declaration.
20569         * lib/wmemcpy.c: New file.
20570         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20571         * m4/wmemcpy.m4: New file.
20572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20574         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20575         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20576         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20577
20578 2011-02-05  Bruno Haible  <bruno@clisp.org>
20579
20580         New module 'wmemcmp'.
20581         * modules/wmemcmp: New file.
20582         * lib/wchar.in.h (wmemcmp): New declaration.
20583         * lib/wmemcmp.c: New file.
20584         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20585         * m4/wmemcmp.m4: New file.
20586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20588         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20589         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20590         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20591
20592 2011-02-07  Jim Meyering  <meyering@redhat.com>
20593
20594         di-set, ino-map: new modules, from coreutils
20595         * lib/di-set.c: New file.
20596         * lib/di-set.h: Likewise.
20597         * lib/ino-map.c: Likewise.
20598         * lib/ino-map.h: Likewise.
20599         * modules/di-set: Likewise.
20600         * modules/di-set-tests: Likewise.
20601         * modules/ino-map: Likewise.
20602         * modules/ino-map-tests: Likewise.
20603         * tests/test-di-set.c: Likewise.
20604         * tests/test-ino-map.c: Likewise.
20605
20606 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20607
20608         getloadavg: merge minor changes from Emacs
20609
20610         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20611         (getloadavg): Use memset, not bzero.
20612
20613         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20614         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20615         clash (bug#86).
20616
20617 2010-11-14  Bruno Haible  <bruno@clisp.org>
20618
20619         Allow multiple gnulib generated replacements to coexist.
20620         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20621         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20622         * lib/langinfo.in.h (nl_item): Likewise.
20623         * lib/math.in.h (_NaN, NAN): Likewise.
20624         * lib/netdb.in.h (struct addrinfo): Likewise.
20625         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20626         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20627         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20628         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20629         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20630         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20631         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20632         pthread_mutexattr_init, pthread_mutexattr_settype,
20633         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20634         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20635         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20636         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20637         * lib/sched.in.h (struct sched_param): Likewise.
20638         * lib/se-selinux.in.h (security_class_t, security_context_t,
20639         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20640         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20641         lsetfilecon, fsetfilecon, security_check_context,
20642         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20643         Likewise.
20644         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20645         Likewise.
20646         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20647         _gl_function_taking_int_returning_void_t, union sigval,
20648         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20649         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20650         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20651         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20652         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20653         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20654         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20655         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20656         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20657         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20658         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20659         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20660         socklen_t, rpl_fd_isset): Likewise.
20661         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20662         * lib/sys_time.in.h (struct timeval): Likewise.
20663         * lib/sys_times.in.h (struct tms): Likewise.
20664         * lib/sys_utsname.in.h (struct utsname):
20665         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20666         * lib/unistd.in.h (getpagesize): Likewise.
20667         * lib/wchar.in.h (mbstate_t): Likewise.
20668         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20669         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20670         towlower, towupper): Likewise.
20671         Reported by Sam Steingold <sds@gnu.org>.
20672
20673 2011-02-05  Eric Blake  <eblake@redhat.com>
20674
20675         unsetenv: work around Haiku issues
20676         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20677         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20678
20679 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20680
20681         libposix: avoid calling error() within libposix
20682         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20683         is defined.
20684
20685 2011-02-05  Eric Blake  <eblake@redhat.com>
20686
20687         strerror_r-posix: port to cygwin
20688         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20689         implementation.
20690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20691         * tests/test-strerror_r.c (main): Fix test.
20692         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20693         issue.
20694
20695 2011-02-05  Bruno Haible  <bruno@clisp.org>
20696
20697         New module 'wmemchr'.
20698         * modules/wmemchr: New file.
20699         * lib/wchar.in.h (wmemchr): New declaration.
20700         * lib/wmemchr.c: New file.
20701         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20702         * m4/wmemchr.m4: New file.
20703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20705         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20706         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20707         * doc/posix-functions/wmemchr.texi: Mention the new module.
20708
20709 2011-02-04  Eric Blake  <eblake@redhat.com>
20710
20711         fdopendir: detect FreeBSD bug
20712         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20713         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20714
20715 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20716
20717         stdbool: do not define HAVE_STDBOOL_H
20718         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20719         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20720         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20721         imported from the latest Autoconf git.  It was motivated by Emacs,
20722         which uses gnulib but does not need HAVE_STDBOOL_H.
20723
20724 2011-02-04  Bruno Haible  <bruno@clisp.org>
20725
20726         wcsnrtombs: Prepare for new module wwcsnrtombs.
20727         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20728         * lib/wcsnrtombs.c: Include it.
20729         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20730
20731         wcsrtombs: Prepare for new module wwcsrtombs.
20732         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20733         * lib/wcsrtombs.c: Include it.
20734         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20735
20736         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20737         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20738         * lib/mbsnrtowcs.c: Include it.
20739         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20740
20741         mbsrtowcs: Prepare for new module mbsrtowwcs.
20742         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20743         * lib/mbsrtowcs.c: Include it.
20744         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20745
20746 2011-02-04  Bruno Haible  <bruno@clisp.org>
20747
20748         vasnprintf: Reduce use of malloc for small format strings.
20749         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20750         (arguments): Add room for the first 7 arguments.
20751         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20752         (char_directives, u8_directives, u16_directives, u32_directives): Add
20753         room for the first 7 directives.
20754         * lib/printf-parse.c: Include <string.h>.
20755         (PRINTF_PARSE): Change memory handling code so that it uses the first
20756         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20757         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20758         Reported by Pádraig Brady <P@draigbrady.com>.
20759
20760 2011-01-31  Eric Blake  <eblake@redhat.com>
20761
20762         dup2: work around Haiku bug
20763         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20764         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20765         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20766         * tests/test-dup2.c (main): Enhance test.
20767
20768 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20769
20770         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20771         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20772         declared by eglibc 2.11.2.
20773         * lib/stdio.in.h: Likewise.
20774
20775 2011-01-31  Eric Blake  <eblake@redhat.com>
20776
20777         ignore-value: add missing test dependency
20778         * tests/test-ignore-value.c: Revert previous change; stdio.h
20779         provides off_t.
20780         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20781
20782 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20783
20784         mktime: clarify long_int width checking
20785         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20786         the top level, to make it clearer that the assumption about
20787         long_int width is being checked.  See
20788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20789
20790 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20791
20792         ignore-value: Fix self-test.
20793         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20794
20795 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20796
20797         TYPE_MAXIMUM: avoid theoretically undefined behavior
20798         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20799         negative number, which the C Standard says has undefined behavior.
20800         In practice this is not a problem, but might as well do it by the book.
20801         Reported by Rich Felker and Eric Blake; see
20802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20803         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20804         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20806         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20807         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20808         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20809
20810         mktime: #undef mktime before #defining it
20811         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20812
20813         mktime: systematically normalize tm_isdst comparisons
20814         * lib/mktime.c (isdst_differ): New function.
20815         (__mktime_internal): Use it systematically for all isdst comparisons.
20816         This completes the fix for libc BZ #6723, and removes the need for
20817         normalizing tm_isdst.  See
20818         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20819         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20820
20821         mktime: fix some integer overflow issues and sidestep the rest
20822
20823         This was prompted by a bug report by Benjamin Lindner for MinGW
20824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20825         His bug is due to signed integer overflow (0 - INT_MIN), and I
20826         I scanned through mktime.c looking for other integer overflow
20827         problems, fixing all the bugs I found.
20828
20829         Although the C Standard says the resulting code is still not safe
20830         in the presence of integer overflow, in practice it should be good
20831         enough for all real-world two's-complement implementations, except
20832         for debugging environments that deliberately trap on integer
20833         overflow (e.g., gcc -ftrapv).
20834
20835         * lib/mktime.c (WRAPV): New macro.
20836         (SHR): Also check that long_int and time_t shift right in the
20837         usual way, before using the fast-but-unportable method.
20838         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20839         used.  The code already assumed two's complement, so there's
20840         no need to test for alternatives.  All uses removed.
20841         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20842         the C standard.  Problem reported by Rich Felker in
20843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20844         (twos_complement_arithmetic): Also check long_int and time_t.
20845         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20846         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20847         (__mktime_internal): Avoid integer overflow with unary subtraction
20848         in two instances where -1 - X is an adequate replacement for -X,
20849         since the calculations are approximate.
20850
20851 2011-01-29  Eric Blake  <eblake@redhat.com>
20852
20853         mktime: avoid infinite loop
20854         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20855         type; behavior is still undefined but portable to all known targets.
20856         Reported by Rich Felker.
20857
20858 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20859
20860         rename, unlink, same-inode: Relicense.
20861         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20862         * modules/unlink (License): Likewise.
20863         * modules/same-inode (License): Likewise.
20864
20865 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         mktime: avoid problems on NetBSD 5 / i386
20868         * lib/mktime.c (long_int): New type.  This works around a problem
20869         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20870         but time_t is 64 bits, and where I expect the existing code is
20871         wrong in some cases.
20872         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20873         (ydhms_diff): Bring back the compile-time check for wide-enough
20874         year and yday.
20875
20876         mktime: fix misspelling in comment
20877         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20878         This merges all recent glibc changes of importance.
20879
20880 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20881
20882         move-if-change: cope with concurrent mv of identical file.
20883         * build-aux/move-if-change (CMPPROG): Accept environment
20884         variable as an override for `cmp'.
20885         (usage): Document CMPPROG.
20886         Adjust comparison to drop stdout.  Cope with failure of mv if
20887         the target file exists and is identical to the source, for
20888         parallel builds.
20889         Report from H.J. Lu against binutils in PR binutils/12283.
20890
20891 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20892
20893         * users.txt: Mention sharutils.
20894
20895 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20896
20897         * users.txt: Mention OATH Toolkit.
20898
20899 2011-01-27  Bruno Haible  <bruno@clisp.org>
20900
20901         Prepare for supporting FreeBSD 10.
20902         * build-aux/config.libpath: Remove handling of freebsd1*.
20903
20904 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20905
20906         Prepare for supporting FreeBSD 10.
20907         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20908         match FreeBSD 10.0.
20909
20910 2011-01-27  Bruno Haible  <bruno@clisp.org>
20911
20912         vma-iter, get-rusage-as: Add OpenBSD support.
20913         * modules/vma-iter (configure.ac): Test for mquery.
20914         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20915         * lib/vma-iter.c: Include <sys/mman.h>.
20916         (vma_iterate): Add an implementation based on mquery().
20917         * lib/resource-ext.h (get_rusage_as): Update comments.
20918         * lib/get-rusage-as.c: Likewise.
20919         * lib/get-rusage-data.c: Likewise.
20920
20921 2011-01-26  Karl Berry  <karl@gnu.org>
20922
20923         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20924         variables to make it easier to override the makeinfo program used.
20925
20926 2011-01-26  Eric Blake  <eblake@redhat.com>
20927
20928         fcntl: work around Haiku F_DUPFD bugs
20929         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20930         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20931         cloexec bit on duplication.
20932         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20933
20934 2011-01-26  Bruno Haible  <bruno@clisp.org>
20935
20936         Enable memory leak tests on AIX.
20937         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20938         * tests/test-fprintf-posix3.c (main): Likewise.
20939
20940 2011-01-26  Bruno Haible  <bruno@clisp.org>
20941
20942         Tests for module 'get-rusage-data'.
20943         * modules/get-rusage-data-tests: New file.
20944         * tests/test-get-rusage-data.c: New file.
20945
20946         New module 'get-rusage-data'.
20947         * lib/resource-ext.h (get_rusage_data): New declaration.
20948         * lib/get-rusage-data.c: New file.
20949         * modules/get-rusage-data: New file.
20950
20951 2011-01-25  Bruno Haible  <bruno@clisp.org>
20952
20953         get-rusage-as: Allow for easier testing.
20954         * lib/resource-ext.h (get_rusage_as): Add comment.
20955         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20956         (main): New function for interactive testing.
20957
20958 2011-01-25  Bruno Haible  <bruno@clisp.org>
20959
20960         vma-iter: Treat Haiku like BeOS.
20961         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20962         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20963
20964 2011-01-25  Eric Blake  <eblake@redhat.com>
20965
20966         c-stack: fix regression on cygwin when libsigsegv is present
20967         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20968
20969 2011-01-24  Bruno Haible  <bruno@clisp.org>
20970
20971         vma-iter: Avoid empty intervals.
20972         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20973         on an empty interval.
20974
20975 2011-01-24  Jim Meyering  <meyering@redhat.com>
20976
20977         u64: remove unnecessary #include
20978         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20979
20980 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20981
20982         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20983         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20984
20985 2011-01-23  Bruno Haible  <bruno@clisp.org>
20986
20987         New module 'vma-iter'.
20988         * lib/vma-iter.h: New file.
20989         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20990         * modules/vma-iter: New file.
20991         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20992         for get_rusage_as_via_iterator.
20993         (vma_iterate_callback): New function.
20994         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20995         * modules/get-rusage-as (Depends-on): Add vma-iter.
20996
20997 2011-01-23  Bruno Haible  <bruno@clisp.org>
20998
20999         uninorm: Tweak includes.
21000         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21001         Reported by Jim Meyering.
21002
21003 2011-01-23  Bruno Haible  <bruno@clisp.org>
21004
21005         get-rusage-as: Improve on NetBSD.
21006         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21007         /proc, like on FreeBSD.
21008
21009 2011-01-23  Jim Meyering  <meyering@redhat.com>
21010
21011         xreadlink.h: remove unnecessary #include
21012         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21013
21014         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21015         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21016
21017 2011-01-23  Bruno Haible  <bruno@clisp.org>
21018
21019         get-rusage-as: Fix bug.
21020         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21021         original limit when aborting the first loop.
21022
21023 2011-01-23  Bruno Haible  <bruno@clisp.org>
21024
21025         wctype: Ensure valid C syntax.
21026         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21027         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21028
21029 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21030
21031         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21033         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21034         as they are needed only for configure's test case.
21035         This removes two unnecessary symbols from config.h.
21036
21037         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21038         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21040         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21041         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21042         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21043         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21044         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21045         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21046         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21047         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21048         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21051         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21052         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21053         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21054         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21055
21056 2011-01-21  Eric Blake  <eblake@redhat.com>
21057
21058         maintainer-makefile: work with older git for submodule check
21059         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21060         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21061         Reported by Matthias Bolte.
21062
21063         bootstrap: minor portability fixes
21064         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21065         (usage): Omit leading capital and trailing . on help phrases, per
21066         GNU Coding Standards.
21067         (check_versions, top level): Prefix messages with script name.
21068
21069 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21070
21071         bootstrap: support --no-git option
21072         * build-aux/bootstrap: Add --no-git option, to be used when
21073         --gnulib-srcdir points to the exact desired checkout.
21074
21075 2011-01-21  Eric Blake  <eblake@redhat.com>
21076
21077         strerror_r-posix: work with glibc 2.13
21078         * lib/strerror_r.c (strerror_r): Fix return type.
21079
21080 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21081             Bruno Haible  <bruno@clisp.org>
21082
21083         uN_strstr: New unit tests.
21084         * modules/unistr/u8-strstr-tests: New file.
21085         * modules/unistr/u16-strstr-tests: New file.
21086         * modules/unistr/u32-strstr-tests: New file.
21087         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21088         * tests/unistr/test-u8-strstr.c: New file.
21089         * tests/unistr/test-u16-strstr.c: New file.
21090         * tests/unistr/test-u32-strstr.c: New file.
21091
21092 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21093             Bruno Haible  <bruno@clisp.org>
21094
21095         Make uN_strstr functions O(n) worst-case.
21096         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21097         16-bit and 32-bit unit cases, use the unibyte algorithm from
21098         lib/mbsstr.c.
21099         * lib/unistr/u8-strstr.c: Include <string.h>.
21100         (UNIT_IS_UINT8_T): New macro.
21101         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21102         (U_STRLEN, U_STRNLEN): New macros.
21103         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21104         (U_STRLEN, U_STRNLEN): New macros.
21105         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21106         (configure.ac): Update required libunistring version.
21107         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21108         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21109         malloca.
21110         (configure.ac): Update required libunistring version.
21111         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21112         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21113         malloca.
21114         (configure.ac): Update required libunistring version.
21115
21116 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21117             Bruno Haible  <bruno@clisp.org>
21118
21119         Prepare for faster uN_strstr functions.
21120         * lib/str-kmp.h: Support definable UNITs.
21121         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21122         needle_len argument.
21123         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21124         * lib/mbscasestr.c (mbscasestr): Likewise.
21125
21126 2011-01-21  Pádraig Brady <P@draigBrady.com>
21127
21128         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21129         * tests/test-malloca.c (main): Unset the environment variable
21130         to greatly speed up the test.
21131         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21132         * modules/malloca-tests: Depend on unsetenv.
21133
21134 2011-01-21  Pádraig Brady <P@draigBrady.com>
21135
21136         ignore-value: remove stdint dependency
21137         * lib/ignore-value.h: Remove <stdint.h>
21138         * modules/ignore-value: Remove stdint dependency.
21139
21140 2011-01-21  Jim Meyering  <meyering@redhat.com>
21141
21142         maint.mk: adjust variable name to be consistent with other gl_ vars
21143         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21144         to be lower case.
21145
21146 2011-01-20  Jim Meyering  <meyering@redhat.com>
21147
21148         maint.mk: make "check" depend on public-submodule-commit by default
21149         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21150
21151 2011-01-20  Bruno Haible  <bruno@clisp.org>
21152
21153         mbfile, mbiter: Complete change from 2008-12-21.
21154         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21155         * m4/mbiter.m4 (gl_MBITER): Likewise.
21156
21157 2011-01-20  Jim Meyering  <meyering@redhat.com>
21158
21159         init.sh: insert space between each function name and "()"
21160         * tests/init.sh: Make it a little easier to see that a function's
21161         name is "warn_", and not "warn" when looking at the first part of
21162         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21163
21164 2011-01-20  Jim Meyering  <meyering@redhat.com>
21165
21166         mountlist: clean up code formatting
21167         * lib/mountlist.c (read_file_system_list): Split a long line,
21168         correct bracing style, use NULL in place of "(struct statfs *)0",
21169         don't parenthesize return value, add spaces around "=" and after
21170         ";-in-for-stmt".
21171
21172 2011-01-14  Markus Duft <mduft@gentoo.org>
21173
21174         mountlist: add support for Interix
21175         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21176         Apply statvfs to all entries of /dev/fs.
21177         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21178         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21179
21180 2011-01-20  Jim Meyering  <meyering@redhat.com>
21181
21182         maint.mk: improve the public-submodule-commit rule
21183         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21184         to suppress printing of its commands... unless V=1.
21185         Add git submodule's --quiet option to suppress printing of e.g.,
21186         "Entering gnulib" output.
21187         "cd" into $(srcdir) before running git submodule.
21188
21189 2011-01-20  Bruno Haible  <bruno@clisp.org>
21190
21191         include_next: Fix bug introduced on 2011-01-18.
21192         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21193         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21194         ac_cv_header_... variable if the second argument is not 'check'.
21195         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21196         gl_NEXT_HEADERS_INTERNAL.
21197
21198 2011-01-20  Bruno Haible  <bruno@clisp.org>
21199
21200         Allow the user to avoid the GNULIB_TEST_* macros.
21201         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21202         Suggested by Paul Eggert.
21203
21204 2011-01-14  Jim Meyering  <meyering@redhat.com>
21205
21206         bootstrap: avoid failure when there is no .gitmodules file
21207         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21208         has been assigned to, even when its value is the empty string.
21209         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21210         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21211         Reported by John W. Eaton <jwe@gnu.org>.
21212
21213 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21214
21215         assume <ctype.h>, ..., <time.h> exist
21216         For years gnulib has been assuming the existence of the headers
21217         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21218         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21219         them, since they don't appear to be needed.
21220         * README (Portability guidelines): Document this.
21221         * lib/flock.c: Assume <fcntl.h> exists.
21222         * lib/regex_internal.h: Assume <locale.h> exists.
21223         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21225         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21226         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21227         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21228         * m4/regex.m4 (gl_REGEX): Likewise.
21229         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21230         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21231         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21232         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21233         * tests/test-argp.c: Likewise.
21234         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21235
21236         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21237         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21238         AA_APPLE_UNIVERSAL_BUILD.  See
21239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21240         * NEWS: Document this.
21241
21242 2011-01-19  Eric Blake  <eblake@redhat.com>
21243
21244         c-stack: assume stack overflow if SA_SIGINFO unsupported
21245         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21246         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21247         sigaction will work.
21248         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21249         behavior match Linux.
21250         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21251
21252         stdbool-tests: accomodate Haiku
21253         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21254
21255         binary-io: fix O_TEXT on Haiku
21256         * modules/binary-io (Depends-on): Add fcntl-h.
21257         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21258         than blindly undefining O_TEXT.
21259         Reported by Scott McCreary.
21260
21261 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21262
21263         include_next: do not check for standard headers like stddef.h
21264
21265         I found this problem when modifying Emacs to use gnulib.
21266         I noticed that it added HAVE_STDDEF_H to config.h, even though
21267         gnulib always assumes <stddef.h> exists as per README and this
21268         symbol is unnecessary.
21269         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21270         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21271         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21272         faster for headers like stddef.h that are known to exist.
21273         (gl_CHECK_NEXT_HEADERS): Use it.
21274         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21275         rather than gl_CHECK_NEXT_HEADERS.
21276         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21277         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21278
21279 2011-01-18  Eric Blake  <eblake@redhat.com>
21280
21281         ansi-c++-opt: skip C++ dependency style if C++ is unused
21282         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21283         tests when we know C++ compilation is not desired.
21284         Reported by Scott McCreary.
21285
21286 2011-01-18  Bruno Haible  <bruno@clisp.org>
21287
21288         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21289         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21290         (main): Perform test also when getrlimit and setrlimit don't exist or
21291         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21292         limiting the address space size using setrlimit, compare the address
21293         space size before and after the the test.
21294         * tests/test-dprintf-posix2.c: Likewise.
21295         * tests/test-fprintf-posix3.sh: Update skip messages.
21296         * tests/test-dprintf-posix2.sh: Likewise.
21297         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21298         * modules/dprintf-posix-tests (Depends-on): Likewise.
21299         Reported by Bruce Korb <bkorb@gnu.org> and
21300         Gary V. Vaughan <gary@gnu.org>.
21301
21302 2011-01-18  Bruno Haible  <bruno@clisp.org>
21303
21304         get-rusage-as: Improvement for Cygwin.
21305         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21306         areas that are merely reserved.
21307
21308 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         strftime: remove dependencies on multibyte modules
21311
21312         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21313         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21314         only if __osf__ is defined, and I suspect OSF doesn't need these
21315         other modules.  If my guess is wrong, we'll need to come up with a
21316         variant of strftime that doesn't need the multibyte modules.
21317
21318         I discovered this problem when attempting modify Emacs to use the
21319         strftime module.  With the previous gnulib, this caused Emacs to
21320         need 31 new files, ranging from lib/config.charset to
21321         m4/wint_t.m4.  This was overkill and I expect would be offputting
21322         to the Emacs maintainers.  After this change, only 6 new files are
21323         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21324         stdbool.m4, and tm_gmtoff.m4.
21325
21326         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21327         Suggested by Bruno Haible in
21328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21329         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21330         and do not check for wchar.h.
21331         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21332         (Depends-on): Remove mbrlen, mbsinit, wchar.
21333
21334 2011-01-18  Bruno Haible  <bruno@clisp.org>
21335
21336         Tests for module 'get-rusage-as'.
21337         * modules/get-rusage-as-tests: New file.
21338         * tests/test-get-rusage-as.c: New file.
21339
21340         New module 'get-rusage-as'.
21341         * modules/get-rusage-as: New file.
21342         * lib/resource-ext.h: New file.
21343         * lib/get-rusage-as.c: New file.
21344
21345 2011-01-17  Eric Blake  <eblake@redhat.com>
21346
21347         sigaction: relax license from LGPLv3+ to LGPLv2+
21348         * modules/sigaction (License): Relax to LGPLv2+.
21349
21350 2011-01-14  Bruno Haible  <bruno@clisp.org>
21351
21352         filemode: Make function declarations usable in C++ mode.
21353         * lib/filemode.h: Enclose function declarations in extern "C" block.
21354         Reported by John W. Eaton <jwe@gnu.org>.
21355
21356 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21357
21358         save-cwd: no longer include "xgetcwd.h"
21359         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21360         This avoids a compilation failure in projects that use save-cwd
21361         without also using the xgetcwd module.
21362
21363 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21366         This is so that a program like Emacs, which needs only dtoastr,
21367         does not have to bother with distributing and compiling ftoastr
21368         and ldtoastr.
21369         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21370         * modules/dtoastr, modules/ldtoastr: New files.
21371         * modules/ftoastr: Now works just for 'float'.
21372         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21373         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21374         dtoastr.c, ldtoastr.c.
21375
21376 2011-01-11  Jim Meyering  <meyering@redhat.com>
21377
21378         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21379         There is no need to work around the lack of the fchdir function,
21380         since gnulib can now provide a replacement when required.
21381         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21382         * modules/save-cwd (Depends-on): Add fchdir.
21383
21384 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21385
21386         openat, save-cwd: avoid xmalloc
21387
21388         This removes a direct (but undocumented) dependency of openat on
21389         xalloc, along with an indirect dependency via save-cwd.  It also
21390         removes a dependency of save-cwd on xgetcwd, and thereby
21391         indirectly on xalloc.  This change causes the openat substitute
21392         to fall back on save_cwd when memory is tight, and for save_cwd to
21393         fail instead of dying when memory is tight, but that's good enough.
21394         Problem and initial idea for fix reported by Bastien Roucaries in
21395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21396
21397         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21398         xalloc.h (for xmalloc).
21399         (openat_proc_name): Use malloc, not xmalloc.
21400         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21401         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21402
21403         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21404         This avoids heap allocation for file names whose lengths are in
21405         the range 512..1023, with the upper bound increasing to at most
21406         4031 depending on the platform's PATH_MAX.  (We do not want
21407         pathmax.h here as it might supply a non-constant PATH_MAX.)
21408         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21409         Perhaps they should be moved to malloca.h?
21410         (OPENAT_BUFFER_SIZE): Use them.
21411
21412 2011-01-10  Bruno Haible  <bruno@clisp.org>
21413
21414         doc: Update users.txt.
21415         * users.txt: Add recutils.
21416
21417 2011-01-09  Karl Berry  <karl@gnu.org>
21418
21419         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21420
21421         * doc/configmake.texi: New file.
21422         * doc/gnulib.texi: Include it.
21423         * modules/configmake: Move documentation from here.
21424
21425 2011-01-09  Bruno Haible  <bruno@clisp.org>
21426
21427         Update to Unicode 6.0.0.
21428         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21429         (get_lbp): Update for Unicode 6.0.0.
21430         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21431         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21432         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21433         U+11001, U+11038..U+11046. Remove U+06DE.
21434         (uc_width): Fix bounds of planes.
21435         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21436         lib/uniwidth/width.c.
21437         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21438         trailing whitespace removed.
21439         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21440         without comments, but with the original copyright notice.
21441         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21442         * lib/unicase/ignorable.h: Likewise.
21443         * lib/unicase/tocasefold.h: Likewise.
21444         * lib/unicase/tolower.h: Likewise.
21445         * lib/unicase/totitle.h: Likewise.
21446         * lib/unicase/toupper.h: Likewise.
21447         * lib/unictype/bidi_of.h: Likewise.
21448         * lib/unictype/blocks.h: Likewise.
21449         * lib/unictype/categ_C.h: Likewise.
21450         * lib/unictype/categ_Cn.h: Likewise.
21451         * lib/unictype/categ_L.h: Likewise.
21452         * lib/unictype/categ_Ll.h: Likewise.
21453         * lib/unictype/categ_Lm.h: Likewise.
21454         * lib/unictype/categ_Lo.h: Likewise.
21455         * lib/unictype/categ_Lu.h: Likewise.
21456         * lib/unictype/categ_M.h: Likewise.
21457         * lib/unictype/categ_Mc.h: Likewise.
21458         * lib/unictype/categ_Me.h: Likewise.
21459         * lib/unictype/categ_Mn.h: Likewise.
21460         * lib/unictype/categ_N.h: Likewise.
21461         * lib/unictype/categ_Nd.h: Likewise.
21462         * lib/unictype/categ_No.h: Likewise.
21463         * lib/unictype/categ_P.h: Likewise.
21464         * lib/unictype/categ_Po.h: Likewise.
21465         * lib/unictype/categ_S.h: Likewise.
21466         * lib/unictype/categ_Sc.h: Likewise.
21467         * lib/unictype/categ_Sk.h: Likewise.
21468         * lib/unictype/categ_Sm.h: Likewise.
21469         * lib/unictype/categ_So.h: Likewise.
21470         * lib/unictype/categ_of.h: Likewise.
21471         * lib/unictype/combining.h: Likewise.
21472         * lib/unictype/ctype_alnum.h: Likewise.
21473         * lib/unictype/ctype_alpha.h: Likewise.
21474         * lib/unictype/ctype_graph.h: Likewise.
21475         * lib/unictype/ctype_lower.h: Likewise.
21476         * lib/unictype/ctype_print.h: Likewise.
21477         * lib/unictype/ctype_punct.h: Likewise.
21478         * lib/unictype/ctype_upper.h: Likewise.
21479         * lib/unictype/decdigit.h: Likewise.
21480         * lib/unictype/digit.h: Likewise.
21481         * lib/unictype/numeric.h: Likewise.
21482         * lib/unictype/pr_alphabetic.h: Likewise.
21483         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21484         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21485         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21486         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21487         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21488         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21489         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21490         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21491         * lib/unictype/pr_case_ignorable.h: Likewise.
21492         * lib/unictype/pr_cased.h: Likewise.
21493         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21494         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21495         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21496         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21497         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21498         * lib/unictype/pr_combining.h: Likewise.
21499         * lib/unictype/pr_composite.h: Likewise.
21500         * lib/unictype/pr_currency_symbol.h: Likewise.
21501         * lib/unictype/pr_decimal_digit.h: Likewise.
21502         * lib/unictype/pr_deprecated.h: Likewise.
21503         * lib/unictype/pr_format_control.h: Likewise.
21504         * lib/unictype/pr_grapheme_base.h: Likewise.
21505         * lib/unictype/pr_grapheme_extend.h: Likewise.
21506         * lib/unictype/pr_grapheme_link.h: Likewise.
21507         * lib/unictype/pr_id_continue.h: Likewise.
21508         * lib/unictype/pr_id_start.h: Likewise.
21509         * lib/unictype/pr_ideographic.h: Likewise.
21510         * lib/unictype/pr_lowercase.h: Likewise.
21511         * lib/unictype/pr_math.h: Likewise.
21512         * lib/unictype/pr_numeric.h: Likewise.
21513         * lib/unictype/pr_other_alphabetic.h: Likewise.
21514         * lib/unictype/pr_other_id_continue.h: Likewise.
21515         * lib/unictype/pr_other_math.h: Likewise.
21516         * lib/unictype/pr_punctuation.h: Likewise.
21517         * lib/unictype/pr_sentence_terminal.h: Likewise.
21518         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21519         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21520         * lib/unictype/pr_unified_ideograph.h: Likewise.
21521         * lib/unictype/pr_uppercase.h: Likewise.
21522         * lib/unictype/pr_xid_continue.h: Likewise.
21523         * lib/unictype/pr_xid_start.h: Likewise.
21524         * lib/unictype/scripts.h: Likewise.
21525         * lib/unictype/scripts_byname.gperf: Likewise.
21526         * lib/unictype/sy_java_ident.h: Likewise.
21527         * lib/unigbrk/gbrkprop.h: Likewise.
21528         * lib/unilbrk/lbrkprop1.h: Likewise.
21529         * lib/unilbrk/lbrkprop2.h: Likewise.
21530         * lib/uninorm/decomposition-table2.h: Likewise.
21531         * lib/uniwbrk/wbrkprop.h: Likewise.
21532         * tests/unicase/test-cased.c: Likewise.
21533         * tests/unicase/test-ignorable.c: Likewise.
21534         * tests/unicase/test-uc_tolower.c: Likewise.
21535         * tests/unicase/test-uc_totitle.c: Likewise.
21536         * tests/unicase/test-uc_toupper.c: Likewise.
21537         * tests/unictype/test-categ_C.c: Likewise.
21538         * tests/unictype/test-categ_Cn.c: Likewise.
21539         * tests/unictype/test-categ_L.c: Likewise.
21540         * tests/unictype/test-categ_Ll.c: Likewise.
21541         * tests/unictype/test-categ_Lm.c: Likewise.
21542         * tests/unictype/test-categ_Lo.c: Likewise.
21543         * tests/unictype/test-categ_Lu.c: Likewise.
21544         * tests/unictype/test-categ_M.c: Likewise.
21545         * tests/unictype/test-categ_Mc.c: Likewise.
21546         * tests/unictype/test-categ_Me.c: Likewise.
21547         * tests/unictype/test-categ_Mn.c: Likewise.
21548         * tests/unictype/test-categ_N.c: Likewise.
21549         * tests/unictype/test-categ_Nd.c: Likewise.
21550         * tests/unictype/test-categ_No.c: Likewise.
21551         * tests/unictype/test-categ_P.c: Likewise.
21552         * tests/unictype/test-categ_Po.c: Likewise.
21553         * tests/unictype/test-categ_S.c: Likewise.
21554         * tests/unictype/test-categ_Sc.c: Likewise.
21555         * tests/unictype/test-categ_Sk.c: Likewise.
21556         * tests/unictype/test-categ_Sm.c: Likewise.
21557         * tests/unictype/test-categ_So.c: Likewise.
21558         * tests/unictype/test-ctype_alnum.c: Likewise.
21559         * tests/unictype/test-ctype_alpha.c: Likewise.
21560         * tests/unictype/test-ctype_graph.c: Likewise.
21561         * tests/unictype/test-ctype_lower.c: Likewise.
21562         * tests/unictype/test-ctype_print.c: Likewise.
21563         * tests/unictype/test-ctype_punct.c: Likewise.
21564         * tests/unictype/test-ctype_upper.c: Likewise.
21565         * tests/unictype/test-decdigit.h: Likewise.
21566         * tests/unictype/test-digit.h: Likewise.
21567         * tests/unictype/test-numeric.h: Likewise.
21568         * tests/unictype/test-pr_alphabetic.c: Likewise.
21569         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21570         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21571         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21572         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21573         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21574         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21575         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21576         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21577         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21578         * tests/unictype/test-pr_cased.c: Likewise.
21579         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21580         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21581         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21582         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21583         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21584         * tests/unictype/test-pr_combining.c: Likewise.
21585         * tests/unictype/test-pr_composite.c: Likewise.
21586         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21587         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21588         * tests/unictype/test-pr_deprecated.c: Likewise.
21589         * tests/unictype/test-pr_format_control.c: Likewise.
21590         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21591         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21592         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21593         * tests/unictype/test-pr_id_continue.c: Likewise.
21594         * tests/unictype/test-pr_id_start.c: Likewise.
21595         * tests/unictype/test-pr_ideographic.c: Likewise.
21596         * tests/unictype/test-pr_lowercase.c: Likewise.
21597         * tests/unictype/test-pr_math.c: Likewise.
21598         * tests/unictype/test-pr_numeric.c: Likewise.
21599         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21600         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21601         * tests/unictype/test-pr_other_math.c: Likewise.
21602         * tests/unictype/test-pr_punctuation.c: Likewise.
21603         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21604         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21605         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21606         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21607         * tests/unictype/test-pr_uppercase.c: Likewise.
21608         * tests/unictype/test-pr_xid_continue.c: Likewise.
21609         * tests/unictype/test-pr_xid_start.c: Likewise.
21610         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21611         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21612         changes.
21613         * lib/unictype/categ_Cc.h: Likewise.
21614         * lib/unictype/categ_Cf.h: Likewise.
21615         * lib/unictype/categ_Co.h: Likewise.
21616         * lib/unictype/categ_Cs.h: Likewise.
21617         * lib/unictype/categ_Lt.h: Likewise.
21618         * lib/unictype/categ_Nl.h: Likewise.
21619         * lib/unictype/categ_Pc.h: Likewise.
21620         * lib/unictype/categ_Pd.h: Likewise.
21621         * lib/unictype/categ_Pe.h: Likewise.
21622         * lib/unictype/categ_Pf.h: Likewise.
21623         * lib/unictype/categ_Pi.h: Likewise.
21624         * lib/unictype/categ_Ps.h: Likewise.
21625         * lib/unictype/categ_Z.h: Likewise.
21626         * lib/unictype/categ_Zl.h: Likewise.
21627         * lib/unictype/categ_Zp.h: Likewise.
21628         * lib/unictype/categ_Zs.h: Likewise.
21629         * lib/unictype/ctype_blank.h: Likewise.
21630         * lib/unictype/ctype_cntrl.h: Likewise.
21631         * lib/unictype/ctype_digit.h: Likewise.
21632         * lib/unictype/ctype_space.h: Likewise.
21633         * lib/unictype/ctype_xdigit.h: Likewise.
21634         * lib/unictype/mirror.h: Likewise.
21635         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21636         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21637         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21638         * lib/unictype/pr_bidi_control.h: Likewise.
21639         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21640         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21641         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21642         * lib/unictype/pr_bidi_pdf.h: Likewise.
21643         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21644         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21645         * lib/unictype/pr_dash.h: Likewise.
21646         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21647         * lib/unictype/pr_diacritic.h: Likewise.
21648         * lib/unictype/pr_extender.h: Likewise.
21649         * lib/unictype/pr_hex_digit.h: Likewise.
21650         * lib/unictype/pr_hyphen.h: Likewise.
21651         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21652         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21653         * lib/unictype/pr_ignorable_control.h: Likewise.
21654         * lib/unictype/pr_iso_control.h: Likewise.
21655         * lib/unictype/pr_join_control.h: Likewise.
21656         * lib/unictype/pr_left_of_pair.h: Likewise.
21657         * lib/unictype/pr_line_separator.h: Likewise.
21658         * lib/unictype/pr_logical_order_exception.h: Likewise.
21659         * lib/unictype/pr_non_break.h: Likewise.
21660         * lib/unictype/pr_not_a_character.h: Likewise.
21661         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21662         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21663         * lib/unictype/pr_other_id_start.h: Likewise.
21664         * lib/unictype/pr_other_lowercase.h: Likewise.
21665         * lib/unictype/pr_other_uppercase.h: Likewise.
21666         * lib/unictype/pr_paired_punctuation.h: Likewise.
21667         * lib/unictype/pr_paragraph_separator.h: Likewise.
21668         * lib/unictype/pr_pattern_syntax.h: Likewise.
21669         * lib/unictype/pr_pattern_white_space.h: Likewise.
21670         * lib/unictype/pr_private_use.h: Likewise.
21671         * lib/unictype/pr_quotation_mark.h: Likewise.
21672         * lib/unictype/pr_radical.h: Likewise.
21673         * lib/unictype/pr_soft_dotted.h: Likewise.
21674         * lib/unictype/pr_space.h: Likewise.
21675         * lib/unictype/pr_titlecase.h: Likewise.
21676         * lib/unictype/pr_variation_selector.h: Likewise.
21677         * lib/unictype/pr_white_space.h: Likewise.
21678         * lib/unictype/pr_zero_width.h: Likewise.
21679         * lib/unictype/sy_c_ident.h: Likewise.
21680         * lib/unictype/sy_c_whitespace.h: Likewise.
21681         * lib/unictype/sy_java_whitespace.h: Likewise.
21682         * lib/uninorm/composition-table.gperf: Likewise.
21683         * lib/uninorm/decomposition-table1.h: Likewise.
21684         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21685         LB8.
21686         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21687         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21688         * modules/unictype/*: Bump version number of expected libunistring
21689         version.
21690
21691 2011-01-09  Bruno Haible  <bruno@clisp.org>
21692
21693         Update to Unicode 5.2.0.
21694         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21695         trailing whitespace removed.
21696
21697 2011-01-09  Bruno Haible  <bruno@clisp.org>
21698
21699         New Unicode character properties, from Unicode 5.2.0.
21700         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21701         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21702         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21703         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21704         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21705         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21706         uc_is_property_cased, uc_is_property_case_ignorable,
21707         uc_is_property_changes_when_lowercased,
21708         uc_is_property_changes_when_uppercased,
21709         uc_is_property_changes_when_titlecased,
21710         uc_is_property_changes_when_casefolded,
21711         uc_is_property_changes_when_casemapped): New declarations.
21712         * lib/unictype/pr_byname.gperf: Add the new properties.
21713         * modules/unictype/property-byname (Depends-on): Depend on the new
21714         properties modules.
21715         * modules/unictype/property-all (Depends-on): Likewise.
21716         * MODULES.html.sh (Unicode string functions): Add
21717         unictype/property-case-ignorable, unictype/property-cased,
21718         unictype/property-changes-when-casefolded,
21719         unictype/property-changes-when-casemapped,
21720         unictype/property-changes-when-lowercased,
21721         unictype/property-changes-when-titlecased,
21722         unictype/property-changes-when-uppercased.
21723
21724         New module 'unictype/property-changes-when-casemapped'.
21725         * modules/unictype/property-changes-when-casemapped: New file.
21726         * lib/unictype/pr_changes_when_casemapped.c: New file.
21727         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21728         generated by gen-uni-tables.
21729         * modules/unictype/property-changes-when-casemapped-tests: New file.
21730         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21731         automatically generated by gen-uni-tables.
21732
21733         New module 'unictype/property-changes-when-casefolded'.
21734         * modules/unictype/property-changes-when-casefolded: New file.
21735         * lib/unictype/pr_changes_when_casefolded.c: New file.
21736         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21737         generated by gen-uni-tables.
21738         * modules/unictype/property-changes-when-casefolded-tests: New file.
21739         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21740         automatically generated by gen-uni-tables.
21741
21742         New module 'unictype/property-changes-when-titlecased'.
21743         * modules/unictype/property-changes-when-titlecased: New file.
21744         * lib/unictype/pr_changes_when_titlecased.c: New file.
21745         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21746         generated by gen-uni-tables.
21747         * modules/unictype/property-changes-when-titlecased-tests: New file.
21748         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21749         automatically generated by gen-uni-tables.
21750
21751         New module 'unictype/property-changes-when-uppercased'.
21752         * modules/unictype/property-changes-when-uppercased: New file.
21753         * lib/unictype/pr_changes_when_uppercased.c: New file.
21754         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21755         generated by gen-uni-tables.
21756         * modules/unictype/property-changes-when-uppercased-tests: New file.
21757         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21758         automatically generated by gen-uni-tables.
21759
21760         New module 'unictype/property-changes-when-lowercased'.
21761         * modules/unictype/property-changes-when-lowercased: New file.
21762         * lib/unictype/pr_changes_when_lowercased.c: New file.
21763         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21764         generated by gen-uni-tables.
21765         * modules/unictype/property-changes-when-lowercased-tests: New file.
21766         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21767         automatically generated by gen-uni-tables.
21768
21769         New module 'unictype/property-case-ignorable'.
21770         * modules/unictype/property-case-ignorable: New file.
21771         * lib/unictype/pr_case_ignorable.c: New file.
21772         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21773         by gen-uni-tables.
21774         * modules/unictype/property-case-ignorable-tests: New file.
21775         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21776         generated by gen-uni-tables.
21777
21778         New module 'unictype/property-cased'.
21779         * modules/unictype/property-cased: New file.
21780         * lib/unictype/pr_cased.c: New file.
21781         * lib/unictype/pr_cased.h: New file, automatically generated by
21782         gen-uni-tables.
21783         * modules/unictype/property-cased-tests: New file.
21784         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21785         gen-uni-tables.
21786
21787 2011-01-09  Bruno Haible  <bruno@clisp.org>
21788
21789         Update to Unicode 5.2.0.
21790         * lib/gen-uni-tables.c (output_predicate, output_category,
21791         output_combclass, output_bidi_category, output_decimal_digit_test,
21792         output_decimal_digit, output_digit_test, output_digit,
21793         output_numeric_test, output_numeric, output_mirror, output_scripts,
21794         output_scripts_byname, output_blocks, output_ident_category): Fix
21795         comment header.
21796         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21797         get_wbp.
21798         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21799         items.
21800         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21801         Changes_When_Lowercased, Changes_When_Uppercased,
21802         Changes_When_Titlecased, Changes_When_Casefolded,
21803         Changes_When_Casemapped.
21804         (is_property_alphabetic, is_property_default_ignorable_code_point):
21805         Update for Unicode 5.2.0.
21806         (is_property_cased, is_property_case_ignorable,
21807         is_property_changes_when_lowercased,
21808         is_property_changes_when_uppercased,
21809         is_property_changes_when_titlecased,
21810         is_property_changes_when_casefolded,
21811         is_property_changes_when_casemapped): New functions.
21812         (output_properties): Output also the properties cased, case_ignorable,
21813         changes_when_lowercased, changes_when_uppercased,
21814         changes_when_titlecased, changes_when_casefolded,
21815         changes_when_casemapped.
21816         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21817         Unicode TR#11 revision 17 -> 19.
21818         (LBP_CP): New enumeration value.
21819         (LBP_*): Adjust values accordingly.
21820         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21821         TR#14 revision 22 -> 24.
21822         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21823         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21824         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21825         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21826         is_WBP_MIDLETTER.
21827         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21828         the code1 and code2 of each composition rule.
21829         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21830         * lib/unicase/ignorable.h: Likewise.
21831         * lib/unicase/tocasefold.h: Likewise.
21832         * lib/unicase/tolower.h: Likewise.
21833         * lib/unicase/totitle.h: Likewise.
21834         * lib/unicase/toupper.h: Likewise.
21835         * lib/unictype/bidi_of.h: Likewise.
21836         * lib/unictype/blocks.h: Likewise.
21837         * lib/unictype/categ_C.h: Likewise.
21838         * lib/unictype/categ_Cf.h: Likewise.
21839         * lib/unictype/categ_Cn.h: Likewise.
21840         * lib/unictype/categ_L.h: Likewise.
21841         * lib/unictype/categ_Ll.h: Likewise.
21842         * lib/unictype/categ_Lm.h: Likewise.
21843         * lib/unictype/categ_Lo.h: Likewise.
21844         * lib/unictype/categ_Lu.h: Likewise.
21845         * lib/unictype/categ_M.h: Likewise.
21846         * lib/unictype/categ_Mc.h: Likewise.
21847         * lib/unictype/categ_Mn.h: Likewise.
21848         * lib/unictype/categ_N.h: Likewise.
21849         * lib/unictype/categ_Nd.h: Likewise.
21850         * lib/unictype/categ_Nl.h: Likewise.
21851         * lib/unictype/categ_No.h: Likewise.
21852         * lib/unictype/categ_P.h: Likewise.
21853         * lib/unictype/categ_Pd.h: Likewise.
21854         * lib/unictype/categ_Po.h: Likewise.
21855         * lib/unictype/categ_S.h: Likewise.
21856         * lib/unictype/categ_Sc.h: Likewise.
21857         * lib/unictype/categ_So.h: Likewise.
21858         * lib/unictype/categ_of.h: Likewise.
21859         * lib/unictype/combining.h: Likewise.
21860         * lib/unictype/ctype_alnum.h: Likewise.
21861         * lib/unictype/ctype_alpha.h: Likewise.
21862         * lib/unictype/ctype_graph.h: Likewise.
21863         * lib/unictype/ctype_lower.h: Likewise.
21864         * lib/unictype/ctype_print.h: Likewise.
21865         * lib/unictype/ctype_punct.h: Likewise.
21866         * lib/unictype/ctype_upper.h: Likewise.
21867         * lib/unictype/decdigit.h: Likewise.
21868         * lib/unictype/digit.h: Likewise.
21869         * lib/unictype/numeric.h: Likewise.
21870         * lib/unictype/pr_alphabetic.h: Likewise.
21871         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21872         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21873         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21874         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21875         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21876         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21877         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21878         * lib/unictype/pr_combining.h: Likewise.
21879         * lib/unictype/pr_composite.h: Likewise.
21880         * lib/unictype/pr_currency_symbol.h: Likewise.
21881         * lib/unictype/pr_dash.h: Likewise.
21882         * lib/unictype/pr_decimal_digit.h: Likewise.
21883         * lib/unictype/pr_deprecated.h: Likewise.
21884         * lib/unictype/pr_diacritic.h: Likewise.
21885         * lib/unictype/pr_extender.h: Likewise.
21886         * lib/unictype/pr_grapheme_base.h: Likewise.
21887         * lib/unictype/pr_grapheme_extend.h: Likewise.
21888         * lib/unictype/pr_grapheme_link.h: Likewise.
21889         * lib/unictype/pr_id_continue.h: Likewise.
21890         * lib/unictype/pr_id_start.h: Likewise.
21891         * lib/unictype/pr_ideographic.h: Likewise.
21892         * lib/unictype/pr_ignorable_control.h: Likewise.
21893         * lib/unictype/pr_logical_order_exception.h: Likewise.
21894         * lib/unictype/pr_lowercase.h: Likewise.
21895         * lib/unictype/pr_numeric.h: Likewise.
21896         * lib/unictype/pr_other_alphabetic.h: Likewise.
21897         * lib/unictype/pr_punctuation.h: Likewise.
21898         * lib/unictype/pr_sentence_terminal.h: Likewise.
21899         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21900         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21901         * lib/unictype/pr_unified_ideograph.h: Likewise.
21902         * lib/unictype/pr_uppercase.h: Likewise.
21903         * lib/unictype/pr_xid_continue.h: Likewise.
21904         * lib/unictype/pr_xid_start.h: Likewise.
21905         * lib/unictype/pr_zero_width.h: Likewise.
21906         * lib/unictype/scripts.h: Likewise.
21907         * lib/unictype/scripts_byname.gperf: Likewise.
21908         * lib/unictype/sy_java_ident.h: Likewise.
21909         * lib/unigbrk/gbrkprop.h: Likewise.
21910         * lib/unilbrk/lbrkprop1.h: Likewise.
21911         * lib/unilbrk/lbrkprop2.h: Likewise.
21912         * lib/unilbrk/lbrktables.h: Likewise.
21913         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21914         LBP_CP. Implement rule LB30.
21915         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21916         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21917         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21918         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21919         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21920         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21921         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21922         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21923         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21924         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21925         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21926         bits instead of 16 bits in the code1 and code2 of each composition
21927         rule.
21928         (uc_composition): Update for Unicode 5.2.0.
21929         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21930         * lib/uninorm/decomposition-table2.h: Likewise.
21931         * lib/uniwbrk/wbrkprop.h: Likewise.
21932         * tests/unicase/test-cased.c: Likewise.
21933         * tests/unicase/test-ignorable.c: Likewise.
21934         * tests/unicase/test-uc_tolower.c: Likewise.
21935         * tests/unicase/test-uc_totitle.c: Likewise.
21936         * tests/unicase/test-uc_toupper.c: Likewise.
21937         * tests/unictype/test-categ_C.c: Likewise.
21938         * tests/unictype/test-categ_Cf.c: Likewise.
21939         * tests/unictype/test-categ_Cn.c: Likewise.
21940         * tests/unictype/test-categ_L.c: Likewise.
21941         * tests/unictype/test-categ_Ll.c: Likewise.
21942         * tests/unictype/test-categ_Lm.c: Likewise.
21943         * tests/unictype/test-categ_Lo.c: Likewise.
21944         * tests/unictype/test-categ_Lu.c: Likewise.
21945         * tests/unictype/test-categ_M.c: Likewise.
21946         * tests/unictype/test-categ_Mc.c: Likewise.
21947         * tests/unictype/test-categ_Mn.c: Likewise.
21948         * tests/unictype/test-categ_N.c: Likewise.
21949         * tests/unictype/test-categ_Nd.c: Likewise.
21950         * tests/unictype/test-categ_Nl.c: Likewise.
21951         * tests/unictype/test-categ_No.c: Likewise.
21952         * tests/unictype/test-categ_P.c: Likewise.
21953         * tests/unictype/test-categ_Pd.c: Likewise.
21954         * tests/unictype/test-categ_Po.c: Likewise.
21955         * tests/unictype/test-categ_S.c: Likewise.
21956         * tests/unictype/test-categ_Sc.c: Likewise.
21957         * tests/unictype/test-categ_So.c: Likewise.
21958         * tests/unictype/test-ctype_alnum.c: Likewise.
21959         * tests/unictype/test-ctype_alpha.c: Likewise.
21960         * tests/unictype/test-ctype_graph.c: Likewise.
21961         * tests/unictype/test-ctype_lower.c: Likewise.
21962         * tests/unictype/test-ctype_print.c: Likewise.
21963         * tests/unictype/test-ctype_punct.c: Likewise.
21964         * tests/unictype/test-ctype_upper.c: Likewise.
21965         * tests/unictype/test-decdigit.h: Likewise.
21966         * tests/unictype/test-digit.h: Likewise.
21967         * tests/unictype/test-numeric.h: Likewise.
21968         * tests/unictype/test-pr_alphabetic.c: Likewise.
21969         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21970         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21971         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21972         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21973         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21974         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21975         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21976         * tests/unictype/test-pr_combining.c: Likewise.
21977         * tests/unictype/test-pr_composite.c: Likewise.
21978         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21979         * tests/unictype/test-pr_dash.c: Likewise.
21980         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21981         * tests/unictype/test-pr_deprecated.c: Likewise.
21982         * tests/unictype/test-pr_diacritic.c: Likewise.
21983         * tests/unictype/test-pr_extender.c: Likewise.
21984         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21985         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21986         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21987         * tests/unictype/test-pr_id_continue.c: Likewise.
21988         * tests/unictype/test-pr_id_start.c: Likewise.
21989         * tests/unictype/test-pr_ideographic.c: Likewise.
21990         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21991         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21992         * tests/unictype/test-pr_lowercase.c: Likewise.
21993         * tests/unictype/test-pr_numeric.c: Likewise.
21994         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21995         * tests/unictype/test-pr_punctuation.c: Likewise.
21996         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21997         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21998         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21999         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22000         * tests/unictype/test-pr_uppercase.c: Likewise.
22001         * tests/unictype/test-pr_xid_continue.c: Likewise.
22002         * tests/unictype/test-pr_xid_start.c: Likewise.
22003         * tests/unictype/test-pr_zero_width.c: Likewise.
22004         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22005         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22006         changed behaviour: line breaking is now disallowed between a letter
22007         or '=' and '('.
22008         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22009         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22010         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22011         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22012         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22013         lib/uniwidth/width.c.
22014         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22015         without comments, but with the original copyright notice.
22016         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22017         changes.
22018         * lib/unictype/categ_Cc.h: Likewise.
22019         * lib/unictype/categ_Co.h: Likewise.
22020         * lib/unictype/categ_Cs.h: Likewise.
22021         * lib/unictype/categ_Lt.h: Likewise.
22022         * lib/unictype/categ_Me.h: Likewise.
22023         * lib/unictype/categ_Pc.h: Likewise.
22024         * lib/unictype/categ_Pe.h: Likewise.
22025         * lib/unictype/categ_Pf.h: Likewise.
22026         * lib/unictype/categ_Pi.h: Likewise.
22027         * lib/unictype/categ_Ps.h: Likewise.
22028         * lib/unictype/categ_Sk.h: Likewise.
22029         * lib/unictype/categ_Sm.h: Likewise.
22030         * lib/unictype/categ_Z.h: Likewise.
22031         * lib/unictype/categ_Zl.h: Likewise.
22032         * lib/unictype/categ_Zp.h: Likewise.
22033         * lib/unictype/categ_Zs.h: Likewise.
22034         * lib/unictype/ctype_blank.h: Likewise.
22035         * lib/unictype/ctype_cntrl.h: Likewise.
22036         * lib/unictype/ctype_digit.h: Likewise.
22037         * lib/unictype/ctype_space.h: Likewise.
22038         * lib/unictype/ctype_xdigit.h: Likewise.
22039         * lib/unictype/mirror.h: Likewise.
22040         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22041         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22042         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22043         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22044         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22045         * lib/unictype/pr_bidi_control.h: Likewise.
22046         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22047         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22048         * lib/unictype/pr_bidi_pdf.h: Likewise.
22049         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22050         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22051         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22052         * lib/unictype/pr_format_control.h: Likewise.
22053         * lib/unictype/pr_hex_digit.h: Likewise.
22054         * lib/unictype/pr_hyphen.h: Likewise.
22055         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22056         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22057         * lib/unictype/pr_iso_control.h: Likewise.
22058         * lib/unictype/pr_join_control.h: Likewise.
22059         * lib/unictype/pr_left_of_pair.h: Likewise.
22060         * lib/unictype/pr_line_separator.h: Likewise.
22061         * lib/unictype/pr_math.h: Likewise.
22062         * lib/unictype/pr_non_break.h: Likewise.
22063         * lib/unictype/pr_not_a_character.h: Likewise.
22064         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22065         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22066         * lib/unictype/pr_other_id_continue.h: Likewise.
22067         * lib/unictype/pr_other_id_start.h: Likewise.
22068         * lib/unictype/pr_other_lowercase.h: Likewise.
22069         * lib/unictype/pr_other_math.h: Likewise.
22070         * lib/unictype/pr_other_uppercase.h: Likewise.
22071         * lib/unictype/pr_paired_punctuation.h: Likewise.
22072         * lib/unictype/pr_paragraph_separator.h: Likewise.
22073         * lib/unictype/pr_pattern_syntax.h: Likewise.
22074         * lib/unictype/pr_pattern_white_space.h: Likewise.
22075         * lib/unictype/pr_private_use.h: Likewise.
22076         * lib/unictype/pr_quotation_mark.h: Likewise.
22077         * lib/unictype/pr_radical.h: Likewise.
22078         * lib/unictype/pr_soft_dotted.h: Likewise.
22079         * lib/unictype/pr_space.h: Likewise.
22080         * lib/unictype/pr_titlecase.h: Likewise.
22081         * lib/unictype/pr_variation_selector.h: Likewise.
22082         * lib/unictype/pr_white_space.h: Likewise.
22083         * lib/unictype/sy_c_ident.h: Likewise.
22084         * lib/unictype/sy_c_whitespace.h: Likewise.
22085         * lib/unictype/sy_java_whitespace.h: Likewise.
22086         * modules/uni*/*: Bump version number of expected libunistring version.
22087         Reported by Simon Josefsson.
22088
22089 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22090
22091         useless-if-before-free: fix typo in --help and make the internal,
22092         automatic version date update process work once again.
22093         --help output contained a NUL character instead of the
22094         backslash-zero that was intended.  Also, the "must lie within
22095         the first 8 lines" line is on line 9, and hence not getting
22096         automatically updated.
22097         * build-aux/useless-if-before-free: Fix the former by adding a
22098         backslash, and the latter by condensing the three lines of what-it-does
22099         to a single line, leaving one line of slack for the future.
22100
22101 2011-01-09  Bruno Haible  <bruno@clisp.org>
22102
22103         uniwidth/width: Fix width of U+1D173..U+1D17A.
22104         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22105         symbolic_width, output_width_property_test): New functions.
22106         (main): Invoke output_nonspacing_property, output_width_property_test.
22107         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22108         U+1D173..U+1D17A.
22109         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22110         1.
22111         * modules/uniwidth/*: Bump version number of expected libunistring
22112         version.
22113         * modules/unilbrk/*: Likewise.
22114
22115 2011-01-08  Bruno Haible  <bruno@clisp.org>
22116
22117         uninorm tests: Preserve copyright of Unicode data file.
22118         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22119         Mention modifications.
22120
22121 2011-01-08  Bruno Haible  <bruno@clisp.org>
22122
22123         gen-uni-tables: Prepare for Unicode 5.2.0.
22124         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22125         (debug_output_lbp, output_lbp): Update.
22126
22127 2011-01-08  Bruno Haible  <bruno@clisp.org>
22128
22129         unilbrk: Clarify gen-uni-tables.c code.
22130         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22131         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22132         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22133
22134 2011-01-07  Bruno Haible  <bruno@clisp.org>
22135
22136         strtod: Restore errno when successfully parsing Infinity or NaN.
22137         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22138         restore the original errno.
22139
22140 2011-01-07  Bruno Haible  <bruno@clisp.org>
22141
22142         remove test: Avoid failure on HP-UX 11.
22143         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22144
22145 2011-01-07  Bruno Haible  <bruno@clisp.org>
22146
22147         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22148         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22149         error code.
22150
22151 2011-01-07  Pádraig Brady <P@draigBrady.com>
22152
22153         ignore-value: fixup comments, and add Eric Blake
22154         as an author since he rewrote the macros.
22155         * lib/ignore-value.h (ignore_value):  State that
22156         we now support aggregates.  Also specify exactly
22157         when the GCC warn_unused_result feature was added.
22158
22159 2011-01-06  Eric Blake  <eblake@redhat.com>
22160
22161         ignore-value: support aggregate types
22162         * lib/ignore-value.h (ignore_value): Provide separate gcc
22163         definition.
22164         * modules/ignore-value-tests: New test module.
22165         * tests/test-ignore-value.c: New test.
22166
22167         maint.mk: improve sc_prohibit_strcmp regex
22168         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22169         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22170         definition of STRNEQ.
22171
22172         signal: work around Haiku issue with SIGBUS
22173         * lib/siglist.h: Add comment.
22174         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22175         strsignal's favoring of SIGSEGV.
22176         * tests/test-signal.c (main): Avoid test failure.
22177         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22178         Reported by Scott McCreary.
22179
22180         maint.mk: add pre-release check to ensure submodule commits are public
22181         * top/maint.mk (public-submodule-commit): New rule.
22182         (submodule-checks): New variable.
22183         (alpha beta stable): Depend on the variable.
22184
22185 2011-01-05  Pádraig Brady <P@draigBrady.com>
22186         and Jim Meyering  <meyering@redhat.com>
22187
22188         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22189         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22190         (ATTRIBUTE_DEPRECATED): Define.
22191         (_ignore_case): New function.
22192         (ignore_value): New macro, to replace the old function.
22193         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22194         * modules/ignore-value (Depends-on): Add stdint.
22195
22196 2011-01-04  Eric Blake  <eblake@redhat.com>
22197
22198         doc: regenerate INSTALL
22199         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22200         @firstparagraphindent support, now that autoconf dropped it.
22201         (INSTALL_PRELUDE): Reinstate old macro.
22202         * doc/install.texi: Resync from autoconf.
22203         * doc/INSTALL: Reflect recent autoconf update.
22204         * doc/INSTALL.ISO: Likewise.
22205         * doc/INSTALL.UTF-8: Likewise.
22206         Reported by Karl Berry.
22207
22208 2011-01-04  Bruce Korb  <address@hidden>
22209
22210         git-version-gen: avoid a sub-shell
22211         * build-aux/git-version-gen: Redirect stderr in `...` via
22212         "exec 2>...", rather than via an added sub-shell.
22213
22214 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22215
22216         git-version-gen: use (...) rather than sh -c '...'
22217         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22218         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22219
22220 2011-01-03  Jim Meyering  <meyering@redhat.com>
22221
22222         git-version-gen: convert leading TABs to spaces
22223         * build-aux/git-version-gen: Expand leading TABs.
22224
22225         git-version-gen: handle failed "git rev-list"
22226         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22227         from git and proceeding as if it had succeeded but printed no SHA1
22228         checksums, suppress the diagnostic and handle the failure.
22229         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22230
22231         git-version-gen: include command name in one more diagnostic
22232         * build-aux/git-version-gen: When the required .tarball-version file
22233         was missing or unreadable, you might see the diagnostic from "cat",
22234         but no trace of the name of the invoking script.  Now, you still see
22235         the diagnostic from cat, but also get one from "git-version-gen: ".
22236         Inspired by a patch from Bruce Korb.
22237
22238         update-copyright: adjust test to match changed code
22239         * tests/test-update-copyright.sh: Change test's expected output
22240         to match new actual output.
22241
22242 2011-01-02  Bruno Haible  <bruno@clisp.org>
22243
22244         getlogin_r: Avoid test failure on HP-UX 11.
22245         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22246         ERANGE when the second argument is zero.
22247         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22248         portability problem.
22249
22250 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22251
22252         * build-aux/update-copyright: doc Simon's changes
22253
22254 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22255
22256         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22257         environment variable.
22258
22259 2011-01-02  Bruno Haible  <bruno@clisp.org>
22260
22261         unigbrk: Avoid gcc warnings.
22262         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22263         unused variable.
22264         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22265         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22266         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22267         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22268         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22269         Change type of first argument to 'const char *'.
22270         (main): Remove unused variable.
22271         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22272         type of first argument to 'const char *'.
22273         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22274         Likewise.
22275         (main): Change type of variable 's'.
22276         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22277         to 'int'.
22278
22279 2011-01-02  Bruno Haible  <bruno@clisp.org>
22280
22281         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22282         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22283         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22284         bug.
22285         * lib/pwrite.c: Undo 2010-12-31 patch.
22286         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22287
22288 2011-01-02  Bruno Haible  <bruno@clisp.org>
22289
22290         pread: Fix test whether it works.
22291         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22292
22293 2011-01-02  Bruno Haible  <bruno@clisp.org>
22294
22295         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22296         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22297         ends in "6". Don't require a specific month name. Try also the locale
22298         names found on HP-UX 11 and Solaris 7.
22299
22300 2011-01-02  Bruno Haible  <bruno@clisp.org>
22301
22302         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22303         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22304         C linkage.
22305         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22306
22307 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22308
22309         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22310         for consistency, since the "cluster" term is not used elsewhere.
22311         * lib/unigbrk.in.h: Update name.
22312         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22313         * lib/unigbrk/u16-grapheme-next.c: Update name.
22314         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22315         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22316         * lib/unigbrk/u32-grapheme-next.c: Update name.
22317         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22318         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22319         * lib/unigbrk/u8-grapheme-next.c: Update name.
22320         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22321         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22322         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22323         Suggested by Bruno Haible.
22324
22325 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22326
22327         Remove module 'u8-grapheme-len' as too redundant with
22328         'u8-grapheme-next'.
22329         * modules/unigbrk/u8-grapheme-len: Delete file.
22330         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22331         * lib/unigbrk.in.h: Remove prototype for deleted function.
22332         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22333         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22334
22335         Remove module 'u16-grapheme-len' as too redundant with
22336         'u16-grapheme-next'.
22337         * modules/unigbrk/u16-grapheme-len: Delete file.
22338         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22339         * lib/unigbrk.in.h: Remove prototype for deleted function.
22340         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22341         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22342
22343         Remove module 'u32-grapheme-len' as too redundant with
22344         'u32-grapheme-next'.
22345         * modules/unigbrk/u32-grapheme-len: Delete file.
22346         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22347         * lib/unigbrk.in.h: Remove prototype for deleted function.
22348         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22349         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22350
22351         Suggested by Bruno Haible.
22352
22353 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22354
22355         * unigbrk.in.h: Fix typo: "ben" => "been".
22356         Reported by Bruno Haible.
22357
22358 2011-01-01  Jim Meyering  <meyering@redhat.com>
22359
22360         maint: update almost all copyright ranges to include 2011
22361         Run the new "make update-copyright" rule.
22362
22363 2011-01-01  Jim Meyering  <meyering@redhat.com>
22364
22365         maint: update-copyright: exempt doc/INSTALL*
22366         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22367         since they are generated.  Suggested by Bruno Haible.
22368
22369 2011-01-01  Jim Meyering  <meyering@redhat.com>
22370
22371         maint: refine the update-copyright rule
22372         * Makefile (update-copyright): Also exclude any file that includes
22373         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22374         code that merely generates the comment.
22375
22376 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22377
22378         New module 'u8-grapheme-len'.
22379         * modules/unigbrk/u8-grapheme-len: New file.
22380         * modules/unigbrk/u8-grapheme-len-tests: New file.
22381         * lib/unigbrk.in.h: Add prototype for new function.
22382         * lib/unigbrk/u8-grapheme-len.c: New file.
22383         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22384
22385         New module 'u16-grapheme-len'.
22386         * modules/unigbrk/u16-grapheme-len: New file.
22387         * modules/unigbrk/u16-grapheme-len-tests: New file.
22388         * lib/unigbrk.in.h: Add prototype for new function.
22389         * lib/unigbrk/u16-grapheme-len.c: New file.
22390         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22391
22392         New module 'u32-grapheme-len'.
22393         * modules/unigbrk/u32-grapheme-len: New file.
22394         * modules/unigbrk/u32-grapheme-len-tests: New file.
22395         * lib/unigbrk.in.h: Add prototype for new function.
22396         * lib/unigbrk/u32-grapheme-len.c: New file.
22397         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22398
22399         New module 'u8-grapheme-next'.
22400         * modules/unigbrk/u8-grapheme-next: New file.
22401         * modules/unigbrk/u8-grapheme-next-tests: New file.
22402         * lib/unigbrk.in.h: Add prototype for new function.
22403         * lib/unigbrk/u8-grapheme-next.c: New file.
22404         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22405
22406         New module 'u16-grapheme-next'.
22407         * modules/unigbrk/u16-grapheme-next: New file.
22408         * modules/unigbrk/u16-grapheme-next-tests: New file.
22409         * lib/unigbrk.in.h: Add prototype for new function.
22410         * lib/unigbrk/u16-grapheme-next.c: New file.
22411         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22412
22413         New module 'u32-grapheme-next'.
22414         * modules/unigbrk/u32-grapheme-next: New file.
22415         * modules/unigbrk/u32-grapheme-next-tests: New file.
22416         * lib/unigbrk.in.h: Add prototype for new function.
22417         * lib/unigbrk/u32-grapheme-next.c: New file.
22418         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22419
22420         New module 'u8-grapheme-prev'.
22421         * modules/unigbrk/u8-grapheme-prev: New file.
22422         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22423         * lib/unigbrk.in.h: Add prototype for new function.
22424         * lib/unigbrk/u8-grapheme-prev.c: New file.
22425         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22426
22427         New module 'u16-grapheme-prev'.
22428         * modules/unigbrk/u16-grapheme-prev: New file.
22429         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22430         * lib/unigbrk.in.h: Add prototype for new function.
22431         * lib/unigbrk/u16-grapheme-prev.c: New file.
22432         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22433
22434         New module 'u32-grapheme-prev'.
22435         * modules/unigbrk/u32-grapheme-prev: New file.
22436         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22437         * lib/unigbrk.in.h: Add prototype for new function.
22438         * lib/unigbrk/u32-grapheme-prev.c: New file.
22439         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22440
22441         New module 'u8-grapheme-breaks'.
22442         * modules/unigbrk/u8-grapheme-breaks: New file.
22443         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22444         * lib/unigbrk.in.h: Add prototype for new function.
22445         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22446         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22447
22448         New module 'u16-grapheme-breaks'.
22449         * modules/unigbrk/u16-grapheme-breaks: New file.
22450         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22451         * lib/unigbrk.in.h: Add prototype for new function.
22452         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22453         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22454
22455         New module 'u32-grapheme-breaks'.
22456         * modules/unigbrk/u32-grapheme-breaks: New file.
22457         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22458         * lib/unigbrk.in.h: Add prototype for new function.
22459         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22460         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22461
22462         New module 'ulc-grapheme-breaks'.
22463         * modules/unigbrk/ulc-grapheme-breaks: New file.
22464         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22465         * m4/locale-ar.m4: New file.
22466         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22467         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22468         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22469
22470 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22471
22472         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22473         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22474         modified how this file was generated before I initially submitted
22475         the module, but failed to regenerate it.  This meant that several
22476         of the level2 entries were wrong.
22477         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22478         Remove the division-by-2 that is folded into the table now that
22479         gbrkprop.h has been regenerated properly.  Now -1 entries are
22480         handled correctly.
22481
22482         New module 'unigbrk/uc-gbrk-prop-tests'.
22483         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22484         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22485         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22486         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22487
22488 2011-01-01  Bruno Haible  <bruno@clisp.org>
22489
22490         Avoid use of hexadecimal escapes.
22491         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22492         instead of hexadecimal escapes.
22493
22494 2011-01-01  Jim Meyering  <meyering@redhat.com>
22495
22496         maint: new rule to update copyright year ranges
22497         * Makefile (update-copyright): New rule.
22498
22499         maint: indent with TABs in Makefile
22500         * Makefile: Expand leading sequences of spaces to TABs
22501
22502         version-etc: update the copyright year it reports
22503         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22504
22505 2010-12-31  Bruno Haible  <bruno@clisp.org>
22506
22507         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22508         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22509         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22510         zero.
22511
22512 2010-12-31  Bruno Haible  <bruno@clisp.org>
22513
22514         pwrite: Work around HP-UX 11.11 bug.
22515         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22516         works and set REPLACE_PWRITE if not.
22517         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22518         function.
22519         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22520
22521 2010-12-31  Bruno Haible  <bruno@clisp.org>
22522
22523         pread: Work around HP-UX 11 bugs.
22524         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22525         and set REPLACE_PREAD if not.
22526         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22527
22528 2010-12-31  Eric Blake  <eblake@redhat.com>
22529
22530         nl_langinfo: fix YESEXPR on Irix 6.5
22531         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22532         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22533         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22534         it.
22535
22536 2010-12-31  Bruno Haible  <bruno@clisp.org>
22537
22538         iconv: Document HP-UX 11 bug.
22539         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22540
22541 2010-12-31  Bruno Haible  <bruno@clisp.org>
22542
22543         ldexpl: Fix link error on HP-UX 11.
22544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22545         LDEXPL_LIBM, using $ISNANL_LIBM.
22546
22547 2010-12-31  Eric Blake  <eblake@redhat.com>
22548
22549         ftello: avoid compilation failure with SunStudio c89
22550         * lib/ftello.c (ftello): Use lseek, not llseek.
22551
22552         tests: avoid failing coreutils tests on cygwin
22553         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22554         (create_exe_shims_): Return 0 when skipping.
22555
22556 2010-12-31  Bruno Haible  <bruno@clisp.org>
22557
22558         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22559         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22560
22561 2010-12-31  Bruno Haible  <bruno@clisp.org>
22562
22563         waitpid: Fix link error in C++ mode.
22564         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22565
22566 2010-12-31  Bruno Haible  <bruno@clisp.org>
22567
22568         isnan: Use GCC built-ins when possible.
22569         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22570         __builtin_isnan.
22571         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22572         (isnan): Define using GCC built-ins for GCC >= 4.0.
22573
22574 2010-12-31  Bruno Haible  <bruno@clisp.org>
22575
22576         isnand: Fix mistake.
22577         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22578         __builtin_isnand.
22579
22580 2010-12-31  Bruno Haible  <bruno@clisp.org>
22581
22582         open: Avoid C++ error on HP-UX 11.
22583         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22584
22585 2010-12-31  Bruno Haible  <bruno@clisp.org>
22586
22587         time_r: Add missing declarations on HP-UX 11.
22588         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22589         instead of HAVE_LOCALTIME_R.
22590         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22591         HAVE_LOCALTIME_R always.
22592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22593         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22594         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22595         HAVE_LOCALTIME_R.
22596         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22597         * doc/posix-functions/localtime_r.texi: Likewise.
22598
22599 2010-12-29  Eric Blake  <eblake@redhat.com>
22600
22601         mountlist: tweak previous commit
22602         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22603         Reported by Paul Eggert.
22604
22605         mountlist: fix local drive detection on cygwin
22606         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22607         that works for cygwin.
22608
22609 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22610
22611         ftoastr, snprintf: ftoastr + snprintf module
22612         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22613         since the snprintf module now should be good enough here.
22614         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22615         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22616         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22617         GNULIB_SNPRINTF only for the test directory, and the latter
22618         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22619         seems to suffice by itself.
22620
22621 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         alloca: one step towards thread-safety
22624         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22625         need for a static variable.  All callers changed.  This does not
22626         make the alloca replacement thread-safe, but it's one step.
22627
22628         tests: minor indenting change
22629         * tests/init.sh: Sync from coreutils housekeeping patch
22630         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22631         to keep lines within 80 columns.
22632
22633 2010-12-28  Jim Meyering  <meyering@redhat.com>
22634
22635         regex: don't infloop on persistent failing calloc
22636         * lib/regexec.c (build_trtable): Return failure indication upon
22637         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22638         In glibc, this was fixed for version 2.13:
22639         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22640
22641 2010-12-28  Bruno Haible  <bruno@clisp.org>
22642             Paul Eggert <eggert@cs.ucla.edu>
22643
22644         linkat: Make implementation robust against system behaviour variations.
22645         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22646         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22647         way, and to -2 if it needs a generic runtime test.
22648         * lib/linkat.c (solaris_optimized_link_immediate,
22649         solaris_optimized_link_follow): New functions.
22650         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22651         (check_same_link): Use it.
22652
22653 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22654
22655         New module 'unigbrk/base'.
22656         * modules/unigbrk/base: New file.
22657         * lib/unigbrk.in.h: New file.
22658
22659         New module 'unigbrk/uc-gbrk-prop'.
22660         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22661         * modules/unigbrk/uc-gbrk-prop: New file.
22662         * lib/unigbrk/gbrkprop.h: New file.
22663         * lib/unigbrk/uc-gbrk-prop.c: New file.
22664
22665         New module 'unigbrk/uc-is-grapheme-break'.
22666         * modules/unigbrk/uc-is-grapheme-break: New file.
22667         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22668         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22669         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22670         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22671         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22672
22673         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22674
22675 2010-12-27  Bruno Haible  <bruno@clisp.org>
22676
22677         linkat test: Avoid failure on Solaris 11 2010-11.
22678         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22679
22680 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22681
22682         utimens: work around glibc rounding bug on more platforms
22683         * lib/utimens.c (fdutimens): Work around rounding bug even if
22684         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22686
22687 2010-12-27  Bruno Haible  <bruno@clisp.org>
22688
22689         select tests: Improve comments.
22690         * tests/test-select.c (do_select): Add comments.
22691
22692 2010-12-27  Bruno Haible  <bruno@clisp.org>
22693
22694         select tests: Safer way of handling timeout.
22695         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22696         at every invocation.
22697
22698 2010-12-27  Bruno Haible  <bruno@clisp.org>
22699
22700         select tests: Use 'bool' where appropriate.
22701         * tests/test-select.c (connect_to_socket): Change argument type to
22702         'bool'.
22703
22704 2010-12-27  Bruno Haible  <bruno@clisp.org>
22705
22706         select tests: Use existing modules.
22707         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22708         (configure.ac): Don't test for unistd.h.
22709         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22710         declared in <unistd.h>.
22711
22712 2010-12-27  Bruno Haible  <bruno@clisp.org>
22713
22714         mbrtowc: Work around a Solaris 7 bug.
22715         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22716         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22717         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22718         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22719         MBRTOWC_NULL_ARG1_BUG.
22720         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22721         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22722         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22723         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22724
22725 2010-12-27  Jim Meyering  <meyering@redhat.com>
22726
22727         read-file.c: tweak syntax
22728         * lib/read-file.c (fread_file): Remove space after "*" in function
22729         definitions.
22730
22731 2010-12-27  Bruno Haible  <bruno@clisp.org>
22732
22733         times test: Avoid gcc warnings on OSF/1.
22734         * tests/test-times.c (main): Cast printf arguments from clock_t to
22735         'long int'.
22736
22737 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22738
22739         utimens: work around glibc rounding bug on older Linux kernels
22740         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22741         on Linux with a glibc whose utimes might not work, then work
22742         around a longstanding glibc bug involving rounding rather than
22743         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22744         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22745
22746 2010-12-26  Bruno Haible  <bruno@clisp.org>
22747
22748         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22749         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22750         _GL_CXXALIAS_SYS.
22751         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22752
22753 2010-12-26  Bruno Haible  <bruno@clisp.org>
22754
22755         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22756         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22757         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22758         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22759         looking for the declaration.
22760         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22761         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22762         problem.
22763         * doc/posix-functions/inet_pton.texi: Likewise.
22764
22765 2010-12-26  Bruno Haible  <bruno@clisp.org>
22766
22767         arpa_inet: Use the common idioms with C++ support.
22768         * lib/arpa_inet.in.h: Include c++defs.h.
22769         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22770         support.
22771         * modules/arpa_inet (Depends-on): Add c++defs.
22772         (Makefile.am): Substitute the contents of c++defs.h.
22773         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22774         * modules/arpa_inet-c++-tests: New file.
22775         * tests/test-arpa_inet-c++.cc: New file.
22776
22777 2010-12-25  Bruno Haible  <bruno@clisp.org>
22778
22779         Fix more C++ link errors on Solaris 8.
22780         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22781         $(LIB_EACCESS).
22782         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22783         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22784         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22785         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22786         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22787
22788 2010-12-25  Bruno Haible  <bruno@clisp.org>
22789
22790         printf-posix: Fix link error when a non-GCC compiler is used.
22791         * lib/stdio.in.h (printf): When not using GCC, override printf
22792         correctly.
22793         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22794
22795 2010-12-25  Bruno Haible  <bruno@clisp.org>
22796
22797         strerror_r-posix: Update doc.
22798         * doc/posix-functions/strerror_r.texi: Update doc about the return
22799         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22800
22801 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22802
22803         utimens: simplify the logic of the previous change
22804         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22805         This should not affect whether the test succeeds or fails.
22806
22807         utimens: configure better on hosts with NFS clock skew
22808         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22809         uses the clock of the local host.  It might use the clock of the
22810         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22811         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22812
22813 2010-12-25  Bruno Haible  <bruno@clisp.org>
22814
22815         ptsname test: Avoid failure on Solaris.
22816         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22817         open a pseudo-terminal; don't use BSD-style ptys.
22818         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22819
22820 2010-12-25  Bruno Haible  <bruno@clisp.org>
22821
22822         ptsname: Avoid ERANGE failure on some systems.
22823         * lib/ptsname.c (buffer): Increase size.
22824
22825 2010-12-25  Bruno Haible  <bruno@clisp.org>
22826
22827         rename, renameat: Avoid test failures at NFS mounted locations.
22828         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22829         so that subsequent mkdir calls succeed.
22830
22831 2010-12-25  Bruno Haible  <bruno@clisp.org>
22832
22833         iswblank: Fix C++ link error on Solaris 8.
22834         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22835         _GL_FUNCDECL_SYS.
22836
22837 2010-12-25  Bruno Haible  <bruno@clisp.org>
22838
22839         unistd: Fix C++ link error on Solaris 8.
22840         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22841
22842 2010-12-25  Bruno Haible  <bruno@clisp.org>
22843
22844         readlink doc: Mention an old glibc bug.
22845         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22846
22847 2010-12-25  Bruno Haible  <bruno@clisp.org>
22848
22849         fcntl-h: Fix for use of C++ on glibc systems.
22850         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22851         also on glibc systems in C++ mode.
22852         Reported by Gary V. Vaughan <gary@gnu.org>.
22853
22854 2010-12-25  Bruno Haible  <bruno@clisp.org>
22855
22856         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22857         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22858
22859 2010-12-25  Bruno Haible  <bruno@clisp.org>
22860
22861         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22862         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22863         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22864         test whether truncl works according to ISO C 99 with IEC 60559.
22865         * m4/truncl-ieee.m4: New file.
22866         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22867         m4/signbit.m4.
22868         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22869
22870 2010-12-25  Bruno Haible  <bruno@clisp.org>
22871
22872         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22873         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22874         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22875         test whether ceill works according to ISO C 99 with IEC 60559.
22876         * m4/ceill-ieee.m4: New file.
22877         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22878         m4/signbit.m4.
22879         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22880
22881 2010-12-25  Bruno Haible  <bruno@clisp.org>
22882
22883         Ensure all prerequisites of <wchar.h> are included.
22884         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22885         before <wchar.h>.
22886         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22887         gl_MBRLEN_NUL_RETVAL): Likewise.
22888         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22889         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22890         AC_FUNC_MBRTOWC): Likewise.
22891         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22892         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22893         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22894         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22895         Likewise.
22896         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22897         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22898         (gl_WCHAR_H): Improve comments.
22899         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22900
22901 2010-12-25  Bruno Haible  <bruno@clisp.org>
22902
22903         strtok_r: Fix C syntax error in autoconf macro.
22904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22905         characters in test program.
22906
22907 2010-12-24  Bruno Haible  <bruno@clisp.org>
22908
22909         ceil, trunc, round: Fix gcc warnings.
22910         * lib/ceil.c (MIN): Undefine before redefining.
22911         * lib/trunc.c (MIN): Likewise.
22912         * lib/round.c (MIN): Likewise.
22913         Include <math.h> first.
22914
22915 2010-12-24  Bruno Haible  <bruno@clisp.org>
22916
22917         select tests: Avoid failures on OSF/1 5.1.
22918         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22919         failure of closing the last socket; it may fail with ECONNRESET.
22920
22921 2010-12-24  Eric Blake  <eblake@redhat.com>
22922
22923         stdint: avoid HP-UX 10.20 preprocessor bug
22924         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22925         than #if.
22926         * tests/test-floor2.c (main): Likewise.
22927         Reported by Peter O'Gorman.
22928
22929         pipe: make obsoletion transition easier
22930         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22931         * modules/pipe (Files): Include revived file.
22932         (Include): Drop reference, to mirror getdate's behavior.
22933
22934 2010-12-24  Bruno Haible  <bruno@clisp.org>
22935
22936         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22937         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22938         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22939         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22940
22941 2010-12-24  Bruno Haible  <bruno@clisp.org>
22942
22943         gethostname: Ensure declaration on NonStop Kernel.
22944         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22946
22947 2010-12-24  Bruno Haible  <bruno@clisp.org>
22948
22949         sys_select: Ensure all necessary types on NonStop Kernel.
22950         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22951         include <sys/time.h>.
22952         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22953         NonStop Kernel.
22954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22955
22956 2010-12-24  Bruno Haible  <bruno@clisp.org>
22957
22958         sys_select: Remove unneeded include.
22959         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22960         have <sys/select.h>.
22961
22962 2010-12-24  Bruno Haible  <bruno@clisp.org>
22963
22964         gethostname: Provide a fallback for HOST_NAME_MAX.
22965         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22966         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22967         instead.
22968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22969
22970 2010-12-24  Bruno Haible  <bruno@clisp.org>
22971
22972         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22973         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22974         (SA_RESTART): Likewise.
22975         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22976
22977 2010-12-24  Bruno Haible  <bruno@clisp.org>
22978
22979         signal: Define NSIG.
22980         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22981         * tests/test-signal.c (nsig): New variable.
22982         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22983
22984 2010-12-24  Bruno Haible  <bruno@clisp.org>
22985
22986         rename, renameat: Avoid test failures on OSF/1 5.1.
22987         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22988         alternative error codes.
22989         * tests/test-renameat.c (main): Likewise.
22990
22991 2010-12-24  Bruno Haible  <bruno@clisp.org>
22992
22993         *printf: Detect large precisions bug on Solaris 10/SPARC.
22994         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22995         by Paul Eggert.
22996         * tests/test-snprintf-posix.h (test_function): Add this test code here
22997         too.
22998         * tests/test-sprintf-posix.h (test_function): Likewise.
22999         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23000         * tests/test-vasprintf-posix.c (test_function): Likewise.
23001         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23002         around by gnulib.
23003         * doc/posix-functions/printf.texi: Likewise.
23004         * doc/posix-functions/snprintf.texi: Likewise.
23005         * doc/posix-functions/sprintf.texi: Likewise.
23006         * doc/posix-functions/vfprintf.texi: Likewise.
23007         * doc/posix-functions/vprintf.texi: Likewise.
23008         * doc/posix-functions/vsnprintf.texi: Likewise.
23009         * doc/posix-functions/vsprintf.texi: Likewise.
23010         * doc/posix-functions/dprintf.texi: Undo last commit.
23011         * doc/posix-functions/vdprintf.texi: Likewise.
23012
23013 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23014
23015         tests: port test-fdutimensat.c to Solaris 8
23016         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23017         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23018         On Solaris 8, it fails with errno == ENOSYS, because there is no
23019         futimens (so it can't use the fd), and there is no lutimens (so it
23020         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23021
23022         vsnprintf: make more consistent with snprintf; doc fixes
23023
23024         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23025         the byte count return problem was promoted from the snprintf-posix
23026         to the snprintf module.
23027         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23028         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23029         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23030         * tests/test-snprintf.c (main): Check the byte count returned.
23031         * tests/test-vsnprintf.c (main): Likewise.
23032
23033 2010-12-23  Eric Blake  <eblake@redhat.com>
23034
23035         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23036         * modules/sigpipe (License): Relax license.
23037
23038 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23039
23040         doc: document Solaris printf bug with large float precisions
23041         * doc/posix-functions/dprintf.texi (dprintf):
23042         * doc/posix-functions/fprintf.texi (fprintf):
23043         * doc/posix-functions/printf.texi (printf):
23044         * doc/posix-functions/snprintf.texi (snprintf):
23045         * doc/posix-functions/sprintf.texi (sprintf):
23046         * doc/posix-functions/vdprintf.texi (vdprintf):
23047         * doc/posix-functions/vfprintf.texi (vfprintf):
23048         * doc/posix-functions/vprintf.texi (vprintf):
23049         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23050         * doc/posix-functions/vsprintf.texi (vsprintf):
23051         Mention that these functions mishandle large floating point
23052         precisions on Solaris 10.  The same bug is also present in Solaris
23053         8, and I assume earlier.  This causes "cd gnulib-tests; make
23054         check" to fail on Solaris 8 (and I assume, later) when building
23055         the latest coreutils, in test-vasprintf-posix's call to
23056         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23057         the wide flavors (e.g., wprintf) so this patch just updates the
23058         documentation for the narrow ones.
23059
23060         test-posixtm.c: add two tests
23061         * tests/test-posixtm.c: Add two tests, to highlight the
23062         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23063         around this bug; this is merely to document it.
23064
23065 2010-12-22  Bruno Haible  <bruno@clisp.org>
23066
23067         getlogin_r: Work around portability problem on OSF/1.
23068         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23069         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23070         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23071         test for a truncated result.
23072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23073         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23074         * modules/getlogin_r (Depends-on): Add memchr.
23075         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23076
23077 2010-12-22  Bruno Haible  <bruno@clisp.org>
23078
23079         ptsname: Avoid test failure on OSF/1 5.1.
23080         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23081         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23082         (same_slave): New function.
23083         (main): Use it to compare ptsname's result with the expected file name.
23084
23085 2010-12-22  Bruno Haible  <bruno@clisp.org>
23086
23087         Port extended stdio modules to HP NonStop Kernel.
23088         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23089         macros.
23090         * lib/fbufmode.c: Update comments.
23091         * lib/fflush.c: Likewise.
23092         * lib/fpurge.c: Likewise.
23093         * lib/freadable.c: Likewise.
23094         * lib/freadahead.c: Likewise.
23095         * lib/freading.c: Likewise.
23096         * lib/freadptr.c: Likewise.
23097         * lib/freadseek.c: Likewise.
23098         * lib/fseeko.c: Likewise.
23099         * lib/fseterr.c: Likewise.
23100         * lib/fwritable.c: Likewise.
23101         * lib/fwriting.c: Likewise.
23102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23103
23104 2010-12-22  Bruno Haible  <bruno@clisp.org>
23105
23106         ttyname_r: Work around bug on OSF/1 5.1.
23107         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23108         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23109         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23110         present.
23111         * lib/ttyname_r.c (ttyname_r): Update comments.
23112
23113 2010-12-22  Bruno Haible  <bruno@clisp.org>
23114
23115         round: Implement result sign according to IEEE 754.
23116         * lib/round.c (MIN, MINUS_ZERO): New macros.
23117         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23118         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23119         * tests/test-round-ieee.c (main): Likewise.
23120         * tests/test-roundl-ieee.c (main): Likewise.
23121
23122         trunc: Implement result sign according to IEEE 754.
23123         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23124         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23125         * tests/test-trunc2.c: Include minus-zero.h.
23126         (MINUS_ZERO): New macro.
23127         (trunc_reference): Keep in sync with lib/trunc.c.
23128         * tests/test-truncf2.c: Include minus-zero.h.
23129         (MINUS_ZERO): New macro.
23130         (truncf_reference): Keep in sync with lib/trunc.c.
23131         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23132         * tests/test-trunc-ieee.c (main): Likewise.
23133         * tests/test-truncl-ieee.c (main): Likewise.
23134
23135         ceil: Implement result sign according to IEEE 754.
23136         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23137         (FUNC): Return -0.0 for -1 < x < 0.
23138         * tests/test-ceil2.c: Include minus-zero.h.
23139         (MINUS_ZERO): New macro.
23140         (ceil_reference): Keep in sync with lib/ceil.c.
23141         * tests/test-ceilf2.c: Include minus-zero.h.
23142         (MINUS_ZERO): New macro.
23143         (ceilf_reference): Keep in sync with lib/ceil.c.
23144         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23145         * tests/test-ceil-ieee.c (main): Likewise.
23146         * tests/test-ceill-ieee.c (main): Likewise.
23147
23148         floor: Implement result sign according to IEEE 754.
23149         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23150         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23151         * tests/test-floorf2.c (floorf_reference): Likewise.
23152         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23153         * tests/test-floor-ieee.c (main): Likewise.
23154         * tests/test-floorl-ieee.c (main): Likewise.
23155
23156 2010-12-22  Bruno Haible  <bruno@clisp.org>
23157
23158         getaddrinfo: Update doc.
23159         * doc/posix-functions/gai_strerror.texi: Return type is also different
23160         on AIX and HP-UX.
23161
23162 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23163
23164         getaddrinfo, inet_ntop: Update doc for Solaris.
23165         * doc/posix-functions/gai_strerror.texi: Return type is also an
23166         issue on Solaris 9 and earlier.
23167         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23168         on Solaris 10 and earlier.
23169
23170 2010-12-21  Bruno Haible  <bruno@clisp.org>
23171
23172         New module 'roundl-ieee'.
23173         * modules/roundl-ieee: New file.
23174         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23175         test whether roundl works according to ISO C 99 with IEC 60559.
23176         * m4/roundl-ieee.m4: New file.
23177         * modules/roundl-ieee-tests: New file.
23178         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23179         * tests/test-roundl.c (main): Remove signbit tests.
23180         * modules/roundl-tests (Depends-on): Remove signbit.
23181         * doc/posix-functions/roundl.texi: Mention the new module.
23182
23183 2010-12-21  Bruno Haible  <bruno@clisp.org>
23184
23185         New module 'truncl-ieee'.
23186         * modules/truncl-ieee: New file.
23187         * modules/truncl-ieee-tests: New file.
23188         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23189         * tests/test-truncl.c (main): Remove signbit tests.
23190         * modules/truncl-tests (Depends-on): Remove signbit.
23191         * doc/posix-functions/truncl.texi: Mention the new module.
23192
23193 2010-12-21  Bruno Haible  <bruno@clisp.org>
23194
23195         New module 'ceill-ieee'.
23196         * modules/ceill-ieee: New file.
23197         * modules/ceill-ieee-tests: New file.
23198         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23199         * tests/test-ceill.c (main): Remove signbit tests.
23200         * modules/ceill-tests (Depends-on): Remove signbit.
23201         * doc/posix-functions/ceill.texi: Mention the new module.
23202
23203 2010-12-21  Bruno Haible  <bruno@clisp.org>
23204
23205         New module 'floorl-ieee'.
23206         * modules/floorl-ieee: New file.
23207         * modules/floorl-ieee-tests: New file.
23208         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23209         * tests/test-floorl.c (main): Remove signbit tests.
23210         * modules/floorl-tests (Depends-on): Remove signbit.
23211         * doc/posix-functions/floorl.texi: Mention the new module.
23212
23213 2010-12-21  Bruno Haible  <bruno@clisp.org>
23214
23215         New module 'round-ieee'.
23216         * modules/round-ieee: New file.
23217         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23218         whether round works according to ISO C 99 with IEC 60559.
23219         * m4/round-ieee.m4: New file.
23220         * modules/round-ieee-tests: New file.
23221         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23222         * tests/test-round1.c (main): Remove signbit tests.
23223         * modules/round-tests (Depends-on): Remove 'signbit'.
23224         * doc/posix-functions/round.texi: Mention the new module.
23225
23226 2010-12-21  Bruno Haible  <bruno@clisp.org>
23227
23228         New module 'trunc-ieee'.
23229         * modules/trunc-ieee: New file.
23230         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23231         whether trunc works according to ISO C 99 with IEC 60559.
23232         * m4/trunc-ieee.m4: New file.
23233         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23235         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23236         * modules/trunc-ieee-tests: New file.
23237         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23238         * tests/test-trunc1.c (main): Remove signbit tests.
23239         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23240         * doc/posix-functions/trunc.texi: Mention the new module.
23241
23242 2010-12-21  Bruno Haible  <bruno@clisp.org>
23243
23244         New module 'ceil-ieee'.
23245         * modules/ceil-ieee: New file.
23246         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23247         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23248         ISO C 99 with IEC 60559.
23249         * m4/ceil-ieee.m4: New file.
23250         * modules/ceil (Files): Add lib/ceil.c.
23251         (Depends-on): Add 'float'.
23252         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23253         * lib/math.in.h (ceil): New declaration.
23254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23255         REPLACE_CEIL.
23256         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23257         * modules/ceil-ieee-tests: New file.
23258         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23259         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23260         * doc/posix-functions/ceil.texi: Mention the new module.
23261
23262 2010-12-21  Bruno Haible  <bruno@clisp.org>
23263
23264         New module 'floor-ieee'.
23265         * modules/floor-ieee: New file.
23266         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23267         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23268         ISO C 99 with IEC 60559.
23269         * m4/floor-ieee.m4: New file.
23270         * modules/floor (Files): Add lib/floor.c.
23271         (Depends-on): Add 'float'.
23272         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23273         * lib/math.in.h (floor): New declaration.
23274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23275         REPLACE_FLOOR.
23276         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23277         * modules/floor-ieee-tests: New file.
23278         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23279         * tests/test-math-c++.cc: Check the signature of 'floor'.
23280         * doc/posix-functions/floor.texi: Mention the new module.
23281
23282 2010-12-21  Bruno Haible  <bruno@clisp.org>
23283
23284         New module 'roundf-ieee'.
23285         * modules/roundf-ieee: New file.
23286         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23287         test whether roundf works according to ISO C 99 with IEC 60559.
23288         * m4/roundf-ieee.m4: New file.
23289         * modules/roundf-ieee-tests: New file.
23290         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23291         * tests/test-roundf1.c (main): Remove signbit tests.
23292         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23293         * doc/posix-functions/roundf.texi: Mention the new module.
23294
23295 2010-12-21  Bruno Haible  <bruno@clisp.org>
23296
23297         New module 'truncf-ieee'.
23298         * modules/truncf-ieee: New file.
23299         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23300         test whether truncf works according to ISO C 99 with IEC 60559.
23301         * m4/truncf-ieee.m4: New file.
23302         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23304         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23305         * modules/truncf-ieee-tests: New file.
23306         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23307         * tests/test-truncf1.c (main): Remove signbit tests.
23308         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23309         * doc/posix-functions/truncf.texi: Mention the new module.
23310
23311 2010-12-21  Bruno Haible  <bruno@clisp.org>
23312
23313         New module 'ceilf-ieee'.
23314         * modules/ceilf-ieee: New file.
23315         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23316         test whether ceilf works according to ISO C 99 with IEC 60559.
23317         * m4/ceilf-ieee.m4: New file.
23318         * modules/ceilf-ieee-tests: New file.
23319         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23320         * tests/test-ceilf1.c (main): Remove signbit tests.
23321         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23322         * doc/posix-functions/ceilf.texi: Mention the new module.
23323
23324 2010-12-21  Bruno Haible  <bruno@clisp.org>
23325
23326         New module 'floorf-ieee'.
23327         * modules/floorf-ieee: New file.
23328         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23329         test whether floorf works according to ISO C 99 with IEC 60559.
23330         * m4/floorf-ieee.m4: New file.
23331         * modules/floorf-ieee-tests: New file.
23332         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23333         * tests/test-floorf1.c (main): Remove signbit tests.
23334         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23335         * doc/posix-functions/floorf.texi: Mention the new module.
23336
23337 2010-12-21  Bruno Haible  <bruno@clisp.org>
23338
23339         Support for minus zero in autoconf macros.
23340         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23341         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23342         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23343         * tests/minus-zero.h: Update comments.
23344
23345 2010-12-21  Bruno Haible  <bruno@clisp.org>
23346
23347         Tests for module 'ceil'.
23348         * modules/ceil-tests: New file.
23349         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23350         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23351
23352 2010-12-21  Bruno Haible  <bruno@clisp.org>
23353
23354         Tests for module 'floor'.
23355         * modules/floor-tests: New file.
23356         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23357         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23358
23359 2010-12-21  Bruno Haible  <bruno@clisp.org>
23360
23361         math: Fix indentation.
23362         * lib/math.in.h (floorf): Fix indentation.
23363
23364 2010-12-21  Bruno Haible  <bruno@clisp.org>
23365
23366         Fix cross-compilation guesses on Solaris.
23367         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23368         not match "solaris2.10".
23369         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23370         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23371         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23372
23373 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23374
23375         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23376         This fixes a problem observed with the latest coreutils snapshot
23377         that caused a test to fail on Solaris 8.  src/csplit.c's call
23378         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23379         earlier, instead of returning the number of bytes that would have
23380         been generated; this causes csplit to incorrectly report memory
23381         exhaustion.
23382         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23383         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23384         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23385         comments to match.
23386         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23387         Fix typo in matching older versions of Solaris: "solaris2.10"
23388         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23389         only for guessing while cross-compiling.
23390         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23391
23392 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23393
23394         ftoastr: fix comment again
23395         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23397         Also, simplify example a bit by using flags = 0.
23398
23399 2010-12-20  Bruno Haible  <bruno@clisp.org>
23400
23401         round*, trunc*: Update documentation regarding glibc.
23402         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23403         * doc/posix-functions/round.texi: Likewise.
23404         * doc/posix-functions/roundl.texi: Likewise.
23405         * doc/posix-functions/truncf.texi: Likewise.
23406         * doc/posix-functions/trunc.texi: Likewise.
23407         * doc/posix-functions/truncl.texi: Likewise.
23408
23409 2010-12-20  Bruno Haible  <bruno@clisp.org>
23410
23411         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23412         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23413         * doc/posix-functions/round.texi: Likewise.
23414         * doc/posix-functions/roundl.texi: Likewise.
23415
23416 2010-12-20  Bruno Haible  <bruno@clisp.org>
23417
23418         ttyname_r: Add missing declaration on HP-UX 11.
23419         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23420         HAVE_TTYNAME_R.
23421         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23422         declared. Set HAVE_TTYNAME_R always.
23423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23424         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23425         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23426         HAVE_TTYNAME_R.
23427         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23428
23429 2010-12-20  Bruno Haible  <bruno@clisp.org>
23430
23431         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23432         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23433         * doc/posix-functions/getlogin_r.texi: Likewise.
23434         * tests/test-getlogin.c: Include <errno.h>.
23435         (main): Avoid test failure on HP-UX 11.11.
23436         * tests/test-getlogin_r.c (main): Likewise.
23437
23438 2010-12-20  Bruno Haible  <bruno@clisp.org>
23439
23440         getlogin_r: Add missing declaration on HP-UX 11.
23441         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23442         declared also when it exists as a function.
23443         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23444
23445 2010-12-20  Bruno Haible  <bruno@clisp.org>
23446
23447         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23448         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23449         through wcrtomb.
23450
23451 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23452
23453         ftoastr: fix comment
23454         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23456
23457 2010-12-19  Bruno Haible  <bruno@clisp.org>
23458
23459         isnan: Ensure it is a macro.
23460         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23461         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23462         Solaris.
23463
23464 2010-12-19  Bruno Haible  <bruno@clisp.org>
23465
23466         ldexpl test: Fix link error on OSF/1 5.1.
23467         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23468
23469 2010-12-19  Bruno Haible  <bruno@clisp.org>
23470
23471         wctype: Make it work in C++ mode on OSF/1 5.1.
23472         * lib/wctype.in.h (iswblank): Declare but not define here.
23473         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23474         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23475         * modules/wctype (Files): Add lib/iswblank.c.
23476
23477 2010-12-19  Bruno Haible  <bruno@clisp.org>
23478
23479         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23480         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23481         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23482
23483 2010-12-19  Bruno Haible  <bruno@clisp.org>
23484
23485         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23487         _POSIX_PII_SOCKET.
23488         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23489         * doc/posix-functions/recvfrom.texi: Likewise.
23490         * doc/posix-functions/send.texi: Likewise.
23491         * doc/posix-functions/sendto.texi: Likewise.
23492
23493 2010-12-19  Bruno Haible  <bruno@clisp.org>
23494
23495         tcgetsid: Add missing declaration on OSF/1 5.1.
23496         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23497         HAVE_TCGETSID.
23498         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23499         Don't set HAVE_TCGETSID.
23500         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23501         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23502         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23503         HAVE_TCGETSID.
23504         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23505
23506 2010-12-19  Bruno Haible  <bruno@clisp.org>
23507
23508         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23509         * lib/stdio.in.h: During the include_next statement, let recursive
23510         includes of this file include only the system header file.
23511
23512 2010-12-19  Bruno Haible  <bruno@clisp.org>
23513
23514         iconv_open: Fix regression from 2010-12-04.
23515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23516         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23517
23518 2010-12-19  Bruno Haible  <bruno@clisp.org>
23519
23520         stdbool test: Avoid a gcc warning.
23521         * tests/test-stdbool.c (main): Fail if e1 is false.
23522         Reported by Jim Meyering.
23523
23524 2010-12-19  Jim Meyering  <meyering@redhat.com>
23525
23526         setenv: restore to working order
23527         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23528         mistakenly removed.
23529         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23530         HAVE_SETENV.
23531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23532         HAVE_SETENV.
23533
23534 2010-12-19  Bruno Haible  <bruno@clisp.org>
23535
23536         Document some different function declarations on OSF/1 5.1.
23537         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23538         * doc/posix-functions/inet_ntop.texi: Likewise.
23539         * doc/posix-functions/gethostname.texi: Likewise.
23540         * lib/unistd.in.h (gethostname): Update comment.
23541
23542 2010-12-19  Bruno Haible  <bruno@clisp.org>
23543
23544         doc: Mention vasprintf-posix module.
23545         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23546         the 'vasprintf-posix' module.
23547         * doc/glibc-functions/vasprintf.texi: Likewise.
23548
23549 2010-12-19  Bruno Haible  <bruno@clisp.org>
23550
23551         unsetenv: Add missing declaration on OSF/1 5.1.
23552         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23554         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23556         not HAVE_UNSETENV.
23557         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23558         HAVE_UNSETENV.
23559         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23560
23561 2010-12-19  Bruno Haible  <bruno@clisp.org>
23562
23563         setenv: Add missing declaration on OSF/1 5.1.
23564         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23566         declared. Don't set HAVE_SETENV.
23567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23568         not HAVE_SETENV.
23569         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23570         HAVE_SETENV.
23571         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23572
23573 2010-12-19  Bruno Haible  <bruno@clisp.org>
23574
23575         nl_langinfo tests: Avoid gcc warning.
23576         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23577
23578 2010-12-19  Bruno Haible  <bruno@clisp.org>
23579
23580         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23581         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23582         _GL_CXXALIAS_SYS.
23583
23584 2010-12-19  Bruno Haible  <bruno@clisp.org>
23585
23586         stdbool: Relax test.
23587         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23588         address to 'bool' work in static initializer, for compilers other than
23589         GCC.
23590
23591 2010-12-19  Bruno Haible  <bruno@clisp.org>
23592
23593         ftello: Add missing declaration on OSF/1 5.1.
23594         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23595         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23597         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23598         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23599
23600 2010-12-19  Bruno Haible  <bruno@clisp.org>
23601
23602         fseeko: Add missing declaration on OSF/1 5.1.
23603         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23606         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23607         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23608
23609 2010-12-19  Bruno Haible  <bruno@clisp.org>
23610
23611         fchdir: Add missing declaration on OSF/1 5.1.
23612         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23615         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23616         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23617
23618 2010-12-19  Bruno Haible  <bruno@clisp.org>
23619
23620         relocatable-prog-wrapper: Separate from relocatable-prog.
23621         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23622         uninstall-relocwrapper rule here.
23623         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23624         Reported by Ian Beckwith <ianb@erislabs.net>.
23625
23626 2010-12-19  Bruno Haible  <bruno@clisp.org>
23627
23628         unistr/u8-mbsnlen: Add missing dependency.
23629         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23630         Reported by Ian Beckwith <ianb@erislabs.net>.
23631
23632 2010-12-19  Bruno Haible  <bruno@clisp.org>
23633
23634         iconv: Make it possible again to use this module without 'iconv-h'.
23635         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23636         if it is not defined.
23637         Reported by Ian Beckwith <ianb@erislabs.net>.
23638
23639 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23640
23641         acl: port to Solaris 8 when copying from tmpfs to ufs
23642         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23643         error number.  Problem observed on Solaris 8 with latest
23644         coreutils, with "mv A B", where A is on a tmpfs file system and B
23645         is on a ufs file system.  This caused coreutils' mv/part-symlink
23646         test to fail.
23647
23648         tests: set fail=0 at start
23649         * tests/init.sh (setup_): Move fail=0 initialization here ...
23650         (mktempd_): ... from here, so that tests can rely on fail being
23651         set to 0 initially.  This fixes a problem in coreutils; see:
23652         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23653
23654 2010-12-18  Bruno Haible  <bruno@clisp.org>
23655
23656         memmem-simple: Stylistic changes.
23657         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23658         Fix preprocessor directive indentation.
23659
23660 2010-12-15  Pádraig Brady <P@draigBrady.com>
23661
23662         memmem, memmem-simple: reorganize and expand empty needle check
23663         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23664         functional checks to memmem-simple so that one has a fully functional
23665         memmem by using just this module.
23666         Restrict the performance only check to the memmem module.
23667         Also expand the empty needle check to ensure the correct
23668         pointer is returned, not just a non NULL pointer.
23669         * doc/glibc-functions/memmem.texi: Rearrange the portability
23670         documentation to correlate with the rearranged checks.
23671         Clarify exactly how the memmem and memmem-simple modules
23672         relate to each other.
23673
23674 2010-12-15  Pádraig Brady <P@draigBrady.com>
23675             Bruno Haible  <bruno@clisp.org>
23676
23677         Improve cross-compilation guesses for uClibc.
23678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23679         that uClibc does not have the glibc bug.
23680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23681         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23682
23683 2010-12-14  Eric Blake  <eblake@redhat.com>
23684
23685         configmake: provide fallbacks for oldest supported autotools
23686         * m4/configmake.m4: New file.
23687         * modules/configmake (Files): Ship it.
23688         (configure.ac): Use it to guarantee fallbacks.
23689
23690 2010-12-13  Pádraig Brady <P@draigBrady.com>
23691
23692         read-file: Improve handling of large files
23693         * lib/read-file.c (fread_file): Minimize realloc()s
23694         for regular files, and better manage sizes around SIZE_MAX.
23695
23696 2010-12-13  Eric Blake  <eblake@redhat.com>
23697
23698         cloexec, fcntl: relax license
23699         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23700         consent from all contributors.
23701         * modules/fcntl (License): Likewise.
23702
23703 2010-12-10  Bruno Haible  <bruno@clisp.org>
23704
23705         Tests for module 'pipe-posix'.
23706         * modules/pipe-posix-tests: New file.
23707         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23708
23709 2010-12-10  Bruno Haible  <bruno@clisp.org>
23710
23711         pipe-posix: Make it work in C++ mode.
23712         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23713         (pipe): Use common idiom, not a macro definition.
23714         * lib/pipe.c: New file.
23715         * m4/pipe.m4: New file.
23716         * modules/pipe-posix (Description): Enhance.
23717         (Files): Add lib/pipe.c, m4/pipe.m4.
23718         (configure.ac): Invoke gl_FUNC_PIPE.
23719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23720         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23721         * tests/test-unistd-c++.cc: Check the signature of pipe.
23722
23723 2010-12-10  Bruno Haible  <bruno@clisp.org>
23724
23725         Rename module 'pipe' to 'spawn-pipe'.
23726         * modules/spawn-pipe: New file, renamed from modules/pipe.
23727         (Files, configure.ac, Makefile.am): Update.
23728         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23729         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23730         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23731         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23732         "spawn-pipe.h" instead of "pipe.h".
23733         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23734         to gl_SPAWN_PIPE.
23735         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23736         (Files, Makefile.am): Update.
23737         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23738         Update.
23739         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23740         Include "spawn-pipe.h" instead of "pipe.h".
23741         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23742         * lib/javacomp.c: Likewise.
23743         * lib/javaversion.c: Likewise.
23744         * lib/pipe-filter-gi.c: Likewise.
23745         * lib/pipe-filter-ii.c: Likewise.
23746         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23747         * modules/javacomp (Depends-on): Likewise.
23748         * modules/javaversion (Depends-on): Likewise.
23749         * modules/pipe-filter-gi (Depends-on): Likewise.
23750         * modules/pipe-filter-ii (Depends-on): Likewise.
23751         * MODULES.html.sh (Executing programs): Update.
23752         * NEWS: Mention the change.
23753
23754 2010-12-10  Eric Blake  <eblake@redhat.com>
23755
23756         pipe-posix: new module
23757         * modules/pipe-posix: New file.
23758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23759         (gl_UNISTD_H): Check for declaration.
23760         * modules/unistd (Makefile.am): Substitute it.
23761         * lib/unistd.in.h (pipe): Provide it for mingw.
23762         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23763         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23764
23765 2010-12-07  Bruno Haible  <bruno@clisp.org>
23766
23767         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23768         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23769         u8_strcmp_gnu.
23770         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23771
23772 2010-12-06  Bruno Haible  <bruno@clisp.org>
23773
23774         Update internal documentation.
23775         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23776
23777 2010-12-04  Bruno Haible  <bruno@clisp.org>
23778
23779         Put more information about failed tests into the test return codes.
23780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23781         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23782         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23783         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23784         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23785         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23786         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23787         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23788         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23790         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23791         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23792         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23793         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23795         returns a bit mask.
23796         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23797         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23798         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23799         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23800         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23801         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23804         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23806         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23807         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23808         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23810         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23811         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23812         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23813         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23814         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23815         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23817         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23819         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23820         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23821         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23822         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23823         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23824         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23825         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23826         gl_PRINTF_PRECISION): Likewise.
23827         * m4/regex.m4 (gl_REGEX): Likewise.
23828         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23829         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23830         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23831         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23835         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23836         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23837         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23838         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23839         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23840         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23841         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23842         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23843         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23844         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23845         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23847         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23848         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23849         enumerated value.
23850         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23851
23852 2010-12-04  Bruno Haible  <bruno@clisp.org>
23853
23854         Update for Solaris 11 2010-11.
23855         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23856         Express, released in November 2010.
23857
23858 2010-12-04  Bruno Haible  <bruno@clisp.org>
23859
23860         nproc: Relax license.
23861         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23862         and Paul Eggert.
23863         Requested by Ludovic Courtès <ludo@gnu.org>.
23864
23865 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23866
23867         utimecmp: fine-grained src to nearby coarse-grained dest
23868
23869         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23870         and the source is on a file system with higher-resolution time
23871         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23872         not work, and the time stamps are close together, the algorithm to
23873         determine the exact resolution from the read-back mtime was buggy:
23874         it had a "!=" where it should have had an "==".  This bug has been
23875         in the code ever since it was introduced to gnulib.
23876         Problem reported by Dan Jacobson in
23877         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23878
23879 2010-11-30  Bruno Haible  <bruno@clisp.org>
23880
23881         strerror_r-posix: Fix autoconf test.
23882         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23883
23884 2010-11-28  Bruno Haible  <bruno@clisp.org>
23885             Paul Eggert  <eggert@cs.ucla.edu>
23886
23887         Tests for module 'getdomainname'.
23888         * modules/getdomainname-tests: New file.
23889         * tests/test-getdomainname.c: New file, based on
23890         tests/test-gethostname.c.
23891
23892 2010-11-28  Bruno Haible  <bruno@clisp.org>
23893             Paul Eggert  <eggert@cs.ucla.edu>
23894
23895         getdomainname: Use the system function when possible.
23896         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23897         (getdomainname): Replace if needed. Provide the declaration if it is
23898         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23899         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23900         (getdomainname): When the system has getdomainname, call the system
23901         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23902         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23903         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23904         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23905         the function if its second argument is of type 'int' or if it is found
23906         in libnsl.
23907         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23908         <sys/systeminfo.h> and sysinfo().
23909         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23911         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23912         HAVE_GETDOMAINNAME.
23913         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23914         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23915         * doc/glibc-functions/getdomainname.texi: Document the problems with
23916         the getdomainname declaration.
23917
23918 2010-11-28  Bruno Haible  <bruno@clisp.org>
23919
23920         sys_socket: Ensure ss_family field on AIX.
23921         * lib/sys_socket.in.h (ss_family): New macro definition.
23922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23923         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23924         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23925         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23926         * modules/sys_socket (Makefile.am): Substitute
23927         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23928         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23929
23930 2010-11-27  Bruno Haible  <bruno@clisp.org>
23931
23932         readline: Improve configure output.
23933         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23934         "checking for readline..." result understandable.
23935
23936 2010-11-27  Bruno Haible  <bruno@clisp.org>
23937
23938         *printf-posix: Detect a bug on Solaris 10/x86.
23939         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23940         for floating-point output.
23941         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23942         directive.
23943         * tests/test-snprintf-posix.h (test_function): Likewise.
23944         * tests/test-sprintf-posix.h (test_function): Likewise.
23945         * tests/test-vasprintf-posix.c (test_function): Likewise.
23946         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23947         * doc/posix-functions/printf.texi: Likewise.
23948         * doc/posix-functions/snprintf.texi: Likewise.
23949         * doc/posix-functions/sprintf.texi: Likewise.
23950         * doc/posix-functions/vfprintf.texi: Likewise.
23951         * doc/posix-functions/vprintf.texi: Likewise.
23952         * doc/posix-functions/vsnprintf.texi: Likewise.
23953         * doc/posix-functions/vsprintf.texi: Likewise.
23954         * doc/glibc-functions/obstack_printf.texi: Likewise.
23955         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23956
23957 2010-11-27  Bruno Haible  <bruno@clisp.org>
23958
23959         Fix link error when module libunistring-optional is in use.
23960         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23961         * modules/striconveha-tests (Makefile.am): Likewise.
23962
23963 2010-11-27  Bruno Haible  <bruno@clisp.org>
23964
23965         regex: Mention link dependencies.
23966         * modules/regex (Link): New section.
23967         * modules/rpmatch (Link): Likewise.
23968         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23969
23970 2010-11-27  Bruno Haible  <bruno@clisp.org>
23971
23972         ftoastr: Fix compilation error on Solaris.
23973         * lib/ftoastr.c: Include <config.h>.
23974
23975 2010-11-27  Bruno Haible  <bruno@clisp.org>
23976
23977         getloadavg: Update documentation.
23978         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23979
23980 2010-11-27  Bruno Haible  <bruno@clisp.org>
23981
23982         sys_socket: Fix test whether the functions are declared.
23983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23984         not <sys/select.h>.
23985
23986 2010-11-27  Bruno Haible  <bruno@clisp.org>
23987
23988         getpass: Make sure to get system declaration on some platforms.
23989         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23990         gl_USE_SYSTEM_EXTENSIONS.
23991         * modules/getpass (Depends-on): Add extensions.
23992
23993 2010-11-26  Bruno Haible  <bruno@clisp.org>
23994
23995         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23996         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23997         'iconv' module is present.
23998         (ICONV_CONST): New macro.
23999         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24000         ICONV_CONST.
24001         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24002         set ICONV_CONST.
24003         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24004         here.
24005         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24006         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24007         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24008         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24009         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24010         present.
24011
24012 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24013
24014         ftoastr: comment fix
24015         * lib/ftoastr.c: "little" -> "little or no" in comment
24016
24017 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24018
24019         stdint: port to GCC 4.3 + OSX + Octave
24020         On this platform, stdint.h is buggy and defines int64_t to long
24021         long int.  The replacement defined it to long int, causing
24022         problems with C++ style name mangling.  Instead, trust the system
24023         definition if INT64_MAX is defined, and likewise for the unsigned
24024         variant.   Problem reported by Jarno Rajahalme in
24025         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24026         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24027         and don't mess with int64_t and INT64_MAX in this case.
24028         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24029
24030 2010-11-24  Bruno Haible  <bruno@clisp.org>
24031
24032         doc: Corrections regarding MacOS X 10.4 and 10.5.
24033         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24034         MacOS X.
24035         Reported by Simon Josefsson.
24036
24037 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24038
24039         Uninstall ".bin" files installed by relocwrapper.
24040         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24041         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24042         unless it is already there.
24043
24044 2010-11-21  Bruno Haible  <bruno@clisp.org>
24045
24046         Update for NetBSD 5.0.
24047         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24048         NetBSD; the test fails on NetBSD 5.0.
24049         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24050         about NetBSD.
24051
24052 2010-11-21  Bruno Haible  <bruno@clisp.org>
24053
24054         Update for HP-UX 11.23 and HP-UX 11.31.
24055         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24056         HP-UX.
24057
24058 2010-11-21  Bruno Haible  <bruno@clisp.org>
24059
24060         Update for MacOS X 10.5.
24061         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24062         MacOS X; the test fails on MacOS X 10.5.8.
24063         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24064         about MacOS X.
24065
24066 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24067
24068         bootstrap: add bootstrap_sync option.
24069         See discussion at
24070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24072         * build-aux/bootstrap: Accept --bootstrap-sync to update
24073         bootstrap if it is not identical to the local gnulib's
24074         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24075         enable this by default.  Accept --no-bootstrap-sync to disable
24076         it.
24077
24078 2010-11-20  Bruno Haible  <bruno@clisp.org>
24079
24080         Ensure that <features.h> is included before __GLIBC__ is tested.
24081         * lib/printf-parse.h: Include <features.h>.
24082         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24083         Reported by Mike Frysinger <vapier@gentoo.org>.
24084
24085         Ensure that <features.h> is included before __GLIBC__ is tested.
24086         * lib/wchar.in.h: Include <features.h>.
24087         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24088         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24089         Reported by Mike Frysinger <vapier@gentoo.org>.
24090
24091         Ensure that <features.h> is included before __GLIBC__ is tested.
24092         * lib/arpa_inet.in.h: Include <features.h>.
24093         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24094         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24095         Reported by Mike Frysinger <vapier@gentoo.org>.
24096
24097         Ensure that <features.h> is included before __GLIBC__ is tested.
24098         * build-aux/link-warning.h: Include <features.h>.
24099         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24100         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24101         Reported by Mike Frysinger <vapier@gentoo.org>.
24102
24103         Ensure that <features.h> is included before __GLIBC__ is tested.
24104         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24105         Reported by Mike Frysinger <vapier@gentoo.org>.
24106
24107 2010-11-20  Bruno Haible  <bruno@clisp.org>
24108
24109         memmem: Fix autoconf test.
24110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24111
24112 2010-11-20  Bruno Haible  <bruno@clisp.org>
24113
24114         Port to uClibc.
24115         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24116         * lib/fcntl.in.h: Likewise.
24117         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24118         * lib/mbrtowc.c (mbrtowc): Likewise.
24119         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24120         * lib/strerror_r.c: Likewise.
24121         * lib/unistr/u8-strnlen.c: Likewise.
24122         * lib/vasnprintf.c (decimal_point_char): Likewise.
24123         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24124         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24126         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24127         * tests/test-sigaction.c (handler, main): Likewise.
24128         * lib/freading.h: Treat uClibc like a non-glibc platform.
24129         * lib/freading.c: Likewise.
24130         * lib/gettext.h: Likewise.
24131         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24132         Likewise.
24133         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24134         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24135         * lib/propername.c (proper_name_utf8): Likewise.
24136         * lib/spawn.in.h: Likewise.
24137         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24138         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24139         mem_cd_iconveh_internal): Likewise.
24140         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24141         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24142         strstr, strcasestr): Likewise.
24143         * lib/unicodeio.c (unicode_to_mb): Likewise.
24144         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24145         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24146         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24147         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24148         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24149         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24150         * lib/unistr/u8-stpncpy.c: Likewise.
24151         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24152         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24155         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24156         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24157         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24160         Likewise.
24161         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24162         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24166         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24167         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24168         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24169         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24170         * tests/test-striconveha.c (main): Likewise.
24171         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24172         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24173         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24174         * doc/posix-functions/getline.texi: Likewise.
24175         Reported by Mike Frysinger <vapier@gentoo.org>.
24176
24177 2010-11-20  Bruno Haible  <bruno@clisp.org>
24178
24179         nproc: Fix condition.
24180         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24181         HAVE_PTHREAD_AFFINITY_NP.
24182
24183 2010-11-20  Bruno Haible  <bruno@clisp.org>
24184
24185         Fix a comment.
24186         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24187
24188 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24189
24190         ftoastr: don't assume snprintf
24191         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24192         Implement a subset of snprintf here, by using sprintf safely.
24193         * modules/ftoastr (Depends-on): Remove snprintf.
24194
24195 2010-11-19  Jim Meyering  <meyering@redhat.com>
24196
24197         test-rename.h: fix compilation failure
24198         * tests/test-rename.h (test_rename): Add omitted "}".
24199
24200 2010-11-17  Jim Meyering  <meyering@redhat.com>
24201
24202         maint.mk: add a URL discussing the no-@acronym policy
24203         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24204
24205 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24206
24207         ftoastr: depend on snprintf, improve comments
24208         * lib/ftoastr.c: Also mention Loitsch's draft.
24209         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24210         needed in the current implementation, but it might simplify
24211         speeding up the code later.
24212         * modules/ftoastr: Depend on snprintf; this improves portability.
24213         Suggested by Bruno Haible in the same email.
24214
24215         ftoastr: port to hosts lacking strtof and strtold
24216         Problem reported by Bruno Haible in
24217         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24218         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24219         environment and strtold (and presumably strtof) are not available.
24220         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24221         (configure.ac): Require gl_C99_STRTOLD.
24222
24223 2010-11-18  Bruno Haible  <bruno@clisp.org>
24224
24225         c-strtold: Avoid link error on AIX 7.
24226         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24227         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24228         (gl_C_STRTOLD): Test whether strtold_l exists.
24229         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24230
24231 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24232
24233         intprops: new macro INT_BITS_STRLEN_BOUND
24234         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24235         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24236         not exposed.  Also, it uses a slightly tighter bound than before;
24237         though this makes no practical difference, we might as well be as
24238         tight as we easily can.
24239
24240         ftoastr: new module, for lossless conversion of floats to short strings
24241         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24242         * modules/ftoastr: New files.
24243
24244 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24245
24246         bootstrap: port to Solaris sed
24247         * build-aux/bootstrap (get_version): Port to Solaris sed.
24248         See Ralf Wildenhues's note in
24249         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24250
24251 2010-11-14  Jim Meyering  <meyering@redhat.com>
24252
24253         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24254         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24255         and move definition closer to sole use.
24256
24257 2010-11-13  Jim Meyering  <meyering@redhat.com>
24258
24259         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24260         Now we require at least autoconf-2.59, which means the work-around
24261         is no longer needed.
24262         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24264         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24265         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24266         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24267
24268 2010-11-13  Bruno Haible  <bruno@clisp.org>
24269
24270         rename, renameat: Avoid test failures at NFS mounted locations.
24271         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24272         functions.
24273         (test_rename): Use assert_nonexistent.
24274         * tests/test-rename.c: Include <dirent.h>.
24275         * tests/test-renameat.c: Likewise.
24276         Reported by Gary V. Vaughan <gary@gnu.org>.
24277
24278         rename, renameat: Document Linux bug with NFS
24279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24280         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24281         * doc/posix-functions/renameat.texi: Likewise.
24282         Suggested by Eric Blake.
24283
24284 2010-11-13  Bruno Haible  <bruno@clisp.org>
24285
24286         rename test: Add comments.
24287         * tests/test-rename.h (test_rename): Add structure and comments.
24288
24289 2010-11-13  Eric Blake  <eblake@redhat.com>
24290
24291         maintainer-makefile: cover a few more files
24292         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24293         scripts generated within C files, for libvirt.
24294
24295 2010-11-13  Bruno Haible  <bruno@clisp.org>
24296
24297         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24298         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24299         character, return the number of bytes that belong together, not always
24300         1.
24301         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24302         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24303         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24304         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24305         number of bytes of an invalid character.
24306         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24307         (main): Invoke it.
24308         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24309         results.
24310         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24311         malformed byte sequences.
24312         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24313         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24314         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24315         Reported by Ben Pfaff and Paolo Bonzini.
24316
24317 2010-11-13  Bruno Haible  <bruno@clisp.org>
24318
24319         openat: Work around glibc bug with fchownat() and empty file names.
24320         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24321         (gl_FUNC_FCHOWNAT): Invoke it.
24322         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24323         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24324         Reported by Gary V. Vaughan <gary@gnu.org>.
24325
24326 2010-11-13  Bruno Haible  <bruno@clisp.org>
24327
24328         openat: Ensure autoconf macro ordering.
24329         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24330         gl_USE_SYSTEM_EXTENSIONS.
24331         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24332
24333 2010-11-13  Bruno Haible  <bruno@clisp.org>
24334
24335         Update comments.
24336         * lib/unistr/u8-check.c: Update file name in comments.
24337         * lib/unistr/u8-mblen.c: Likewise.
24338         * lib/unistr/u8-prev.c: Likewise.
24339         * lib/unistr/u8-strmblen.c: Likewise.
24340         * lib/unistr/u8-strmbtouc.c: Likewise.
24341
24342 2010-11-13  Jim Meyering  <meyering@redhat.com>
24343
24344         tests: avoid test failure on Solaris 10 due to lack of PATH export
24345         * tests/test-update-copyright.sh: Don't forget to export PATH.
24346
24347         init.sh: ensure that IFS is defined, just in case...
24348         * tests/init.sh (setup_): Ensure that IFS is defined,
24349         so that saving and restoring it works as expected.  This
24350         appears to be useful at least for an old version of dash
24351         from a long time ago (RH 6).  See here for details:
24352         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24353
24354         maint.mk: tighten "test a == b" check
24355         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24356         test to files that contain something like #!/bin/sh.
24357         Without this, coreutils would get two false positives in
24358         the comments of C source files.
24359
24360 2010-11-12  Eric Blake  <eblake@redhat.com>
24361
24362         bootstrap: fix typo in previous attempt
24363         * build-aux/bootstrap (buildreq): Correct the grouping.
24364         Reported by Paul Eggert.
24365
24366         maintainer-makefile: prohibit test x == x
24367         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24368         Based on a report by Matthias Bolte.
24369
24370         bootstrap: allow FreeBSD gzip
24371         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24372         which has no '.' and goes to stderr.
24373         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24374         Reported by Matthias Bolte.
24375
24376         maintainer-makefile: check for i18n setup
24377         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24378         will likely work.
24379
24380 2010-11-12  Bruno Haible  <bruno@clisp.org>
24381
24382         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24383         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24384         * lib/nanosleep.c (nanosleep): Likewise.
24385
24386 2010-11-11  Bruno Haible  <bruno@clisp.org>
24387
24388         fcntl-h: Fix for use of C++ on glibc systems.
24389         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24390         also on glibc systems in C++ mode.
24391         Reported by Gary V. Vaughan <gary@gnu.org>.
24392
24393 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24394
24395         mknod: avoid false failure with dash
24396         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24397
24398 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24399
24400         unlink: Fix "is it should" typo in diagnostic.
24401         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24403
24404 2010-11-11  Bruno Haible  <bruno@clisp.org>
24405
24406         Tests for module 'strerror_r-posix'.
24407         * modules/strerror_r-posix-tests: New file.
24408         * tests/test-strerror_r.c: New file.
24409         * tests/test-string-c++.cc: Check the signature of strerror_r.
24410
24411         New module 'strerror_r-posix'.
24412         * lib/string.in.h (strerror_r): New declaration.
24413         * lib/strerror_r.c: New file.
24414         * m4/strerror_r.m4: New file.
24415         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24416         of strerror_r.
24417         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24418         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24419         * modules/strerror_r-posix: New file.
24420         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24421         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24422         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24423         portability problems.
24424
24425 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24426
24427         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24428         line is also considered for output. Quoted function name in shell
24429         command, so temporary files for functions like MyClass::operator()
24430         are removed correctly without errors.
24431
24432 2010-11-09  Bruno Haible  <bruno@clisp.org>
24433
24434         * doc/posix-functions/strerror.texi: List more failing platforms.
24435
24436         * doc/posix-functions/strerror.texi: Add a comment.
24437
24438 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24439
24440         fdopendir: fix bug on MacOS X when low on file descriptors
24441
24442         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24443         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24444         All callers changed.
24445         (fdopendir): Invoke save_cwd at the top level, not after using
24446         multiple dup() calls to use up file descriptors.  Then retry
24447         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24448         less than the maximum number of open file descriptors, because
24449         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24450         on Mac OS X 10.6.4 for tar 1.24
24451         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24452         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24453         and for tar 1.25
24454         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24455
24456 2010-11-07  Bruno Haible  <bruno@clisp.org>
24457
24458         vasnprintf: Support I flag on glibc systems.
24459         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24460         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24461         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24462         snprintf function.
24463         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24464         glibc systems.
24465         * tests/test-vasnprintf-posix3.c: New file.
24466         * modules/vasnprintf-posix-tests (Files): Add it.
24467         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24468
24469 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24470
24471         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24472         * MODULES.html.sh: For compiler warnings, use name
24473         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24474
24475 2010-11-05  Eric Blake  <eblake@redhat.com>
24476
24477         ceil, floor: avoid spurious failure with icc
24478         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24479         [denormals-as-zero] when optimizing without -mieee-fp option.
24480         * tests/test-floorf2.c (floorf_reference): Likewise.
24481         * tests/test-ceilf1.c (dummy): New function.
24482         (main): Use it to outsmart icc's optimization.
24483         * tests/test-floorf1.c (dummy, main): Likewise.
24484
24485         tests: require working signbit
24486         * modules/ceilf-tests (Depends-on): Add signbit.
24487         * modules/ceill-tests (Depends-on): Likewise.
24488         * modules/floorf-tests (Depends-on): Likewise.
24489         * modules/floorl-tests (Depends-on): Likewise.
24490         * modules/round-tests (Depends-on): Likewise.
24491         * modules/roundf-tests (Depends-on): Likewise.
24492         * modules/roundl-tests (Depends-on): Likewise.
24493         * modules/trunc-tests (Depends-on): Likewise.
24494         * modules/truncf-tests (Depends-on): Likewise.
24495         * modules/truncl-tests (Depends-on): Likewise.
24496
24497         strtod: work around icc bug
24498         * lib/strtod.c (minus_zero): Define to working value.
24499         (strtod): Use it to avoid icc bug.
24500
24501         copysign: enhance tests
24502         * modules/copysign-tests (Files): Add minus-zero.h.
24503         * tests/test-copysign.c (main): Also test zeros.
24504
24505 2010-11-04  Eric Blake  <eblake@redhat.com>
24506
24507         ceil, floor, round, trunc: enhance tests of -0
24508         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24509         * tests/test-ceill.c (main): Likewise.
24510         * tests/test-floorf1.c (main): Likewise.
24511         * tests/test-floorl.c (main): Likewise.
24512         * tests/test-round1.c (main): Likewise.
24513         * tests/test-roundf1.c (main): Likewise.
24514         * tests/test-roundl.c (main): Likewise.
24515         * tests/test-trunc1.c (main): Likewise.
24516         * tests/test-truncf1.c (main): Likewise.
24517         * tests/test-truncl.c (main): Likewise.
24518
24519 2010-11-04  Eric Blake  <eblake@redhat.com>
24520
24521         frexp, tests: work around ICC bug with -zero
24522         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24523         works with more compilers.
24524         * tests/minus-zero.h: New file.
24525         * modules/ceilf-tests (Files): Include it.
24526         * modules/ceill-tests (Files): Likewise.
24527         * modules/floorf-tests (Files): Likewise.
24528         * modules/floorl-tests (Files): Likewise.
24529         * modules/frexp-nolibm-tests (Files): Likewise.
24530         * modules/frexp-tests (Files): Likewise.
24531         * modules/frexpl-nolibm-tests (Files): Likewise.
24532         * modules/frexpl-tests (Files): Likewise.
24533         * modules/isnan-tests (Files): Likewise.
24534         * modules/isnand-nolibm-tests (Files): Likewise.
24535         * modules/isnand-tests (Files): Likewise.
24536         * modules/isnanf-nolibm-tests (Files): Likewise.
24537         * modules/isnanf-tests (Files): Likewise.
24538         * modules/isnanl-nolibm-tests (Files): Likewise.
24539         * modules/isnanl-tests (Files): Likewise.
24540         * modules/round-tests (Files): Likewise.
24541         * modules/roundf-tests (Files): Likewise.
24542         * modules/roundl-tests (Files): Likewise.
24543         * modules/ldexpl-tests (Files): Likewise.
24544         * modules/signbit-tests (Files): Likewise.
24545         * modules/snprintf-posix-tests (Files): Likewise.
24546         * modules/sprintf-posix-tests (Files): Likewise.
24547         * modules/strtod-tests (Files): Likewise.
24548         * modules/trunc-tests (Files): Likewise.
24549         * modules/truncf-tests (Files): Likewise.
24550         * modules/truncl-tests (Files): Likewise.
24551         * modules/vsnprintf-posix-tests (Files): Likewise.
24552         * modules/vsprintf-posix-tests (Files): Likewise.
24553         * modules/vasnprintf-posix-tests (Files): Likewise.
24554         * modules/vasprintf-posix-tests (Files): Likewise.
24555         * tests/test-ceilf1.c (main): Use it.
24556         * tests/test-ceill.c (main): Likewise.
24557         * tests/test-floorf1.c (main): Likewise.
24558         * tests/test-floorl.c (main): Likewise.
24559         * tests/test-frexp.c (main): Likewise.
24560         * tests/test-frexpl.c (main): Likewise.
24561         * tests/test-isnan.c (main): Likewise.
24562         * tests/test-isnand.h (main): Likewise.
24563         * tests/test-isnanf.h (main): Likewise.
24564         * tests/test-isnanl.h (main): Likewise.
24565         * tests/test-ldexpl.c (main): Likewise.
24566         * tests/test-round.c (main): Likewise.
24567         * tests/test-roundf.c (main): Likewise.
24568         * tests/test-roundl.c (main): Likewise.
24569         * tests/test-signbit.c (test_signbitf, test_signbitd)
24570         (test_signbitl): Likewise.
24571         * tests/test-snprintf-posix.h (test_function): Likewise.
24572         * tests/test-sprintf-posix.h (test_function): Likewise.
24573         * tests/test-strtod.c (main): Likewise.
24574         * tests/test-trunc1.c (main): Likewise.
24575         * tests/test-truncf1.c (main): Likewise.
24576         * tests/test-truncl.c (main): Likewise.
24577
24578         isnanl: work around icc bug
24579         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24580
24581 2010-11-03  Eric Blake  <eblake@redhat.com>
24582
24583         tests: fix compiler warnings
24584         * tests/test-getopt.h (test_getopt): Fix condition.
24585         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24586         * tests/test-pipe2.c (main): Likewise.
24587         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24588
24589         utimens: fix broken m4 test
24590         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24591
24592 2010-10-28  Bruno Haible  <bruno@clisp.org>
24593
24594         posix_spawn*, getdtablesize: Relax license.
24595         * modules/posix_spawn (License): Change to LGPLv2+.
24596         * modules/posix_spawnp (License): Likewise.
24597         * modules/posix_spawn-internal (License): Likewise.
24598         * modules/posix_spawnattr_init (License): Likewise.
24599         * modules/posix_spawnattr_getflags (License): Likewise.
24600         * modules/posix_spawnattr_setflags (License): Likewise.
24601         * modules/posix_spawnattr_getpgroup (License): Likewise.
24602         * modules/posix_spawnattr_setpgroup (License): Likewise.
24603         * modules/posix_spawnattr_getschedparam (License): Likewise.
24604         * modules/posix_spawnattr_setschedparam (License): Likewise.
24605         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24606         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24607         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24608         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24609         * modules/posix_spawnattr_getsigmask (License): Likewise.
24610         * modules/posix_spawnattr_setsigmask (License): Likewise.
24611         * modules/posix_spawnattr_destroy (License): Likewise.
24612         * modules/posix_spawn_file_actions_init (License): Likewise.
24613         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24614         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24615         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24616         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24617         * modules/getdtablesize (License): Likewise.
24618         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24619
24620 2010-10-26  Bruno Haible  <bruno@clisp.org>
24621
24622         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24623         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24624         Cygwin and mingw.
24625         Suggested by Eric Blake.
24626
24627 2010-10-26  Bruno Haible  <bruno@clisp.org>
24628
24629         stdio: Work around compilation error due to renameat() on Solaris 10.
24630         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24631         * lib/renameat.c: Don't include <unistd.h> here.
24632         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24633         Reported by Paul Eggert and Eric Blake.
24634
24635 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24636
24637         renameat: port to Solaris 10, which declares renameat in unistd.h
24638
24639         * lib/renameat.c: Include unistd.h before stdio.h, because
24640         Solaris 10 declares renameat in unistd.h.  Problem encountered
24641         when building GNU tar 1.24 on Solaris 10.
24642
24643 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24644
24645         fdopendir: fix C89 compilation
24646         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24647         compilers.
24648
24649 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24650
24651         inttostr: simplify by removing unnecessary redundancy
24652         * lib/anytostr.c: Don't include verify.h.
24653         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24654         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24655         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24656         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24657         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24658         Likewise.
24659         * modules/inttostr (Depends-on): Remove 'verify'.
24660
24661 2010-10-23  Bruno Haible  <bruno@clisp.org>
24662
24663         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24664         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24665         Reported by Eric Blake.
24666
24667 2010-10-23  Bruno Haible  <bruno@clisp.org>
24668
24669         Tests: Fix LOCALE_JA on MirBSD 10.
24670         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24671         to an UTF-8 locale.
24672         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24673         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24674         Reported by Eric Blake.
24675
24676 2010-10-21  Bruno Haible  <bruno@clisp.org>
24677
24678         nl_langinfo test: Avoid test failure on NetBSD 5.
24679         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24680         Reported by Eric Blake.
24681
24682 2010-10-21  Eric Blake  <eblake@redhat.com>
24683
24684         c-stack: work around libsigsegv 2.8 bug
24685         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24686         overflow on at least PowerPC64.
24687
24688 2010-10-17  Bruno Haible  <bruno@clisp.org>
24689
24690         userspec: Drop redundant file.
24691         * modules/userspec (Files): Remove lib/inttostr.h.
24692
24693 2010-10-17  Bruno Haible  <bruno@clisp.org>
24694
24695         nl_langinfo tests: Silence some warnings.
24696         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24697         Reported by Jim Meyering.
24698
24699 2010-10-17  Bruno Haible  <bruno@clisp.org>
24700
24701         Make use of GCC's attribute __alloc_size__.
24702         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24703         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24704         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24705         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24706         __alloc_size__.
24707         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24708         Suggested by Jim Meyering.
24709
24710 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24711
24712         bootstrap: anchor .gitignore entries.
24713         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24714         with...
24715         (insert_vc_ignore): ... this new function, which prepends `/' to
24716         all .gitignore entries before passing them to
24717         insert_sorted_if_absent.
24718
24719 2010-10-16  Bruno Haible  <bruno@clisp.org>
24720
24721         nextafter: Fix configure check.
24722         * modules/nextafter (configure.ac): Correct expected prototype.
24723
24724 2010-10-16  Bruno Haible  <bruno@clisp.org>
24725
24726         termios: Update documentation.
24727         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24728
24729 2010-10-16  Bruno Haible  <bruno@clisp.org>
24730
24731         tests: Make them compile with TinyCC.
24732         * tests/test-strstr.c (main): Remove parentheses around array
24733         initializer.
24734
24735 2010-10-15  Eric Blake  <eblake@redhat.com>
24736
24737         ignore-value: make header idempotent
24738         * lib/ignore-value.h: Add double-inclusion guards.
24739         Reported by Stefan Berger.
24740
24741 2010-10-15  Jim Meyering  <meyering@redhat.com>
24742
24743         GNUmakefile: handle "stable" target, not "major"
24744         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24745         lists in maint.mk and announce-gen.  Without this, "make stable"
24746         would fail to ensure that $(VERSION) is up to date.
24747
24748 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24749
24750         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24751         & co.
24752
24753 2010-10-14  Bruno Haible  <bruno@clisp.org>
24754
24755         vasnprintf: Don't set errno to 0.
24756         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24757         block that sets it to 0.
24758         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24759
24760 2010-10-14  Bruno Haible  <bruno@clisp.org>
24761
24762         socketlib: Fix.
24763         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24764         gl_PREREQ_SYS_H_WINSOCK2.
24765         Reported by Ian Beckwith <ianb@erislabs.net>.
24766
24767 2010-10-13  Jim Meyering  <meyering@redhat.com>
24768
24769         test-select-stdin.c: avoid warn_unused_result warnings
24770         * tests/test-select-stdin.c: Include "macros.h".
24771         ASSERT that read and fflush succeed.
24772
24773 2010-10-13  Jim Meyering  <meyering@redhat.com>
24774
24775         git-version-gen: do require git-VC'd files in cwd
24776         * build-aux/git-version-gen: Reject a git version string
24777         if there are no commits associated with the current directory.
24778         This avoids an unlikely false-positive (unrelated dir whose parent
24779         repository also contains a tag matching v*), as pointed out
24780         by Giuseppe Scrivano in
24781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24782
24783 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24784
24785         argv-iter: omit nonconforming declaration
24786         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24787         enum arg_iter_err declaration, which doesn't conform to C99.
24788         Solaris 10 cc warns about this.
24789
24790 2010-10-13  Eric Blake  <eblake@redhat.com>
24791
24792         termios: fix compilation on mingw
24793         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24794         (gl_TERMIOS_H): Adjust it on mingw.
24795         * modules/termios (Makefile.am): Substitute new key.
24796         * lib/termios.in.h (includes): Make include_next conditional.
24797         * doc/posix-headers/termios.texi (termios.h): Update
24798         documentation.
24799         Reported by Daniel P. Berrange.
24800
24801 2010-10-13  Jim Meyering  <meyering@redhat.com>
24802
24803         git-version-gen: don't require that .git/ be in the current dir
24804         * build-aux/git-version-gen: Adjust this script so that it works
24805         when run from any working directory beneath the top-level .git/-
24806         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24807         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24808
24809         test-select: avoid warn_unused_result warnings
24810         * tests/test-select.c: Include "macros.h".
24811         ASSERT that each call to read, write, and pipe succeeds.
24812         While not technically required, also check each "close".
24813         * modules/select-tests (Files): Add tests/macros.h.
24814
24815         test-symlinkat: remove declaration of unused local
24816         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24817
24818         test-inttostr: avoid shadowing warnings
24819         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24820         and use malloc rather than the stack for the same reason as
24821         mentioned in the comment justifying the other allocation.
24822
24823 2010-10-11  Bruno Haible  <bruno@clisp.org>
24824
24825         stdlib: Allow multiple gnulib generated replacements to coexist.
24826         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24827         Reported by Sam Steingold <sds@gnu.org>.
24828
24829 2010-10-11  Jim Meyering  <meyering@redhat.com>
24830
24831         fix a documentation typo
24832         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24833
24834 2010-10-11  Eric Blake  <eblake@redhat.com>
24835
24836         futimens: work around Solaris 11 bug
24837         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24838         * tests/test-futimens.h (test_futimens): Enhance, rather than
24839         weaken test.
24840         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24841
24842 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24843
24844         Indentation.
24845         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24846         higher-level operators more to the left.
24847
24848 2010-10-11  Jim Meyering  <meyering@redhat.com>
24849
24850         test-futimens: avoid unwarranted test failure on Solaris 5.11
24851         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24852         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24853         because it tries to dereference the NULL name argument.
24854
24855 2010-10-11  Bruno Haible  <bruno@clisp.org>
24856
24857         Indentation.
24858         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24859         indentation.
24860
24861 2010-10-11  Jim Meyering  <meyering@redhat.com>
24862
24863         spawn.in.h: make indentation consistent with parentheses
24864         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24865         Make indentation consistent with parentheses.
24866
24867 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24868
24869         Fix mismatched parens in previous commit
24870         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24871         parens.
24872
24873 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24874
24875         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24876
24877         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24878         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24879         * lib/malloca.c: Include "verify.h".
24880         (verify1): Remove, replacing with a verify call.
24881         * lib/relocwrapper.c (verify1): Likewise.
24882         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24883         Likewise.
24884         * modules/malloca (Depends-on): Add 'verify'.
24885         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24886         * modules/vasnprintf (Depends-on): Add 'verify'.
24887         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24888         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24889         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24890         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24891         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24892         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24893         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24894
24895         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24896
24897         Formerly the style was sometimes 2*X - 1, because the C standard
24898         was wrongly thought to disallow ?: in integral constant expressions.
24899         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24900         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24901         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24902         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24903         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24904         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24905         verify that time_t cannot be floating.
24906
24907 2010-10-08  Eric Blake  <eblake@redhat.com>
24908
24909         time: enforce recent POSIX ruling that time_t is integral
24910         * lib/time.in.h (__time_t_must_be_integral): Detect any
24911         problematic systems, allowing the rest of gnulib to assume POSIX.
24912
24913 2010-10-08  Jim Meyering  <meyering@redhat.com>
24914
24915         fdopendir: fix a bug on systems lacking openat and /proc support
24916         OpenBSD 4.7 is one such system.  The most noticeable effect was
24917         failure of any application making nontrivial use of fts: rm, du,
24918         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24919           ./rm: traversal failed: `a': Bad file descriptor
24920         Debugging that, you see that even though FD 6 was closed just
24921         prior to the opendir call in fd_clone_opendir, its resulting
24922         dir->dd_fd was 8, rather than the expected value of 6:
24923
24924         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24925         93                close (fd);
24926         (gdb) n
24927         94                dir = fd_clone_opendir (dupfd);
24928         (gdb) n
24929         95                saved_errno = errno;
24930         (gdb) p dir->dd_fd
24931         $11 = 8
24932
24933         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24934         The problem is that on OpenBSD, fd_clone_opendir has to resort
24935         to using the old-style save/restore CWD mechanism, due to its
24936         lack of openat/proc support, and *that* would steal the FD (6)
24937         that opendir was supposed to use.
24938
24939         The fix is to squirrel away the desired FD so that save_cwd uses a
24940         different one, and then free the dest FD right before calling opendir.
24941         That guarantees opendir will use the required file descriptor.
24942
24943         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24944
24945 2010-10-08  Bruno Haible  <bruno@clisp.org>
24946
24947         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24948         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24949
24950 2010-10-08  Bruno Haible  <bruno@clisp.org>
24951
24952         nanosleep: Make replacement POSIX compliant.
24953         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24954         is out of range.
24955         Reported by Jim Meyering.
24956
24957 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24958
24959         bootstrap: add hook for altering gnulib.mk, for Bison
24960         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24961         the Bison bootstrapping process can rewrite file names and variables
24962         in this file before later parts of 'bootstrap' use the file.
24963         Bison wants to include lib/gnulib.mk from the top-level makefile,
24964         so it needs the file names in this file to be relative to the top
24965         level, not relative to lib; plus it needs variable names to be
24966         rewritten.
24967         (slurp): Use the new function.
24968
24969         bootstrap: reformat for readability
24970         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24971
24972 2010-10-08  Eric Blake  <eblake@redhat.com>
24973
24974         docs: update cygwin progress
24975         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24976         1.7.7.
24977         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24978         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24979         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24980         * doc/posix-functions/carg.texi (carg): Likewise.
24981         * doc/posix-functions/cargf.texi (cargf): Likewise.
24982         * doc/posix-functions/casin.texi (casin): Likewise.
24983         * doc/posix-functions/casinf.texi (casinf): Likewise.
24984         * doc/posix-functions/casinh.texi (casinh): Likewise.
24985         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24986         * doc/posix-functions/catan.texi (catan): Likewise.
24987         * doc/posix-functions/catanf.texi (catanf): Likewise.
24988         * doc/posix-functions/catanh.texi (catanh): Likewise.
24989         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24990         * doc/posix-functions/ccos.texi (ccos): Likewise.
24991         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24992         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24993         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24994         * doc/posix-functions/cexp.texi (cexp): Likewise.
24995         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24996         * doc/posix-functions/cimag.texi (cimag): Likewise.
24997         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24998         * doc/posix-functions/clog.texi (clog): Likewise.
24999         * doc/posix-functions/clogf.texi (clogf): Likewise.
25000         * doc/posix-functions/conj.texi (conj): Likewise.
25001         * doc/posix-functions/conjf.texi (conjf): Likewise.
25002         * doc/posix-functions/cpow.texi (cpow): Likewise.
25003         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25004         * doc/posix-functions/cproj.texi (cproj): Likewise.
25005         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25006         * doc/posix-functions/creal.texi (creal): Likewise.
25007         * doc/posix-functions/crealf.texi (crealf): Likewise.
25008         * doc/posix-functions/csin.texi (csin): Likewise.
25009         * doc/posix-functions/csinf.texi (csinf): Likewise.
25010         * doc/posix-functions/csinh.texi (csinh): Likewise.
25011         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25012         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25013         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25014         * doc/posix-functions/ctan.texi (ctan): Likewise.
25015         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25016         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25017         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25018         * doc/posix-headers/complex.texi (complex.h): Likewise.
25019
25020 2010-10-07  Jim Meyering  <meyering@redhat.com>
25021
25022         parse-datetime: avoid compilation failure on OpenBSD 4.7
25023         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25024         This works around a compilation failure on OpenBSD 4.7:
25025         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25026
25027 2010-10-07  Eric Blake  <eblake@redhat.com>
25028
25029         docs: update cygwin progress
25030         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25031         1.7.6.
25032         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25033         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25034         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25035         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25036         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25037         Likewise.
25038         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25039         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25040         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25041         Likewise.
25042         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25043         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25044         Likewise.
25045         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25046         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25047         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25048         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25049         Likewise.
25050         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25051         Likewise.
25052         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25053
25054         docs: update parse-datetime history
25055         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25056         documentation of this function's history and alternatives.
25057
25058         cygwin: use more robust version check
25059         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25060         exclude an eventual cygwin 1.9.1.
25061         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25063         (gl_FUNC_STRCASESTR): Likewise.
25064         Reported by Bruno Haible.
25065
25066 2010-10-06  Bruno Haible  <bruno@clisp.org>
25067
25068         string, sys_select: Avoid #including large headers unless necessary.
25069         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25070         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25071         OSF/1, BeOS, Haiku.
25072         Reported by Jim Meyering.
25073
25074 2010-10-05  Eric Blake  <eblake@redhat.com>
25075
25076         memmem, strstr, strcasestr: fix bug with long periodic needle
25077         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25078         periodic needle having false positive.
25079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25080         and cygwin 1.7.7.
25081         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25083         (gl_FUNC_STRCASESTR): Likewise.
25084         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25085         * tests/test-memmem.c (main): Expose the bug.
25086         * tests/test-strcasestr.c (main): Likewise.
25087         * tests/test-strstr.c (main): Likewise.
25088         * tests/test-c-strcasestr.c (main): Likewise.
25089         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25090         * doc/posix-functions/strstr.texi (strstr): Likewise.
25091         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25092         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25093
25094 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25095
25096         parse-datetime: do some more renaming
25097         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25098         parse_datetime, not get_date.  Mention the renaming.
25099         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25100         in comments.
25101         * m4/bison.m4: Likewise.
25102
25103 2010-10-05  Eric Blake  <eblake@redhat.com>
25104
25105         parse-datetime: better name than get_date
25106         * NEWS: Reword the deprecation notice.
25107         * modules/get_date: Rename to modules/parse-datetime.
25108         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25109         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25110         * lib/get_date.y: Rename to lib/parse-datetime.y.
25111         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25112         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25113         * doc/getdate.texi: Provide fallback wrapper.
25114         * lib/getdate.h: Move guts, and wrap...
25115         * lib/parse-datetime.h: ...new file.
25116         * lib/parse-datetime.y (get_date): Rename...
25117         (parse_datetime): ...to this.
25118         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25119         (gl_PARSE_DATETIME): ...to this.
25120         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25121         documentation.
25122         * modules/getdate (Files): Provide fallback docs and header.
25123         (Notice, Depends-on): Update references.
25124         * tests/test-parse-datetime.c: Likewise.
25125         * DEPENDENCIES: Likewise.
25126         * MODULES.html.sh (Date and time <time.h>): Likewise.
25127         * doc/parse-datetime.texi (Date input formats)
25128         (Authors of parse_datetime): Likewise.
25129         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25130         (Include): Likewise.
25131         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25132         * gnulib-tool: Likewise.
25133         * m4/bison.m4 (gl_BISON): Likewise.
25134         Suggested by Bruno Haible.
25135
25136 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         more ports to Solaris tr, which needs [] around ranges
25139         * gnulib-tool: Solaris tr needs [] around ranges.
25140         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25141         * tests/test-pipe-filter-gi1.c (main): Likewise.
25142         * tests/test-pipe-filter-ii1.c (main): Likewise.
25143
25144 2010-10-05  Eric Blake  <eblake@redhat.com>
25145
25146         bootstrap: fix Solaris regression
25147         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25148         around ranges.
25149         Reported by Pádraig Brady.
25150
25151         bootstrap: work with pkg-config
25152         * build-aux/bootstrap (check_versions): Also transliterate - in
25153         prerequisite name.
25154         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25155         prerequisites that were already found, to avoid confusion.
25156         Reported by Justin Clift.
25157
25158         faccessat: remove unused wrappers
25159         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25160         presence of these wrappers dragged in -lgen on Solaris.
25161         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25162
25163 2010-10-05  Jim Meyering  <meyering@redhat.com>
25164
25165         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25166         * Makefile (sc_pragma_columns): New syntax-check rule.
25167
25168 2010-10-04  Bruno Haible  <bruno@clisp.org>
25169
25170         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25171         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25172         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25173         Reported by Bruce Korb and Eric Blake.
25174
25175 2010-10-04  Bruno Haible  <bruno@clisp.org>
25176
25177         threadlib: Make option --with-libpth-prefix work.
25178         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25179         use $LIBPTH, not just -lpth.
25180
25181 2010-10-04  Bruno Haible  <bruno@clisp.org>
25182
25183         Avoid line length limitation from HP NonStop system header files.
25184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25185         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25186         * lib/ctype.in.h: Likewise.
25187         * lib/dirent.in.h: Likewise.
25188         * lib/errno.in.h: Likewise.
25189         * lib/fcntl.in.h: Likewise.
25190         * lib/float.in.h: Likewise.
25191         * lib/getopt.in.h: Likewise.
25192         * lib/iconv.in.h: Likewise.
25193         * lib/inttypes.in.h: Likewise.
25194         * lib/langinfo.in.h: Likewise.
25195         * lib/locale.in.h: Likewise.
25196         * lib/math.in.h: Likewise.
25197         * lib/netdb.in.h: Likewise.
25198         * lib/netinet_in.in.h: Likewise.
25199         * lib/poll.in.h: Likewise.
25200         * lib/pthread.in.h: Likewise.
25201         * lib/pty.in.h: Likewise.
25202         * lib/sched.in.h: Likewise.
25203         * lib/se-selinux.in.h: Likewise.
25204         * lib/search.in.h: Likewise.
25205         * lib/signal.in.h: Likewise.
25206         * lib/spawn.in.h: Likewise.
25207         * lib/stdarg.in.h: Likewise.
25208         * lib/stddef.in.h: Likewise.
25209         * lib/stdint.in.h: Likewise.
25210         * lib/stdio.in.h: Likewise.
25211         * lib/stdlib.in.h: Likewise.
25212         * lib/string.in.h: Likewise.
25213         * lib/strings.in.h: Likewise.
25214         * lib/sys_file.in.h: Likewise.
25215         * lib/sys_ioctl.in.h: Likewise.
25216         * lib/sys_select.in.h: Likewise.
25217         * lib/sys_socket.in.h: Likewise.
25218         * lib/sys_stat.in.h: Likewise.
25219         * lib/sys_time.in.h: Likewise.
25220         * lib/sys_times.in.h: Likewise.
25221         * lib/sys_utsname.in.h: Likewise.
25222         * lib/sys_wait.in.h: Likewise.
25223         * lib/sysexits.in.h: Likewise.
25224         * lib/termios.in.h: Likewise.
25225         * lib/time.in.h: Likewise.
25226         * lib/unistd.in.h: Likewise.
25227         * lib/wchar.in.h: Likewise.
25228         * lib/wctype.in.h: Likewise.
25229         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25230         * modules/ctype (Makefile.am): Likewise.
25231         * modules/dirent (Makefile.am): Likewise.
25232         * modules/errno (Makefile.am): Likewise.
25233         * modules/fcntl-h (Makefile.am): Likewise.
25234         * modules/float (Makefile.am): Likewise.
25235         * modules/getopt-posix (Makefile.am): Likewise.
25236         * modules/iconv-h (Makefile.am): Likewise.
25237         * modules/inttypes (Makefile.am): Likewise.
25238         * modules/langinfo (Makefile.am): Likewise.
25239         * modules/locale (Makefile.am): Likewise.
25240         * modules/math (Makefile.am): Likewise.
25241         * modules/netdb (Makefile.am): Likewise.
25242         * modules/netinet_in (Makefile.am): Likewise.
25243         * modules/poll-h (Makefile.am): Likewise.
25244         * modules/pthread (Makefile.am): Likewise.
25245         * modules/pty (Makefile.am): Likewise.
25246         * modules/sched (Makefile.am): Likewise.
25247         * modules/search (Makefile.am): Likewise.
25248         * modules/selinux-h (Makefile.am): Likewise.
25249         * modules/signal (Makefile.am): Likewise.
25250         * modules/spawn (Makefile.am): Likewise.
25251         * modules/stdarg (Makefile.am): Likewise.
25252         * modules/stddef (Makefile.am): Likewise.
25253         * modules/stdint (Makefile.am): Likewise.
25254         * modules/stdio (Makefile.am): Likewise.
25255         * modules/stdlib (Makefile.am): Likewise.
25256         * modules/string (Makefile.am): Likewise.
25257         * modules/strings (Makefile.am): Likewise.
25258         * modules/sys_file (Makefile.am): Likewise.
25259         * modules/sys_ioctl (Makefile.am): Likewise.
25260         * modules/sys_select (Makefile.am): Likewise.
25261         * modules/sys_socket (Makefile.am): Likewise.
25262         * modules/sys_stat (Makefile.am): Likewise.
25263         * modules/sys_time (Makefile.am): Likewise.
25264         * modules/sys_times (Makefile.am): Likewise.
25265         * modules/sys_utsname (Makefile.am): Likewise.
25266         * modules/sys_wait (Makefile.am): Likewise.
25267         * modules/sysexits (Makefile.am): Likewise.
25268         * modules/termios (Makefile.am): Likewise.
25269         * modules/time (Makefile.am): Likewise.
25270         * modules/unistd (Makefile.am): Likewise.
25271         * modules/wchar (Makefile.am): Likewise.
25272         * modules/wctype (Makefile.am): Likewise.
25273
25274 2010-10-04  Bruno Haible  <bruno@clisp.org>
25275
25276         read-file tests: Avoid a test failure on NonStop Kernel.
25277         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25278         a regular file.
25279         Reported by Joachim Schmitz <schmitz@hp.com>.
25280
25281 2010-10-03  Bruno Haible  <bruno@clisp.org>
25282
25283         gnulib-tool: Fixes for --create-testdir with --libtool.
25284         * gnulib-tool (func_get_automake_snippet): Don't augment
25285         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25286         an executable.
25287         (func_create_testdir): Handle module 'alloca' like func_import.
25288         Reported by Bruce Korb <bruce.korb@gmail.com>.
25289
25290 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25291
25292         Avoid some lines longer than 80 characters.
25293         * lib/stdint.in.h: Break long comment lines.
25294         * lib/math.in.h: Likewise.
25295         (_GL_NUM_UINT_WORDS): New macro, for readability.
25296         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25297         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25298         * lib/stdlib.in.h: Likewise.
25299         * lib/spawn.in.h: Likewise.
25300         * lib/sys_socket.in.h: Update an URL.
25301         * lib/sys_stat.in.h: Break long line.
25302
25303 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25304
25305         Improve pmccabe2html.
25306         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25307         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25308         when the sources change. Remove the line in the HTML about "Used
25309         ranges" (which implied that there might be other unused ranges),
25310         rename "Resume" to "Summary" (easier to understand for more users).
25311         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25312         styles, and some unnecessary blank lines.
25313
25314 2010-10-03  Bruno Haible  <bruno@clisp.org>
25315             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25316
25317         acl: Add support for ACLs on NonStop Kernel.
25318         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25319         Check whether the function aclsort() exists.
25320         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25321         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25322         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25323         (acl_nontrivial [HAVE_ACLSORT]: New function.
25324         (file_has_acl): Implement for NonStop Kernel.
25325         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25326         (qset_acl): Implement for NonStop Kernel.
25327         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25328         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25329         (main): Implement for NonStop Kernel.
25330         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25331         Kernel. Handle this flavor.
25332         * tests/test-set-mode-acl.sh: Likewise.
25333         * tests/test-copy-acl.sh: Likewise.
25334         * tests/test-copy-file.sh: Likewise.
25335
25336 2010-10-03  Bruno Haible  <bruno@clisp.org>
25337
25338         Info about ACLs on NonStop Kernel.
25339         * doc/acl-resources.txt: Add info about NonStop Kernel.
25340         References by Joachim Schmitz <schmitz@hp.com>.
25341
25342 2010-10-02  Bruno Haible  <bruno@clisp.org>
25343
25344         Define missing EDQUOT on NonStop Kernel.
25345         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25346         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25347         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25348         missing.
25349         * doc/posix-headers/errno.texi: Mention the NSK bug.
25350         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25351         Reported by Joachim Schmitz <schmitz@hp.com>.
25352
25353 2010-10-02  Bruno Haible  <bruno@clisp.org>
25354
25355         Update doc for POSIX:2008.
25356         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25357         Update URL of POSIX specification.
25358
25359 2010-10-02  Bruno Haible  <bruno@clisp.org>
25360
25361         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25362         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25363         from gnulib, not from Automake.
25364
25365 2010-10-02  Bruno Haible  <bruno@clisp.org>
25366
25367         New module 'system-posix'.
25368         * modules/system-posix: New file.
25369         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25370         module is present.
25371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25372         GNULIB_SYSTEM_POSIX.
25373         * modules/stdlib (Depends-on): Remove sys_wait.
25374         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25375         * doc/posix-functions/system.texi: Mention the new module.
25376         * doc/posix-headers/stdlib.texi: Likewise.
25377         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25378         define test_sys_wait_macros to a no-op.
25379         Reported by Sam Steingold <sds@gnu.org>.
25380
25381 2010-09-30  Bruno Haible  <bruno@clisp.org>
25382
25383         More renaming from 'getdate' to 'get_date'.
25384         * doc/get_date.texi: Renamed from doc/getdate.texi.
25385         * modules/get_date (Files): Update.
25386         * MODULES.html.sh (Date and time <time.h>): Update.
25387         * DEPENDENCIES: Update.
25388         * gnulib-tool: Update comment.
25389         * m4/bison.m4 (gl_BISON): Likewise.
25390         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25391
25392 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25393
25394         bootstrap: support ACLOCAL_FLAGS during aclocal
25395         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25396         can add additional -I dir for third-party .m4 files.
25397
25398 2010-09-30  Eric Blake  <eblake@redhat.com>
25399
25400         bootstrap: use glibtoolize on MacOS
25401         * build-aux/bootstrap (check_versions): Convert libtool into
25402         libtoolize.
25403         (tool search): Move libtool check earlier, and look for
25404         glibtoolize for MacOS.
25405         (gnulib_tool_options): Auto-add --libtool when appropriate.
25406         Reported by Justin Clift.
25407
25408         poll: fix typo that broke test on MacOS
25409         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25410         Reported by Justin Clift.
25411
25412         getdate: rename to get_date
25413         Note: getdate.h is not renamed, to minimize client impact.
25414         * modules/getdate: Mark obsolete.  Move old contents...
25415         * modules/get_date: ...to new module name.
25416         * modules/getdate-tests: Move...
25417         * modules/get_date-tests: ...here.
25418         * m4/getdate.m4: Move...
25419         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25420         * lib/getdate.y: Move...
25421         * lib/get_date.y: ...here.
25422         * tests/test-getdate.c: Move...
25423         * tests/test-get_date.c: ...here.
25424         * doc/posix-functions/getdate.texi (getdate): Update name.
25425         * NEWS: Mention the change.
25426
25427 2010-09-29  Bruno Haible  <bruno@clisp.org>
25428
25429         Separate the module 'waitpid' from the module 'sys_wait'.
25430         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25431         present.
25432         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25433         gl_MODULE_INDICATOR_FOR_TESTS.
25434         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25435         * modules/sys_wait (Depends-on): Remove waitpid.
25436         (Makefile.am): Substitute GNULIB_WAITPID.
25437         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25438         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25439         signature only if the 'waitpid' module is present.
25440         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25441         * NEWS: Mention the change.
25442         * modules/grantpt (Depends-on): Add waitpid.
25443         * modules/wait-process (Depends-on): Likewise.
25444
25445 2010-09-29  Bruno Haible  <bruno@clisp.org>
25446
25447         More tests for module 'sys_wait'.
25448         * modules/sys_wait-c++-tests: New file.
25449         * tests/test-sys_wait-c++.cc: New file.
25450         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25451         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25452
25453 2010-09-29  Bruno Haible  <bruno@clisp.org>
25454
25455         New module 'waitpid'.
25456         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25457         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25458         Don't include <process.h>.
25459         (waitpid): Declare only, using modern idiom.
25460         * m4/waitpid.m4: New file.
25461         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25462         * modules/waitpid: New file.
25463         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25464         (Makefile.am): Update.
25465         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25466
25467 2010-09-28  Bruno Haible  <bruno@clisp.org>
25468
25469         poll: Assume ANSI C.
25470         * lib/poll.c (poll): Use an ANSI C declaration.
25471
25472 2010-09-28  Bruno Haible  <bruno@clisp.org>
25473
25474         poll-h: Create poll.h on all platforms.
25475         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25476         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25477         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25478         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25479         (gl_REPLACE_POLL_H): Don't set POLL_H.
25480         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25481         * modules/poll-h (Depends-on): Add include_next.
25482         (Makefile.am): Create poll.h unconditionally. Substitute also
25483         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25484
25485 2010-09-28  Bruno Haible  <bruno@clisp.org>
25486
25487         Tests for module 'poll-h'.
25488         * modules/poll-h-c++-tests: New file.
25489         * tests/test-poll-h-c++.cc: New file.
25490
25491         Tests for module 'poll-h'.
25492         * modules/poll-h-tests: New file.
25493         * tests/test-poll-h.c: New file.
25494
25495 2010-09-28  Bruno Haible  <bruno@clisp.org>
25496
25497         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25498         * modules/poll-h (Depends-on): Add 'extensions'.
25499
25500 2010-09-28  Bruno Haible  <bruno@clisp.org>
25501
25502         New module 'poll-h'.
25503         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25504         (poll): Use modern idiom.
25505         * modules/poll-h: New file.
25506         * modules/poll (Files): Remove lib/poll.in.h.
25507         (Depends-on): Add poll-h.
25508         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25509         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25510         * m4/poll_h.m4: New file.
25511         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25512         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25513         and invoke gl_REPLACE_POLL_H.
25514         * lib/poll.c: Use common idiom.
25515         * tests/test-poll.c: Likewise.
25516         * doc/posix-headers/poll.texi: Mention the poll-h module.
25517         Suggested by Eric Blake.
25518
25519 2010-09-26  Bruno Haible  <bruno@clisp.org>
25520
25521         sys_wait: Implement WSTOPSIG.
25522         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25523         Reported by Simon Josefsson.
25524
25525 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25526
25527         stdlib, sys_wait: Avoid compilation error on mingw.
25528         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25529
25530 2010-09-26  Bruno Haible  <bruno@clisp.org>
25531
25532         stdlib tests: Avoid code duplication.
25533         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25534         * modules/sys_wait-tests (Files): Likewise.
25535         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25536         * tests/test-stdlib.c: Include test-sys_wait.h.
25537         (main): Invoke test_sys_wait_macros.
25538         * tests/test-sys_wait.c: Include test-sys_wait.h.
25539         (main): Invoke test_sys_wait_macros.
25540
25541 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25542
25543         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25544         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25545         sure Windows sockets are working before calling getaddrinfo.
25546         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25547         * doc/gnulib.texi (Windows sockets): Fix typo.
25548
25549 2010-09-25  Bruno Haible  <bruno@clisp.org>
25550
25551         Tests for module 'regex-quote'.
25552         * modules/regex-quote-tests: New file.
25553         * tests/test-regex-quote.c: New file.
25554
25555         New module 'regex-quote'.
25556         * lib/regex-quote.h: New file.
25557         * lib/regex-quote.c: New file.
25558         * modules/regex-quote: New file.
25559         Suggested by Reuben Thomas <rrt@sc3d.org>.
25560
25561 2010-09-24  Bruno Haible  <bruno@clisp.org>
25562
25563         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25564         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25565
25566 2010-09-23  Bruno Haible  <bruno@clisp.org>
25567
25568         setenv: Relax license.
25569         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25570         Blake.
25571         Requested by Eric Blake.
25572
25573 2010-09-22  Bruno Haible  <bruno@clisp.org>
25574
25575         termios: Relax license.
25576         * modules/termios (License): Change to LGPLv2+.
25577         Requested by Eric Blake.
25578
25579 2010-09-22  Bruno Haible  <bruno@clisp.org>
25580
25581         threadlib: Allow the package to change the default to 'no'.
25582         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25583         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25584         Reported by Paul Eggert.
25585
25586 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25587             Bruno Haible  <bruno@clisp.org>
25588
25589         Fix endless loop in mbmemcasecoll.
25590         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25591         byte.
25592         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25593
25594 2010-09-22  Bruno Haible  <bruno@clisp.org>
25595
25596         Tests for module 'memcoll'.
25597         * modules/memcoll-tests: New file.
25598         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25599
25600         memcoll, xmemcoll: Clarify size vs. length.
25601         * modules/memcoll.c (memcoll0): Clarify specification.
25602         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25603         passed to collate_error.
25604
25605 2010-09-22  Bruno Haible  <bruno@clisp.org>
25606
25607         Tests for module 'memcasecmp'.
25608         * modules/memcasecmp-tests: New file.
25609         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25610
25611 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25612
25613         * lib/pthread.in.h: Add split double-inclusion guard, and include
25614         system <pthread.h> if there is one.  Use @@-style as in other
25615         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25616         pthread.h doesn't.
25617         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25618         (pthread_mutexattr_settype, pthread_mutex_trylock):
25619         New static inline functions, if there's no system <pthread.h>.
25620         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25621         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25622         Approximate with mutexes if the system lacks spinlocks, as in
25623         MacOS.
25624         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25625         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25626         @@-style.  Check for spinlocks separately.
25627         (gl_PTHREAD_DEFAULTS): New macro.
25628         * modules/pthread: Redo to use a more typical style for in.h files.
25629
25630 2010-09-21  Eric Blake  <eblake@redhat.com>
25631
25632         net_if: enhance tests
25633         * tests/test-net_if.c (main): Move signature checks earlier.
25634         Print failures to stderr.
25635         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25636         Document the bug that we do not yet fix.
25637
25638 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25639
25640         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25641         about gnulib, not GSS.
25642
25643 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25644
25645         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25646         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25647         for Emacs.
25648         * build-aux/pmccabe2html: Make Makefile.am example code more
25649         cut-and-paste friendly.
25650
25651 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25652
25653         * tests/test-net_if.c: New file.
25654         * modules/net_if-tests: New file.
25655
25656 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25657
25658         pthread: add pthread_spin_destroy
25659         * lib/pthread.in.h (pthread_spin_destroy): New function.
25660
25661 2010-09-19  Bruno Haible  <bruno@clisp.org>
25662
25663         gnulib-tool: Fix --help output.
25664         * gnulib-tool (func_usage): Fix help message.
25665         Reported by Reuben Thomas <rrt@sc3d.org>.
25666
25667 2010-09-18  Jim Meyering  <meyering@redhat.com>
25668
25669         maint.mk: avoid unexpanded \n in two diagnostics
25670         * top/maint.mk (sc_prohibit_always_true_header_tests):
25671         Don't use a literal \n in a halt=... assignment.  It would not be
25672         expanded, and the two \n bytes would appear in the diagnostic output
25673         rather than the desired newline.  Use halt=$$(printf ... instead.
25674         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25675
25676 2010-09-18  Bruno Haible  <bruno@clisp.org>
25677
25678         netinet_in: Doc tweak.
25679         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25680         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25681
25682 2010-09-18  Jim Meyering  <meyering@redhat.com>
25683
25684         init.sh: correct an outdated comment
25685         * tests/init.sh (create_exe_shims_):  s/function/alias/
25686
25687         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25688         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25689         a file named "*.exe" is removed between the glob expansion and the
25690         processing of that oddly named file.
25691
25692 2010-09-17  Eric Blake  <eblake@redhat.com>
25693
25694         mirbsd: add some more support
25695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25696         in BSD family.
25697         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25698         devices as OpenBSD.
25699         * m4/host-os.m4 (mirbsd): Add MirBSD.
25700
25701         tests: fix unportable assumption on sys/wait.h
25702         * tests/test-sys_wait.c (main): Relax test.
25703         * tests/test-stdlib.c (main): Likewise.
25704
25705         init.sh: accomodate directory with no .exes
25706         * tests/init.sh: Accomodate directory containing only scripts.
25707
25708         tests: avoid compiler warning
25709         * tests/test-stdlib.c (main): Use the variable.
25710
25711         fdutimens, fdutimensat: update signature, again
25712         * lib/utimens.h (gl_futimens): Delete, and move signature...
25713         (fdutimens): ...here.
25714         (fdutimensat): Rearrange signature.
25715         (lutimensat): Rename variable for clarity.
25716         * lib/fdutimensat.c (fdutimensat): Update signature.
25717         * lib/utimens.c (fdutimens): Likewise.
25718         (gl_futimens): Delete.
25719         (utimens, lutimens): Update callers.
25720         * lib/futimens.c (futimens): Likewise.
25721         * tests/test-fdutimensat.c: Likewise.
25722         * tests/test-utimens.c: Likewise.
25723         * tests/test-futimens.h: Update comment.
25724         * NEWS: Mention this.
25725         Suggested by Paul Eggert.
25726
25727 2010-09-17  Bruno Haible  <bruno@clisp.org>
25728
25729         Take over the maintenance of some older macros from Autoconf.
25730         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25731         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25732         GNU Autoconf.
25733         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25734         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25735
25736 2010-09-17  Eric Blake  <eblake@redhat.com>
25737
25738         fdutimensat: drop atflag validation
25739         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25740         with valid fd, to close a race scenario where futimens is
25741         unsupported and FILE was replaced by a symlink.
25742         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25743         accordingly.
25744         Suggested by Paul Eggert.
25745
25746 2010-09-16  Bruno Haible  <bruno@clisp.org>
25747
25748         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25749         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25750
25751 2010-09-16  Bruno Haible  <bruno@clisp.org>
25752
25753         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25754         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25755         login_tty exists.
25756         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25757
25758 2010-09-16  Bruno Haible  <bruno@clisp.org>
25759
25760         login_tty: Make the replacement code work on BSD systems.
25761         * lib/login_tty.c: Include <sys/ioctl.h>.
25762         (login_tty): Use ioctl TIOCSCTTY when available.
25763         * modules/login_tty (Depends-on): Add sys_ioctl.
25764         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25765
25766 2010-09-16  Bruno Haible  <bruno@clisp.org>
25767
25768         login_tty: Stricter unit test.
25769         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25770         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25771         and tcgetsid() after login_tty.
25772         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25773
25774 2010-09-16  Bruno Haible  <bruno@clisp.org>
25775
25776         New module 'tcgetsid'.
25777         * lib/tcgetsid.c: New file.
25778         * m4/tcgetsid.m4: New file.
25779         * modules/tcgetsid: New file.
25780         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25781         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25782         GNULIB_TCGETSID, HAVE_TCGETSID.
25783         * lib/termios.in.h: Include <sys/types.h>.
25784         (tcgetsid): New declaration.
25785         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25786         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25787         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25788         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25789
25790 2010-09-16  Bruno Haible  <bruno@clisp.org>
25791
25792         Tests for module 'termios'.
25793         * modules/termios-c++-tests: New file.
25794         * modules/termios-tests: New file.
25795         * tests/test-termios-c++.cc: New file.
25796         * tests/test-termios.c: New file.
25797
25798         New module 'termios'.
25799         * modules/termios: New file.
25800         * lib/termios.in.h: New file.
25801         * m4/termios_h.m4: New file.
25802         * doc/posix-headers/termios.texi: Mention the new module.
25803
25804 2010-09-16  Eric Blake  <eblake@redhat.com>
25805
25806         fdutimensat: add an atflag parameter
25807         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25808         * lib/utimens.h (fdutimensat): Update prototype.
25809         * tests/test-fdutimensat.c: Adjust test to match.
25810         * NEWS: Document the change.
25811         Suggested by Paul Eggert.
25812
25813 2010-09-16  Bruno Haible  <bruno@clisp.org>
25814
25815         Fix typos in comments.
25816         * lib/striconveh.h: Fix typo in comment.
25817         * lib/login_tty.c (login_tty): Likewise.
25818
25819 2010-09-15  Bruno Haible  <bruno@clisp.org>
25820
25821         stdlib: clarify MirBSD WEXITSTATUS bug
25822         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25823         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25824
25825 2010-09-15  Eric Blake  <eblake@redhat.com>
25826
25827         stdlib: work around MirBSD WEXITSTATUS bug
25828         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25829         * modules/stdlib (Depends-on): Add sys_wait.
25830         * tests/test-sys_wait.c (main): Enhance test.
25831         * tests/test-stdlib.c (main): Likewise.
25832         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25833
25834         docs: mention MacOS issue with WEXITSTATUS(constant)
25835         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25836         issue.
25837         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25838
25839         strnlen: add tests
25840         * modules/strnlen-tests: New file.
25841         * tests/test-strnlen.c: Likewise.
25842
25843 2010-09-14  Bruno Haible  <bruno@clisp.org>
25844
25845         unistr/base: Avoid link errors when module 'libunistring' is also used.
25846         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25847         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25848         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25849         Declare also when HAVE_LIBUNISTRING is set.
25850         Reported by Pádraig Brady <P@draigbrady.com>.
25851
25852 2010-09-14  Eric Blake  <eblake@redhat.com>
25853
25854         test-rawmemchr: make more robust
25855         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25856         (Depends-on, configure.ac): Add needed prerequisites to use it.
25857         * modules/memchr-tests (Files, Depends-on, configure.ac):
25858         Likewise, to avoid implicit reliance on memchr module prereqs.
25859         * tests/test-memchr.c (main): Ensure proper masking.
25860         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25861         reads.
25862
25863         memchr: detect glibc Alpha bug
25864         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25865         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25866         Alpha.
25867         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25868         * tests/test-memchr.c (main): Enhance test.
25869         Reported by Nelson H. F. Beebe.
25870
25871 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25872
25873         fts, getcwd, glob: audit for dirfd returning -1
25874         * lib/fts.c (opendir): Remove #define; no longer used.
25875         (opendirat): New arg PDIR_FD.  All callers changed.
25876         (fts_build, _opendir2): Use new opendirat to avoid the need for
25877         dirfd, or for checking whether dirfd returns a negative value.
25878         Don't use opendir; always use openat followed by fdopendir.
25879         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25880         it.
25881         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25882         returns -1 here.
25883         * modules/fts (Depends-on): Remove dirfd.
25884         * modules/getcwd (Depends-on): Likewise.
25885
25886 2010-09-13  Eric Blake  <eblake@redhat.com>
25887
25888         float: fix broken MirBSD header
25889         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25890         * doc/posix-headers/float.texi (float.h): Document it.
25891
25892 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25893
25894         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25895         * lib/fts.c (opendirat): New arg extra_flags.
25896         (__opendir2): Use it to avoid following symlinks when opening
25897         a directory, if symlinks are not supposed to be followed.  See
25898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25899
25900         fdopendir: preserve argument fd before returning
25901         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25902         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25903         (fdopendir): Use them, arranging for FD to be open to the same
25904         directory that it was when it started.  (It might be temporarily
25905         closed while fdopendir is running, so this not thread- or
25906         signal-safe.)  Be careful to do the right thing even when file
25907         descriptors are scarce and dup fails with errno == EMFILE.  See
25908         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25909
25910 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25911
25912         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25913         * NEWS: Document change.
25914         * m4/regex.m4: Disable test for regoff_t size.
25915
25916 2010-09-13  Jim Meyering  <meyering@redhat.com>
25917
25918         fts: don't operate on an invalid file descriptor after failed dup
25919         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25920         negative file descriptor.
25921
25922 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25923
25924         savedir: add streamsavedir, deprecate fdsavedir
25925         * NEWS: Mention deprecation of fdsavedir.
25926         * lib/savedir.c (streamsavedir): New extern function, whose name
25927         ends in "savedir" to be consistent with the others.  This differs
25928         from savedirstream in that it doesn't close its argument.  The
25929         next version of GNU tar will use this instead of fdsavedir, to
25930         avoid some race conditions and conserve file descriptors.
25931         (savedirstream): Reimplement as a wrapper around streamsavedir.
25932         (fdsavedir): Add a comment deprecating this function.  As far as
25933         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25934         * lib/savedir.h (streamsavedir): New decl.
25935         (fdsavedir): Add a comment deprecating this.
25936
25937 2010-09-10  Bruno Haible  <bruno@clisp.org>
25938
25939         langinfo: Fix last commit.
25940         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25941         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25943
25944 2010-09-10  Bruno Haible  <bruno@clisp.org>
25945
25946         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25947         * lib/progreloc.c (O_EXEC): Define fallback.
25948
25949 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25950
25951         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25952         * NEWS: Document recent changes to fcntl-h.
25953         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25954         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25955         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25956         Similarly for O_SEARCH; this last was already true, but not documented.
25957         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25958         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25959         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25960         Likewise.
25961         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25962         is zero, not whether it is defined.
25963         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25964         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25965         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25966
25967 2010-09-10  Bruno Haible  <bruno@clisp.org>
25968
25969         langinfo, nl_langinfo: Fix for IRIX 5.3.
25970         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25971         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25972         HAVE_LANGINFO_YESEXPR.
25973         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25974         HAVE_LANGINFO_YESEXPR.
25975         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25976         HAVE_LANGINFO_T_FMT_AMPM is 0.
25977         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25978         HAVE_LANGINFO_YESEXPR is 0.
25979         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25980         NOEXPR.
25981         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25982         * doc/posix-functions/nl_langinfo.texi: Likewise.
25983         Reported by Eric Blake.
25984
25985 2010-09-10  Bruno Haible  <bruno@clisp.org>
25986
25987         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25988         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25989         on FreeBSD 8.0 and OpenBSD 4.6.
25990         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25991         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25992         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25993         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25994         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25995         ac_includes_default.
25996         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25997
25998 2010-09-09  Eric Blake  <eblake@redhat.com>
25999
26000         strsignal: work around NetBSD bug
26001         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26002         * lib/string.in.h (includes): Likewise.
26003         * doc/posix-functions/strsignal.texi (strsignal): Document the
26004         bug.
26005         Reported by Nelson H. F. Beebe.
26006
26007         gnulib-tool: work with NetBSD /bin/sh
26008         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26009         (func_get_description, func_get_comment, func_get_status)
26010         (func_get_notice, func_get_applicability, func_get_filelist)
26011         (func_get_dependencies, func_get_autoconf_early_snippet)
26012         (func_get_autoconf_snippet, func_get_automake_snippet)
26013         (func_get_include_directive, func_get_link_directive)
26014         (func_get_license, func_get_maintainer, func_import): Avoid
26015         shell syntax errors from parsing syntax extensions.
26016
26017 2010-09-09  Bruno Haible  <bruno@clisp.org>
26018
26019         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26020         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26021         a reliable way to determine whether the 'alias' command works.
26022
26023 2010-09-08  Jim Meyering  <meyering@redhat.com>
26024
26025         init.sh: penalize a set-x-impaired shell; don't disqualify it
26026         * tests/init.sh: Too many shells corrupt application stderr when
26027         you set -x, so we can't afford to disqualify them, since at least
26028         on Irix-6.5, that would disqualify all bourne shells.
26029         Instead, use a two-pass approach.
26030         On the first pass, try to find a shell that meets the stricter
26031         condition that set -x does not corrupt stderr.
26032         If no shell meets the stricter condition, retest each candidate
26033         shell, but without that extra condition.  Finally, when
26034         VERBOSE=yes is requested and set -x might cause trouble, simply
26035         issue a warning and refrain from enabling debug output.
26036
26037 2010-09-08  Eric Blake  <eblake@redhat.com>
26038
26039         unsetenv: fix OpenBSD bug
26040         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26041         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26042         documentation.
26043         Reported by Jim Meyering.
26044
26045         strtod: work around IRIX 6.5 bug
26046         * lib/strtod.c (strtod): Reparse number on shorter string if
26047         exponent parse was invalid.
26048         * tests/test-strtod.c (main): Add check for "0x1p 2".
26049         Reported by Tom G. Christensen.
26050
26051         getopt: optimize previous patch
26052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26053         empty variable.  Speed up awk script.
26054         Reported by Paolo Bonzini.
26055
26056 2010-09-08  Jim Meyering  <meyering@redhat.com>
26057
26058         test.sh: disqualify shells for which set -x corrupts stderr
26059         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26060         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26061         appear in stderr output.  For example, this command:
26062             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26063         prints "P=1" on those two systems:
26064
26065 2010-09-08  Bruno Haible  <bruno@clisp.org>
26066
26067         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26068         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26069         commands, because some shells ignore redirections when there is an
26070         error in the command lookup.
26071         Reported by Eric Blake.
26072
26073 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26074
26075         * lib/regex.h: Fix a mention of `regex_compile' (should be
26076         `re_compile_pattern').
26077         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26078         (re_set_registers): Correct name of parameter in comment.
26079
26080         * doc/regex.texi: Add documentation for missing syntax flags.
26081         Remove commented-out documentation of defunct syntax option
26082         RE_NO_EMPTY_ALTS.
26083         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26084         Add documentation of re_set_registers.
26085         Document trick to re-use a pattern buffer by setting fastmap manually.
26086         Update documentation of struct re_pattern_buffer per public members.
26087         Uncomment documentation of equivalence class operators and
26088         collating symbol operators, since they are now implemented,
26089         Explain leftmost-longest matching in relation to alternatives.
26090         Tidy documentation of substring matching.
26091         Remove POSIX documentation, which is done better in
26092         glibc, and refer the reader there. Keep BSD API documentation, as
26093         that is not readily available elsewhere.
26094
26095 2010-09-07  Eric Blake  <eblake@redhat.com>
26096
26097         getopt: handle POSIXLY_CORRECT set but not exported
26098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26099         export state of POSIXLY_CORRECT, due to bash set -o posix.
26100         Reported by Dustin J. Mitchell.
26101
26102 2010-09-05  Bruno Haible  <bruno@clisp.org>
26103
26104         gnulib-tool: Highlight the changed options.
26105         * gnulib-tool (func_usage): Display the --import, --add-import,
26106         --remove-import explanations in bold font.
26107
26108 2010-09-06  Karl Berry  <karl@gnu.org>
26109
26110         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26111
26112 2010-09-05  Bruno Haible  <bruno@clisp.org>
26113
26114         uniwidth/width: Update comment.
26115         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26116         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26117
26118 2010-09-05  Bruno Haible  <bruno@clisp.org>
26119
26120         isinf, isnan: Relax license.
26121         * modules/isinf (License): Change from GPL to LGPL, with consent from
26122         Ben Pfaff.
26123         * modules/isnan (License): Likewise.
26124         Requested by Ludovic Courtès.
26125
26126 2010-09-04  Bruno Haible  <bruno@clisp.org>
26127
26128         gnulib-tool: Help migration from --import to --add-import or --update.
26129         * gnulib-tool: Emit a verbose error message when --import is used
26130         without any module name.
26131
26132 2010-09-04  Bruno Haible  <bruno@clisp.org>
26133
26134         Update doc about gnulib-tool.
26135         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26136         'gnulib-tool --update' in more detail.
26137         Reported by Eric Blake.
26138
26139 2010-09-04  Bruno Haible  <bruno@clisp.org>
26140
26141         gnulib-tool: Change --import. New options --add/remove-import.
26142         * gnulib-tool: New options --add-import, --remove-import.
26143         (func_usage): Document them.
26144         (have_associative): Define always.
26145         (func_import): In import mode, don't merge the specified settings with
26146         the cached settings. Implement remove-import mode.
26147         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26148         Explain when to use them versus --import.
26149         (Simple update): Use --add-import instead of --import.
26150         * NEWS: Mention the change.
26151
26152 2010-09-04  Bruno Haible  <bruno@clisp.org>
26153
26154         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26155         separate gnulib.mk.
26156
26157 2010-09-04  Bruno Haible  <bruno@clisp.org>
26158
26159         gnulib-tool: Don't talk about CVS any more.
26160         * gnulib-tool (func_usage, func_import): Write "version control"
26161         instead of CVS.
26162
26163 2010-09-04  Jim Meyering  <meyering@redhat.com>
26164
26165         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26166         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26167         false positives (whose names may be ill-chosen) when searching
26168         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26169         would cause a false-positive.
26170
26171         avoid coreutils "make distcheck" failure
26172         Coreutils tests with an absolute build directory name that contains
26173         a space.  Not quoting this directory name caused a failure.
26174         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26175         * tests/test-vc-list-files-cvs.sh: Likewise.
26176
26177 2010-09-04  Bruno Haible  <bruno@clisp.org>
26178
26179         gnulib-tool: Avoid error when run in a package without Makefile.am.
26180         * gnulib-tool: When collecting the m4dirs in a package that does not
26181         have a Makefile.am, eliminate those directories that contain no
26182         gnulib-cache.m4. Fix expression that counts these directories.
26183
26184 2010-09-04  Bruno Haible  <bruno@clisp.org>
26185
26186         update-copyright test: Improve output when perl is missing or too old.
26187         * tests/test-update-copyright.sh: Move test of Perl version down after
26188         the test whether Perl exists. Provide an explanation relating Perl's
26189         error message to Automake's SKIP: message.
26190
26191 2010-09-04  Bruno Haible  <bruno@clisp.org>
26192
26193         Don't augment PATH in TESTS_ENVIRONMENT.
26194         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26195         set abs_aux_dir instead of augmenting PATH.
26196         * modules/vc-list-files-tests (Makefile.am): Likewise.
26197         * tests/test-update-copyright.sh: Augment PATH here.
26198         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26199         path_prepend_.
26200         * tests/test-vc-list-files-git.sh: Likewise.
26201
26202 2010-09-04  Jim Meyering  <meyering@redhat.com>
26203
26204         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26205         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26206
26207 2010-09-04  Bruno Haible  <bruno@clisp.org>
26208
26209         strdup: Fix compilation error in C++ mode.
26210         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26211         the macro.
26212
26213 2010-09-04  Bruno Haible  <bruno@clisp.org>
26214
26215         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26216         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26217         macro into a function.
26218         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26219
26220 2010-09-04  Bruno Haible  <bruno@clisp.org>
26221
26222         Set PATH_SEPARATOR the same way autoconf does.
26223         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26224         the value of PATH_SEPARATOR the same way autoconf-generated configure
26225         scripts do.
26226         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26227         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26228
26229 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26230
26231         Set PATH_SEPARATOR the same way autoconf does.
26232         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26233         the same way autoconf-generated configure scripts do.
26234         * posix-modules: Likewise.
26235
26236 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26237
26238         hash: fix safe_hasher const typo
26239         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26240         const; otherwise, there is a type error later.
26241
26242 2010-09-02  Jim Meyering  <meyering@redhat.com>
26243
26244         test-update-copyright.sh: require perl 5.8.0
26245         * tests/test-update-copyright.sh: Require 5.8.0,
26246         which Tom G. Christensen has confirmed is adequate,
26247         while 5.6.1 is not.
26248
26249 2010-09-02  Eric Blake  <eblake@redhat.com>
26250
26251         tests: init.sh improvements for re-exec'ing with zsh
26252         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26253         -vx through shell re-exec.
26254         Reported by Tom G. Christensen.
26255
26256         wctype: fix typo in previous commit
26257         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26258         Reported by Ludovic Courtès.
26259
26260 2010-09-02  Jim Meyering  <meyering@redhat.com>
26261
26262         test-update-copyright.sh: skip test if Perl is too old
26263         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26264         Reported by Tom G. Christensen.
26265
26266 2010-09-02  Bruno Haible  <bruno@clisp.org>
26267
26268         wctype: Avoid compilation error on IRIX 6.5.30.
26269         * lib/wctype.in.h (iswblank): Declare with a replacement if
26270         REPLACE_ISWBLANK is set.
26271         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26272         declared. Set REPLACE_ISWBLANK.
26273         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26274         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26275         * doc/posix-headers/wctype.texi: Likewise.
26276         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26277
26278 2010-09-01  Bruno Haible  <bruno@clisp.org>
26279
26280         New module 'socketlib'.
26281         * modules/socketlib: New file.
26282         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26283         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26284         * modules/sockets (Depends-on): Add socketlib.
26285         Suggested by Sam Steingold <sds@gnu.org>.
26286
26287 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26288
26289         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26290
26291         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26292         when one needs search access to a directory but not read access.
26293         On systems where it is available, it works in some cases where
26294         O_RDONLY does not, namely on directories that are searchable but
26295         not readable, and which need only to be searchable.  If O_SEARCH
26296         is not available, fall back to the traditional method of using
26297         O_RDONLY.
26298
26299         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26300         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26301         when opening a directory that needs only to be searchable.
26302         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26303         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26304         * lib/openat-proc.c (openat_proc_name): Likewise.
26305         * lib/openat.c (openat_needs_fchdir): Likewise.
26306         * lib/save-cwd.c (save_cwd): Likewise.
26307         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26308
26309 2010-08-28  Bruno Haible  <bruno@clisp.org>
26310
26311         New module 'host-cpu-c-abi'.
26312         * modules/host-cpu-c-abi: New file.
26313         * m4/host-cpu-c-abi.m4: New file, based on part of
26314         clisp/src/m4/general.m4.
26315         Requested by Sam Steingold <sds@gnu.org>.
26316
26317 2010-08-31  Eric Blake  <eblake@redhat.com>
26318         and Jim Meyering  <meyering@redhat.com>
26319
26320         hash: factor, and guard against misbehaving hasher function
26321         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26322         of table->hasher's return value.  Also protect against a hash value
26323         so large that adding it to table->bucket results in a NULL pointer.
26324         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26325         Use it in place of open-coded check-and-abort.
26326
26327 2010-08-30  Bruno Haible  <bruno@clisp.org>
26328
26329         hash: silence spurious clang warning
26330         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26331         Reported by Eric Blake.
26332
26333 2010-08-30  Eric Blake  <eblake@redhat.com>
26334
26335         strstr, memmem, strcasestr: avoid leaked shell message
26336         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26337         FreeBSD.
26338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26340
26341         tests: silence clang warning
26342         * tests/test-malloca.c (do_allocation): Avoid dead store.
26343
26344 2010-08-29  Bruno Haible  <bruno@clisp.org>
26345
26346         gettext: Fix recent mistake.
26347         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26348
26349 2010-08-29  Bruno Haible  <bruno@clisp.org>
26350
26351         selinux-h: Offer a --without-selinux option.
26352         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26353         --without-selinux was specified, skip all tests and define
26354         HAVE_SELINUX_SELINUX_H to 0.
26355         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26356         set LIB_SELINUX to empty.
26357         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26358         gl_LIBSELINUX. If --without-selinux was specified, replace
26359         selinux/context.h.
26360         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26361
26362 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26363             Bruno Haible  <bruno@clisp.org>
26364
26365         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26366         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26367         of HAVE_REALLOC.
26368         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26369         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26370         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26371         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26372
26373 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26374             Bruno Haible  <bruno@clisp.org>
26375
26376         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26377         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26378         HAVE_CALLOC.
26379         * lib/xmalloc.c: Update accordingly.
26380         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26381         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26382         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26383
26384 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26385             Bruno Haible  <bruno@clisp.org>
26386
26387         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26388         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26389         HAVE_MALLOC.
26390         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26391         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26392         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26393
26394 2010-08-29  Bruno Haible  <bruno@clisp.org>
26395
26396         Update modules list.
26397         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26398         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26399         (String handling <string.h>): Add astrxfrm.
26400         (File system functions): Add readlinkat.
26401
26402 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26403
26404         Tests for module 'realloc-gnu'.
26405         * modules/realloc-gnu-tests: New file.
26406         * tests/test-realloc-gnu.c: New file.
26407
26408         Tests for module 'calloc-gnu'.
26409         * modules/calloc-gnu-tests: New file.
26410         * tests/test-calloc-gnu.c: New file.
26411
26412         Tests for module 'malloc-gnu'.
26413         * modules/malloc-gnu-tests: New file.
26414         * tests/test-malloc-gnu.c: New file.
26415
26416 2010-08-28  Bruno Haible  <bruno@clisp.org>
26417
26418         Rename module 'realloc' -> 'realloc-gnu'.
26419         * modules/realloc-gnu: New file, copied from modules/realloc.
26420         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26421         obsolete.
26422         * modules/mgetgroups (Depends-on): Update.
26423         * doc/posix-functions/realloc.texi: Update.
26424         * NEWS: Mention the change.
26425
26426         Rename module 'calloc' -> 'calloc-gnu'.
26427         * modules/calloc-gnu: New file, copied from modules/calloc.
26428         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26429         obsolete.
26430         * doc/posix-functions/calloc.texi: Update.
26431         * NEWS: Mention the change.
26432
26433         Rename module 'malloc' -> 'malloc-gnu'.
26434         * modules/malloc-gnu: New file, copied from modules/malloc.
26435         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26436         obsolete.
26437         * modules/argp (Depends-on): Update.
26438         * modules/regex (Depends-on): Update.
26439         * doc/posix-functions/malloc.texi: Update.
26440         * NEWS: Mention the change.
26441
26442 2010-08-28  Eric Blake  <eblake@redhat.com>
26443
26444         pread, pwrite: add missing dependency
26445         * modules/pread (Depends-on): Add extensions.
26446         * modules/pwrite (Depends-on): Likewise.
26447
26448 2010-08-28  Bruno Haible  <bruno@clisp.org>
26449
26450         unistr/u*-strchr: Fix tests dependencies.
26451         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26452         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26453         Reported by Ian Beckwith <ianb@erislabs.net>.
26454
26455 2010-08-28  Bruno Haible  <bruno@clisp.org>
26456
26457         read-file: Don't occupy too much unused memory.
26458         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26459
26460 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26461             Eric Blake  <eblake@redhat.com>
26462             Bruno Haible  <bruno@clisp.org>
26463
26464         read-file: Avoid memory reallocations with regular files.
26465         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26466         (fread_file): With regular files, use the remaining length as the
26467         initial buffer size.  Check against overflow.
26468         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26469         sys_stat.
26470
26471 2010-08-28  Bruno Haible  <bruno@clisp.org>
26472
26473         ftello: Relax license.
26474         * modules/ftello (License): Relax to LGPLv2+.
26475         Reported by Eric Blake.
26476
26477 2010-08-28  Bruno Haible  <bruno@clisp.org>
26478
26479         Avoid relocwrapper link errors due to gnulib replacement functions.
26480         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26481         function.
26482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26483
26484 2010-08-28  Bruno Haible  <bruno@clisp.org>
26485
26486         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26487         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26488         defined.
26489         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26490         Suggested by Eric Blake.
26491
26492 2010-08-28  Bruno Haible  <bruno@clisp.org>
26493
26494         sys_socket, netdb: Ensure socklen_t gets defined.
26495         * modules/sys_socket (Depends-on): Add socklen.
26496         * modules/netdb (Depends-on): Likewise.
26497         * modules/getaddrinfo (Depends-on): Remove socklen.
26498         * modules/getsockopt (Depends-on): Likewise.
26499         * modules/setsockopt (Depends-on): Likewise.
26500         * tests/test-sys_socket.c: Check that socklen_t is defined.
26501         * tests/test-netdb.c: Likewise.
26502         * m4/socklen.m4: Update comments.
26503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26504
26505 2010-08-27  Eric Blake  <eblake@redhat.com>
26506
26507         login_tty: add missing dependency
26508         * modules/login_tty (Depends-on): Add pty.
26509
26510 2010-08-26  Eric Blake  <eblake@redhat.com>
26511
26512         lib-symbol-versions: fix m4 quoting
26513         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26514         format for AC_LINK_IFELSE.
26515
26516         glob: fix compile test
26517         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26518
26519         btowc: fix missing file
26520         * modules/btowc (Files): Also ship locale-fr.m4.
26521
26522         lseek: fix link test
26523         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26524         AC_LINK_IFELSE.
26525
26526         include_next: silence autoconf 2.68 warning
26527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26528         AC_COMPILE_IFELSE as special.
26529         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26530         autoconf < 2.68.
26531
26532         acl: fix compilation test
26533         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26534         AC_COMPILE_IFELSE.
26535
26536 2010-08-26  Bruno Haible  <bruno@clisp.org>
26537
26538         Modernize AC_TRY_RUN invocations.
26539         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26540         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26541         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26542         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26543         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26544         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26545         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26547         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26548         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26549         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26550         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26551         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26552         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26554         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26555         gl_MBRLEN_NUL_RETVAL): Likewise.
26556         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26557         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26558         Likewise.
26559         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26560         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26561         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26562         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26563         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26564         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26565         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26566         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26567         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26568         Likewise.
26569         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26570         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26571         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26572         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26574         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26575         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26576         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26577         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26579
26580 2010-08-26  Bruno Haible  <bruno@clisp.org>
26581
26582         Modernize AC_TRY_LINK invocations.
26583         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26584         AC_TRY_LINK.
26585         * m4/argp.m4 (gl_ARGP): Likewise.
26586         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26587         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26588         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26589         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26590         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26591         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26592         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26593         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26594         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26595         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26596         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26597         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26598         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26599         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26600         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26601         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26602         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26603         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26604         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26605         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26606         Likewise.
26607         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26608         Likewise.
26609         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26610         Likewise.
26611         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26613         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26614         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26615         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26616         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26617         * m4/servent.m4 (gl_SERVENT): Likewise.
26618         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26619         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26620         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26621         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26623         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26624         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26626         * modules/tsearch-tests (configure.ac): Likewise.
26627
26628 2010-08-26  Bruno Haible  <bruno@clisp.org>
26629
26630         Modernize AC_TRY_COMPILE invocations.
26631         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26632         AC_TRY_COMPILE.
26633         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26634         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26635         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26636         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26637         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26638         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26639         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26640         * m4/lock.m4 (gl_LOCK): Likewise.
26641         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26642         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26643         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26644         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26645         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26646         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26647         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26649         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26650         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26651         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26652         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26653         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26654         extraneous semicolon.
26655
26656 2010-08-26  Jim Meyering  <meyering@redhat.com>
26657
26658         stat-time: relax license LGPL
26659         * modules/stat-time (License): Change from GPL to LGPL,
26660         with consent from all contributors, for use in libguile.
26661         Requested by Ludovic Courtès.
26662
26663 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26664
26665         poll: return immediately on POLLHUP.
26666         * lib/poll.c (poll): Always set timeout before wait_timeout is
26667         computed.
26668
26669 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26670
26671         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26672         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26673         rmdir ("dir/.//"), unlinkat.
26674
26675 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26676
26677         stdbool: avoid spurious failure with modern xlc
26678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26679
26680 2010-08-24  Bruno Haible  <bruno@clisp.org>
26681
26682         getloadavg: simplify code
26683         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26684         gl_have_func. Update comments.
26685
26686 2010-08-24  Eric Blake  <eblake@redhat.com>
26687
26688         getloadavg: don't define SVR4 on cygwin
26689         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26690         only define SVR4 when -lkvm is required.
26691         Reported by Yaakov Selkowitz.
26692
26693 2010-08-24  Bruno Haible  <bruno@clisp.org>
26694
26695         priv-set: fix comment
26696         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26697
26698 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26699
26700         priv-set: fix comments
26701         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26702         to match code, as suggested by David Bartley in:
26703         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26704
26705 2010-08-23  Eric Blake  <eblake@redhat.com>
26706
26707         stdbool: avoid rejecting clang
26708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26709         * tests/test-stdbool.c: Enable more tests if using the system
26710         <stdbool.h> instead of the gnulib replacement.
26711         (main): Move xlc bug test to a runtime test for all compilers.
26712         Reported by Anders Kaseorg.
26713
26714         argz: fix shell quoting issue
26715         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26716         Reported by Charles Wilson.
26717
26718 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26719             Erik Faye-Lund <kusmabite@gmail.com>
26720
26721         poll, select: handle ERROR_BROKEN_PIPE.
26722         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26723         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26724         * lib/select.c (win32_compute_revents): Do not mark a pipe
26725         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26726
26727 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26728
26729         fts: allow compilation with C++
26730         * lib/fts_.h: Specify extern "C" linkage with C++.
26731
26732 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26733
26734         Fix gnulib-tool sed script de-commentation for AIX sed.
26735         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26736         sed.
26737
26738 2010-08-17  Eric Blake  <eblake@redhat.com>
26739
26740         test-stddef: test for (some) offsetof bugs
26741         * tests/test-stddef.c: Enhance test to ensure correct type of
26742         offsetof.
26743         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26744         that we are not fixing at this time.
26745
26746 2010-08-15  Bruno Haible  <bruno@clisp.org>
26747
26748         stpncpy: Allow stpncpy to be defined as a macro.
26749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26750         if it's already correctly declared.
26751         * lib/string.in.h (stpncpy): Undefine before redefining.
26752         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26753
26754 2010-08-14  Bruno Haible  <bruno@clisp.org>
26755
26756         Rename module 'memxfrm' to 'amemxfrm'.
26757         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26758         (amemxfrm): Renamed from memxfrm.
26759         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26760         (amemxfrm): Renamed from memxfrm.
26761         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26762         * NEWS: Mention the change.
26763         * MODULES.html.sh (String handling <string.h>): Update.
26764         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26765         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26766         * lib/unicase/u16-casexfrm.c: Likewise.
26767         * lib/unicase/u32-casexfrm.c: Likewise.
26768         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26769         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26770         * lib/uninorm/u16-normxfrm.c: Likewise.
26771         * lib/uninorm/u32-normxfrm.c: Likewise.
26772         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26773         memxfrm.
26774         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26775         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26776         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26777         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26778         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26779         Suggested by Paul Eggert.
26780
26781 2010-08-14  Bruno Haible  <bruno@clisp.org>
26782
26783         Tests for module 'astrxfrm'.
26784         * modules/astrxfrm-tests: New file.
26785         * tests/test-astrxfrm.c: New file.
26786
26787         New module 'astrxfrm'.
26788         * lib/astrxfrm.h: New file.
26789         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26790         * modules/astrxfrm: New file.
26791
26792 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26793
26794         regex: Tweak doc.
26795         * doc/regex.texi (Overview): Don't mention regex.c.
26796         (GNU Regular Expression Compiling): Likewise.
26797         (Match-end-of-line Operator): Mention 'not_eol'.
26798
26799 2010-08-14  Brian Gough  <bjg@gnu.org>
26800             Bruno Haible  <bruno@clisp.org>
26801
26802         git-merge-changelog: add doc relating to use with bzr and hg.
26803         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26804
26805 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26806
26807         pthread: fix pthread.h creation for srcdir != builddir
26808         * modules/pthread (Makefile.am): Fix the rule to work also in a
26809         non-srcdir build.
26810
26811 2010-08-13  Karl Berry  <karl@gnu.org>
26812
26813         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26814         * doc/posix-*/*: force line break before @url of POSIX
26815         specifications.
26816         Suggested by Werner Lemberg.
26817
26818 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26819
26820         strtod: fix const diagnostic
26821         * lib/strtod.c (strtod): Don't assign const char * to char *,
26822         as this elicits a warning from GCC when warnings are enabled.
26823
26824 2010-08-10  Pádraig Brady <P@draigbrady.com>
26825         and Eric Blake  <eblake@redhat.com>
26826
26827         copy-acl: ignore ENOTSUP on HP-UX
26828         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26829         so that it is available for HP-UX.
26830         * lib/copy-acl.c (qcopy_acl): Use it.
26831         Reported by Patrick M. Callahan.
26832
26833 2010-08-10  Eric Blake  <eblake@redhat.com>
26834
26835         open, chown: relax license
26836         * modules/open (License): Change to LGPLv2+, with consent by all
26837         authors, for use in augeas.
26838         * modules/chown (License): Likewise.
26839         * modules/lchown (Likewise): Likewise.
26840         Requested by Adam Stokes.
26841
26842 2010-08-09  Karl Berry  <karl@gnu.org>
26843
26844         * build-aux/ar-lib: new file, import from Automake.
26845         * config/srclist.txt: autocheck for updates.
26846
26847 2010-08-09  Eric Blake  <eblake@redhat.com>
26848
26849         readlinkat: adjust client modules
26850         * modules/areadlinkat (Depends-on): Use readlinkat, not
26851         symlinkat.
26852         * modules/areadlinkat-with-size (Depends-on): Likewise.
26853
26854         mknod: be more vocal about danger of running tests as root
26855         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26856         root, since that is just asking for problems.
26857         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26858
26859         readlinkat: split into its own module
26860         * modules/symlinkat: Split readlinkat...
26861         * modules/readlinkat: ...into separate module.
26862         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26863         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26864         * lib/symlinkat.c (readlinkat): Move...
26865         * lib/readlinkat.c: ...into new file.
26866         * modules/symlinkat-tests: Split readlinkat test...
26867         * modules/readlinkat-tests: ...into separate module.
26868         * tests/test-symlinkat.c: Split...
26869         * tests/test-readlinkat.c: ...into new file.
26870         * NEWS: Document the split.
26871         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26872         * lib/unistd.in.h (readlinkat): Likewise.
26873         Suggested by Bruno Haible.
26874
26875 2010-08-08  Bruno Haible  <bruno@clisp.org>
26876
26877         memxfrm: Speed up.
26878         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26879         that usually only one call to strxfrm is necessary for each string
26880         part.
26881         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26882
26883 2010-08-07  Karl Berry  <karl@gnu.org>
26884
26885         * doc/posix-headers/limits.texi,
26886         * doc/posix-functions/malloc.texi,
26887         * doc/posix-functions/strsignal.texi: missing @item.
26888         * doc/ld-version-script.texi: spurious leading i.
26889         * doc/regex.texi (Interval Operators): no commas inside @var.
26890
26891 2010-08-01  Bruno Haible  <bruno@clisp.org>
26892
26893         Integrate the regex documentation.
26894         * doc/gnulib.texi: Define 'cn' index.
26895         (Regular expressions): New a chapter that includes regex.texi and
26896         regexprops-generic.texi.
26897         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26898         syntax.
26899
26900         Whitespace cleanup.
26901         * doc/regex.texi: Remove trailing spaces.
26902
26903         Add regex documentation.
26904         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26905         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26906         Written by Kathy A. Hargreaves and Karl Berry.
26907
26908 2010-08-01  Bruno Haible  <bruno@clisp.org>
26909
26910         link: Update documentation.
26911         * doc/posix-functions/link.texi: Update regarding Solaris.
26912
26913 2010-07-31  Bruno Haible  <bruno@clisp.org>
26914
26915         Update modules list.
26916         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26917         (String handling <string.h>): Add memcmp2, memxfrm.
26918         (Container data structures): Add xlist, xsublist, xoset.
26919         (Core language properties): Add alignof, unused-parameter.
26920         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26921         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26922         (Unibyte characters <ctype.h>): New section.
26923         (String handling <string.h>): New section.
26924         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26925         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26926         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26927         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26928         tan, tanh, tanl, y0, y1, yn.
26929         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26930         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26931         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26932         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26933         unlockpt, vdprintf, vdprintf-posix.
26934         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26935         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26936         xconcat-filename.
26937         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26938         getdtablesize, pipe2, pipe2-safer.
26939         (Security): New section.
26940         (Networking functions): Add accept4.
26941         (Signal handling): Add sigpipe.
26942         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26943         mbmemcasecoll.
26944         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26945         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26946         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26947         pipe-filter-ii.
26948         (Misc): Add argp-version-etc, login_tty, parse-duration.
26949
26950 2010-07-31  Bruno Haible  <bruno@clisp.org>
26951
26952         Improve doc in MODULES.html.
26953         * modules/linkat (Description): Add the word "function".
26954         * modules/mkfifo (Description): Likewise.
26955         * modules/mknod (Description): Likewise.
26956         * modules/remove (Description): Likewise.
26957         * modules/renameat (Description): Likewise.
26958         * modules/stat (Description): Likewise.
26959         * modules/symlink (Description): Likewise.
26960         * modules/unlink (Description): Likewise.
26961
26962 2010-07-31  Bruno Haible  <bruno@clisp.org>
26963
26964         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26965         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26966         option --enable/disable-c++ instead of --enable/disable-cxx.
26967         * NEWS: Mention the change.
26968
26969 2010-07-31  Bruno Haible  <bruno@clisp.org>
26970
26971         readlink, areadlink: Relax test a bit.
26972         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26973         alternative to ENOTDIR.
26974         * tests/test-areadlink.h (test_areadlink): Likewise.
26975         Reported by Rainer Tammer.
26976
26977 2010-07-31  Bruno Haible  <bruno@clisp.org>
26978
26979         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26980         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26981         character, perform the search using U_STRCHR.
26982         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26983         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26984         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26985         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26986         Suggested by Paolo Bonzini.
26987
26988 2010-07-31  Bruno Haible  <bruno@clisp.org>
26989
26990         unistr/u*-strstr: Fix dependencies.
26991         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26992         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26993         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26994
26995 2010-07-31  Bruno Haible  <bruno@clisp.org>
26996
26997         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26998         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26999         the beginning of the loop.
27000         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27001         cases in 'switch' statement.
27002
27003         unistr/u8-strchr: Fix several bugs.
27004         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27005         the string. When not found, return NULL, not a pointer near the end.
27006
27007         More tests for unistr/u8-strchr.
27008         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27009         that the function does not read past the first occurrence of the byte
27010         being searched.
27011         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27012         * tests/unistr/test-u16-strchr.c (main): New function.
27013         * tests/unistr/test-u32-strchr.c (main): New function.
27014
27015 2010-07-31  Bruno Haible  <bruno@clisp.org>
27016
27017         posix-modules: Ignore backup files of documentation files.
27018         * posix-modules: grep only through files named *.texi.
27019
27020 2010-07-31  Bruno Haible  <bruno@clisp.org>
27021
27022         symlinkat: Fix documentation.
27023         * doc/posix-functions/readlinkat.texi: Fix module name.
27024
27025 2010-07-31  Bruno Haible  <bruno@clisp.org>
27026
27027         fchownat: Replace also when chown has the trailing slash bug.
27028         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27029         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27030         introduced on 2010-04-10.
27031         Reported by Rainer Tammer.
27032
27033 2010-07-31  Bruno Haible  <bruno@clisp.org>
27034
27035         linkat: Work around AIX 7.1 bug.
27036         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27037         whether linkat handles trailing slash correctly. If not, replace linkat
27038         and define LINKAT_TRAILING_SLASH_BUG.
27039         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27040         check whether (fd1,file1) points to a directory if file1 or file2 ends
27041         in a slash. Code taken from lib/link.c.
27042         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27043         Reported by Rainer Tammer.
27044
27045 2010-07-31  Bruno Haible  <bruno@clisp.org>
27046
27047         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27048         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27049         This disables an xlc optimization that was causing wrong test results.
27050         Reported by Rainer Tammer.
27051
27052 2010-07-31  Bruno Haible  <bruno@clisp.org>
27053
27054         iconv: Work around AIX 6.1..7.1 bug.
27055         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27056         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27057         cross-compiling, guess no on all versions of AIX.
27058         Reported by Rainer Tammer.
27059
27060 2010-07-31  Bruno Haible  <bruno@clisp.org>
27061
27062         readlink: Relax test a bit.
27063         * tests/test-readlink.h (test_readlink): Allow different errno value
27064         when readlink is called with a file name that ends in / and refers to
27065         a file.
27066         Suggested by Eric Blake.
27067         Reported by Rainer Tammer.
27068
27069 2010-07-31  Bruno Haible  <bruno@clisp.org>
27070
27071         copysign: Does not require -lm on glibc systems.
27072         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27073         gl_COMMON_DOUBLE_MATHFUNC.
27074         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27075
27076 2010-07-31  Bruno Haible  <bruno@clisp.org>
27077
27078         duplocale: Work around AIX 7.1 bug.
27079         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27080         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27081         * lib/duplocale.c (rpl_duplocale): Update comment.
27082         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27083         Reported by Rainer Tammer.
27084
27085 2010-07-30  Bruno Haible  <bruno@clisp.org>
27086
27087         dirfd: Avoid link error on AIX 7.1.
27088         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27089         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27090         exist, set REPLACE_DIRFD.
27091         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27092         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27093         * doc/posix-functions/dirfd.texi: Update.
27094         Reported by Rainer Tammer.
27095
27096 2010-07-30  Eric Blake  <eblake@redhat.com>
27097
27098         strtod: next round of AIX fixes
27099         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27100         exponent.
27101         * tests/test-strtod.c (main): Enhance tests.
27102         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27103         Reported by Rainer Tammer.
27104
27105         futimens: fix configure check
27106         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27107         Reported by Bruno Haible.
27108
27109 2010-07-30  Bruno Haible  <bruno@clisp.org>
27110
27111         getline: Update regarding AIX.
27112         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27113         Reported by Rainer Tammer.
27114
27115 2010-07-30  Bruno Haible  <bruno@clisp.org>
27116
27117         wcwidth: Drop replacement on AIX 7.
27118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27119         AIX 7.
27120         Reported by Rainer Tammer.
27121
27122 2010-07-30  Bruno Haible  <bruno@clisp.org>
27123
27124         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27126         a 'char *'.
27127         Reported by Rainer Tammer.
27128
27129 2010-07-30  Bruno Haible  <bruno@clisp.org>
27130
27131         unlink: Update regarding AIX.
27132         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27133         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27134         Reported by Rainer Tammer.
27135
27136 2010-07-30  Bruno Haible  <bruno@clisp.org>
27137
27138         symlink: Update regarding AIX.
27139         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27140         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27141         Reported by Rainer Tammer.
27142
27143 2010-07-30  Bruno Haible  <bruno@clisp.org>
27144
27145         strndup: Update regarding AIX.
27146         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27147         AIX 7.
27148         Reported by Rainer Tammer.
27149
27150 2010-07-30  Bruno Haible  <bruno@clisp.org>
27151
27152         stat: Update regarding AIX.
27153         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27154         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27155         Reported by Rainer Tammer.
27156
27157 2010-07-30  Bruno Haible  <bruno@clisp.org>
27158
27159         truncl: Fix autoconf test.
27160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27161         whether truncl works.
27162         Reported by Rainer Tammer.
27163
27164 2010-07-30  Bruno Haible  <bruno@clisp.org>
27165
27166         round: Update regarding AIX.
27167         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27168         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27169         Reported by Rainer Tammer.
27170
27171 2010-07-30  Bruno Haible  <bruno@clisp.org>
27172
27173         rename: Update regarding AIX.
27174         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27175         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27176         Reported by Rainer Tammer.
27177
27178 2010-07-30  Bruno Haible  <bruno@clisp.org>
27179
27180         printf.m4: Update regarding AIX.
27181         * m4/printf.m4: Update comments regarding AIX.
27182         Reported by Rainer Tammer.
27183
27184 2010-07-30  Bruno Haible  <bruno@clisp.org>
27185
27186         iconv: Update regarding AIX.
27187         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27188         AIX 7.
27189         Reported by Rainer Tammer.
27190
27191 2010-07-30  Bruno Haible  <bruno@clisp.org>
27192
27193         getopt: Update regarding AIX.
27194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27195         no on AIX.
27196         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27197         Reported by Rainer Tammer.
27198
27199 2010-07-30  Bruno Haible  <bruno@clisp.org>
27200
27201         ldexpl; Update regarding AIX.
27202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27203         on AIX 7.
27204         Reported by Rainer Tammer.
27205
27206 2010-07-30  Bruno Haible  <bruno@clisp.org>
27207
27208         frexpl: Update regarding AIX.
27209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27210         on AIX 7.
27211         Reported by Rainer Tammer.
27212
27213 2010-07-30  Bruno Haible  <bruno@clisp.org>
27214
27215         open, fopen: Update regarding AIX.
27216         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27217         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27218         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27219         * doc/posix-functions/fopen.texi: Likewise.
27220         Reported by Rainer Tammer.
27221
27222 2010-07-30  Bruno Haible  <bruno@clisp.org>
27223
27224         chown: Update doc regarding AIX.
27225         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27226         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27227         Reported by Rainer Tammer.
27228
27229 2010-07-30  Eric Blake  <eblake@redhat.com>
27230
27231         strtod: fix bug in replacement function on AIX
27232         * lib/strtod.c (strtod): Special case broken "0x" parse in
27233         underlying strtod.
27234         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27235         * doc/posix-functions/strtod.texi (strtod): Likewise.
27236         Reported by Rainer Tammer.
27237
27238 2010-07-30  Bruno Haible  <bruno@clisp.org>
27239
27240         mbrlen: Fix cross-compilation guess for AIX.
27241         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27242         guess. Leftover from 2008-12-22.
27243
27244 2010-07-30  Bruno Haible  <bruno@clisp.org>
27245
27246         mbrtowc: Fix cross-compilation guess for AIX.
27247         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27248         guess. Leftover from 2008-12-21.
27249
27250 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27251
27252         init.sh: work around trap limitation of some shells
27253         * tests/init.sh (setup_): Move exit trap outside of shell function.
27254
27255 2010-07-29  Eric Blake  <eblake@redhat.com>
27256
27257         strtod: aid debugging
27258         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27259         understanding why strtod is rejected.
27260
27261 2010-07-28  Bruno Haible  <bruno@clisp.org>
27262
27263         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27264         * lib/unistr/u8-chr.c: Include <string.h>.
27265         * tests/unistr/test-u8-chr.c: Likewise.
27266         * tests/unistr/test-u16-chr.c: Likewise.
27267         * tests/unistr/test-u32-chr.c: Likewise.
27268         * tests/unistr/test-u8-strchr.c: Likewise.
27269         * tests/unistr/test-u16-strchr.c: Likewise.
27270         * tests/unistr/test-u32-strchr.c: Likewise.
27271         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27272         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27273         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27274         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27275
27276 2010-07-28  Bruno Haible  <bruno@clisp.org>
27277
27278         Use spaces for indentation, not tabs.
27279         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27280
27281 2010-07-27  Bruno Haible  <bruno@clisp.org>
27282
27283         mbspcasecmp: Fix function specification.
27284         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27285         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27286         Reported by Eric Blake <eblake@redhat.com>.
27287
27288 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27289
27290         timespec: use cast and not conditional, as truncation isn't possible
27291         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27292         instead of a conditional.  Comment about the situation in more detail.
27293         This undoes most of the 2009-10-29 patch.
27294
27295 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27296
27297         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27298         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27299         * lib/unistr/u8-strchr.c: Likewise.
27300         * modules/unistr/u8-chr: Depend on memchr.
27301
27302         unistr/u*-strchr: add tests
27303         * modules/unistr/u8-strchr-tests: New file.
27304         * modules/unistr/u16-strchr-tests: New file.
27305         * modules/unistr/u32-strchr-tests: New file.
27306         * tests/unistr/test-strchr.h: New file.
27307         * tests/unistr/test-u8-strchr.c: New file.
27308         * tests/unistr/test-u16-strchr.c: New file.
27309         * tests/unistr/test-u32-strchr.c: New file.
27310
27311         unistr/u*-chr: test multibyte sequences more
27312         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27313         test vector.
27314         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27315         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27316         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27317
27318         unistr/u*-chr: test multibyte sequences
27319         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27320
27321         unistr/u*-chr: prepare for multibyte tests
27322         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27323         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27324         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27325         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27326         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27327         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27328
27329 2010-07-18  Bruno Haible  <bruno@clisp.org>
27330
27331         unistr/u8-strchr: Optimize non-ASCII argument case.
27332         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27333         because the first byte often matches anyway.
27334         Reported by Pádraig Brady <P@draigbrady.com>.
27335
27336 2010-07-15  Karl Berry  <karl@gnu.org>
27337
27338         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27339
27340 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27341
27342         getcwd: on Solaris, work better if ancestors are inaccessible
27343         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27344         buffer and size, try again with a large buffer.  This works better
27345         on Solaris, since its getcwd succeeds even if the path to the root
27346         is inaccessible, and this is helpful in common cases such as .zfs
27347         hidden directories.  Problem reported by J Chapman Flack in
27348         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27349         Use system getcwd if it's declared, not merely if it's partly
27350         working; use the partly-working test only to avoid needless effort
27351         if the system getcwd fails.
27352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27353         comment that was already obsolete and is now even more obsolete.
27354         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27355         now might call strdup.
27356
27357 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27358
27359         pthread: Add enough so that coreutils/src/sort.c compiles.
27360         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27361         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27362         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27363         Include <sys/types.h>, in case it defines pthread_t.
27364         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27365         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27366         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27367         (pthread_rwlockattr_t, pthread_spinlock_t):
27368         New typedefs, if HAVE_PTHREAD_T is not defined.
27369         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27370         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27371         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27372         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27373         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27374         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27375         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27376         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27377         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27378         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27379         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27380         New macros.
27381         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27382         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27383         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27384         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27385         (pthread_spin_unlock): New dummy functions.
27386         (pthread_create): Return EAGAIN; don't set errno.
27387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27388         require AC_C_INLINE.
27389         * modules/pthread (Depends-on): Add sched, time.
27390         (pthread.h): Use AM_V_GEN.
27391
27392 2010-07-13  Bruno Haible  <bruno@clisp.org>
27393
27394         striconveh: Don't malloc memory if the result buffer is sufficient.
27395         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27396         buffer if its size is sufficient.
27397         Reported by Ludovic Courtès <ludo@gnu.org>.
27398
27399 2010-07-13  Bruno Haible  <bruno@clisp.org>
27400
27401         strtod: Add safety check.
27402         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27403
27404 2010-07-12  Bruno Haible  <bruno@clisp.org>
27405
27406         Unify tests that set gl_cv_func_ldexpl_no_libm.
27407         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27408         gl_FUNC_LDEXPL.
27409         (gl_FUNC_LDEXPL): Invoke it.
27410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27411
27412 2010-07-12  Bruno Haible  <bruno@clisp.org>
27413
27414         Unify tests that set gl_cv_func_ldexp_no_libm.
27415         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27416         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27417         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27418         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27419         * modules/strtod (Files): Add m4/ldexp.m4.
27420
27421 2010-07-12  Bruno Haible  <bruno@clisp.org>
27422
27423         Unify tests that set gl_cv_func_frexpl_no_libm.
27424         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27425         gl_FUNC_FREXPL_NO_LIBM.
27426         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27427         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27428
27429 2010-07-12  Bruno Haible  <bruno@clisp.org>
27430
27431         Unify tests that set gl_cv_func_frexp_no_libm.
27432         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27433         gl_FUNC_FREXP_NO_LIBM.
27434         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27435         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27436
27437 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27438
27439         memcoll: clarify sizes versus lengths, document better, and tweak perf
27440         * lib/memcoll.c (strcoll_loop, memcoll0):
27441         Improve quality of descriptive comments.  Name variables
27442         consistently as to whether they are lengths (which do not include
27443         terminating null) versus sizes (which do).
27444         * lib/xmemcoll.c (xmemcoll0): Likewise.
27445         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27446         returned when s1size == 0; this is easier to compile and saves
27447         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27448
27449 2010-07-12  Bruno Haible  <bruno@clisp.org>
27450
27451         Tests for module '_Exit'.
27452         * modules/_Exit-tests: New file.
27453         * tests/test-_Exit.sh: New file.
27454         * tests/test-_Exit.c: New file.
27455
27456         New module '_Exit'.
27457         * lib/stdlib.in.h (__attribute__): New macro.
27458         (_Exit): New declaration.
27459         * lib/_Exit.c: New file.
27460         * m4/_Exit.m4: New file.
27461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27463         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27464         * modules/_Exit: New file.
27465         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27466         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27467
27468 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27469
27470         strtod: make it more-accurate typically, and don't require libm
27471         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27472         Include limits.h.  Don't include string.h.
27473         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27474         (locale_isspace): New function, so that no casts are needed to
27475         check whether *s is a space.
27476         (ldexp): Provide an unused dummy if not available.
27477         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27478         (strtod): Use them.  This implementation prefers to use the
27479         underlying strtod if available, falling back on our own code
27480         only to fix known bugs.  This is more likely to produce an
27481         accurate result.  Also, it avoids the use of libm functions.
27482         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27483         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27484         was absent, but it caused a test failure with coreutils.
27485         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27486         with libm.
27487         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27488         * modules/strtod-tests (Makefile.am): Likewise.
27489
27490 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27491             Bruno Haible  <bruno@clisp.org>
27492
27493         unistr/u8-strchr: Optimize ASCII argument case.
27494         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27495
27496 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         (x)memcoll: minor tweaks
27499         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27500         is after the type that it qualifies.
27501         (memcoll0): Likewise.
27502         * lib/memcoll.h (memcoll0): Likewise.
27503         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27504         * lib/xmemcoll.h (xmemcoll0): Likewise.
27505         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27506         differs from memcoll in that the NUL byte is part of the argument.
27507         Omit the abort-checks, as performance is a real issue here.  Plus,
27508         the checks were wrong anyway (an off-by-one error).  Omit local
27509         variable 'diff', as it's a bit clearer that way.
27510         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27511         no longer needed.
27512
27513 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27514
27515         (x)memcoll: speedup when input is known to be NUL delimited
27516         * lib/memcoll.c: Include stdlib.
27517         (memcoll0): New function.
27518         (strcoll_loop): New function, refactored for use in both memcoll
27519         and memcoll0.
27520         * lib/memcoll.h (memcoll0): Add prototype.
27521         * lib/xmemcoll.c (xmemcoll0): New function.
27522         (collate_error): New function, refactored for use in both xmemcoll
27523         and xmemcoll0.
27524         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27525         * m4/memcoll.m4: add inline invocation.
27526
27527 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27528
27529         * build-aux/bootstrap: Remove any local translations
27530         from the translation project synchronization directory,
27531         so that local only translations are not distributed.
27532
27533 2010-07-04  Bruno Haible  <bruno@clisp.org>
27534
27535         fsusage: Clarify which code applies to which platforms.
27536         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27537         platform.
27538         * lib/fsusage.c (get_fs_usage): Likewise.
27539
27540 2010-07-04  Bruno Haible  <bruno@clisp.org>
27541
27542         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27543         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27544         Reported by Martin Lambers <marlam@marlam.de>.
27545
27546 2010-07-04  Jim Meyering  <meyering@redhat.com>
27547
27548         hash: once again explicitly disallow insertion of NULL
27549         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27550         inserting a NULL pointer cannot work with these functions.
27551         Add a comment with details.
27552         This reverts part of the 2010-07-01 commit, 5bef1a35
27553         "hash: extend module to deal with non-pointer keys".
27554
27555 2010-07-01  Bruno Haible  <bruno@clisp.org>
27556
27557         stdbool: Update doc.
27558         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27559         Info from Christian Weisgerber <naddy@mips.inka.de>.
27560
27561 2010-07-01  Jim Meyering  <meyering@redhat.com>
27562
27563         hash: extend module to deal with non-pointer keys
27564         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27565         but that allows insertion of non-pointer entries.
27566         Do not disallow an ENTRY value of NULL.
27567         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27568         * lib/hash.h (hash_insert0): Declare.
27569
27570 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27571
27572         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27573         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27574         not present (i.e. with autoconf 2.59 and when using gettextize, not
27575         gnulib), require AC_GNU_SOURCE instead.
27576
27577 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27578
27579         idpriv-drop: Fix tests.
27580         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27581         not to the test-idpriv-droptemp program.
27582
27583 2010-06-29  Bruno Haible  <bruno@clisp.org>
27584
27585         string: Fix syntax error with g++ 2.96.
27586         * lib/string.in.h (__pure__): Remove definition.
27587         (_GL_ATTRIBUTE_PURE): New macro.
27588         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27589         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27590         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27591
27592 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27593
27594         unitypes: Fix bug introduced on 2010-05-18.
27595         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27596
27597 2010-06-22  Eric Blake  <eblake@redhat.com>
27598
27599         memmem: slight optimization
27600         * lib/str-two-way.h (critical_factorization): Update comments.
27601         Reduce work during factorization phase.
27602         Reported by Carlos Bueno <carlos@bueno.org>.
27603
27604 2010-06-21  Bruno Haible  <bruno@clisp.org>
27605
27606         Fix HAVE_CALLOC_POSIX misnomer.
27607         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27608         !HAVE_CALLOC_POSIX.
27609         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27610         HAVE_CALLOC_POSIX.
27611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27612         instead of HAVE_CALLOC_POSIX.
27613         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27614         HAVE_CALLOC_POSIX.
27615
27616         Use modern idiom for calloc() replacement.
27617         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27618         AC_FUNC_CALLOC.
27619         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27620         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27621         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27622         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27623         (gl_REPLACE_CALLOC): New macro.
27624
27625 2010-06-21  Bruno Haible  <bruno@clisp.org>
27626
27627         Fix HAVE_REALLOC_POSIX misnomer.
27628         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27629         !HAVE_REALLOC_POSIX.
27630         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27631         HAVE_REALLOC_POSIX.
27632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27633         instead of HAVE_REALLOC_POSIX.
27634         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27635         HAVE_REALLOC_POSIX.
27636
27637         Use modern idiom for realloc() replacement.
27638         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27639         AC_FUNC_REALLOC.
27640         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27641         Autoconf's AC_FUNC_REALLOC.
27642         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27643         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27644         (gl_REPLACE_REALLOC): New macro.
27645         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27646
27647 2010-06-21  Bruno Haible  <bruno@clisp.org>
27648
27649         Fix HAVE_MALLOC_POSIX misnomer.
27650         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27651         !HAVE_MALLOC_POSIX.
27652         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27653         HAVE_MALLOC_POSIX.
27654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27655         instead of HAVE_MALLOC_POSIX.
27656         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27657         HAVE_MALLOC_POSIX.
27658
27659         Use modern idiom for malloc() replacement.
27660         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27661         AC_FUNC_MALLOC.
27662         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27663         Autoconf's AC_FUNC_MALLOC.
27664         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27665         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27666         (gl_REPLACE_MALLOC): New macro.
27667         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27668
27669 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27670
27671         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27672         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27673         This macro takes 3 arguments, not 4.
27674
27675 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27676
27677         ipv6: fix detection under mingw
27678         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27679         in6_addr.
27680
27681 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27682
27683         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27684         that strtod() works when cross-compiling to a glibc version known
27685         to work.
27686
27687 2010-06-15  Bruno Haible  <bruno@clisp.org>
27688
27689         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27690
27691 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27692
27693         select: Correct timeout.
27694         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27695
27696 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27697
27698         git-version-gen: init shell var to avoid env var influence
27699         * build-aux/git-version-gen (v): Init shell var to empty.
27700
27701 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         priv-set: Don't assume that priv.h exists merely because getppriv does.
27704         See Jan Andersen's bug report about AIX 5L in
27705         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27706         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27707         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27708         * lib/priv-set.h: Likewise.
27709         * tests/test-priv-set.c: Likewise.
27710
27711 2010-06-13  Bruno Haible  <bruno@clisp.org>
27712
27713         relocatable: Make it easier to test whether to install wrappers.
27714         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27715         RELOCATABLE_VIA_WRAPPER.
27716
27717 2010-06-13  Bruno Haible  <bruno@clisp.org>
27718
27719         gnulib-tool: Display specified modules and dependencies differently.
27720         * gnulib-tool (func_show_module_list): New function.
27721         (func_import, func_create_testdir): Invoke it.
27722         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27723
27724 2010-06-13  Bruno Haible  <bruno@clisp.org>
27725
27726         gnulib-tool: Align code of func_import and func_create_testdir.
27727         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27728         specified_modules.
27729
27730 2010-06-12  Jim Meyering  <meyering@redhat.com>
27731
27732         test-inttostr: avoid spurious failure on Solaris 9
27733         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27734         to accept "%ju".  Reported by Bruno Haible.
27735
27736 2010-06-11  Jim Meyering  <meyering@redhat.com>
27737
27738         test-sys_socket: mark variables as used more readably
27739         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27740         as "used" explicitly via (void) statement casts.  This is more
27741         readable than using them in an artificial return expression.
27742         Suggestion from Bruno Haible.
27743
27744 2010-06-11  Bruno Haible  <bruno@clisp.org>
27745
27746         Avoid some more warnings from "gcc -Wwrite-strings".
27747         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27748         to 'const char *'.
27749         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27750         * tests/test-c-strcasestr.c (main): Likewise.
27751         * tests/test-mbscasestr1.c (main): Likewise.
27752         * tests/test-mbscasestr2.c (main): Likewise.
27753         * tests/test-memmem.c (main): Likewise.
27754         * tests/test-strstr.c (main): Likewise.
27755         * tests/test-strcasestr.c (main): Likewise.
27756
27757 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27758
27759         init.sh: change framework_failure_ to fail with status 99, not 1
27760         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27761         automake's parallel-tests rule that this is an unexpected failure,
27762         even if the test is listed in XFAIL_TESTS.
27763
27764 2010-06-11  Jim Meyering  <meyering@redhat.com>
27765
27766         test-inttostr: avoid warnings about 4-6KB literal strings
27767         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27768         Include "macros.h", for its definition of ASSERT.
27769         (CK): s/assert/ASSERT/
27770         * modules/inttostr-tests (Files): Add macros.h.
27771
27772         init.sh: don't use $ME_ or skip_ before they are defined
27773         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27774         their first uses.  Also hoist their companions: warn_, fail_,
27775         framework_failure_, $stderr_fileno.  Prompted by a patch from
27776         Stefano Lattarini.
27777
27778         test-sys_socket: avoid set-but-not-used warnings from gcc
27779         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27780         avoid warning about set-but-not-used variables.
27781
27782         test-xvasprintf: avoid 'const' discard warnings
27783         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27784         "const" when assigning from literal strings.
27785         (test_xasprintf): Add "void" in function argument list to placate
27786         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27787
27788         tests: avoid compilation warnings in argmatch and exclude tests...
27789         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27790         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27791         Since it always exits, declare with the "noreturn" attribute.
27792         * tests/test-argmatch.c: Likewise.
27793
27794         tests: avoid 'const' discard warnings in mbsstr tests
27795         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27796         * tests/test-mbsstr2.c (main): Likewise.
27797
27798         test-verify: avoid warning from gcc's -Wmissing-declarations
27799         * tests/test-verify.c (function): Declare to be static.
27800
27801         test-inttostr.c: include <string.h> for use of strcmp
27802         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27803
27804         test-linkat: avoid failed assertion on "other" architectures
27805         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27806         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27807         sparc: https://bugs.launchpad.net/bugs/591968
27808
27809 2010-06-11  Jim Meyering  <meyering@redhat.com>
27810
27811         printf.m4: avoid autoconf's "Expanded Before Required" warning
27812         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27813         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27814         autoconf warning.
27815
27816 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27817
27818         Replacement header templates are now named with ".in", not "_".
27819         * doc/gnulib-intro.texi: Correct.
27820
27821 2010-06-10  Jim Meyering  <meyering@redhat.com>
27822
27823         inttostr-tests: depend on snprintf, not snprintf-posix
27824         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27825         snprintf-posix, to avoid this aclocal failure:
27826           missing file gnulib-tests/vasnprintf.c
27827           configure.ac:45: error: expected source file, required through \
27828           AC_LIBSOURCES, not found
27829
27830 2010-06-10  Jim Meyering  <meyering@redhat.com>
27831
27832         inttostr: add a new function, inttostr, and tests
27833         The namesake function was not available.  The existence of the
27834         template file, inttostr.c makes its addition nontrivial.
27835         * lib/anytostr.c: Rename from inttostr.c.
27836         (anytostr): Rename from inttostr.
27837         * lib/inttostr.c: New file.
27838         * modules/inttostr (Files): Add anytostr.c.
27839         (Makefile.am): Set lib_SOURCES instead of ...
27840         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27841         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27842         * lib/offtostr.c: Likewise.
27843         * lib/uinttostr.c: Likewise.
27844         * lib/umaxtostr.c: Likewise.
27845         * modules/inttostr-tests: New file.
27846         * tests/test-inttostr.c: New file.  Test these functions.
27847
27848 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27849             Bruno Haible  <bruno@clisp.org>
27850
27851         Add "Extending Gnulib" chapter to manual.
27852         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27853         chapter.
27854         (Extending Gnulib): New chapter.
27855         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27856         chapter.
27857
27858 2010-06-09  Bruno Haible  <bruno@clisp.org>
27859
27860         Avoid relocwrapper link errors due to gnulib replacement functions.
27861         * lib/areadlink.c: Use the system's malloc, realloc functions.
27862         (areadlink): Set errno to ENOMEM explicitly.
27863         * modules/areadlink (Depends-on): Remove malloc-posix.
27864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27865
27866 2010-06-09  Bruno Haible  <bruno@clisp.org>
27867
27868         Avoid relocwrapper link errors due to gnulib replacement functions.
27869         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27870         * lib/malloca.c: Likewise.
27871         * lib/relocatable.c: Likewise.
27872         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27873         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27874         * lib/setenv.c: Use the system's malloc, realloc functions.
27875         * lib/strerror.c: Use the system's sprintf function.
27876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27877
27878 2010-06-04  Bruno Haible  <bruno@clisp.org>
27879
27880         Prefer documented low-level autoconf macro names.
27881         * m4/lib-link.m4: Use m4_translit instead of translit.
27882         * m4/environ.m4: Likewise.
27883         * m4/mathfunc.m4: Likewise.
27884         * m4/onceonly.m4: Likewise.
27885         * m4/stdint.m4: Likewise.
27886         Suggested by Eric Blake.
27887
27888 2010-06-04  Martin Lambers  <marlam@marlam.de>
27889             Bruno Haible  <bruno@clisp.org>
27890
27891         havelib: Allow library names with '+' characters.
27892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27893         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27894
27895 2010-06-09  Bruno Haible  <bruno@clisp.org>
27896
27897         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27898         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27899         realloc failed.
27900
27901 2010-06-08  Peter Simons  <simons@cryp.to>
27902
27903         maint.mk: make the news-check rule more configurable
27904         * top/maint.mk (news-check-lines-spec): New variable.
27905         (news-check): Use "sed -n 1,10p" in place of "head".
27906
27907 2010-06-07  Jim Meyering  <meyering@redhat.com>
27908
27909         do-release-commit-and-tag: fix typo in --help
27910         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27911
27912         regex: avoid new dead-code warning with gcc-4.6.0
27913         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27914         if-block containing a while-loop.  It's been unused for at least
27915         5 years.
27916
27917 2010-06-05  Bruno Haible  <bruno@clisp.org>
27918
27919         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27920         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27921
27922 2010-06-04  Bruno Haible  <bruno@clisp.org>
27923
27924         Update to GNU gettext 0.18.1.
27925         * modules/gettext (configure.ac): Require gettext infrastructure from
27926         version 0.18.1.
27927
27928 2010-06-03  Bruno Haible  <bruno@clisp.org>
27929
27930         Don't use AC_LIBOBJ with file names in subdirectories.
27931         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27932         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27933         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27934         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27935         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27936         gl_LIBUNISTRING_LIBSOURCE.
27937         (Makefile.am): Augment lib_SOURCES here, conditionally.
27938         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27939
27940 2010-06-03  Bruno Haible  <bruno@clisp.org>
27941
27942         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27943         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27944         expansion does not end with a newline.
27945         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27946         unnecessary newline.
27947
27948 2010-06-03  Bruno Haible  <bruno@clisp.org>
27949
27950         Reduce dependencies.
27951         * tests/test-quotearg.h: New file, extracted from
27952         tests/test-quotearg.c.
27953         * tests/test-quotearg-simple.c: New file, extracted from
27954         tests/test-quotearg.c.
27955         * tests/test-quotearg.c: Don't include <ctype.h>.
27956         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27957         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27958         use_quote_double_quotes, use_quotearg_colon): Moved to
27959         tests/test-quotearg.h.
27960         (results_g, flag_results, custom_quotes, custom_results): Moved
27961         to tests/test-quotearg-simple.c.
27962         (main): Moved the part that does not depend on gettext to
27963         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27964         performed.
27965         * modules/quotearg-simple: New file.
27966         * modules/quotearg-simple-tests: New file.
27967         * modules/quotearg (Depends-on): Add quotearg-simple.
27968         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27969         (Files): Add tests/test-quotearg.h.
27970         Reported by Paolo Bonzini.
27971
27972 2010-06-03  Bruno Haible  <bruno@clisp.org>
27973
27974         Reduce dependencies.
27975         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27976
27977 2010-06-03  Bruno Haible  <bruno@clisp.org>
27978
27979         time: Undefine more broken macros.
27980         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27981         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27982         Reported by Eric Blake.
27983
27984 2010-06-03  Bruno Haible  <bruno@clisp.org>
27985
27986         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27987         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27988         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27989         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27990         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27991         Reported by Ludovic Courtès <ludo@gnu.org>.
27992
27993 2010-06-02  Eric Blake  <eblake@redhat.com>
27994
27995         time: work with mingw + pthreads-win32 library
27996         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27997         if timespec is defined only in pthread.h.
27998         * modules/time (Makefile.am): Substitute it.
27999         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28000         <pthread.h>, when needed.
28001         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28002         from the library.
28003
28004 2010-05-31  Bruno Haible  <bruno@clisp.org>
28005
28006         Avoid expanding two macros in the wrong order.
28007         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28008         gl_LIBUNISTRING if it is defined.
28009         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28010         autoconf >= 2.64.
28011         Reported by Ludovic Courtès <ludo@gnu.org>.
28012
28013 2010-05-27  Jim Meyering  <meyering@redhat.com>
28014
28015         maint.mk: also prohibit "#undef" of always-defined symbols
28016         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28017         Allow more than one space before the symbol name.
28018         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28019         the regexp uses alternation.
28020
28021 2010-05-26  Eric Blake  <eblake@redhat.com>
28022
28023         maint.mk: avoid echo -e
28024         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28025         Convert all uses of echo -* to printf.
28026         Reported by Matthias Bolte.
28027
28028 2010-05-25  Bruno Haible  <bruno@clisp.org>
28029
28030         Update to GNU gettext 0.18, part 2.
28031         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28032         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28033
28034 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28035
28036         Add missing include in test-pwrite.c.
28037         * tests/test-pwrite.c: Include string.h, for strcmp.
28038
28039 2010-05-24  Bruno Haible  <bruno@clisp.org>
28040
28041         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28042
28043 2010-05-24  Bruno Haible  <bruno@clisp.org>
28044
28045         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28046         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28047         iconveh_error argument.
28048         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28049         U_STRCONV_TO_LOCALE.
28050         * lib/unistr/u16-strcoll.c: Likewise.
28051         * lib/unistr/u32-strcoll.c: Likewise.
28052         * modules/unistr/u8-strcoll (Depends-on): Add
28053         uniconv/u8-strconv-to-enc, localcharset. Remove
28054         uniconv/u8-strconv-to-locale.
28055         (configure.ac): Bump version number.
28056         * modules/unistr/u16-strcoll (Depends-on): Add
28057         uniconv/u16-strconv-to-enc, localcharset. Remove
28058         uniconv/u16-strconv-to-locale.
28059         (configure.ac): Bump version number.
28060         * modules/unistr/u32-strcoll (Depends-on): Add
28061         uniconv/u32-strconv-to-enc, localcharset. Remove
28062         uniconv/u32-strconv-to-locale.
28063         (configure.ac): Bump version number.
28064
28065 2010-05-24  Bruno Haible  <bruno@clisp.org>
28066
28067         Avoid a test failure on NetBSD 5.0.
28068         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28069         an iconv() bug.
28070
28071 2010-05-24  Bruno Haible  <bruno@clisp.org>
28072
28073         Adjust #include directive style.
28074         * modules/regex (Includes): Recommend to write <regex.h>.
28075
28076 2010-05-24  Bruno Haible  <bruno@clisp.org>
28077
28078         regex: Don't require alloca.
28079         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28080         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28081         only inside if (0).
28082
28083 2010-05-23  Jim Meyering  <meyering@redhat.com>
28084
28085         test-renameat.c: include <sys/stat.h>
28086         * tests/test-renameat.c: Include <sys/stat.h>; required for
28087         definition of S_IS* macros.
28088
28089 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28090
28091         Update maintainer documentation for 'relocatable-prog' module.
28092         * doc/relocatable-maint.texi: Update.
28093         Comments by Bruno Haible.
28094
28095 2010-05-23  Bruno Haible  <bruno@clisp.org>
28096
28097         git-merge-changelog: Enable --split-merged-entry by default.
28098         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28099         (usage): Don't mention this option any more.
28100         Reported by Ralf Wildenhues.
28101
28102 2010-05-23  Jim Meyering  <meyering@redhat.com>
28103
28104         test-pwrite: do not leave behind a test file named "out"
28105         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28106         The trivial-looking use of init.sh is really necessary.
28107         It ensures that the temporary file, "out", is created in
28108         a temporary directory, and removed upon termination.
28109         * tests/test-pwrite.sh: Re-add file.
28110         * modules/pwrite-tests: Reference it.
28111
28112 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28113
28114         Fix output redirection buglet in init.sh.
28115         * tests/init.sh: Fix redirection of stderr.
28116
28117 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28118
28119         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28120
28121 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28122
28123         * modules/valgrind-tests: New file.
28124         * m4/valgrind-tests.m4: New file.
28125         * doc/valgrind-tests.texi: New file.
28126         * doc/gnulib.texi (Running self-tests under valgrind): New
28127         section.
28128
28129 2010-05-19  Bruno Haible  <bruno@clisp.org>
28130
28131         Clean up dead code in recent commit.
28132         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28133         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28134         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28135         Suggested by Paolo Bonzini.
28136
28137 2010-05-19  Bruno Haible  <bruno@clisp.org>
28138
28139         Avoid valgrind error reports from libunistring.
28140         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28141         * modules/libunistring (Files): Add it.
28142         * modules/libunistring-optional (Files): Likewise.
28143
28144 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28145             Bruno Haible  <bruno@clisp.org>
28146
28147         New module 'libunistring-optional'.
28148         * modules/libunistring-optional: New file.
28149         * m4/libunistring-base.m4: New file.
28150         * m4/libunistring-optional.m4: New file.
28151         * lib/unicase.in.h: Renamed from lib/unicase.h.
28152         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28153         * lib/unictype.in.h: Renamed from lib/unictype.h.
28154         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28155         * lib/uniname.in.h: Renamed from lib/uniname.h.
28156         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28157         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28158         * lib/unistr.in.h: Renamed from lib/unistr.h.
28159         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28160         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28161         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28162         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28163         gl_LIBUNISTRING. If the library was found, determine the installed
28164         version and set LIBUNISTRING_VERSION.
28165         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28166         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28167         handle a configuration option --with-included-libunistring.
28168         * modules/libunistring (Files): Add m4/absolute-header.m4.
28169         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28170         Add m4/libunistring-base.m4.
28171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28172         (Makefile.am): Build unicase.h from unicase.in.h.
28173         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28174         Add m4/libunistring-base.m4.
28175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28176         (Makefile.am): Build uniconv.h from uniconv.in.h.
28177         * modules/unictype/base (Files): Use unictype.in.h instead of
28178         unictype.h. Add m4/libunistring-base.m4.
28179         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28180         (Makefile.am): Build unictype.h from unictype.in.h.
28181         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28182         Add m4/libunistring-base.m4.
28183         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28184         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28185         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28186         Add m4/libunistring-base.m4.
28187         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28188         (Makefile.am): Build uniname.h from uniname.in.h.
28189         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28190         Add m4/libunistring-base.m4.
28191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28192         (Makefile.am): Build uninorm.h from uninorm.in.h.
28193         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28194         unistdio.h. Add m4/libunistring-base.m4.
28195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28196         (Makefile.am): Build unistdio.h from unistdio.in.h.
28197         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28198         Add m4/libunistring-base.m4.
28199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28200         (Makefile.am): Build unistr.h from unistr.in.h.
28201         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28202         Add m4/libunistring-base.m4.
28203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28204         (Makefile.am): Build unitypes.h from unitypes.in.h.
28205         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28206         Add m4/libunistring-base.m4.
28207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28208         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28209         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28210         uniwidth.h. Add m4/libunistring-base.m4.
28211         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28212         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28213         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28214         instead of augmenting lib_SOURCES.
28215         * modules/unicase/empty-suffix-context: Likewise.
28216         * modules/unicase/locale-language: Likewise.
28217         * modules/unicase/tolower: Likewise.
28218         * modules/unicase/totitle: Likewise.
28219         * modules/unicase/toupper: Likewise.
28220         * modules/unicase/u8-casecmp: Likewise.
28221         * modules/unicase/u8-casecoll: Likewise.
28222         * modules/unicase/u8-casefold: Likewise.
28223         * modules/unicase/u8-casexfrm: Likewise.
28224         * modules/unicase/u8-ct-casefold: Likewise.
28225         * modules/unicase/u8-ct-tolower: Likewise.
28226         * modules/unicase/u8-ct-totitle: Likewise.
28227         * modules/unicase/u8-ct-toupper: Likewise.
28228         * modules/unicase/u8-is-cased: Likewise.
28229         * modules/unicase/u8-is-casefolded: Likewise.
28230         * modules/unicase/u8-is-lowercase: Likewise.
28231         * modules/unicase/u8-is-titlecase: Likewise.
28232         * modules/unicase/u8-is-uppercase: Likewise.
28233         * modules/unicase/u8-prefix-context: Likewise.
28234         * modules/unicase/u8-suffix-context: Likewise.
28235         * modules/unicase/u8-tolower: Likewise.
28236         * modules/unicase/u8-totitle: Likewise.
28237         * modules/unicase/u8-toupper: Likewise.
28238         * modules/unicase/u16-casecmp: Likewise.
28239         * modules/unicase/u16-casecoll: Likewise.
28240         * modules/unicase/u16-casefold: Likewise.
28241         * modules/unicase/u16-casexfrm: Likewise.
28242         * modules/unicase/u16-ct-casefold: Likewise.
28243         * modules/unicase/u16-ct-tolower: Likewise.
28244         * modules/unicase/u16-ct-totitle: Likewise.
28245         * modules/unicase/u16-ct-toupper: Likewise.
28246         * modules/unicase/u16-is-cased: Likewise.
28247         * modules/unicase/u16-is-casefolded: Likewise.
28248         * modules/unicase/u16-is-lowercase: Likewise.
28249         * modules/unicase/u16-is-titlecase: Likewise.
28250         * modules/unicase/u16-is-uppercase: Likewise.
28251         * modules/unicase/u16-prefix-context: Likewise.
28252         * modules/unicase/u16-suffix-context: Likewise.
28253         * modules/unicase/u16-tolower: Likewise.
28254         * modules/unicase/u16-totitle: Likewise.
28255         * modules/unicase/u16-toupper: Likewise.
28256         * modules/unicase/u32-casecmp: Likewise.
28257         * modules/unicase/u32-casecoll: Likewise.
28258         * modules/unicase/u32-casefold: Likewise.
28259         * modules/unicase/u32-casexfrm: Likewise.
28260         * modules/unicase/u32-ct-casefold: Likewise.
28261         * modules/unicase/u32-ct-tolower: Likewise.
28262         * modules/unicase/u32-ct-totitle: Likewise.
28263         * modules/unicase/u32-ct-toupper: Likewise.
28264         * modules/unicase/u32-is-cased: Likewise.
28265         * modules/unicase/u32-is-casefolded: Likewise.
28266         * modules/unicase/u32-is-lowercase: Likewise.
28267         * modules/unicase/u32-is-titlecase: Likewise.
28268         * modules/unicase/u32-is-uppercase: Likewise.
28269         * modules/unicase/u32-prefix-context: Likewise.
28270         * modules/unicase/u32-suffix-context: Likewise.
28271         * modules/unicase/u32-tolower: Likewise.
28272         * modules/unicase/u32-totitle: Likewise.
28273         * modules/unicase/u32-toupper: Likewise.
28274         * modules/unicase/ulc-casecmp: Likewise.
28275         * modules/unicase/ulc-casecoll: Likewise.
28276         * modules/unicase/ulc-casexfrm: Likewise.
28277         * modules/uniconv/u8-conv-from-enc: Likewise.
28278         * modules/uniconv/u8-conv-to-enc: Likewise.
28279         * modules/uniconv/u8-strconv-from-enc: Likewise.
28280         * modules/uniconv/u8-strconv-from-locale: Likewise.
28281         * modules/uniconv/u8-strconv-to-enc: Likewise.
28282         * modules/uniconv/u8-strconv-to-locale: Likewise.
28283         * modules/uniconv/u16-conv-from-enc: Likewise.
28284         * modules/uniconv/u16-conv-to-enc: Likewise.
28285         * modules/uniconv/u16-strconv-from-enc: Likewise.
28286         * modules/uniconv/u16-strconv-from-locale: Likewise.
28287         * modules/uniconv/u16-strconv-to-enc: Likewise.
28288         * modules/uniconv/u16-strconv-to-locale: Likewise.
28289         * modules/uniconv/u32-conv-from-enc: Likewise.
28290         * modules/uniconv/u32-conv-to-enc: Likewise.
28291         * modules/uniconv/u32-strconv-from-enc: Likewise.
28292         * modules/uniconv/u32-strconv-from-locale: Likewise.
28293         * modules/uniconv/u32-strconv-to-enc: Likewise.
28294         * modules/uniconv/u32-strconv-to-locale: Likewise.
28295         * modules/unictype/bidicategory-byname: Likewise.
28296         * modules/unictype/bidicategory-name: Likewise.
28297         * modules/unictype/bidicategory-of: Likewise.
28298         * modules/unictype/bidicategory-test: Likewise.
28299         * modules/unictype/block-list: Likewise.
28300         * modules/unictype/block-test: Likewise.
28301         * modules/unictype/category-C: Likewise.
28302         * modules/unictype/category-Cc: Likewise.
28303         * modules/unictype/category-Cf: Likewise.
28304         * modules/unictype/category-Cn: Likewise.
28305         * modules/unictype/category-Co: Likewise.
28306         * modules/unictype/category-Cs: Likewise.
28307         * modules/unictype/category-L: Likewise.
28308         * modules/unictype/category-Ll: Likewise.
28309         * modules/unictype/category-Lm: Likewise.
28310         * modules/unictype/category-Lo: Likewise.
28311         * modules/unictype/category-Lt: Likewise.
28312         * modules/unictype/category-Lu: Likewise.
28313         * modules/unictype/category-M: Likewise.
28314         * modules/unictype/category-Mc: Likewise.
28315         * modules/unictype/category-Me: Likewise.
28316         * modules/unictype/category-Mn: Likewise.
28317         * modules/unictype/category-N: Likewise.
28318         * modules/unictype/category-Nd: Likewise.
28319         * modules/unictype/category-Nl: Likewise.
28320         * modules/unictype/category-No: Likewise.
28321         * modules/unictype/category-P: Likewise.
28322         * modules/unictype/category-Pc: Likewise.
28323         * modules/unictype/category-Pd: Likewise.
28324         * modules/unictype/category-Pe: Likewise.
28325         * modules/unictype/category-Pf: Likewise.
28326         * modules/unictype/category-Pi: Likewise.
28327         * modules/unictype/category-Po: Likewise.
28328         * modules/unictype/category-Ps: Likewise.
28329         * modules/unictype/category-S: Likewise.
28330         * modules/unictype/category-Sc: Likewise.
28331         * modules/unictype/category-Sk: Likewise.
28332         * modules/unictype/category-Sm: Likewise.
28333         * modules/unictype/category-So: Likewise.
28334         * modules/unictype/category-Z: Likewise.
28335         * modules/unictype/category-Zl: Likewise.
28336         * modules/unictype/category-Zp: Likewise.
28337         * modules/unictype/category-Zs: Likewise.
28338         * modules/unictype/category-and: Likewise.
28339         * modules/unictype/category-and-not: Likewise.
28340         * modules/unictype/category-byname: Likewise.
28341         * modules/unictype/category-name: Likewise.
28342         * modules/unictype/category-none: Likewise.
28343         * modules/unictype/category-of: Likewise.
28344         * modules/unictype/category-or: Likewise.
28345         * modules/unictype/category-test: Likewise.
28346         * modules/unictype/combining-class: Likewise.
28347         * modules/unictype/ctype-alnum: Likewise.
28348         * modules/unictype/ctype-alpha: Likewise.
28349         * modules/unictype/ctype-blank: Likewise.
28350         * modules/unictype/ctype-cntrl: Likewise.
28351         * modules/unictype/ctype-digit: Likewise.
28352         * modules/unictype/ctype-graph: Likewise.
28353         * modules/unictype/ctype-lower: Likewise.
28354         * modules/unictype/ctype-print: Likewise.
28355         * modules/unictype/ctype-punct: Likewise.
28356         * modules/unictype/ctype-space: Likewise.
28357         * modules/unictype/ctype-upper: Likewise.
28358         * modules/unictype/ctype-xdigit: Likewise.
28359         * modules/unictype/decimal-digit: Likewise.
28360         * modules/unictype/digit: Likewise.
28361         * modules/unictype/mirror: Likewise.
28362         * modules/unictype/numeric: Likewise.
28363         * modules/unictype/property-alphabetic: Likewise.
28364         * modules/unictype/property-ascii-hex-digit: Likewise.
28365         * modules/unictype/property-bidi-arabic-digit: Likewise.
28366         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28367         * modules/unictype/property-bidi-block-separator: Likewise.
28368         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28369         * modules/unictype/property-bidi-common-separator: Likewise.
28370         * modules/unictype/property-bidi-control: Likewise.
28371         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28372         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28373         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28374         * modules/unictype/property-bidi-european-digit: Likewise.
28375         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28376         * modules/unictype/property-bidi-left-to-right: Likewise.
28377         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28378         * modules/unictype/property-bidi-other-neutral: Likewise.
28379         * modules/unictype/property-bidi-pdf: Likewise.
28380         * modules/unictype/property-bidi-segment-separator: Likewise.
28381         * modules/unictype/property-bidi-whitespace: Likewise.
28382         * modules/unictype/property-byname: Likewise.
28383         * modules/unictype/property-combining: Likewise.
28384         * modules/unictype/property-composite: Likewise.
28385         * modules/unictype/property-currency-symbol: Likewise.
28386         * modules/unictype/property-dash: Likewise.
28387         * modules/unictype/property-decimal-digit: Likewise.
28388         * modules/unictype/property-default-ignorable-code-point: Likewise.
28389         * modules/unictype/property-deprecated: Likewise.
28390         * modules/unictype/property-diacritic: Likewise.
28391         * modules/unictype/property-extender: Likewise.
28392         * modules/unictype/property-format-control: Likewise.
28393         * modules/unictype/property-grapheme-base: Likewise.
28394         * modules/unictype/property-grapheme-extend: Likewise.
28395         * modules/unictype/property-grapheme-link: Likewise.
28396         * modules/unictype/property-hex-digit: Likewise.
28397         * modules/unictype/property-hyphen: Likewise.
28398         * modules/unictype/property-id-continue: Likewise.
28399         * modules/unictype/property-id-start: Likewise.
28400         * modules/unictype/property-ideographic: Likewise.
28401         * modules/unictype/property-ids-binary-operator: Likewise.
28402         * modules/unictype/property-ids-trinary-operator: Likewise.
28403         * modules/unictype/property-ignorable-control: Likewise.
28404         * modules/unictype/property-iso-control: Likewise.
28405         * modules/unictype/property-join-control: Likewise.
28406         * modules/unictype/property-left-of-pair: Likewise.
28407         * modules/unictype/property-line-separator: Likewise.
28408         * modules/unictype/property-logical-order-exception: Likewise.
28409         * modules/unictype/property-lowercase: Likewise.
28410         * modules/unictype/property-math: Likewise.
28411         * modules/unictype/property-non-break: Likewise.
28412         * modules/unictype/property-not-a-character: Likewise.
28413         * modules/unictype/property-numeric: Likewise.
28414         * modules/unictype/property-other-alphabetic: Likewise.
28415         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28416         * modules/unictype/property-other-grapheme-extend: Likewise.
28417         * modules/unictype/property-other-id-continue: Likewise.
28418         * modules/unictype/property-other-id-start: Likewise.
28419         * modules/unictype/property-other-lowercase: Likewise.
28420         * modules/unictype/property-other-math: Likewise.
28421         * modules/unictype/property-other-uppercase: Likewise.
28422         * modules/unictype/property-paired-punctuation: Likewise.
28423         * modules/unictype/property-paragraph-separator: Likewise.
28424         * modules/unictype/property-pattern-syntax: Likewise.
28425         * modules/unictype/property-pattern-white-space: Likewise.
28426         * modules/unictype/property-private-use: Likewise.
28427         * modules/unictype/property-punctuation: Likewise.
28428         * modules/unictype/property-quotation-mark: Likewise.
28429         * modules/unictype/property-radical: Likewise.
28430         * modules/unictype/property-sentence-terminal: Likewise.
28431         * modules/unictype/property-soft-dotted: Likewise.
28432         * modules/unictype/property-space: Likewise.
28433         * modules/unictype/property-terminal-punctuation: Likewise.
28434         * modules/unictype/property-test: Likewise.
28435         * modules/unictype/property-titlecase: Likewise.
28436         * modules/unictype/property-unassigned-code-value: Likewise.
28437         * modules/unictype/property-unified-ideograph: Likewise.
28438         * modules/unictype/property-uppercase: Likewise.
28439         * modules/unictype/property-variation-selector: Likewise.
28440         * modules/unictype/property-white-space: Likewise.
28441         * modules/unictype/property-xid-continue: Likewise.
28442         * modules/unictype/property-xid-start: Likewise.
28443         * modules/unictype/property-zero-width: Likewise.
28444         * modules/unictype/scripts: Likewise.
28445         * modules/unictype/syntax-c-ident: Likewise.
28446         * modules/unictype/syntax-c-whitespace: Likewise.
28447         * modules/unictype/syntax-java-ident: Likewise.
28448         * modules/unictype/syntax-java-whitespace: Likewise.
28449         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28450         * modules/unilbrk/u8-width-linebreaks: Likewise.
28451         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28452         * modules/unilbrk/u16-width-linebreaks: Likewise.
28453         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28454         * modules/unilbrk/u32-width-linebreaks: Likewise.
28455         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28456         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28457         * modules/uniname/uniname: Likewise.
28458         * modules/uninorm/canonical-decomposition: Likewise.
28459         * modules/uninorm/composition: Likewise.
28460         * modules/uninorm/decomposing-form: Likewise.
28461         * modules/uninorm/decomposition: Likewise.
28462         * modules/uninorm/filter: Likewise.
28463         * modules/uninorm/nfc: Likewise.
28464         * modules/uninorm/nfd: Likewise.
28465         * modules/uninorm/nfkc: Likewise.
28466         * modules/uninorm/nfkd: Likewise.
28467         * modules/uninorm/u8-normalize: Likewise.
28468         * modules/uninorm/u8-normcmp: Likewise.
28469         * modules/uninorm/u8-normcoll: Likewise.
28470         * modules/uninorm/u8-normxfrm: Likewise.
28471         * modules/uninorm/u16-normalize: Likewise.
28472         * modules/uninorm/u16-normcmp: Likewise.
28473         * modules/uninorm/u16-normcoll: Likewise.
28474         * modules/uninorm/u16-normxfrm: Likewise.
28475         * modules/uninorm/u32-normalize: Likewise.
28476         * modules/uninorm/u32-normcmp: Likewise.
28477         * modules/uninorm/u32-normcoll: Likewise.
28478         * modules/uninorm/u32-normxfrm: Likewise.
28479         * modules/unistdio/u8-asnprintf: Likewise.
28480         * modules/unistdio/u8-asprintf: Likewise.
28481         * modules/unistdio/u8-snprintf: Likewise.
28482         * modules/unistdio/u8-sprintf: Likewise.
28483         * modules/unistdio/u8-u8-asnprintf: Likewise.
28484         * modules/unistdio/u8-u8-asprintf: Likewise.
28485         * modules/unistdio/u8-u8-snprintf: Likewise.
28486         * modules/unistdio/u8-u8-sprintf: Likewise.
28487         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28488         * modules/unistdio/u8-u8-vasprintf: Likewise.
28489         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28490         * modules/unistdio/u8-u8-vsprintf: Likewise.
28491         * modules/unistdio/u8-vasnprintf: Likewise.
28492         * modules/unistdio/u8-vasprintf: Likewise.
28493         * modules/unistdio/u8-vsnprintf: Likewise.
28494         * modules/unistdio/u8-vsprintf: Likewise.
28495         * modules/unistdio/u16-asnprintf: Likewise.
28496         * modules/unistdio/u16-asprintf: Likewise.
28497         * modules/unistdio/u16-snprintf: Likewise.
28498         * modules/unistdio/u16-sprintf: Likewise.
28499         * modules/unistdio/u16-u16-asnprintf: Likewise.
28500         * modules/unistdio/u16-u16-asprintf: Likewise.
28501         * modules/unistdio/u16-u16-snprintf: Likewise.
28502         * modules/unistdio/u16-u16-sprintf: Likewise.
28503         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28504         * modules/unistdio/u16-u16-vasprintf: Likewise.
28505         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28506         * modules/unistdio/u16-u16-vsprintf: Likewise.
28507         * modules/unistdio/u16-vasnprintf: Likewise.
28508         * modules/unistdio/u16-vasprintf: Likewise.
28509         * modules/unistdio/u16-vsnprintf: Likewise.
28510         * modules/unistdio/u16-vsprintf: Likewise.
28511         * modules/unistdio/u32-asnprintf: Likewise.
28512         * modules/unistdio/u32-asprintf: Likewise.
28513         * modules/unistdio/u32-snprintf: Likewise.
28514         * modules/unistdio/u32-sprintf: Likewise.
28515         * modules/unistdio/u32-u32-asnprintf: Likewise.
28516         * modules/unistdio/u32-u32-asprintf: Likewise.
28517         * modules/unistdio/u32-u32-snprintf: Likewise.
28518         * modules/unistdio/u32-u32-sprintf: Likewise.
28519         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28520         * modules/unistdio/u32-u32-vasprintf: Likewise.
28521         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28522         * modules/unistdio/u32-u32-vsprintf: Likewise.
28523         * modules/unistdio/u32-vasnprintf: Likewise.
28524         * modules/unistdio/u32-vasprintf: Likewise.
28525         * modules/unistdio/u32-vsnprintf: Likewise.
28526         * modules/unistdio/u32-vsprintf: Likewise.
28527         * modules/unistdio/ulc-asnprintf: Likewise.
28528         * modules/unistdio/ulc-asprintf: Likewise.
28529         * modules/unistdio/ulc-fprintf: Likewise.
28530         * modules/unistdio/ulc-snprintf: Likewise.
28531         * modules/unistdio/ulc-sprintf: Likewise.
28532         * modules/unistdio/ulc-vasnprintf: Likewise.
28533         * modules/unistdio/ulc-vasprintf: Likewise.
28534         * modules/unistdio/ulc-vfprintf: Likewise.
28535         * modules/unistdio/ulc-vsnprintf: Likewise.
28536         * modules/unistdio/ulc-vsprintf: Likewise.
28537         * modules/unistr/u8-check: Likewise.
28538         * modules/unistr/u8-chr: Likewise.
28539         * modules/unistr/u8-cmp: Likewise.
28540         * modules/unistr/u8-cmp2: Likewise.
28541         * modules/unistr/u8-cpy: Likewise.
28542         * modules/unistr/u8-cpy-alloc: Likewise.
28543         * modules/unistr/u8-endswith: Likewise.
28544         * modules/unistr/u8-mblen: Likewise.
28545         * modules/unistr/u8-mbsnlen: Likewise.
28546         * modules/unistr/u8-mbtouc: Likewise.
28547         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28548         * modules/unistr/u8-mbtoucr: Likewise.
28549         * modules/unistr/u8-move: Likewise.
28550         * modules/unistr/u8-next: Likewise.
28551         * modules/unistr/u8-prev: Likewise.
28552         * modules/unistr/u8-set: Likewise.
28553         * modules/unistr/u8-startswith: Likewise.
28554         * modules/unistr/u8-stpcpy: Likewise.
28555         * modules/unistr/u8-stpncpy: Likewise.
28556         * modules/unistr/u8-strcat: Likewise.
28557         * modules/unistr/u8-strchr: Likewise.
28558         * modules/unistr/u8-strcmp: Likewise.
28559         * modules/unistr/u8-strcoll: Likewise.
28560         * modules/unistr/u8-strcpy: Likewise.
28561         * modules/unistr/u8-strcspn: Likewise.
28562         * modules/unistr/u8-strdup: Likewise.
28563         * modules/unistr/u8-strlen: Likewise.
28564         * modules/unistr/u8-strmblen: Likewise.
28565         * modules/unistr/u8-strmbtouc: Likewise.
28566         * modules/unistr/u8-strncat: Likewise.
28567         * modules/unistr/u8-strncmp: Likewise.
28568         * modules/unistr/u8-strncpy: Likewise.
28569         * modules/unistr/u8-strnlen: Likewise.
28570         * modules/unistr/u8-strpbrk: Likewise.
28571         * modules/unistr/u8-strrchr: Likewise.
28572         * modules/unistr/u8-strspn: Likewise.
28573         * modules/unistr/u8-strstr: Likewise.
28574         * modules/unistr/u8-strtok: Likewise.
28575         * modules/unistr/u8-to-u16: Likewise.
28576         * modules/unistr/u8-to-u32: Likewise.
28577         * modules/unistr/u8-uctomb: Likewise.
28578         * modules/unistr/u16-check: Likewise.
28579         * modules/unistr/u16-chr: Likewise.
28580         * modules/unistr/u16-cmp: Likewise.
28581         * modules/unistr/u16-cmp2: Likewise.
28582         * modules/unistr/u16-cpy: Likewise.
28583         * modules/unistr/u16-cpy-alloc: Likewise.
28584         * modules/unistr/u16-endswith: Likewise.
28585         * modules/unistr/u16-mblen: Likewise.
28586         * modules/unistr/u16-mbsnlen: Likewise.
28587         * modules/unistr/u16-mbtouc: Likewise.
28588         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28589         * modules/unistr/u16-mbtoucr: Likewise.
28590         * modules/unistr/u16-move: Likewise.
28591         * modules/unistr/u16-next: Likewise.
28592         * modules/unistr/u16-prev: Likewise.
28593         * modules/unistr/u16-set: Likewise.
28594         * modules/unistr/u16-startswith: Likewise.
28595         * modules/unistr/u16-stpcpy: Likewise.
28596         * modules/unistr/u16-stpncpy: Likewise.
28597         * modules/unistr/u16-strcat: Likewise.
28598         * modules/unistr/u16-strchr: Likewise.
28599         * modules/unistr/u16-strcmp: Likewise.
28600         * modules/unistr/u16-strcoll: Likewise.
28601         * modules/unistr/u16-strcpy: Likewise.
28602         * modules/unistr/u16-strcspn: Likewise.
28603         * modules/unistr/u16-strdup: Likewise.
28604         * modules/unistr/u16-strlen: Likewise.
28605         * modules/unistr/u16-strmblen: Likewise.
28606         * modules/unistr/u16-strmbtouc: Likewise.
28607         * modules/unistr/u16-strncat: Likewise.
28608         * modules/unistr/u16-strncmp: Likewise.
28609         * modules/unistr/u16-strncpy: Likewise.
28610         * modules/unistr/u16-strnlen: Likewise.
28611         * modules/unistr/u16-strpbrk: Likewise.
28612         * modules/unistr/u16-strrchr: Likewise.
28613         * modules/unistr/u16-strspn: Likewise.
28614         * modules/unistr/u16-strstr: Likewise.
28615         * modules/unistr/u16-strtok: Likewise.
28616         * modules/unistr/u16-to-u32: Likewise.
28617         * modules/unistr/u16-to-u8: Likewise.
28618         * modules/unistr/u16-uctomb: Likewise.
28619         * modules/unistr/u32-check: Likewise.
28620         * modules/unistr/u32-chr: Likewise.
28621         * modules/unistr/u32-cmp: Likewise.
28622         * modules/unistr/u32-cmp2: Likewise.
28623         * modules/unistr/u32-cpy: Likewise.
28624         * modules/unistr/u32-cpy-alloc: Likewise.
28625         * modules/unistr/u32-endswith: Likewise.
28626         * modules/unistr/u32-mblen: Likewise.
28627         * modules/unistr/u32-mbsnlen: Likewise.
28628         * modules/unistr/u32-mbtouc: Likewise.
28629         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28630         * modules/unistr/u32-mbtoucr: Likewise.
28631         * modules/unistr/u32-move: Likewise.
28632         * modules/unistr/u32-next: Likewise.
28633         * modules/unistr/u32-prev: Likewise.
28634         * modules/unistr/u32-set: Likewise.
28635         * modules/unistr/u32-startswith: Likewise.
28636         * modules/unistr/u32-stpcpy: Likewise.
28637         * modules/unistr/u32-stpncpy: Likewise.
28638         * modules/unistr/u32-strcat: Likewise.
28639         * modules/unistr/u32-strchr: Likewise.
28640         * modules/unistr/u32-strcmp: Likewise.
28641         * modules/unistr/u32-strcoll: Likewise.
28642         * modules/unistr/u32-strcpy: Likewise.
28643         * modules/unistr/u32-strcspn: Likewise.
28644         * modules/unistr/u32-strdup: Likewise.
28645         * modules/unistr/u32-strlen: Likewise.
28646         * modules/unistr/u32-strmblen: Likewise.
28647         * modules/unistr/u32-strmbtouc: Likewise.
28648         * modules/unistr/u32-strncat: Likewise.
28649         * modules/unistr/u32-strncmp: Likewise.
28650         * modules/unistr/u32-strncpy: Likewise.
28651         * modules/unistr/u32-strnlen: Likewise.
28652         * modules/unistr/u32-strpbrk: Likewise.
28653         * modules/unistr/u32-strrchr: Likewise.
28654         * modules/unistr/u32-strspn: Likewise.
28655         * modules/unistr/u32-strstr: Likewise.
28656         * modules/unistr/u32-strtok: Likewise.
28657         * modules/unistr/u32-to-u16: Likewise.
28658         * modules/unistr/u32-to-u8: Likewise.
28659         * modules/unistr/u32-uctomb: Likewise.
28660         * modules/uniwbrk/u8-wordbreaks: Likewise.
28661         * modules/uniwbrk/u16-wordbreaks: Likewise.
28662         * modules/uniwbrk/u32-wordbreaks: Likewise.
28663         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28664         * modules/uniwbrk/wordbreak-property: Likewise.
28665         * modules/uniwidth/u8-strwidth: Likewise.
28666         * modules/uniwidth/u8-width: Likewise.
28667         * modules/uniwidth/u16-strwidth: Likewise.
28668         * modules/uniwidth/u16-width: Likewise.
28669         * modules/uniwidth/u32-strwidth: Likewise.
28670         * modules/uniwidth/u32-width: Likewise.
28671         * modules/uniwidth/width: Likewise.
28672         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28673         with $(LIBUNISTRING).
28674         * modules/unicase/ignorable-tests: Likewise.
28675         * modules/unicase/locale-language-tests: Likewise.
28676         * modules/unicase/tolower-tests: Likewise.
28677         * modules/unicase/totitle-tests: Likewise.
28678         * modules/unicase/toupper-tests: Likewise.
28679         * modules/unicase/u8-casecmp-tests: Likewise.
28680         * modules/unicase/u8-casecoll-tests: Likewise.
28681         * modules/unicase/u8-casefold-tests: Likewise.
28682         * modules/unicase/u8-is-cased-tests: Likewise.
28683         * modules/unicase/u8-is-casefolded-tests: Likewise.
28684         * modules/unicase/u8-is-lowercase-tests: Likewise.
28685         * modules/unicase/u8-is-titlecase-tests: Likewise.
28686         * modules/unicase/u8-is-uppercase-tests: Likewise.
28687         * modules/unicase/u8-tolower-tests: Likewise.
28688         * modules/unicase/u8-totitle-tests: Likewise.
28689         * modules/unicase/u8-toupper-tests: Likewise.
28690         * modules/unicase/u16-casecmp-tests: Likewise.
28691         * modules/unicase/u16-casecoll-tests: Likewise.
28692         * modules/unicase/u16-casefold-tests: Likewise.
28693         * modules/unicase/u16-is-cased-tests: Likewise.
28694         * modules/unicase/u16-is-casefolded-tests: Likewise.
28695         * modules/unicase/u16-is-lowercase-tests: Likewise.
28696         * modules/unicase/u16-is-titlecase-tests: Likewise.
28697         * modules/unicase/u16-is-uppercase-tests: Likewise.
28698         * modules/unicase/u16-tolower-tests: Likewise.
28699         * modules/unicase/u16-totitle-tests: Likewise.
28700         * modules/unicase/u16-toupper-tests: Likewise.
28701         * modules/unicase/u32-casecmp-tests: Likewise.
28702         * modules/unicase/u32-casecoll-tests: Likewise.
28703         * modules/unicase/u32-casefold-tests: Likewise.
28704         * modules/unicase/u32-is-cased-tests: Likewise.
28705         * modules/unicase/u32-is-casefolded-tests: Likewise.
28706         * modules/unicase/u32-is-lowercase-tests: Likewise.
28707         * modules/unicase/u32-is-titlecase-tests: Likewise.
28708         * modules/unicase/u32-is-uppercase-tests: Likewise.
28709         * modules/unicase/u32-tolower-tests: Likewise.
28710         * modules/unicase/u32-totitle-tests: Likewise.
28711         * modules/unicase/u32-toupper-tests: Likewise.
28712         * modules/unicase/ulc-casecmp-tests: Likewise.
28713         * modules/unicase/ulc-casecoll-tests: Likewise.
28714         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28715         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28716         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28717         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28718         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28719         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28720         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28721         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28722         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28723         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28724         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28725         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28726         * modules/unictype/bidicategory-byname-tests: Likewise.
28727         * modules/unictype/bidicategory-name-tests: Likewise.
28728         * modules/unictype/bidicategory-of-tests: Likewise.
28729         * modules/unictype/bidicategory-test-tests: Likewise.
28730         * modules/unictype/block-list-tests: Likewise.
28731         * modules/unictype/block-of-tests: Likewise.
28732         * modules/unictype/block-test-tests: Likewise.
28733         * modules/unictype/category-C-tests: Likewise.
28734         * modules/unictype/category-Cc-tests: Likewise.
28735         * modules/unictype/category-Cf-tests: Likewise.
28736         * modules/unictype/category-Cn-tests: Likewise.
28737         * modules/unictype/category-Co-tests: Likewise.
28738         * modules/unictype/category-Cs-tests: Likewise.
28739         * modules/unictype/category-L-tests: Likewise.
28740         * modules/unictype/category-Ll-tests: Likewise.
28741         * modules/unictype/category-Lm-tests: Likewise.
28742         * modules/unictype/category-Lo-tests: Likewise.
28743         * modules/unictype/category-Lt-tests: Likewise.
28744         * modules/unictype/category-Lu-tests: Likewise.
28745         * modules/unictype/category-M-tests: Likewise.
28746         * modules/unictype/category-Mc-tests: Likewise.
28747         * modules/unictype/category-Me-tests: Likewise.
28748         * modules/unictype/category-Mn-tests: Likewise.
28749         * modules/unictype/category-N-tests: Likewise.
28750         * modules/unictype/category-Nd-tests: Likewise.
28751         * modules/unictype/category-Nl-tests: Likewise.
28752         * modules/unictype/category-No-tests: Likewise.
28753         * modules/unictype/category-P-tests: Likewise.
28754         * modules/unictype/category-Pc-tests: Likewise.
28755         * modules/unictype/category-Pd-tests: Likewise.
28756         * modules/unictype/category-Pe-tests: Likewise.
28757         * modules/unictype/category-Pf-tests: Likewise.
28758         * modules/unictype/category-Pi-tests: Likewise.
28759         * modules/unictype/category-Po-tests: Likewise.
28760         * modules/unictype/category-Ps-tests: Likewise.
28761         * modules/unictype/category-S-tests: Likewise.
28762         * modules/unictype/category-Sc-tests: Likewise.
28763         * modules/unictype/category-Sk-tests: Likewise.
28764         * modules/unictype/category-Sm-tests: Likewise.
28765         * modules/unictype/category-So-tests: Likewise.
28766         * modules/unictype/category-Z-tests: Likewise.
28767         * modules/unictype/category-Zl-tests: Likewise.
28768         * modules/unictype/category-Zp-tests: Likewise.
28769         * modules/unictype/category-Zs-tests: Likewise.
28770         * modules/unictype/category-and-not-tests: Likewise.
28771         * modules/unictype/category-and-tests: Likewise.
28772         * modules/unictype/category-byname-tests: Likewise.
28773         * modules/unictype/category-name-tests: Likewise.
28774         * modules/unictype/category-none-tests: Likewise.
28775         * modules/unictype/category-of-tests: Likewise.
28776         * modules/unictype/category-or-tests: Likewise.
28777         * modules/unictype/category-test-withtable-tests: Likewise.
28778         * modules/unictype/combining-class-tests: Likewise.
28779         * modules/unictype/ctype-alnum-tests: Likewise.
28780         * modules/unictype/ctype-alpha-tests: Likewise.
28781         * modules/unictype/ctype-blank-tests: Likewise.
28782         * modules/unictype/ctype-cntrl-tests: Likewise.
28783         * modules/unictype/ctype-digit-tests: Likewise.
28784         * modules/unictype/ctype-graph-tests: Likewise.
28785         * modules/unictype/ctype-lower-tests: Likewise.
28786         * modules/unictype/ctype-print-tests: Likewise.
28787         * modules/unictype/ctype-punct-tests: Likewise.
28788         * modules/unictype/ctype-space-tests: Likewise.
28789         * modules/unictype/ctype-upper-tests: Likewise.
28790         * modules/unictype/ctype-xdigit-tests: Likewise.
28791         * modules/unictype/decimal-digit-tests: Likewise.
28792         * modules/unictype/digit-tests: Likewise.
28793         * modules/unictype/mirror-tests: Likewise.
28794         * modules/unictype/numeric-tests: Likewise.
28795         * modules/unictype/property-alphabetic-tests: Likewise.
28796         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28797         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28798         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28799         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28800         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28801         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28802         * modules/unictype/property-bidi-control-tests: Likewise.
28803         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28804         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28805         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28806         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28807         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28808         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28809         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28810         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28811         * modules/unictype/property-bidi-pdf-tests: Likewise.
28812         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28813         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28814         * modules/unictype/property-byname-tests: Likewise.
28815         * modules/unictype/property-combining-tests: Likewise.
28816         * modules/unictype/property-composite-tests: Likewise.
28817         * modules/unictype/property-currency-symbol-tests: Likewise.
28818         * modules/unictype/property-dash-tests: Likewise.
28819         * modules/unictype/property-decimal-digit-tests: Likewise.
28820         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28821         * modules/unictype/property-deprecated-tests: Likewise.
28822         * modules/unictype/property-diacritic-tests: Likewise.
28823         * modules/unictype/property-extender-tests: Likewise.
28824         * modules/unictype/property-format-control-tests: Likewise.
28825         * modules/unictype/property-grapheme-base-tests: Likewise.
28826         * modules/unictype/property-grapheme-extend-tests: Likewise.
28827         * modules/unictype/property-grapheme-link-tests: Likewise.
28828         * modules/unictype/property-hex-digit-tests: Likewise.
28829         * modules/unictype/property-hyphen-tests: Likewise.
28830         * modules/unictype/property-id-continue-tests: Likewise.
28831         * modules/unictype/property-id-start-tests: Likewise.
28832         * modules/unictype/property-ideographic-tests: Likewise.
28833         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28834         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28835         * modules/unictype/property-ignorable-control-tests: Likewise.
28836         * modules/unictype/property-iso-control-tests: Likewise.
28837         * modules/unictype/property-join-control-tests: Likewise.
28838         * modules/unictype/property-left-of-pair-tests: Likewise.
28839         * modules/unictype/property-line-separator-tests: Likewise.
28840         * modules/unictype/property-logical-order-exception-tests: Likewise.
28841         * modules/unictype/property-lowercase-tests: Likewise.
28842         * modules/unictype/property-math-tests: Likewise.
28843         * modules/unictype/property-non-break-tests: Likewise.
28844         * modules/unictype/property-not-a-character-tests: Likewise.
28845         * modules/unictype/property-numeric-tests: Likewise.
28846         * modules/unictype/property-other-alphabetic-tests: Likewise.
28847         * modules/unictype/property-other-default-ignorable-code-point-tests:
28848         Likewise.
28849         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28850         * modules/unictype/property-other-id-continue-tests: Likewise.
28851         * modules/unictype/property-other-id-start-tests: Likewise.
28852         * modules/unictype/property-other-lowercase-tests: Likewise.
28853         * modules/unictype/property-other-math-tests: Likewise.
28854         * modules/unictype/property-other-uppercase-tests: Likewise.
28855         * modules/unictype/property-paired-punctuation-tests: Likewise.
28856         * modules/unictype/property-paragraph-separator-tests: Likewise.
28857         * modules/unictype/property-pattern-syntax-tests: Likewise.
28858         * modules/unictype/property-pattern-white-space-tests: Likewise.
28859         * modules/unictype/property-private-use-tests: Likewise.
28860         * modules/unictype/property-punctuation-tests: Likewise.
28861         * modules/unictype/property-quotation-mark-tests: Likewise.
28862         * modules/unictype/property-radical-tests: Likewise.
28863         * modules/unictype/property-sentence-terminal-tests: Likewise.
28864         * modules/unictype/property-soft-dotted-tests: Likewise.
28865         * modules/unictype/property-space-tests: Likewise.
28866         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28867         * modules/unictype/property-test-tests: Likewise.
28868         * modules/unictype/property-titlecase-tests: Likewise.
28869         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28870         * modules/unictype/property-unified-ideograph-tests: Likewise.
28871         * modules/unictype/property-uppercase-tests: Likewise.
28872         * modules/unictype/property-variation-selector-tests: Likewise.
28873         * modules/unictype/property-white-space-tests: Likewise.
28874         * modules/unictype/property-xid-continue-tests: Likewise.
28875         * modules/unictype/property-xid-start-tests: Likewise.
28876         * modules/unictype/property-zero-width-tests: Likewise.
28877         * modules/unictype/scripts-tests: Likewise.
28878         * modules/unictype/syntax-c-ident-tests: Likewise.
28879         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28880         * modules/unictype/syntax-java-ident-tests: Likewise.
28881         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28882         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28883         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28884         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28885         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28886         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28887         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28888         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28889         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28890         * modules/uniname/uniname-tests: Likewise.
28891         * modules/uninorm/canonical-decomposition-tests: Likewise.
28892         * modules/uninorm/compat-decomposition-tests: Likewise.
28893         * modules/uninorm/composition-tests: Likewise.
28894         * modules/uninorm/decomposing-form-tests: Likewise.
28895         * modules/uninorm/decomposition-tests: Likewise.
28896         * modules/uninorm/filter-tests: Likewise.
28897         * modules/uninorm/nfc-tests: Likewise.
28898         * modules/uninorm/nfd-tests: Likewise.
28899         * modules/uninorm/nfkc-tests: Likewise.
28900         * modules/uninorm/nfkd-tests: Likewise.
28901         * modules/uninorm/u8-normcmp-tests: Likewise.
28902         * modules/uninorm/u8-normcoll-tests: Likewise.
28903         * modules/uninorm/u16-normcmp-tests: Likewise.
28904         * modules/uninorm/u16-normcoll-tests: Likewise.
28905         * modules/uninorm/u32-normcmp-tests: Likewise.
28906         * modules/uninorm/u32-normcoll-tests: Likewise.
28907         * modules/unistdio/u8-asnprintf-tests: Likewise.
28908         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28909         * modules/unistdio/u8-vasprintf-tests: Likewise.
28910         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28911         * modules/unistdio/u8-vsprintf-tests: Likewise.
28912         * modules/unistdio/u16-asnprintf-tests: Likewise.
28913         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28914         * modules/unistdio/u16-vasprintf-tests: Likewise.
28915         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28916         * modules/unistdio/u16-vsprintf-tests: Likewise.
28917         * modules/unistdio/u32-asnprintf-tests: Likewise.
28918         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28919         * modules/unistdio/u32-vasprintf-tests: Likewise.
28920         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28921         * modules/unistdio/u32-vsprintf-tests: Likewise.
28922         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28923         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28924         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28925         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28926         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28927         * modules/unistr/u8-check-tests: Likewise.
28928         * modules/unistr/u8-chr-tests: Likewise.
28929         * modules/unistr/u8-cmp-tests: Likewise.
28930         * modules/unistr/u8-cmp2-tests: Likewise.
28931         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28932         * modules/unistr/u8-cpy-tests: Likewise.
28933         * modules/unistr/u8-mblen-tests: Likewise.
28934         * modules/unistr/u8-mbsnlen-tests: Likewise.
28935         * modules/unistr/u8-mbtouc-tests: Likewise.
28936         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28937         * modules/unistr/u8-mbtoucr-tests: Likewise.
28938         * modules/unistr/u8-move-tests: Likewise.
28939         * modules/unistr/u8-next-tests: Likewise.
28940         * modules/unistr/u8-prev-tests: Likewise.
28941         * modules/unistr/u8-set-tests: Likewise.
28942         * modules/unistr/u8-stpcpy-tests: Likewise.
28943         * modules/unistr/u8-stpncpy-tests: Likewise.
28944         * modules/unistr/u8-strcat-tests: Likewise.
28945         * modules/unistr/u8-strcmp-tests: Likewise.
28946         * modules/unistr/u8-strcoll-tests: Likewise.
28947         * modules/unistr/u8-strcpy-tests: Likewise.
28948         * modules/unistr/u8-strdup-tests: Likewise.
28949         * modules/unistr/u8-strlen-tests: Likewise.
28950         * modules/unistr/u8-strmblen-tests: Likewise.
28951         * modules/unistr/u8-strmbtouc-tests: Likewise.
28952         * modules/unistr/u8-strncat-tests: Likewise.
28953         * modules/unistr/u8-strncmp-tests: Likewise.
28954         * modules/unistr/u8-strncpy-tests: Likewise.
28955         * modules/unistr/u8-strnlen-tests: Likewise.
28956         * modules/unistr/u8-to-u16-tests: Likewise.
28957         * modules/unistr/u8-to-u32-tests: Likewise.
28958         * modules/unistr/u8-uctomb-tests: Likewise.
28959         * modules/unistr/u16-check-tests: Likewise.
28960         * modules/unistr/u16-chr-tests: Likewise.
28961         * modules/unistr/u16-cmp-tests: Likewise.
28962         * modules/unistr/u16-cmp2-tests: Likewise.
28963         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28964         * modules/unistr/u16-cpy-tests: Likewise.
28965         * modules/unistr/u16-mblen-tests: Likewise.
28966         * modules/unistr/u16-mbsnlen-tests: Likewise.
28967         * modules/unistr/u16-mbtouc-tests: Likewise.
28968         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28969         * modules/unistr/u16-mbtoucr-tests: Likewise.
28970         * modules/unistr/u16-move-tests: Likewise.
28971         * modules/unistr/u16-next-tests: Likewise.
28972         * modules/unistr/u16-prev-tests: Likewise.
28973         * modules/unistr/u16-set-tests: Likewise.
28974         * modules/unistr/u16-stpcpy-tests: Likewise.
28975         * modules/unistr/u16-stpncpy-tests: Likewise.
28976         * modules/unistr/u16-strcat-tests: Likewise.
28977         * modules/unistr/u16-strcmp-tests: Likewise.
28978         * modules/unistr/u16-strcoll-tests: Likewise.
28979         * modules/unistr/u16-strcpy-tests: Likewise.
28980         * modules/unistr/u16-strdup-tests: Likewise.
28981         * modules/unistr/u16-strlen-tests: Likewise.
28982         * modules/unistr/u16-strmblen-tests: Likewise.
28983         * modules/unistr/u16-strmbtouc-tests: Likewise.
28984         * modules/unistr/u16-strncat-tests: Likewise.
28985         * modules/unistr/u16-strncmp-tests: Likewise.
28986         * modules/unistr/u16-strncpy-tests: Likewise.
28987         * modules/unistr/u16-strnlen-tests: Likewise.
28988         * modules/unistr/u16-to-u32-tests: Likewise.
28989         * modules/unistr/u16-to-u8-tests: Likewise.
28990         * modules/unistr/u16-uctomb-tests: Likewise.
28991         * modules/unistr/u32-check-tests: Likewise.
28992         * modules/unistr/u32-chr-tests: Likewise.
28993         * modules/unistr/u32-cmp-tests: Likewise.
28994         * modules/unistr/u32-cmp2-tests: Likewise.
28995         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28996         * modules/unistr/u32-cpy-tests: Likewise.
28997         * modules/unistr/u32-mblen-tests: Likewise.
28998         * modules/unistr/u32-mbsnlen-tests: Likewise.
28999         * modules/unistr/u32-mbtouc-tests: Likewise.
29000         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29001         * modules/unistr/u32-mbtoucr-tests: Likewise.
29002         * modules/unistr/u32-move-tests: Likewise.
29003         * modules/unistr/u32-next-tests: Likewise.
29004         * modules/unistr/u32-prev-tests: Likewise.
29005         * modules/unistr/u32-set-tests: Likewise.
29006         * modules/unistr/u32-stpcpy-tests: Likewise.
29007         * modules/unistr/u32-stpncpy-tests: Likewise.
29008         * modules/unistr/u32-strcat-tests: Likewise.
29009         * modules/unistr/u32-strcmp-tests: Likewise.
29010         * modules/unistr/u32-strcoll-tests: Likewise.
29011         * modules/unistr/u32-strcpy-tests: Likewise.
29012         * modules/unistr/u32-strdup-tests: Likewise.
29013         * modules/unistr/u32-strlen-tests: Likewise.
29014         * modules/unistr/u32-strmblen-tests: Likewise.
29015         * modules/unistr/u32-strmbtouc-tests: Likewise.
29016         * modules/unistr/u32-strncat-tests: Likewise.
29017         * modules/unistr/u32-strncmp-tests: Likewise.
29018         * modules/unistr/u32-strncpy-tests: Likewise.
29019         * modules/unistr/u32-strnlen-tests: Likewise.
29020         * modules/unistr/u32-to-u16-tests: Likewise.
29021         * modules/unistr/u32-to-u8-tests: Likewise.
29022         * modules/unistr/u32-uctomb-tests: Likewise.
29023         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29024         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29025         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29026         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29027         * modules/uniwidth/u8-strwidth-tests: Likewise.
29028         * modules/uniwidth/u8-width-tests: Likewise.
29029         * modules/uniwidth/u16-strwidth-tests: Likewise.
29030         * modules/uniwidth/u16-width-tests: Likewise.
29031         * modules/uniwidth/u32-strwidth-tests: Likewise.
29032         * modules/uniwidth/u32-width-tests: Likewise.
29033         * modules/uniwidth/width-tests: Likewise.
29034
29035 2010-05-18  Richard Jones  <rjones@redhat.com>
29036
29037         doc: users.txt: list hivex
29038         * users.txt: Add hivex.
29039
29040 2010-05-18  Richard Jones  <rjones@redhat.com>
29041
29042         doc: users.txt: list febootstrap
29043         * users.txt: Add febootstrap.
29044
29045 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29046
29047         bootstrap: fix an error when gnulib is not used as a git submodule
29048         * build-aux/bootstrap (gnulib_path): If its length is zero then
29049         assign "gnulib" to it.
29050         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29051
29052 2010-05-16  Bruno Haible  <bruno@clisp.org>
29053
29054         Avoid autoconf warnings about AM_ICONV.
29055         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29056         2.64.
29057
29058 2010-05-16  Bruno Haible  <bruno@clisp.org>
29059
29060         absolute-header: Make the macro usable in more situations.
29061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29062         from gl_ABSOLUTE_HEADER.
29063         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29064
29065 2010-05-16  James Youngman  <jay@gnu.org>
29066
29067         doc: update users.txt
29068         * users.txt: Add CSSC.
29069
29070 2010-05-16  Jim Meyering  <meyering@redhat.com>
29071
29072         init.sh: fix an error in the previous change; add more comments
29073         * tests/init.sh: Compare exit code in loop against 9, not 2.
29074         Patch by Bruno Haible.
29075         Make the two tests more similar by adding an empty "then" clause.
29076         Add comments.
29077
29078         init.sh: avoid unnecessary shell re-exec
29079         * tests/init.sh: Improve the re-exec-required check to first test the
29080         current shell.  If it passes the test, do not search for a shell that
29081         does pass, and do not re-exec.  This test is particularly contorted to
29082         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29083         of $(...) evokes a syntax error and causes immediate shell exit with
29084         status 2.  Bruno Haible reported that the re-exec made it impossible
29085         to single-step through any init.sh-using script.
29086
29087 2010-05-16  Bruno Haible  <bruno@clisp.org>
29088
29089         Fix collision between gnulib's and libintl's printf replacements.
29090         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29091         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29092         (printf): When using GNU C, map the __printf__ function to rpl_printf
29093         via __asm__. When not using GNU C, define rpl_printf instead of
29094         __printf__.
29095         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29096         commit.
29097         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29098         commit.
29099         * m4/asm-underscore.m4: New file.
29100         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29101         * modules/stdio (Files): Add m4/asm-underscore.m4.
29102         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29103         Reported by Ben Pfaff.
29104
29105 2010-05-16  Bruno Haible  <bruno@clisp.org>
29106
29107         verify: Avoid skipping the test on openSUSE 11.0.
29108         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29109
29110 2010-05-13  Bruno Haible  <bruno@clisp.org>
29111
29112         Avoid useless warnings from G++.
29113         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29114         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29116
29117 2010-05-11  Jim Meyering  <meyering@redhat.com>
29118
29119         maint.mk: tweak preceding change
29120         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29121         regexps tighter by anchoring at EOL, and make the new group "shy"
29122         for slightly decreased overhead.
29123
29124 2010-05-11  Eric Blake  <eblake@redhat.com>
29125
29126         maint.mk: gnulib doesn't guarantee NSIG
29127         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29128
29129 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29130
29131         test-pwrite.c: Remove unused variable declaration.
29132         * tests/test-pwrite.c (main): Remove read_buf declaration.
29133
29134         Remove useless test-pwrite.sh file.
29135         * tests/test-pwrite.sh: Delete file.
29136         * modules/pwrite-tests: Remove references.
29137         Reported by Bruno Haible.
29138
29139 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29140
29141         init.sh: fix a typo
29142         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29143
29144 2010-05-10  Jim Meyering  <meyering@redhat.com>
29145
29146         maint.mk: avoid using a temporary file in the always-defined-macros check
29147         * top/maint.mk (.re-defmac): Remove rule.
29148         (gl_trap_): Remove definition.
29149         (sc_prohibit_always-defined_macros): Rewrite not to create and
29150         depend on a temporary file.  Instead, depend on GNU grep's ability
29151         to read a list of regular expressions from stdin when given "-f -".
29152
29153 2010-05-09  Bruno Haible  <bruno@clisp.org>
29154
29155         Update to GNU gettext 0.18, part 1.
29156         * m4/gettext.m4: Update to GNU gettext 0.18.
29157         * m4/intl.m4: Likewise.
29158         * m4/po.m4: Likewise.
29159         * modules/gettext (Files): Add m4/fcntl-o.m4.
29160         (configure.ac): Require gettext infrastructure from version 0.18.
29161
29162 2010-05-09  Jim Meyering  <meyering@redhat.com>
29163
29164         init.sh: enable MALLOC_PERTURB_
29165         * tests/init.sh: Enable glibc's malloc-perturbing option.
29166
29167         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29168         With my recent change in init.sh from the two-line form:
29169             -#   : ${srcdir=.}
29170             -#   . "$srcdir/init.sh"; path_prepend_ .
29171             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29172         I noticed that using the one-line form would cause this test
29173         to fail with a false-positive, or to stop working altogether,
29174         depending on whether help-version changed or all the tests did.
29175         * top/maint.mk (_hv_regex): Remove this definition.
29176         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29177         (_hv_regex_strong): Use a stronger regex to check for conformance.
29178         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29179         Give a separate diagnostic for lack of conforming use.
29180
29181         maint.mk: prohibit definition of symbols defined by gnulib
29182         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29183         definition of symbols defined by gnulib.
29184
29185 2010-05-09  Bruno Haible  <bruno@clisp.org>
29186
29187         acl: Avoid test failure on Cygwin-hosted mingw.
29188         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29189
29190 2010-05-09  Bruno Haible  <bruno@clisp.org>
29191
29192         error: Use system's fcntl function.
29193         * lib/error.c (fcntl): Undefine.
29194
29195 2010-05-09  Jim Meyering  <meyering@redhat.com>
29196
29197         verify: adjust formatting to be more consistent
29198         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29199         argument-list '('s, and after one comma.
29200
29201 2010-05-09  Bruno Haible  <bruno@clisp.org>
29202
29203         error: More reliable output on mingw.
29204         * lib/error.c: Include <windows.h>.
29205         (is_open): New function.
29206         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29207         defined.
29208
29209 2010-05-09  Bruno Haible  <bruno@clisp.org>
29210
29211         vasnprintf: Fix syntax errors in libintl build on mingw.
29212         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29213         pad_ourselves and prec_ourselves after use.
29214
29215 2010-05-08  Bruno Haible  <bruno@clisp.org>
29216
29217         * lib/config.charset: Update comments for Cygwin 1.7.
29218         * lib/localcharset.c: Likewise.
29219
29220 2010-05-07  Jim Meyering  <meyering@redhat.com>
29221
29222         init.sh: improve comments
29223         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29224         . "${srcdir=.}/init.sh"; path_prepend_ .
29225         Add a note about path_prepend_ and the alternative of using
29226         TESTS_ENVIRONMENT.
29227
29228 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29229
29230         exclude: Unescape hashed patterns in wildcard mode.
29231         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29232         to the hash list.
29233         * tests/test-exclude8.sh: New test case.
29234         * modules/exclude-tests: Add new test.
29235
29236 2010-05-05  Eric Blake  <eblake@redhat.com>
29237
29238         verify: automate tests
29239         * modules/verify-tests: New module.
29240         * tests/test-verify.sh: New file.
29241         * tests/test-verify.c: Guard each negative test with a unique id.
29242         Also avoid warning about unused left hand of comma expressions.
29243
29244 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29245
29246         Further improvements to verify.h, suggested by Eric Blake.
29247         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29248         the GL_* versions, to avoid collision with OpenGL.
29249         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29250         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29251         than testing merely whether it's defined.
29252
29253         Modify verify.h to pacify gcc -Wredundant_decls.
29254         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29255         These use the prefix "GL_" since they're likely to be useful elsewhere.
29256         We may need to break them out into a different .h file.
29257         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29258         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29259         of verify_function__.
29260
29261 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29262
29263         Tests for module pwrite.
29264         * modules/pwrite-tests: New file.
29265         * tests/test-pwrite.sh: New file.
29266         * tests/test-pwrite.c: New file.
29267
29268         New module pwrite.
29269         * lib/unistd.in.h (pwrite): New declaration.
29270         * lib/pwrite.c: New file, from glibc with modifications.
29271         * m4/pwrite.m4: New file.
29272         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29273         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29274         REPLACE_PWRITE.
29275         * modules/pwrite: New file.
29276         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29277         REPLACE_PWRITE.
29278         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29279         * doc/posix-functions/pwrite.texi: Mention the new module.
29280
29281 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29282
29283         pread: Update documentation.
29284         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29285
29286 2010-05-04  Eric Blake  <eblake@redhat.com>
29287
29288         docs: update cygwin progress
29289         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29290         this bug.
29291         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29292         Added in cygwin 1.7.2.
29293         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29294         Likewise.
29295         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29296         Likewise.
29297         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29298         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29299         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29300         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29301         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29302         Mention nproc module.
29303         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29304         bug in cygwin 1.7.5 addition.
29305         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29306         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29307         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29308         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29309         1.7.5.
29310         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29311         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29312         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29313         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29314         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29315         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29316         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29317         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29318         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29319         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29320         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29321         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29322         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29323         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29324         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29325         Likewise.
29326         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29327         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29328         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29329         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29330         Likewise.
29331         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29332         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29333         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29334         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29335         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29336         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29337         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29338         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29339         Likewise.
29340         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29341         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29342         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29343         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29344         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29345         Likewise.
29346         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29347         Likewise.
29348         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29349         Likewise.
29350         * doc/glibc-functions/xdrrec_endofrecord.texi
29351         (xdrrec_endofrecord): Likewise.
29352         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29353         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29354         Likewise.
29355         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29356         Likewise.
29357
29358 2010-05-04  Jim Meyering  <meyering@redhat.com>
29359
29360         gendocs.sh: make its "-s FILE" option more useful
29361         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29362         $PACKAGE to reflect the probably-different basename of "FILE".
29363
29364 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29365
29366         bootstrap: don't ignore download_po_files failure
29367         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29368         failure.
29369
29370 2010-05-03  Jim Meyering  <meyering@redhat.com>
29371
29372         maint.mk: allow to pass options to gendocs.sh
29373         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29374         (gendocs_options_): New overridable variable.
29375
29376         gnu-web-doc-update: don't ignore configure or build failure
29377         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29378
29379         announce-gen: backslash-escape '@'s in --help output
29380         * build-aux/announce-gen: Fix syntax errors.
29381
29382         maint.mk, announce-gen: allow project-specific announcement mail headers
29383         * top/maint.mk (translation_project_): Define default.
29384         (announcement_Cc_, announcement_mail_headers_): Likewise.
29385         (announcement): Invoke announce-gen with new --mail-headers option.
29386         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29387
29388         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29389         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29390         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29391         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29392         line in the "err2" output file when running "make check" in verbose
29393         mode (i.e., with set -x enabled).
29394
29395 2010-05-03  Bruno Haible  <bruno@clisp.org>
29396
29397         wctob: Fix for weird platforms.
29398         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29399         argument value.
29400
29401 2010-05-03  Jim Meyering  <meyering@redhat.com>
29402
29403         maint.mk: prohibit unwarranted use of <strings.h>
29404         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29405         strings.h in a file that does not also use strcasecmp, strncasecmp,
29406         ffs or ffsll.
29407
29408         maint.mk: remove obsolete comments
29409         * top/maint.mk: Remove stale, commented-out rules.
29410
29411 2010-05-02  Bruno Haible  <bruno@clisp.org>
29412
29413         wcwidth: Declare also when it's aliased.
29414         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29415         macro.
29416
29417 2010-05-02  Bruno Haible  <bruno@clisp.org>
29418
29419         Fix regression from 2010-04-25.
29420         * gnulib-tool (func_modules_transitive_closure): Check the status of
29421         all modules, not only of the tests that are of the form foo-tests where
29422         foo is a module.
29423
29424 2010-05-02  Bruno Haible  <bruno@clisp.org>
29425
29426         wctob: Work around nasty Cygwin 1.7.2 bug.
29427         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29428         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29429
29430 2010-05-01  Bruno Haible  <bruno@clisp.org>
29431
29432         fpurge: Sharper test.
29433         * tests/test-fpurge.c (main): Add one more ftell check.
29434         * modules/fpurge-tests (Depends-on): Add ftell.
29435         Suggested by Eric Blake.
29436
29437 2010-05-01  Bruno Haible  <bruno@clisp.org>
29438
29439         ftello: Another test.
29440         * tests/test-ftello3.c: New file.
29441         * modules/ftello-tests (Files): Add it.
29442         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29443         MOSTLYCLEANFILES.
29444
29445         ftell: Another test.
29446         * tests/test-ftell3.c: New file.
29447         * modules/ftell-tests (Files): Add it.
29448         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29449         MOSTLYCLEANFILES.
29450
29451 2010-05-01  Bruno Haible  <bruno@clisp.org>
29452
29453         ftell, ftello: Work around Solaris bug.
29454         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29455         * lib/ftello.c: Include stdio-impl.h.
29456         (ftello): On Solaris, when _IOWRT is set, compute the result without
29457         looking at _IOREAD.
29458         * modules/ftello (Files): Add lib/stdio-impl.h.
29459         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29460         * doc/posix-functions/ftello.texi: Likewise.
29461         Reported by Eric Blake.
29462
29463 2010-05-01  Bruno Haible  <bruno@clisp.org>
29464
29465         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29466         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29467         the _IOWRT flag is also set.
29468
29469 2010-05-01  Bruno Haible  <bruno@clisp.org>
29470
29471         Fix doc about a HP-UX stdio bug.
29472         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29473         * doc/posix-functions/ftello.texi: Likewise.
29474
29475 2010-05-01  Bruno Haible  <bruno@clisp.org>
29476
29477         lseek test: Fix failure on Solaris.
29478         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29479         output.
29480
29481 2010-04-30  Jim Meyering  <meyering@redhat.com>
29482
29483         bootstrap: don't ignore failure to generate po*/Makevars
29484         * build-aux/bootstrap (with_gettext): Don't ignore failure
29485         to create po/Makevars or runtime-po/Makevars.
29486
29487 2010-04-29  Eric Blake  <eblake@redhat.com>
29488
29489         headers: relax license to LGPLv2+
29490         * modules/fcntl-h (License): Relax license.
29491         * modules/getopt-posix (License): Likewise.
29492         * modules/locale (License): Likewise.
29493         * modules/math (License): Likewise.
29494         * modules/pty (License): Likewise.
29495         * modules/sched (License): Likewise.
29496         * modules/search (License): Likewise.
29497         * modules/spawn (License): Likewise.
29498         * modules/stdarg (License): Likewise.
29499         * modules/sysexits (License): Likewise.
29500
29501 2010-04-29  Jim Meyering  <meyering@redhat.com>
29502
29503         inttypes: relax license to LGPLv2+
29504         * modules/inttypes (License): Relax license.
29505
29506 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29507
29508         * top/maint.mk (indent): Run twice to produce idempotent results.
29509
29510 2010-04-28  Bruno Haible  <bruno@clisp.org>
29511
29512         getdate: Generate getdate.c in the source directory.
29513         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29514         MOSTLYCLEANFILES.
29515         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29516
29517 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29518
29519         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29520         is not declared as a const *; avoid warnings in that case.
29521
29522 2010-04-28  Eric Blake  <eblake@redhat.com>
29523
29524         canonicalize-lgpl: avoid compiler warning
29525         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29526         declaration' / 'extraneous semicolon' warning with some compilers.
29527         Reported by Andreas Gruenbacher.
29528
29529 2010-04-28  Jim Meyering  <meyering@redhat.com>
29530
29531         init.sh: ensure a more reliable exit status when exiting via trap
29532         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29533         Inspired by patches from Dmitry V. Levin.
29534         Also trap on signal 3 (SIGQUIT).
29535
29536 2010-04-27  Bruno Haible  <bruno@clisp.org>
29537
29538         Update doc about utimes().
29539         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29540         'utimens' module.
29541         Reported by Andreas Gruenbacher <agruen@suse.de>.
29542
29543 2010-04-27  Eric Blake  <eblake@redhat.com>
29544
29545         full-read, full-write: relax license
29546         * modules/full-read (License): Drop to LGPLv2+.
29547         * modules/full-write (License): Likewise.
29548         * modules/safe-read (License): Likewise.
29549         * modules/safe-write (License): Likewise.
29550
29551         pthread: mention library for linking
29552         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29553
29554 2010-04-27  Jim Meyering  <meyering@redhat.com>
29555
29556         maint.mk: fix a bug introduced in last change
29557         * top/maint.mk (gl_assured_headers_): Now that all names are on
29558         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29559         is not anchored to end of word, it should be adequate.
29560
29561         maint.mk: avoid side-effect in latest syntax-check
29562         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29563         to run commands via $(shell...), and hence to incur cost only when
29564         the new rule is actually run.
29565
29566         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29567         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29568         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29569         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29570         (gl_assured_headers_, az_, AZ_): Define.
29571         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29572
29573 2010-04-26  Jim Meyering  <jim@meyering.net>
29574             Bruno Haible  <bruno@clisp.org>
29575
29576         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29577         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29578         Prompted by an exchange with Gilles Espinasse.
29579
29580 2010-04-26  Jim Meyering  <meyering@redhat.com>
29581
29582         git-version-gen: aesthetic tweak
29583         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29584         so that the command remains on a single line.
29585
29586 2010-04-26  Eric Blake  <eblake@redhat.com>
29587
29588         git-version-gen: allow use on EBCDIC hosts
29589         * build-aux/git-version-gen (dirty): Use literal rather than tying
29590         ourselves to ascii.
29591         Reported by Steve Goetze.
29592
29593 2010-04-25  Bruno Haible  <bruno@clisp.org>
29594
29595         netdb: Add support for GNULIB_POSIXCHECK.
29596         * lib/netdb.in.h: Include warn-on-use.h.
29597         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29598         functions are used when GNULIB_POSIXCHECK is defined and the
29599         getaddrinfo module is not in use.
29600         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29601         freeaddrinfo, gai_strerror, getnameinfo are declared.
29602         * modules/netdb (Depends-on): Add warn-on-use.
29603         (Makefile.am): Include warn-on-use.h in netdb.h.
29604
29605 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29606
29607         build: avoid "make check" failure without .git/ directory
29608         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29609         there is no .git/ directory.
29610
29611 2010-04-25  Bruno Haible  <bruno@clisp.org>
29612
29613         ptsname: Fix misuse of ttyname_r.
29614         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29615         of errno.
29616
29617 2010-04-25  Bruno Haible  <bruno@clisp.org>
29618
29619         ttyname_r: Make it work on Solaris 10.
29620         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29621         if the system function has the POSIX declaration. Test whether the
29622         function fails if the buffer is less than 128 bytes large.
29623         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29624         system's ttyname_r function. Provide a reasonably large buffer.
29625         * modules/ttyname_r (Depends-on): Add extensions.
29626         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29627
29628 2010-04-25  Bruno Haible  <bruno@clisp.org>
29629
29630         Use the 'extensions' module for some more functions on Solaris.
29631         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29632         module.
29633         * doc/posix-functions/ctime_r.texi: Likewise.
29634         * doc/posix-functions/getgrgid_r.texi: Likewise.
29635         * doc/posix-functions/getgrnam_r.texi: Likewise.
29636         * doc/posix-functions/getpwnam_r.texi: Likewise.
29637         * doc/posix-functions/getpwuid_r.texi: Likewise.
29638         * doc/posix-functions/readdir_r.texi: Likewise.
29639         * doc/posix-functions/sigwait.texi: Likewise.
29640         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29641         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29642
29643 2010-04-25  Bruno Haible  <bruno@clisp.org>
29644
29645         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29647         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29648         * lib/ttyname_r.c: Include <limits.h>.
29649         (ttyname_r): Define using the system's ttyname_r function, if it exists
29650         and not on Solaris.
29651         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29652         set.
29653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29654         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29655         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29656         Reported by Simon Josefsson.
29657
29658 2010-04-25  Bruno Haible  <bruno@clisp.org>
29659
29660         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29661         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29662         * doc/posix-functions/ctime_r.texi: Likewise.
29663         * doc/posix-functions/getgrgid_r.texi: Likewise.
29664         * doc/posix-functions/getgrnam_r.texi: Likewise.
29665         * doc/posix-functions/getlogin_r.texi: Likewise.
29666         * doc/posix-functions/getpwnam_r.texi: Likewise.
29667         * doc/posix-functions/getpwuid_r.texi: Likewise.
29668         * doc/posix-functions/readdir_r.texi: Likewise.
29669         * doc/posix-functions/sigwait.texi: Likewise.
29670         * doc/posix-functions/ttyname_r.texi: Likewise.
29671         Reported by Simon Josefsson.
29672
29673 2010-04-25  Bruno Haible  <bruno@clisp.org>
29674
29675         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29676         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29677         also to --create-testdir.
29678         (func_acceptable): Don't consider the status of *-tests modules here.
29679         (func_modules_transitive_closure): Consider it here, before including a
29680         test module.
29681         (func_import, func_create_testdir): Set inc_all_direct_tests,
29682         inc_all_indirect_tests.
29683         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29684         --create-testdir and --create-megatestdir.
29685
29686 2010-04-25  Bruno Haible  <bruno@clisp.org>
29687
29688         gnulib-tool: Add --without-*-tests options.
29689         * gnulib-tool (func_usage): Document the --without-*-tests options.
29690         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29691         excl_unportable_tests): New variables.
29692         Fail if they are specified with --import or --update.
29693         (func_acceptable): Respect the excl_*_tests variables.
29694         (func_import): Set the excl_*_tests variables to empty.
29695
29696 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29697             Bruno Haible  <bruno@clisp.org>
29698
29699         Work around a MacOS X 10.4 bug with openpty.
29700         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29701         * tests/test-openpty.c (main): Close the master side explicitly.
29702
29703 2010-04-25  Bruno Haible  <bruno@clisp.org>
29704
29705         strnlen: Fix a C++ test error on MacOS X and Solaris.
29706         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29707         the function is not declared.
29708         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29709         Simon Josefsson.
29710
29711 2010-04-24  Bruno Haible  <bruno@clisp.org>
29712
29713         Avoid a gcc warning.
29714         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29715         of correct type for %08lx directive.
29716         Reported by Eric Blake.
29717
29718 2010-04-24  Bruno Haible  <bruno@clisp.org>
29719
29720         vasnprintf: Correct errno value in case of out-of-memory.
29721         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29722         or sprintf. Use the errno value from SNPRINTF or sprintf.
29723         Reported by Ian Beckwith <ianb@erislabs.net>.
29724
29725 2010-04-24  Bruno Haible  <bruno@clisp.org>
29726
29727         ansi-c++-opt: Find correct compiler when cross-compiling.
29728         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29729         AC_CHECK_PROGS.
29730         Reported by Simon Josefsson.
29731
29732 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29733
29734         vc-list-files: Add support for subversion
29735         * build-aux/vc-list-files: Use "svn list" to generate the list of
29736         files controlled by subversion.
29737
29738 2010-04-23  Jim Meyering  <meyering@redhat.com>
29739
29740         vc-list-files tests: convert to use init.sh
29741         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29742         path_prepend_.
29743         Use Exit, not exit.
29744         Use skip_ rather than open coding it.
29745         Remove trap set-up and compare definitions.
29746         * tests/test-vc-list-files-git.sh: Likewise.
29747         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29748
29749 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29750
29751         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29752         backup files.
29753
29754 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29755
29756         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29757
29758 2010-04-20  Eric Blake  <eblake@redhat.com>
29759
29760         tests: be robust to ignored SIGPIPE
29761         * tests/test-select-in.sh: Consume all output.
29762         * tests/test-lseek.sh: Check correct exit status, while avoiding
29763         EPIPE.
29764
29765 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29766             Bruno Haible  <bruno@clisp.org>
29767
29768         visibility: Don't use -fvisibility if it leads to a warning.
29769         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29770         yes, don't pretend that visibility works if it leads to a warning.
29771         Reported by Mike Gran <spk121@yahoo.com>.
29772
29773 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29774
29775         * build-aux/bootstrap: Use "git -h" for testing for supported options
29776         instead of "git --help".  The short-form option only shows a summary,
29777         and doesn't layout the full man page.  Grep for the full option name
29778         in the summary, too.
29779
29780 2010-04-19  Bruno Haible  <bruno@clisp.org>
29781
29782         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29784         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29785         mention of RELOCATABLE_STRIP.
29786         Reported by Sylvain Beucler <beuc@beuc.net>.
29787
29788 2010-04-19  Bruno Haible  <bruno@clisp.org>
29789
29790         * lib/diffseq.h: Fix typo in comment.
29791         Reported by Eric Blake.
29792
29793 2010-04-19  Bruno Haible  <bruno@clisp.org>
29794
29795         ioctl: Move autoconf macro to a .m4 file.
29796         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29797         * modules/ioctl (Files): Add it.
29798         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29799         Reported by Ian Beckwith <ianb@erislabs.net>.
29800
29801 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29802             Bruno Haible  <bruno@clisp.org>
29803
29804         diffseq: Accommodate use-case with abstract arrays.
29805         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29806         is not defined.
29807         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29808         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29809
29810 2010-04-18  Bruno Haible  <bruno@clisp.org>
29811
29812         * doc/posix-headers/stdbool.texi: More precise wording.
29813
29814 2010-04-17  Jim Meyering  <meyering@redhat.com>
29815
29816         maint.mk: use gnu-style indentation in an embedded perl script
29817         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29818         Rename variable: s/two/last_two_bytes/
29819
29820 2010-04-16  Eric Blake  <eblake@redhat.com>
29821
29822         test-stdbool: skip test that fails with Solaris CC
29823         * tests/test-stdbool.c (f): Skip test that causes compilation
29824         error under buggy C++ compiler.
29825         * lib/stdbool.in.h: Document the limitation.
29826         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29827
29828         setenv: allow compilation with C++
29829         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29830         register keyword.
29831
29832         stdint: allow test to pass with C++
29833         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29834
29835         getopt: allow compilation with C++
29836         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29837         struct.
29838         * lib/getopt.c (_getopt_internal_r): Use correct type.
29839         Reported by Dagobert Michelson, via Joel E. Denny.
29840
29841 2010-04-16  Bruno Haible  <bruno@clisp.org>
29842
29843         Override netdb.h always.
29844         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29845         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29846         Reported by Ludovic Courtès <ludo@gnu.org>.
29847
29848 2010-04-15  Bruno Haible  <bruno@clisp.org>
29849
29850         openpty: Fix mistake from 2010-03-21.
29851         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29852         Reported by Simon Josefsson.
29853
29854 2010-04-15  Eric Blake  <eblake@redhat.com>
29855
29856         test-forkpty: fix expected signature
29857         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29858         Reported by Simon Josefsson.
29859
29860 2010-04-15  Jim Meyering  <meyering@redhat.com>
29861
29862         maint.mk: texinfo_suffix_re_: correct the default regexp
29863         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29864
29865         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29866         make it configurable via texinfo_suffix_re_.
29867
29868 2010-04-14  Eric Blake  <eblake@redhat.com>
29869
29870         strtok_r: relax license to LGPLv2+
29871         * modules/strtok_r (License): Relax license.
29872         Reported by Matthias Bolte.
29873
29874 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29875
29876         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29877         version 1.4.4 by default instead of requiring the libgcrypt
29878         version used during build.  This makes it possible to use the
29879         application with older but still binary compatible libgcrypt
29880         versions.
29881
29882 2010-04-13  Eric Blake  <eblake@redhat.com>
29883
29884         getopt-gnu: match recent glibc fixes and posix ruling
29885         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29886         '+' handling, when requesting extensions.
29887         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29888         'W;' handling.
29889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29890         * doc/posix-functions/getopt.texi (getopt): Document this.
29891         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29892         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29893         Likewise.
29894
29895         getopt: merge bug fixes from glibc
29896         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29897         diagnostics.  Honor '+:' correctly.  Reject ';'.
29898
29899         getopt-posix: detect MacOS bug
29900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29901         optind when missing a required argument.
29902         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29903         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29904         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29905         Likewise.
29906
29907         getopt-posix: avoid spurious failure on Solaris
29908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29909         an indicator that setting optind=1 is sufficient for reset.
29910
29911         getopt-posix: avoid spurious failure on FreeBSD
29912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29913         in POSIX mode, since the m4 test uses it.
29914
29915         gnulib-tool: silence warning on BSD sh
29916         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29917
29918 2010-04-13  Jim Meyering  <meyering@redhat.com>
29919
29920         doc: users.txt: GNU patch now uses gnulib
29921         * users.txt: Add patch.
29922
29923 2010-04-12  Jim Meyering  <meyering@redhat.com>
29924
29925         maint.mk: generate more concise timing data for syntax-check rules
29926         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29927         " done" from each line that reports a syntax-check test duration.
29928
29929 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29930
29931         git-version-gen: use "git update-index..." rather than "git status"
29932         * build-aux/git-version-gen: Use git update-index --refresh, not
29933         "git status".  With some versions of git, "git status" would fail
29934         to update the index and result in an unwarranted "-dirty" suffix.
29935
29936 2010-04-11  Jim Meyering  <meyering@redhat.com>
29937
29938         openat: correct formatting (no semantic change)
29939         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29940         Suggested by Bruno Haible.
29941
29942 2010-04-11  Bruno Haible  <bruno@clisp.org>
29943
29944         Stricter declaration checking in testdirs.
29945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29946         If for_tests is true, augment AM_CPPFLAGS to define
29947         GNULIB_STRICT_CHECKING.
29948         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29949         GNULIB_STRICT_CHECKING is defined, verify that the function is
29950         declared.
29951
29952 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29953             Bruno Haible  <bruno@clisp.org>
29954
29955         libunistring: Improve configure output.
29956         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29957         Don't say "consider installing GNU libunistring" when checking again
29958         with libiconv.
29959
29960 2010-04-11  Bruno Haible  <bruno@clisp.org>
29961
29962         libunistring: Correct value of $LTLIBUNISTRING.
29963         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29964         correct the value of $LTLIBUNISTRING.
29965
29966 2010-04-11  Bruno Haible  <bruno@clisp.org>
29967
29968         havelib: Add static libraries to LIBS in the right order.
29969         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29970         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29971
29972 2010-04-11  Bruno Haible  <bruno@clisp.org>
29973
29974         libunistring: Detect libunistring also when it depends on libiconv.
29975         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29976         the second AC_LIB_HAVE_LINKFLAGS invocation.
29977
29978 2010-04-11  James Youngman  <jay@gnu.org>
29979
29980         close-stream: declare local scalars to be "const"
29981         * lib/close-stream.c (close_stream): Make boolean variables const
29982         to document the fact that we set but do not change them.
29983
29984 2010-04-11  Bruno Haible  <bruno@clisp.org>
29985
29986         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29987
29988 2010-04-11  Jim Meyering  <meyering@redhat.com>
29989
29990         maint.mk: don't include dist-check.mk
29991         * top/maint.mk: Remove bogus include directive.
29992
29993         maint.mk: improve empty-line-at-EOF check
29994         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29995         solution, rather than tail+Perl-based one.  The latter would read
29996         a few kilobytes from the end of each file, and did not handle empty
29997         files properly.
29998
29999         maint.mk: print the elapsed time for each syntax-check rule
30000         * top/maint.mk (sc_m_rules_): Save start time in a file.
30001         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30002         (local-check): Interpose the .z rules
30003
30004 2010-04-11  Jim Meyering  <meyering@redhat.com>
30005
30006         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30007         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30008         empty file with one that ends in an empty line.
30009
30010 2010-04-10  Bruno Haible  <bruno@clisp.org>
30011
30012         mkdir: Make it work on mingw64.
30013         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30014         * lib/mkdir.c: Update comment.
30015         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30016
30017 2010-04-10  Bruno Haible  <bruno@clisp.org>
30018
30019         Don't override improved macro from newer autoconf.
30020         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30021         autoconf >= 2.62.
30022         Reported by Joel E. Denny <jdenny@clemson.edu>.
30023
30024 2010-04-10  Jim Meyering  <meyering@redhat.com>
30025
30026         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30027         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30028
30029         maint.mk: correct a diagnostic
30030         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30031         in diagnostic; now use $prohibit.
30032
30033 2010-04-10  Bruno Haible  <address@hidden>
30034
30035         fchownat: Fix a C++ test error on Solaris 8.
30036         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30037         the function does not exist.
30038
30039 2010-04-10  Bruno Haible  <bruno@clisp.org>
30040
30041         vasnprintf: Add more tests.
30042         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30043         (test_function): Test converting an invalid wide string.
30044
30045         vasnprintf: Correct handling of unconvertible wide string arguments.
30046         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30047         VASNPRINTF.
30048         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30049         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30050         smaller than the expected maximum need for the directive. Set errno to
30051         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30052         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30054         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30055         * modules/vasnprintf (Files): Add m4/printf.m4.
30056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30057
30058 2010-04-10  Bruno Haible  <bruno@clisp.org>
30059
30060         vasnprintf: Fix crash in %ls directive.
30061         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30062         string is passed as argument to %ls, with no precision and no width.
30063         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30064
30065 2010-04-10  Bruno Haible  <bruno@clisp.org>
30066
30067         vasnprintf: Fix multiple test failures on mingw.
30068         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30069         _snprintf, or snwprintf, not _snwprintf.
30070
30071 2010-04-10  Bruno Haible  <bruno@clisp.org>
30072
30073         write: Fix a C++ test error on mingw.
30074         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30075
30076 2010-04-10  Bruno Haible  <bruno@clisp.org>
30077
30078         vasnprintf test: Reduce code duplication.
30079         * tests/test-vasnprintf.c (test_function): New function, extracted from
30080         test_vasnprintf.
30081         (test_vasnprintf, test_asnprintf): Invoke it.
30082
30083 2010-04-10  Bruno Haible  <bruno@clisp.org>
30084
30085         strnlen: Fix warning in C++ mode on MacOS X.
30086         * lib/string.in.h (strnlen): Use the modern idiom.
30087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30088         defining strnlen as a macro already in <config.h>.
30089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30090         REPLACE_STRNLEN.
30091         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30092         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30093
30094 2010-04-08  James Youngman  <jay@gnu.org>
30095
30096         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30097         the example.
30098
30099 2010-04-09  Jim Meyering  <meyering@redhat.com>
30100
30101         maint.mk: print better diagnostic when there is no $(_hv_file)
30102         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30103         announce that when $(_hv_file) (aka help-version) does not exist.
30104
30105         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30106         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30107         not try to interpret its random input bytes.  Jarno Rajahalme reported
30108         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30109         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30110         (mktempd_): Likewise, just in case.
30111
30112         ftruncate: add two years to projected module removal date: 2012
30113         * m4/ftruncate.m4: Adjust comments.
30114
30115         ftruncate: mark module as obsolete; even MinGW provides it, now
30116         * modules/ftruncate (Status): Obsolete.
30117         (Notice): Say that.
30118         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30119         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30120
30121 2010-04-08  Bruno Haible  <bruno@clisp.org>
30122
30123         Fix side effects from tests-related modules.
30124         * modules/dprintf-posix (Comment): New section.
30125         * modules/fprintf-posix (Comment): Likewise.
30126         * modules/obstack-printf-posix (Comment): Likewise.
30127         * modules/printf-posix (Comment): Likewise.
30128         * modules/snprintf-posix (Comment): Likewise.
30129         * modules/sprintf-posix (Comment): Likewise.
30130         * modules/vasnprintf-posix (Comment): Likewise.
30131         * modules/vasprintf-posix (Comment): Likewise.
30132         * modules/vdprintf-posix (Comment): Likewise.
30133         * modules/vfprintf-posix (Comment): Likewise.
30134         * modules/vprintf-posix (Comment): Likewise.
30135         * modules/vsnprintf-posix (Comment): Likewise.
30136         * modules/vsprintf-posix (Comment): Likewise.
30137         * modules/xprintf-posix (Comment): Likewise.
30138         * modules/xvasprintf-posix (Comment): Likewise.
30139         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30140         * modules/floorf-tests (Depends-on): Likewise.
30141         * modules/round-tests (Depends-on): Likewise.
30142         * modules/roundf-tests (Depends-on): Likewise.
30143         * modules/trunc-tests (Depends-on): Likewise.
30144         * modules/truncf-tests (Depends-on): Likewise.
30145         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30146         'fprintf-posix' module is not present.
30147         * tests/test-floorf2.c (check): Likewise.
30148         * tests/test-trunc2.c (check): Likewise.
30149         * tests/test-truncf2.c (check): Likewise.
30150         * tests/test-round2.c (equal): Likewise.
30151         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30152
30153 2010-04-07  Karl Berry  <karl@gnu.org>
30154
30155         * config/srclist.txt,
30156         * config/srclistvars.sh,
30157         * config/srclist-update: doc fixes.
30158
30159 2010-04-07  Jim Meyering  <meyering@redhat.com>
30160
30161         maint.mk: add a PATH crosschecking syntax-check rule
30162         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30163         Useful if you use a test like the one in help-version (coreutils,
30164         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30165         printed by prog --version.
30166
30167 2010-04-06  Bruno Haible  <bruno@clisp.org>
30168
30169         Fix link error on mingw.
30170         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30171         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30172
30173 2010-04-06  Bruno Haible  <bruno@clisp.org>
30174
30175         Assume rmdir exists.
30176         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30177
30178 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30179
30180         doc: update users.txt
30181         * users.txt: Add gcal.
30182
30183 2010-04-06  Jim Meyering  <meyering@redhat.com>
30184
30185         init.sh: simply unset TMPDIR rather than risking env -i
30186         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30187         although it probably works fine on all Unix-based systems, some
30188         systems (Cygwin?) cannot tolerate a totally cleared environment.
30189         Suggestion from Eric Blake.
30190
30191 2010-04-06  Jim Meyering  <meyering@redhat.com>
30192
30193         init.sh: portability fix: use env's POSIX-specified -i option not -u
30194         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30195         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30196
30197 2010-04-05  Bruno Haible  <bruno@clisp.org>
30198
30199         btowc: Work around Cygwin 1.7.2 bug.
30200         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30201         does not map NUL to 0.
30202         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30203
30204 2010-04-05  Bruno Haible  <bruno@clisp.org>
30205
30206         Make the multithread modules work on Cygwin 1.7.2.
30207         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30208         imported symbols can be declared weak, so that it returns "no" on
30209         Cygwin 1.7.2.
30210
30211 2010-04-05  Bruno Haible  <bruno@clisp.org>
30212
30213         Use the module 'strncat'.
30214         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30215
30216         Tests for module 'strncat'.
30217         * modules/strncat-tests: New file.
30218         * tests/test-strncat.c: New file.
30219
30220         New module 'strncat'.
30221         * lib/string.in.h (strncat): New declaration.
30222         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30223         * m4/strncat.m4: New file, based on m4/memchr.m4.
30224         * modules/strncat: New file.
30225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30226         is declared.
30227         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30228         REPLACE_STRNCAT.
30229         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30230         REPLACE_STRNCAT.
30231         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30232         module.
30233         * tests/test-string-c++.cc: Check signature of strncat.
30234
30235 2010-04-05  Jim Meyering  <meyering@redhat.com>
30236
30237         xstrtoumax-tests: convert to use init.sh
30238         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30239         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30240         Use Exit, not exit.
30241         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30242
30243         xstrtoimax-tests: convert to use init.sh
30244         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30245         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30246         Use Exit, not exit.
30247         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30248
30249 2010-04-05  Bruno Haible  <bruno@clisp.org>
30250
30251         sys_socket: Avoid #define replacements in C++ mode.
30252         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30253         warning to the function if possible, rather than #defining the symbol
30254         to a dysfunctional alias.
30255
30256 2010-04-05  Bruno Haible  <bruno@clisp.org>
30257
30258         fseeko: Fix C++ test error on mingw.
30259         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30260         gl_FUNC_FSEEKO.
30261         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30262         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30263         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30264         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30265
30266 2010-04-05  Bruno Haible  <bruno@clisp.org>
30267
30268         duplocale: Improve test output.
30269         * tests/test-duplocale.c (main): Print reason for skipped test.
30270
30271 2010-04-05  Bruno Haible  <bruno@clisp.org>
30272
30273         Assume rmdir exists.
30274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30275         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30276
30277 2010-04-05  Bruno Haible  <bruno@clisp.org>
30278
30279         Fix link error on Solaris 8 with cc.
30280         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30281
30282 2010-04-05  Bruno Haible  <bruno@clisp.org>
30283
30284         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30285         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30286
30287 2010-04-05  Bruno Haible  <bruno@clisp.org>
30288
30289         vasprintf: Update documentation.
30290         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30291
30292 2010-04-05  Bruno Haible  <bruno@clisp.org>
30293
30294         ptsname: Improve test.
30295         * tests/test-ptsname.c (main): Also try the various master names of BSD
30296         systems.
30297
30298 2010-04-05  Bruno Haible  <bruno@clisp.org>
30299
30300         memchr: Avoid a possible C++ test error.
30301         * lib/string.in.h (memchr): Provide declaration if function is missing.
30302         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30303         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30305         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30306
30307 2010-04-05  Bruno Haible  <bruno@clisp.org>
30308
30309         strtok_r: Improve idiom.
30310         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30311         AC_LIBOBJ is used.
30312
30313 2010-04-05  Bruno Haible  <bruno@clisp.org>
30314
30315         strdup: Improve idiom.
30316         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30317         AC_LIBOBJ is used.
30318         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30319         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30320         when AC_LIBOBJ is used.
30321
30322 2010-04-05  Bruno Haible  <bruno@clisp.org>
30323
30324         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30326         don't set REPLACE_MBSINIT to 1.
30327         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30328         don't set REPLACE_MBRTOWC to 1.
30329         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30330         exist, don't set REPLACE_MBSRTOWCS to 1.
30331         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30332         exist, don't set REPLACE_MBSNRTOWCS to 1.
30333         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30334         don't set REPLACE_WCRTOMB to 1.
30335         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30336         exist, don't set REPLACE_WCSRTOMBS to 1.
30337         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30338         exist, don't set REPLACE_WCSNRTOMBS to 1.
30339
30340 2010-04-05  Bruno Haible  <bruno@clisp.org>
30341
30342         ldexpl: Improve idiom.
30343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30344         make sure to set HAVE_DECL_LDEXPL to 0.
30345
30346 2010-04-05  Jim Meyering  <meyering@redhat.com>
30347
30348         xstrtol-tests: convert to use init.sh
30349         * modules/xstrtol-tests (Files): Add tests/init.sh.
30350         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30351         Use Exit, not exit.
30352         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30353
30354         atexit-tests: convert to use init.sh
30355         * modules/atexit-tests (Files): Add tests/init.sh.
30356         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30357         Use Exit, not exit.
30358         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30359
30360         init.sh: fix typo
30361         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30362
30363         init.sh: make it easier for a test script to write to the tty, ...
30364         when using automake's parallel-tests mode.
30365         * tests/init.sh (stderr_fileno_): Define overridable variable.
30366         (warn_): New function, to use it.
30367         (fail_, skip_, framework_failure_): Use warn_.
30368
30369 2010-04-04  Bruno Haible  <bruno@clisp.org>
30370
30371         btowc: Avoid warning.
30372         * lib/btowc.c: Include <stdlib.h>.
30373         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30374
30375 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30376             Bruno Haible  <bruno@clisp.org>
30377
30378         wchar: Port to NetBSD 1.5.
30379         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30380         * lib/wctype.in.h (WEOF): Likewise.
30381
30382 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30383             Bruno Haible  <bruno@clisp.org>
30384
30385         Port extended stdio to NetBSD 1.5.
30386         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30387         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30388         older.
30389
30390 2010-04-04  Bruno Haible  <bruno@clisp.org>
30391
30392         string: Remove unused substitution.
30393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30394         HAVE_DECL_STRERROR.
30395         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30396
30397 2010-04-04  Bruno Haible  <bruno@clisp.org>
30398
30399         strtod: Avoid a possible C++ test error.
30400         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30401         set REPLACE_STRTOD.
30402
30403 2010-04-04  Bruno Haible  <bruno@clisp.org>
30404
30405         strerror: Update documentation.
30406         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30407
30408 2010-04-04  Bruno Haible  <bruno@clisp.org>
30409
30410         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30411         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30412         _GL_CXXALIAS_SYS_CAST.
30413
30414 2010-04-04  Bruno Haible  <bruno@clisp.org>
30415
30416         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30417         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30418         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30419         REPLACE_FREXPL to 1.
30420         * doc/posix-functions/frexpl.texi: Update documentation.
30421
30422 2010-04-04  Bruno Haible  <bruno@clisp.org>
30423
30424         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30425         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30426
30427 2010-04-04  Bruno Haible  <bruno@clisp.org>
30428
30429         Implement nanosleep for native Windows.
30430         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30431
30432 2010-04-04  Bruno Haible  <bruno@clisp.org>
30433
30434         math: Fix some C++ test errors on Solaris 8.
30435         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30436
30437 2010-04-04  Bruno Haible  <bruno@clisp.org>
30438
30439         math: Fix some C++ test errors on Cygwin.
30440         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30441         truncl): Provide declaration if the system does not have it.
30442         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30443         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30444         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30445         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30446         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30447         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30448         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30449         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30450         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30451         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30452         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30453         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30454         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30455         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30456         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30457         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30459         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30460         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30461         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30462         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30463         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30464
30465 2010-04-04  Bruno Haible  <bruno@clisp.org>
30466
30467         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30468         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30469         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30470         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30471         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30472         * m4/isinf.m4 (gl_ISINF): Likewise.
30473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30474
30475 2010-04-04  Bruno Haible  <bruno@clisp.org>
30476
30477         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30478         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30479
30480 2010-04-04  Bruno Haible  <bruno@clisp.org>
30481
30482         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30483         * modules/tmpfile (configure.ac): Update.
30484
30485         tmpfile: Fix C++ test error on mingw.
30486         * lib/stdio.in.h (tmpfile): New declaration.
30487         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30488         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30489         * modules/tmpfile (Depends-on): Add stdio.
30490         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30491         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30492         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30493         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30494         REPLACE_TMPFILE.
30495         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30496
30497 2010-04-04  Bruno Haible  <bruno@clisp.org>
30498
30499         ioctl: Fix C++ test error on mingw.
30500         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30501         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30502         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30503
30504 2010-04-03  Bruno Haible  <bruno@clisp.org>
30505
30506         wcwidth: Fix C++ test error on mingw.
30507         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30509         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30510
30511 2010-04-03  Bruno Haible  <bruno@clisp.org>
30512
30513         nanosleep: Fix C++ test error on mingw.
30514         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30515         * lib/time.in.h (nanosleep): Use modern idiom.
30516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30517         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30518         REPLACE_NANOSLEEP to 1.
30519         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30520         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30521
30522 2010-04-03  Bruno Haible  <bruno@clisp.org>
30523
30524         strptime: Fix C++ test error on mingw.
30525         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30526         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30527         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30528         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30529         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30530         not REPLACE_STRPTIME.
30531         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30532         REPLACE_STRPTIME.
30533
30534 2010-04-03  Bruno Haible  <bruno@clisp.org>
30535
30536         timegm: Fix C++ test error on mingw.
30537         * lib/time.in.h (timegm): Use modern idiom.
30538         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30539         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30540         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30541         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30542
30543 2010-04-03  Bruno Haible  <bruno@clisp.org>
30544
30545         timegm: Assume declaration if function exists.
30546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30547         if it exists. Don't clobber ac_cv_func_timegm.
30548
30549 2010-04-03  Bruno Haible  <bruno@clisp.org>
30550
30551         time_r: Fix C++ test error on mingw.
30552         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30553         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30554         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30556         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30557
30558 2010-04-03  Bruno Haible  <bruno@clisp.org>
30559
30560         time_r: Minor updates.
30561         * modules/time_r (Description): Mention the provided functions.
30562         * lib/time_r.c: Don't include <string.h>.
30563         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30564         * doc/posix-functions/localtime_r.texi: Likewise.
30565
30566 2010-04-03  Bruno Haible  <bruno@clisp.org>
30567
30568         time: Fix regression introduced on 2010-03-08.
30569         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30570         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30571
30572 2010-04-03  Jim Meyering  <meyering@redhat.com>
30573
30574         maint.mk: don't silently disable project-specific syntax-check rules
30575         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30576         that they need to convert their project-specific syntax-check rules
30577         to use the new _sc_search_regexp.
30578
30579 2010-04-03  Bruno Haible  <bruno@clisp.org>
30580
30581         fchdir: Fix regression introduced on 2010-03-08.
30582         * lib/unistd.in.h (fchdir): Fix declaration.
30583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30585         REPLACE_FCHDIR.
30586         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30587         REPLACE_FCHDIR.
30588
30589 2010-04-03  Bruno Haible  <bruno@clisp.org>
30590
30591         getpagesize: Fix C++ test error on mingw.
30592         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30593         system does not declare the function.
30594         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30595         declared.
30596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30597         HAVE_DECL_GETPAGESIZE.
30598         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30599
30600 2010-04-03  Bruno Haible  <bruno@clisp.org>
30601
30602         stdio: Make C++ tests work on mingw.
30603         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30604         does not declare the function.
30605
30606 2010-04-03  Bruno Haible  <bruno@clisp.org>
30607
30608         ftello: Fix C++ test error on mingw.
30609         * lib/stdio.in.h (ftello): Use modern idiom.
30610         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30611         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30612         is missing and that it needs to be replaced.
30613         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30615         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30616
30617 2010-04-03  Bruno Haible  <bruno@clisp.org>
30618
30619         fseeko: Fix C++ test error on mingw.
30620         * lib/stdio.in.h (fseeko): Use modern idiom.
30621         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30623         is missing and that it needs to be replaced.
30624         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30626         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30627
30628 2010-04-03  Bruno Haible  <bruno@clisp.org>
30629
30630         mkstemp: Fix C++ test error on mingw.
30631         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30633         function is missing and that it needs to be replaced.
30634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30635         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30636
30637 2010-04-03  Bruno Haible  <bruno@clisp.org>
30638
30639         stpncpy: Fix C++ test error on mingw.
30640         * lib/string.in.h (stpncpy): Use modern idiom.
30641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30642         function is missing and that it needs to be replaced.
30643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30644         REPLACE_STPNCPY.
30645         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30646
30647 2010-04-03  Bruno Haible  <bruno@clisp.org>
30648
30649         sys_stat: Fix C++ test error on mingw.
30650         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30651         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30652
30653 2010-04-03  Bruno Haible  <bruno@clisp.org>
30654
30655         pty: Update doc.
30656         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30657
30658 2010-04-03  Bruno Haible  <bruno@clisp.org>
30659
30660         unistd: Fix C++ test error on mingw.
30661         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30662
30663 2010-04-03  Bruno Haible  <bruno@clisp.org>
30664
30665         Update doc regarding mingw.
30666         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30667         * doc/glibc-functions/login_tty.texi: Likewise.
30668         * doc/glibc-functions/forkpty.texi: Likewise.
30669
30670 2010-04-03  Bruno Haible  <bruno@clisp.org>
30671
30672         stdlib: Avoid compilation failure of c-strtold on mingw.
30673         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30674
30675 2010-04-03  Bruno Haible  <bruno@clisp.org>
30676
30677         locale: Make C++ tests work on Cygwin and mingw.
30678         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30679         cannot provide the function.
30680         Reported by Simon Josefsson.
30681
30682 2010-04-03  Bruno Haible  <bruno@clisp.org>
30683
30684         localename: Port to MacOS X 10.6.
30685         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30686         memory layout of the locales in MacOS X 10.6 as well.
30687         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30688
30689 2010-04-02  Bruno Haible  <bruno@clisp.org>
30690
30691         gnulib-tool: Ensure that long-running tests are executed last.
30692         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30693         running tests after the one for the other tests.
30694
30695 2010-04-02  Bruno Haible  <bruno@clisp.org>
30696
30697         gnulib-tool: Ensure the tests in the main directory are executed first.
30698         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30699         start with the current directory.
30700
30701 2010-04-02  Bruno Haible  <bruno@clisp.org>
30702
30703         Tests for module 'havelib', moved here from GNU gettext.
30704         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30705         modifications.
30706         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30707         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30708         with modifications.
30709         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30710         modifications.
30711         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30712         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30713         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30714         with modifications.
30715         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30716         with modifications.
30717         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30718         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30719         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30720         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30721         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30722         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30723         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30724         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30725         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30726         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30727         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30728         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30729         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30730         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30731         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30732         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30733         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30734         with modifications.
30735         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30736         with modifications.
30737         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30738         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30739         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30740         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30741         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30742         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30743         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30744         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30745         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30746         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30747         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30748         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30749         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30750         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30751         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30752         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30753         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30754         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30755         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30756         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30757         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30758         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30759         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30760         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30761         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30762         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30763         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30764         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30765         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30766         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30767         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30768         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30769         * tests/havelib/rpathx/rpathx.c: New file, from
30770         gettext/autoconf-lib-link.
30771         * tests/havelib/rpathx/Makefile.am: New file, from
30772         gettext/autoconf-lib-link.
30773         * tests/havelib/rpathx/configure.ac: New file, from
30774         gettext/autoconf-lib-link with modifications.
30775         * tests/havelib/rpathy/rpathy.c: New file, from
30776         gettext/autoconf-lib-link.
30777         * tests/havelib/rpathy/Makefile.am: New file, from
30778         gettext/autoconf-lib-link.
30779         * tests/havelib/rpathy/configure.ac: New file, from
30780         gettext/autoconf-lib-link with modifications.
30781         * tests/havelib/rpathz/rpathz.c: New file, from
30782         gettext/autoconf-lib-link.
30783         * tests/havelib/rpathz/Makefile.am: New file, from
30784         gettext/autoconf-lib-link.
30785         * tests/havelib/rpathz/configure.ac: New file, from
30786         gettext/autoconf-lib-link with modifications.
30787         * tests/havelib/rpathlx/usex.c: New file, from
30788         gettext/autoconf-lib-link.
30789         * tests/havelib/rpathlx/Makefile.am: New file, from
30790         gettext/autoconf-lib-link.
30791         * tests/havelib/rpathlx/configure.ac: New file, from
30792         gettext/autoconf-lib-link with modifications.
30793         * tests/havelib/rpathly/usey.c: New file, from
30794         gettext/autoconf-lib-link.
30795         * tests/havelib/rpathly/Makefile.am: New file, from
30796         gettext/autoconf-lib-link.
30797         * tests/havelib/rpathly/configure.ac: New file, from
30798         gettext/autoconf-lib-link with modifications.
30799         * tests/havelib/rpathlz/usez.c: New file, from
30800         gettext/autoconf-lib-link.
30801         * tests/havelib/rpathlz/Makefile.am: New file, from
30802         gettext/autoconf-lib-link.
30803         * tests/havelib/rpathlz/configure.ac: New file, from
30804         gettext/autoconf-lib-link with modifications.
30805         * tests/havelib/rpathlyx/usey.c: New file, from
30806         gettext/autoconf-lib-link.
30807         * tests/havelib/rpathlyx/Makefile.am: New file, from
30808         gettext/autoconf-lib-link.
30809         * tests/havelib/rpathlyx/configure.ac: New file, from
30810         gettext/autoconf-lib-link with modifications.
30811         * tests/havelib/rpathlzyx/usez.c: New file, from
30812         gettext/autoconf-lib-link.
30813         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30814         gettext/autoconf-lib-link.
30815         * tests/havelib/rpathlzyx/configure.ac: New file, from
30816         gettext/autoconf-lib-link with modifications.
30817         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30818         with modifications.
30819
30820 2010-04-02  Bruno Haible  <bruno@clisp.org>
30821
30822         gnulib-tool: Create distributed built sources also for the tests.
30823         * gnulib-tool (func_create_testdir): Also generate distributed built
30824         sources in the tests directory.
30825
30826 2010-04-02  Bruno Haible  <bruno@clisp.org>
30827
30828         gnulib-tool: Obey user's environment variables.
30829         * gnulib-tool (func_create_testdir): When creating built sources,
30830         respect the environment variables for autoconf, automake, etc. given by
30831         the user.
30832
30833 2010-04-02  Bruno Haible  <bruno@clisp.org>
30834
30835         gnulib-tool: Provide the value of --m4-base to modules.
30836         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30837         of gl_m4_base.
30838
30839 2010-04-02  Eric Blake  <eblake@redhat.com>
30840
30841         maint.mk: fix some fallout
30842         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30843         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30844
30845 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30846
30847         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30848         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30849         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30850         (sc_cast_of_x_alloc_return_value): Likewise.
30851         (sc_cast_of_alloca_return_value): Likewise.
30852         (sc_space_tab): Likewise.
30853         (sc_prohibit_atoi_atof): Likewise.
30854         (sc_prohibit_magic_number_exit): Likewise.
30855         (sc_error_exit_success): Likewise.
30856         (sc_file_system): Likewise.
30857         (sc_prohibit_have_config_h): Likewise.
30858         (sc_require_config_h): Likewise.
30859         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30860         (sc_obsolete_symbols): Likewise.
30861         (sc_changelog): Likewise.
30862         (sc_program_name): Likewise.
30863         (sc_the_the): Likewise.
30864         (sc_trailing_blank): Likewise.
30865         (sc_two_space_separator_in_usage): Likewise.
30866         (sc_useless_cpp_parens): Likewise.
30867         (sc_GPL_version): Likewise.
30868         (sc_GFDL_version): Likewise.
30869         (sc_texinfo_acronym): Likewise.
30870         (sc_prohibit_cvs_keyword): Likewise.
30871         (sc_prohibit_stat_st_blocks): Likewise.
30872         (sc_prohibit_S_IS_definition): Likewise.
30873         (sc_redundant_const): Likewise.
30874         (sc_makefile_TAB_only_indentation): Likewise.
30875         (sc_m4_quote_check): Likewise.
30876         (sc_makefile_path_separator_check): Likewise.
30877         (sc_copyright_check): Likewise.
30878         (sc_Wundef_boolean): Likewise.
30879         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30880
30881         maint.mk: match 0 or more whitespace-before-function-call '('
30882         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30883         that have zero or two-and-more spaces between the function name
30884         and the open parenthesis.
30885         (sc_error_message_warn_fatal): Likewise.
30886         (sc_error_message_uppercase): Likewise.
30887         (sc_error_message_period): Likewise.
30888
30889 2010-03-31  Eric Blake  <eblake@redhat.com>
30890
30891         maint.mk: check for [ as well as test
30892         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30893         Based on a libvirt report by Matthias Bolte.
30894
30895         gnumakefile: don't squelch _version output
30896         * top/GNUmakefile (_version): Create one-shot dependency rather
30897         than using $(shell) when version must be regenerated.
30898         (_autoreconf): Run verbosely, by default.
30899
30900         sys_time: avoid compiler warnings
30901         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30902         unconditional, fixing regression from 2010-03-29.
30903         Reported by Simon Josefsson.
30904
30905 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30906
30907         maint.mk: s/_header_without_use/_sc_header_without_use/
30908         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30909         (sc_prohibit_assert_without_use): Use the new name.
30910         (sc_prohibit_close_stream_without_use): Likewise.
30911         (sc_prohibit_getopt_without_use): Likewise.
30912         (sc_prohibit_quotearg_without_use): Likewise.
30913         (sc_prohibit_quote_without_use): Likewise.
30914         (sc_prohibit_long_options_without_use): Likewise.
30915         (sc_prohibit_inttostr_without_use): Likewise.
30916         (sc_prohibit_ignore_value_without_use): Likewise.
30917         (sc_prohibit_error_without_use): Likewise.
30918         (sc_prohibit_xalloc_without_use): Likewise.
30919         (sc_prohibit_hash_without_use): Likewise.
30920         (sc_prohibit_hash_pjw_without_use): Likewise.
30921         (sc_prohibit_safe_read_without_use): Likewise.
30922         (sc_prohibit_argmatch_without_use): Likewise.
30923         (sc_prohibit_canonicalize_without_use): Likewise.
30924         (sc_prohibit_root_dev_ino_without_use): Likewise.
30925         (sc_prohibit_openat_without_use): Likewise.
30926         (sc_prohibit_c_ctype_without_use): Likewise.
30927         (sc_prohibit_signal_without_use): Likewise.
30928         (sc_prohibit_intprops_without_use): Likewise.
30929
30930 2010-03-30  Eric Blake  <eblake@redhat.com>
30931
30932         maint: improve module indicators
30933         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30934         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30935         columns, and avoid extra macro expansion.
30936
30937         fdopendir: work around FreeBSD bug
30938         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30940         * modules/dirent (Makefile.am): Substitute it.
30941         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30942         declaration.
30943         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30944         fix.
30945         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30946
30947 2010-03-29  Bruno Haible  <bruno@clisp.org>
30948
30949         Emit #pragma system_header after the inclusion guard, not before.
30950         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30951         guard that spans the entire file, not before. This enables an
30952         optimization in GCC's preprocessor.
30953         * lib/ctype.in.h: Likewise.
30954         * lib/dirent.in.h: Likewise.
30955         * lib/errno.in.h: Likewise.
30956         * lib/float.in.h: Likewise.
30957         * lib/getopt.in.h: Likewise.
30958         * lib/iconv.in.h: Likewise.
30959         * lib/langinfo.in.h: Likewise.
30960         * lib/locale.in.h: Likewise.
30961         * lib/math.in.h: Likewise.
30962         * lib/netdb.in.h: Likewise.
30963         * lib/netinet_in.in.h: Likewise.
30964         * lib/pty.in.h: Likewise.
30965         * lib/sched.in.h: Likewise.
30966         * lib/se-selinux.in.h: Likewise.
30967         * lib/search.in.h: Likewise.
30968         * lib/spawn.in.h: Likewise.
30969         * lib/stdarg.in.h: Likewise.
30970         * lib/stdint.in.h: Likewise.
30971         * lib/string.in.h: Likewise.
30972         * lib/strings.in.h: Likewise.
30973         * lib/sys_file.in.h: Likewise.
30974         * lib/sys_ioctl.in.h: Likewise.
30975         * lib/sys_time.in.h: Likewise.
30976         * lib/sys_times.in.h: Likewise.
30977         * lib/sys_utsname.in.h: Likewise.
30978         * lib/sys_wait.in.h: Likewise.
30979         * lib/sysexits.in.h: Likewise.
30980         * lib/wctype.in.h: Likewise.
30981
30982 2010-03-28  James Youngman  <jay@gnu.org>
30983
30984         save-cwd: don't leak a file descriptor when the caller execs.
30985         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30986         saved file descriptor.
30987         * modules/save-cwd (Depends-on): Depend on cloexec.
30988
30989 2010-03-29  Bruno Haible  <bruno@clisp.org>
30990
30991         Remove vestiges of fts-lgpl module.
30992         * lib/fts_.h: Assume GNULIB_FTS is 1.
30993         * lib/fts.c: Likewise.
30994         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30995
30996 2010-03-28  Bruno Haible  <bruno@clisp.org>
30997
30998         Fix definition of tests witness macro.
30999         * gnulib-tool (func_import): Fix definition of witness macro.
31000
31001 2010-03-28  Bruno Haible  <bruno@clisp.org>
31002
31003         Fix ioctl's protoype on glibc systems.
31004         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31005         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31006         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31007         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31008         signature. If not, arrange to replace the ioctl function.
31009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31010         REPLACE_IOCTL.
31011         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31012         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31013         Reported by Ludovic Courtès <ludo@gnu.org>.
31014
31015 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31016
31017         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31018         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31019         made it so grep -r --include=GLOB* ... did not work.
31020
31021 2010-03-26  Jim Meyering  <meyering@redhat.com>
31022             Eric Blake  <eblake@redhat.com>
31023
31024         maint.mk: prohibit use of test's -o and -a operators
31025         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31026
31027 2010-03-28  Bruno Haible  <bruno@clisp.org>
31028
31029         Remove unused GNULIB_XYZ macro definitions.
31030         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31031         invocation.
31032
31033 2010-03-28  Bruno Haible  <bruno@clisp.org>
31034
31035         Mark privileged tests modules.
31036         * modules/idpriv-drop-tests (Status): New section.
31037         * modules/idpriv-droptemp-tests (Status): New section.
31038
31039 2010-03-28  Bruno Haible  <bruno@clisp.org>
31040
31041         Split C++ tests into separate tests modules.
31042         * modules/dirent-c++-tests: New file, extracted from
31043         modules/dirent-tests.
31044         * modules/dirent-tests: Depend on it.
31045         * modules/fcntl-h-c++-tests: New file, extracted from
31046         modules/fcntl-h-tests.
31047         * modules/fcntl-h-tests: Depend on it.
31048         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31049         * modules/glob-tests: Depend on it.
31050         * modules/iconv-h-c++-tests: New file, extracted from
31051         modules/iconv-h-tests.
31052         * modules/iconv-h-tests: Depend on it.
31053         * modules/langinfo-c++-tests: New file, extracted from
31054         modules/langinfo-tests.
31055         * modules/langinfo-tests: Depend on it.
31056         * modules/locale-c++-tests: New file, extracted from
31057         modules/locale-tests.
31058         * modules/locale-tests: Depend on it.
31059         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31060         * modules/math-tests: Depend on it.
31061         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31062         * modules/pty-tests: Depend on it.
31063         * modules/search-c++-tests: New file, extracted from
31064         modules/search-tests.
31065         * modules/search-tests: Depend on it.
31066         * modules/signal-c++-tests: New file, extracted from
31067         modules/signal-tests.
31068         * modules/signal-tests: Depend on it.
31069         * modules/spawn-c++-tests: New file, extracted from
31070         modules/spawn-tests.
31071         * modules/spawn-tests: Depend on it.
31072         * modules/stdio-c++-tests: New file, extracted from
31073         modules/stdio-tests.
31074         * modules/stdio-tests: Depend on it.
31075         * modules/stdlib-c++-tests: New file, extracted from
31076         modules/stdlib-tests.
31077         * modules/stdlib-tests: Depend on it.
31078         * modules/string-c++-tests: New file, extracted from
31079         modules/string-tests.
31080         * modules/string-tests: Depend on it.
31081         * modules/sys_ioctl-c++-tests: New file, extracted from
31082         modules/sys_ioctl-tests.
31083         * modules/sys_ioctl-tests: Depend on it.
31084         * modules/sys_select-c++-tests: New file, extracted from
31085         modules/sys_select-tests.
31086         * modules/sys_select-tests: Depend on it.
31087         * modules/sys_socket-c++-tests: New file, extracted from
31088         modules/sys_socket-tests.
31089         * modules/sys_socket-tests: Depend on it.
31090         * modules/sys_stat-c++-tests: New file, extracted from
31091         modules/sys_stat-tests.
31092         * modules/sys_stat-tests: Depend on it.
31093         * modules/sys_time-c++-tests: New file, extracted from
31094         modules/sys_time-tests.
31095         * modules/sys_time-tests: Depend on it.
31096         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31097         * modules/time-tests: Depend on it.
31098         * modules/unistd-c++-tests: New file, extracted from
31099         modules/unistd-tests.
31100         * modules/unistd-tests: Depend on it.
31101         * modules/wchar-c++-tests: New file, extracted from
31102         modules/wchar-tests.
31103         * modules/wchar-tests: Depend on it.
31104         * modules/wctype-c++-tests: New file, extracted from
31105         modules/wctype-tests.
31106         * modules/wctype-tests: Depend on it.
31107         Reported by Simon Josefsson.
31108
31109 2010-03-28  Bruno Haible  <bruno@clisp.org>
31110
31111         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31112         * gnulib-tool (func_exists_module): New function, extracted from
31113         func_verify_module.
31114         (func_verify_module): Use it.
31115         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31116         'foo' only if 'foo' exists.
31117         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31118         module.
31119
31120 2010-03-28  Bruno Haible  <bruno@clisp.org>
31121
31122         gnulib-tool: Add support for special categories of tests.
31123         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31124         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31125         (func_usage): Document them.
31126         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31127         inc_unportable_tests, inc_all_tests): New variables.
31128         (func_acceptable): Consider these variables.
31129         (func_modules_transitive_closure): Make it work when the 'Status' field
31130         consists of multiple words.
31131         (func_import): Store and restore the values of inc_cxx_tests,
31132         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31133         inc_all_tests in gnulib-comp.m4.
31134         (func_create_testdir): Set inc_all_tests to true.
31135         * doc/gnulib.texi (Extra tests modules): New section.
31136         Suggested by Jim Meyering.
31137
31138 2010-03-28  Bruno Haible  <bruno@clisp.org>
31139
31140         ansi-c++-opt: Allow turning off the C++ build by default.
31141         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31142         gl_CXX_CHOICE_DEFAULT_NO is defined.
31143         Requested by Eric Blake.
31144
31145 2010-03-28  Bruno Haible  <bruno@clisp.org>
31146
31147         unistd: Avoid #define replacements in C++ mode.
31148         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31149         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31150         setsockopt, shutdown, select): In C++, attach a warning to the function
31151         if possible, rather than #defining the symbol to a dysfunctional alias.
31152         Reported by John W. Eaton <jwe@gnu.org>.
31153
31154 2010-03-28  Bruno Haible  <bruno@clisp.org>
31155
31156         Fix link errors on mingw.
31157         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31158         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31159         $(LIBSOCKET).
31160         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31161         $(LIBSOCKET).
31162
31163 2010-03-28  Bruno Haible  <bruno@clisp.org>
31164             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31165
31166         lib-ignore: Determine different options for different compilers.
31167         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31168         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31169         Add comments.
31170         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31171         * NEWS: Mention the change.
31172
31173 2010-03-27  Bruno Haible  <bruno@clisp.org>
31174
31175         Remove unused GNULIB_XYZ macro definitions.
31176         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31177         * modules/fseek (configure.ac): Likewise.
31178         * modules/ioctl (configure.ac): Likewise.
31179         * modules/open (configure.ac): Likewise.
31180         * modules/stdlib-safer (configure.ac): Likewise.
31181
31182 2010-03-27  Bruno Haible  <bruno@clisp.org>
31183
31184         Add a remark about certain modules.
31185         * modules/malloc (Comment): New section.
31186         * modules/realloc (Comment): Likewise.
31187         * modules/sigpipe (Comment): Likewise.
31188
31189 2010-03-27  Bruno Haible  <bruno@clisp.org>
31190
31191         Resolve conflict between the two kinds of module indicators.
31192         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31193         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31194         * modules/canonicalize (configure.ac): Invoke
31195         gl_MODULE_INDICATOR_FOR_TESTS.
31196         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31197         GNULIB_XYZ.
31198         * tests/test-dirent-c++.cc: Likewise.
31199         * tests/test-dirent-safer.c: Likewise.
31200         * tests/test-dup2.c: Likewise.
31201         * tests/test-fchdir.c: Likewise.
31202         * tests/test-fcntl-h-c++.cc: Likewise.
31203         * tests/test-getopt.c: Likewise.
31204         * tests/test-getopt.h: Likewise.
31205         * tests/test-langinfo-c++.cc: Likewise.
31206         * tests/test-locale-c++.cc: Likewise.
31207         * tests/test-math-c++.cc: Likewise.
31208         * tests/test-pty-c++.cc: Likewise.
31209         * tests/test-search-c++.cc: Likewise.
31210         * tests/test-signal-c++.cc: Likewise.
31211         * tests/test-spawn-c++.cc: Likewise.
31212         * tests/test-stdio-c++.cc: Likewise.
31213         * tests/test-stdlib-c++.cc: Likewise.
31214         * tests/test-string-c++.cc: Likewise.
31215         * tests/test-sys_ioctl-c++.cc: Likewise.
31216         * tests/test-sys_select-c++.cc: Likewise.
31217         * tests/test-sys_socket-c++.cc: Likewise.
31218         * tests/test-sys_stat-c++.cc: Likewise.
31219         * tests/test-sys_time-c++.cc: Likewise.
31220         * tests/test-time-c++.cc: Likewise.
31221         * tests/test-unistd-c++.cc: Likewise.
31222         * tests/test-wchar-c++.cc: Likewise.
31223         * tests/uninorm/test-u8-nfc.c: Likewise.
31224         * tests/uninorm/test-u8-nfd.c: Likewise.
31225         * tests/uninorm/test-u8-nfkc.c: Likewise.
31226         * tests/uninorm/test-u8-nfkd.c: Likewise.
31227         * tests/uninorm/test-u16-nfc.c: Likewise.
31228         * tests/uninorm/test-u16-nfd.c: Likewise.
31229         * tests/uninorm/test-u16-nfkc.c: Likewise.
31230         * tests/uninorm/test-u16-nfkd.c: Likewise.
31231         * tests/uninorm/test-u32-nfc.c: Likewise.
31232         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31233         * tests/uninorm/test-u32-nfd.c: Likewise.
31234         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31235         * tests/uninorm/test-u32-nfkc.c: Likewise.
31236         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31237         * tests/uninorm/test-u32-nfkd.c: Likewise.
31238         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31239         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31240
31241 2010-03-27  Bruno Haible  <bruno@clisp.org>
31242
31243         Distinguish two kinds of module indicators.
31244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31245         gl_MODULE_INDICATOR.
31246         (gl_MODULE_INDICATOR): New macro.
31247         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31248         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31249         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31250         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31251         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31253         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31254         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31256         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31257         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31258         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31261         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31264         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31265         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31266         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31267         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31268         * modules/cloexec (configure.ac): Likewise.
31269         * modules/getopt-gnu (configure.ac): Likewise.
31270         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31271         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31272         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31273         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31274
31275 2010-03-27  Bruno Haible  <bruno@clisp.org>
31276
31277         New module description field 'Comment'.
31278         * gnulib-tool: New option --extract-comment.
31279         (func_usage): Document it.
31280         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31281         (func_get_comment): New function.
31282         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31283
31284 2010-03-27  Bruno Haible  <bruno@clisp.org>
31285
31286         Addendum to 2010-02-07 commit.
31287         * gnulib-tool (func_usage): Document --extract-applicability option.
31288
31289 2010-03-27  Bruno Haible  <bruno@clisp.org>
31290
31291         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31292         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31293         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31294         rather than link errors.
31295
31296 2010-03-27  Bruno Haible  <bruno@clisp.org>
31297
31298         Avoid side effects from tests-related modules on the compilation of lib.
31299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31300         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31301         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31302         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31303         macro.
31304         (func_import): Define a witness macro. Assign it a value that depends
31305         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31306         tests-related modules.
31307         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31308         Reported by Jim Meyering.
31309
31310 2010-03-27  Bruno Haible  <bruno@clisp.org>
31311
31312         Factorize common .m4 code.
31313         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31314         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31315         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31316         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31318         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31319         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31320         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31321         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31322         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31323         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31324         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31325         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31326         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31327         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31328         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31329         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31330         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31332         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31333         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31335         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31336         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31337         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31338         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31339         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31340         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31341         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31343         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31344         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31345
31346 2010-03-27  Bruno Haible  <bruno@clisp.org>
31347
31348         Fix a compilation error on Cygwin with g++ >= 4.3.
31349         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31350         if it is undefined or if we alias it to chmod.
31351         (lstat): Don't warn about the use of this function if it is undefined
31352         or if we alias it to stat.
31353         Reported by Simon Josefsson.
31354
31355 2010-03-27  Bruno Haible  <bruno@clisp.org>
31356
31357         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31358         * modules/getlogin (configure.ac): Update.
31359
31360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31361         * modules/getlogin_r (configure.ac): Update.
31362
31363         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31365         * modules/inet_ntop (configure.ac): Update.
31366
31367         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31368         * modules/inet_pton (configure.ac): Update.
31369
31370         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31371         * modules/mbslen (configure.ac): Update.
31372
31373         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31374         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31375         * modules/forkpty (configure.ac): Update.
31376         * modules/openpty (configure.ac): Update.
31377
31378 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31379
31380         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31381         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31382
31383 2010-03-25  Eric Blake  <eblake@redhat.com>
31384
31385         maint: use pragma consistently across replacement headers
31386         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31387         * lib/dirent.in.h (system_header): Likewise.
31388         * lib/errno.in.h (system_header): Likewise.
31389         * lib/float.in.h (system_header): Likewise.
31390         * lib/getopt.in.h (system_header): Likewise.
31391         * lib/iconv.in.h (system_header): Likewise.
31392         * lib/inttypes.in.h (system_header): Likewise.
31393         * lib/langinfo.in.h (system_header): Likewise.
31394         * lib/locale.in.h (system_header): Likewise.
31395         * lib/math.in.h (system_header): Likewise.
31396         * lib/netdb.in.h (system_header): Likewise.
31397         * lib/netinet_in.in.h (system_header): Likewise.
31398         * lib/pty.in.h (system_header): Likewise.
31399         * lib/sched.in.h (system_header): Likewise.
31400         * lib/se-selinux.in.h (system_header): Likewise.
31401         * lib/search.in.h (system_header): Likewise.
31402         * lib/spawn.in.h (system_header): Likewise.
31403         * lib/stdarg.in.h (system_header): Likewise.
31404         * lib/stdint.in.h (system_header): Likewise.
31405         * lib/string.in.h (system_header): Likewise.
31406         * lib/strings.in.h (system_header): Likewise.
31407         * lib/sys_file.in.h (system_header): Likewise.
31408         * lib/sys_ioctl.in.h (system_header): Likewise.
31409         * lib/sys_socket.in.h (system_header): Likewise.
31410         * lib/sys_times.in.h (system_header): Likewise.
31411         * lib/sys_utsname.in.h (system_header): Likewise.
31412         * lib/sys_wait.in.h (system_header): Likewise.
31413         * lib/sysexits.in.h (system_header): Likewise.
31414         * lib/unistd.in.h (system_header): Likewise.
31415         * lib/wctype.in.h (system_header): Likewise.
31416
31417         arpa/inet: fix mingw compilation warning
31418         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31419         Reported by Matthew Bolte.
31420
31421 2010-03-25  Bruno Haible  <bruno@clisp.org>
31422
31423         Avoid collision between gnulib wrapper and libintl wrapper.
31424         * lib/printf.c (printf): Don't define if a printf wrapper is already
31425         defined in intl/printf.c.
31426         Reported by Michel Boaventura <michel@michelboaventura.com>.
31427
31428 2010-03-25  Bruno Haible  <bruno@clisp.org>
31429
31430         Use ANSI C.
31431         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31432
31433 2010-03-25  Bruno Haible  <bruno@clisp.org>
31434
31435         Minor formatting changes.
31436         * lib/acosl.c: Insert space before function argument list.
31437         * lib/argz.c: Likewise.
31438         * lib/asinl.c: Likewise.
31439         * lib/expl.c: Likewise.
31440         * lib/gen-uni-tables.c: Likewise.
31441         * lib/gettext.h: Likewise.
31442         * lib/glthread/lock.h: Likewise.
31443         * lib/tanl.c: Likewise.
31444         * lib/uniname/uniname.c: Likewise.
31445         * tests/test-idpriv-drop.c: Likewise.
31446         * tests/test-idpriv-droptemp.c: Likewise.
31447         * tests/test-lock.c: Likewise.
31448         * tests/test-tls.c: Likewise.
31449         * lib/argp-help.c: Insert space before function-like macro argument
31450         list.
31451         * lib/memcmp.c: Likewise.
31452         * tests/test-base64.c: Likewise.
31453         * lib/localename.c: Insert space before sizeof's argument list.
31454         * lib/safe-alloc.h: Likewise.
31455         * lib/file-set.h: Insert space before macro argument list.
31456         * tests/test-argp.c: Likewise.
31457         * lib/argp-namefrob.h: Insert space before function parameter list.
31458         * lib/getaddrinfo.c: Likewise.
31459         * lib/netdb.in.h: Likewise.
31460         * lib/parse-duration.h: Likewise.
31461         * lib/parse-duration.c: Likewise.
31462         * lib/poll.c: Likewise.
31463         * lib/select.c: Likewise.
31464         * lib/trim.h: Likewise.
31465         * tests/test-usleep.c: Likewise.
31466         * lib/ldexpl.c: Insert space before function parameter list and before
31467         function argument list.
31468         * lib/logl.c: Likewise.
31469         * lib/sqrtl.c: Likewise.
31470         * lib/trim.c: Likewise.
31471         * lib/cosl.c: Use GNU style indentation. Insert space before function
31472         argument list.
31473         * lib/sinl.c: Likewise.
31474         * lib/tsearch.c: Insert space after 'for'.
31475         Reported by Jim Meyering.
31476
31477 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31478
31479         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31480         config header before grepping, as it's not present before
31481         autoreconf/configure are run.  Reported by Simon Josefsson.
31482
31483 2010-03-23  Bruno Haible  <bruno@clisp.org>
31484
31485         pt_chown: Make it work with automake < 1.11.
31486         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31487         Reported by Simon Josefsson.
31488
31489 2010-03-23  Bruno Haible  <bruno@clisp.org>
31490
31491         pt_chown: Don't depend on GPLed modules.
31492         * lib/pt_chown.c: Don't include idpriv.h.
31493         (main): Don't drop privileges.
31494         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31495         Reported by Simon Josefsson.
31496
31497 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31498
31499         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31500         suggestions from karl@freefriends.org (Karl Berry).
31501
31502 2010-03-22  Eric Blake  <eblake@redhat.com>
31503
31504         gethostname: further tweaks
31505         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31506         are overriding gethostname.
31507         Suggested by Bruno Haible.
31508
31509 2010-03-21  Bruno Haible  <bruno@clisp.org>
31510
31511         Fix comments.
31512         * lib/forkpty.c (rpl_forkpty): Fix comment.
31513         * lib/openpty.c (rpl_openpty): Likewise.
31514         Reported by Eric Blake.
31515
31516 2010-03-22  Eric Blake  <eblake@redhat.com>
31517
31518         gethostname: fix build on mingw
31519         * lib/unistd.in.h (includes): Work around fact that mingw
31520         <winsock2.h> re-includes <unistd.h>, by avoiding any
31521         redeclarations if we are being included by <winsock2.h>.
31522         Reported by Matthias Bolte.
31523
31524 2010-03-21  Bruno Haible  <bruno@clisp.org>
31525
31526         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31527         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31528         modifications.
31529         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31530         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31531         provide the replacement.
31532         * modules/forkpty (Depends-on): Add openpty, login_tty.
31533         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31534         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31535         * doc/glibc-functions/forkpty.texi: More supported platforms.
31536         * config/srclist.txt: Add forkpty.c (commented).
31537
31538 2010-03-21  Bruno Haible  <bruno@clisp.org>
31539
31540         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31541         (Makefile.am): Verify that PTY_LIB is defined.
31542
31543         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31544
31545 2010-03-21  Bruno Haible  <bruno@clisp.org>
31546
31547         Tests for module 'login_tty'.
31548         * modules/login_tty-tests: New file.
31549         * tests/test-login_tty.c: New file.
31550
31551         New module 'login_tty'.
31552         * lib/login_tty.c: New file.
31553         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31554         * modules/login_tty: New file.
31555         * doc/glibc-functions/login_tty.texi: Mention the new module.
31556
31557 2010-03-21  Bruno Haible  <bruno@clisp.org>
31558
31559         login_tty: Documentation.
31560         * doc/glibc-functions/login_tty.texi: New file.
31561         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31562
31563 2010-03-21  Bruno Haible  <bruno@clisp.org>
31564
31565         pty: Consistent macro naming.
31566         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31567         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31568         * modules/pty (configure.ac): Update.
31569
31570 2010-03-21  Bruno Haible  <bruno@clisp.org>
31571
31572         Tests for openpty: Make stricter.
31573         * tests/test-openpty.c (main): Add test of canonical processing and
31574         erase.
31575         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31576
31577         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31578         * lib/openpty.c (openpty): New replacement function.
31579         * lib/pty.in.h: Include <termios.h>.
31580         (openpty): Update declaration. Add comments.
31581         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31582         is not declared, arrange to provide the replacement. Check for _getpty
31583         and posix_openpt.
31584         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31586         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31587         * modules/pty-tests (test_pty_c___LDADD): New variable.
31588         * doc/glibc-functions/openpty.texi: More supported platforms.
31589
31590 2010-03-21  Bruno Haible  <bruno@clisp.org>
31591
31592         setenv: Tweaks.
31593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31594         the test program.
31595         * doc/posix-functions/setenv.texi: Update platforms list.
31596
31597 2010-03-21  Bruno Haible  <bruno@clisp.org>
31598
31599         New module 'unlockpt'.
31600         * lib/unlockpt.c: New file, from glibc with modifications.
31601         * m4/unlockpt.m4: New file.
31602         * modules/unlockpt: New file.
31603         * lib/stdlib.in.h (unlockpt): New declaration.
31604         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31605         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31606         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31607         HAVE_UNLOCKPT.
31608         * doc/posix-functions/unlockpt.texi: Mention the new module.
31609         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31610         * config/srclist.txt: Add unlockpt.c (commented).
31611
31612 2010-03-21  Jim Meyering  <meyering@redhat.com>
31613
31614         maint.mk: prohibit inclusion of "intprops.h" without use
31615         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31616
31617 2010-03-21  Bruno Haible  <bruno@clisp.org>
31618
31619         New module 'grantpt'.
31620         * lib/grantpt.c: New file, from glibc with modifications.
31621         * m4/grantpt.m4: New file.
31622         * modules/grantpt: New file.
31623         * lib/stdlib.in.h (grantpt): New declaration.
31624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31625         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31626         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31627         HAVE_GRANTPT.
31628         * doc/posix-functions/grantpt.texi: Mention the new module.
31629         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31630         * config/srclist.txt: Add grantpt.c (commented).
31631
31632 2010-03-21  Bruno Haible  <bruno@clisp.org>
31633
31634         New module 'pt_chown'.
31635         * lib/pt_chown.c: New file, from glibc with modifications.
31636         * lib/pty-private.h: New file, from glibc with modifications.
31637         * modules/pt_chown: New file.
31638         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31639
31640 2010-03-21  Bruno Haible  <bruno@clisp.org>
31641
31642         Tests for module 'ptsname'.
31643         * modules/ptsname-tests: New file.
31644         * tests/test-ptsname.c: New file.
31645
31646         New module 'ptsname'.
31647         * lib/ptsname.c: New file, from glibc with modifications.
31648         * m4/ptsname.m4: New file.
31649         * modules/ptsname: New file.
31650         * lib/stdlib.in.h (ptsname): New declaration.
31651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31652         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31653         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31654         HAVE_PTSNAME.
31655         * doc/posix-functions/ptsname.texi: Mention the new module.
31656         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31657         * config/srclist.txt: Add ptsname.c (commented).
31658
31659 2010-03-21  Bruno Haible  <bruno@clisp.org>
31660
31661         Tests for module 'ttyname_r'.
31662         * modules/ttyname_r-tests: New file.
31663         * tests/test-ttyname_r.c: New file.
31664
31665         New module 'ttyname_r'.
31666         * lib/ttyname_r.c: New file.
31667         * m4/ttyname_r.m4: New file.
31668         * modules/ttyname_r: New file.
31669         * lib/unistd.in.h (ttyname_r): New declaration.
31670         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31671         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31672         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31673         HAVE_TTYNAME_R.
31674         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31675         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31676
31677 2010-03-20  Bruno Haible  <bruno@clisp.org>
31678
31679         signal: Undefine macro definitions in C++ mode.
31680         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31681         sigfillset): Undefine macro definitions from the system header in C++
31682         mode.
31683         Reported by John W. Eaton <jwe@gnu.org>.
31684
31685 2010-03-20  Bruno Haible  <bruno@clisp.org>
31686
31687         Ensure no #include statements inside extern "C" { ... }.
31688         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31689         contain #include statements.
31690         * lib/time.in.h: Likewise.
31691
31692 2010-03-20  Bruno Haible  <bruno@clisp.org>
31693
31694         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31695         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31696         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31697         Reported by John W. Eaton <jwe@gnu.org>.
31698
31699 2010-03-20  Bruno Haible  <bruno@clisp.org>
31700
31701         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31702         Reported by Jim Meyering.
31703
31704 2010-03-20  Bruno Haible  <bruno@clisp.org>
31705
31706         pipe: Set errno upon failure.
31707         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31708         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31709         errno value in error message.
31710
31711 2010-03-20  Bruno Haible  <bruno@clisp.org>
31712             Jim Meyering  <meyering@redhat.com>
31713
31714         lchown: Avoid "unused variable" warning.
31715         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31716
31717 2010-03-20  Bruno Haible  <bruno@clisp.org>
31718
31719         Work around unlink() bug on MacOS X 10.5.6.
31720         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31721         attempting to unlink a parent directory.
31722         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31723         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31724         activate for the replacement function.
31725         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31726
31727 2010-03-20  Bruno Haible  <bruno@clisp.org>
31728
31729         Fix link errors on Solaris 8.
31730         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31731         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31732
31733 2010-03-19  Jim Meyering  <meyering@redhat.com>
31734
31735         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31736         The _LIBC implementation of build_range_exp correctly honors the
31737         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31738         However, the non-_LIBC implementation would ignore that syntax-bit
31739         flag and return REG_ERANGE unconditionally.
31740         This change makes it honor that flag.
31741         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31742         Make two pointer parameters "const".
31743         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31744         (parse_bracket_exp): Update caller.
31745
31746         regex.m4: correct the reversed range endpoint ([b-a]) test
31747         * m4/regex.m4: When requiring that [b-a] evoke failure,
31748         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31749         test pass once again for x86-based systems.
31750
31751 2010-03-19  Bruno Haible  <bruno@clisp.org>
31752
31753         scandir: Fix link error on Solaris 8.
31754         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31755         macros.
31756
31757 2010-03-19  Bruno Haible  <bruno@clisp.org>
31758
31759         getusershell: Fix documentation.
31760         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31761         module.
31762         * doc/glibc-functions/setusershell.texi: Likewise.
31763
31764         getusershell: Provide declaration, missing on Solaris 9.
31765         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31766         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31767         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31768         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31770         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31771         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31772         HAVE_GETUSERSHELL.
31773         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31774
31775 2010-03-19  Bruno Haible  <bruno@clisp.org>
31776
31777         wctype: Provide iswblank function.
31778         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31779         exists and is fine.
31780         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31781         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31782         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31783         * doc/posix-functions/iswblank.texi: Update.
31784
31785 2010-03-19  Bruno Haible  <bruno@clisp.org>
31786
31787         Tests of module 'pty' in C++ mode.
31788         * modules/pty-tests: New file.
31789         * tests/test-pty-c++.cc: New file.
31790         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31791
31792 2010-03-19  Eric Blake  <eblake@redhat.com>
31793
31794         logb: fix documentation
31795         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31796         1.5 declaration bug.
31797
31798         forkpty, openpty: prefer glibc's const-safe prototype
31799         * lib/forkpty.c (rpl_forkpty): New file.
31800         * lib/openpty.c (rpl_openpty): Likewise.
31801         * modules/forkpty (Files): Distribute it.
31802         * modules/openpty (Files): Likewise.
31803         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31804         check...
31805         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31806         replacement for for non-const BSD signature.
31807         * modules/pty (Makefile.am): Substitute witnesses.
31808         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31809         * tests/test-forkpty.c: Update signature check.
31810         * tests/test-openpty.c: Likewise.
31811         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31812         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31813
31814         forkpty, openpty: split functions into new modules
31815         * modules/pty (Makefile.am): Substitute new witnesses.
31816         (Libraries): Move library detection...
31817         * modules/forkpty: ...into new module.
31818         * modules/openpty: Another new module.
31819         * modules/pty-tests: Rename and split...
31820         * modules/forkpty-tests: ...to this...
31821         * modules/openpty-tests: ...and this.
31822         * tests/test-pty.c: Rename and split...
31823         * tests/test-forkpty.c: ...to this...
31824         * tests/test-openpty.c: ...and this.
31825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31826         (gl_PTY): Split library searching...
31827         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31828         (gl_FORKPTY, gl_OPENPTY): New macros.
31829         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31830         * NEWS: Mention the split.
31831         * MODULES.html.sh (Misc): Document the modules.
31832         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31833         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31834
31835         pty: improve replacement header
31836         * lib/pty.in.h: New file.
31837         * modules/pty (Files): Ship it.
31838         (Makefile.am): Always build replacement.
31839         * m4/pty.m4: Rename...
31840         * m4/pty_h.m4: ...to this.
31841         (gl_PTY): Modernize setting of witness macros; update check of
31842         forkpty to take proper advantage of cache.
31843         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31844
31845         getopt: avoid compiler warning
31846         * lib/getopt.c (attribute_hidden): Remove unused macro.
31847
31848 2010-03-18  Bruno Haible  <bruno@clisp.org>
31849
31850         Fix link errors on Solaris 8.
31851         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31852         * modules/search-tests (test_search_c___LDADD): Likewise.
31853         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31854         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31855         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31856         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31857         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31858         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31859         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31860
31861 2010-03-18  Bruno Haible  <bruno@clisp.org>
31862
31863         Fix bug introduced on 2010-03-14.
31864         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31865         (gl_SPAWN_H): Require it.
31866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31867         Reported by Simon Josefsson.
31868
31869 2010-03-18  Bruno Haible  <bruno@clisp.org>
31870
31871         Fix typo introduced on 2009-12-31.
31872         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31873         posix_spawn_file_actions_adddup2.
31874
31875 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31876         and Eric Blake  <eblake@redhat.com>
31877
31878         test-vc-list-files-git: make more robust
31879         * tests/test-vc-list-files-git.sh: Unset problematic environment
31880         variables.  Chain commands together.
31881
31882 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31883
31884         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31885         `AC_CHECK_DECL' invocation.
31886
31887 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31888
31889         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31890         appears before executable statements. Suggested by Petr Sumbera
31891         <Petr.Sumbera@Sun.COM>.
31892
31893 2010-03-14  Bruno Haible  <bruno@clisp.org>
31894
31895         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31896         portability problems. Instead use a simpler test.
31897         (main): Check that invalid arguments are rejected only on Linux.
31898
31899 2010-03-14  Bruno Haible  <bruno@clisp.org>
31900
31901         Fix bug introduced on 2009-12-31.
31902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31903         gl_PREREQ_SYS_H_WINSOCK2 always.
31904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31905         SYS_SOCKET_H variable.
31906         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31907         Update comments.
31908         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31909         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31913
31914 2010-03-14  Bruno Haible  <bruno@clisp.org>
31915
31916         Fix values returned by sinl, cosl.
31917         * lib/trigl.h: Add specification comments.
31918         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31919         that combines the values from the precomputed table with the values of
31920         the Chebyshev polynomials.
31921
31922 2010-03-14  Bruno Haible  <bruno@clisp.org>
31923
31924         Fix compilation error when modules 'posix_spawn[p]' are not used.
31925         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31927
31928 2010-03-14  Bruno Haible  <bruno@clisp.org>
31929
31930         Fix compilation error on mingw when module 'time_r' is not used.
31931         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31932         is 1.
31933         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31934         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31935         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31937
31938 2010-03-14  Bruno Haible  <bruno@clisp.org>
31939
31940         Fix compilation error with Sun C.
31941         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31942         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31943         instead of GCC specific ULONG_LONG_MAX.
31944         * lib/xstrtoll.c: Likewise.
31945         * lib/xstrtoull.c: Likewise.
31946
31947 2010-03-13  Bruno Haible  <bruno@clisp.org>
31948
31949         Allow the user to disable C++ code and tests.
31950         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31951         (gl_PROG_ANSI_CXX): Require it.
31952
31953 2010-03-13  Bruno Haible  <bruno@clisp.org>
31954
31955         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31956         cases.
31957
31958 2010-03-13  Bruno Haible  <bruno@clisp.org>
31959
31960         Test that gnulib does not break the standard C++ headers.
31961         * tests/test-locale-c++2.cc: New file.
31962         * modules/locale-tests (Files): Add it.
31963         (Makefile.am): Compile it for test-locale-c++.
31964         * tests/test-math-c++2.cc: New file.
31965         * modules/math-tests (Files): Add it.
31966         (Makefile.am): Compile it for test-math-c++.
31967         * tests/test-signal-c++2.cc: New file.
31968         * modules/signal-tests (Files): Add it.
31969         (Makefile.am): Compile it for test-signal-c++.
31970         * tests/test-stdio-c++2.cc: New file.
31971         * modules/stdio-tests (Files): Add it.
31972         (Makefile.am): Compile it for test-stdio-c++.
31973         * tests/test-stdlib-c++2.cc: New file.
31974         * modules/stdlib-tests (Files): Add it.
31975         (Makefile.am): Compile it for test-stdlib-c++.
31976         * tests/test-string-c++2.cc: New file.
31977         * modules/string-tests (Files): Add it.
31978         (Makefile.am): Compile it for test-string-c++.
31979         * tests/test-time-c++2.cc: New file.
31980         * modules/time-tests (Files): Add it.
31981         (Makefile.am): Compile it for test-time-c++.
31982         Reported by John W. Eaton <jwe@gnu.org>.
31983
31984 2010-03-13  Bruno Haible  <bruno@clisp.org>
31985
31986         * gnulib-tool (func_usage): Clarify which options are available for
31987         --create-testdir and --create-megatestdir.
31988
31989 2010-03-13  Bruno Haible  <bruno@clisp.org>
31990
31991         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31992         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31993         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31994         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31995         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31996         when appropriate.
31997         Reported by Jim Meyering.
31998
31999 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32000
32001         * gnulib-tool (func_import): Explain origin of code.
32002
32003 2010-03-12  Bruno Haible  <bruno@clisp.org>
32004
32005         Fix problem with automake's definition of CXXLINK.
32006         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32007         Reported by Simon Josefsson and Ludovic Courtès.
32008
32009 2010-03-12  Bruno Haible  <bruno@clisp.org>
32010
32011         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32012         stable releases.
32013
32014 2010-03-11  Bruno Haible  <bruno@clisp.org>
32015
32016         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32017         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32018         whether the system provides one variant or multiple variants of the
32019         function.
32020         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32021         C++ compilers.
32022         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32023         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32024         Reported by Jim Meyering.
32025
32026 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32027
32028         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32029
32030 2010-03-08  Bruno Haible  <bruno@clisp.org>
32031
32032         gnulib-tool: Add support for --libtool in --create-testdir.
32033         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32034         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32035
32036 2010-03-08  Eric Blake  <eblake@redhat.com>
32037
32038         gnulib-tool.texi: mention possibility of git submodule
32039         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32040         submodules.
32041         * doc/.gitignore: Ignore another generated file.
32042
32043 2010-03-08  Karl Berry  <karl@gnu.org>
32044
32045         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32046         of committing gnulib files while skipping others.
32047
32048 2010-03-07  Bruno Haible  <bruno@clisp.org>
32049
32050         Tests of module 'wctype' in C++ mode.
32051         * tests/test-wctype-c++.cc: New file.
32052         * modules/wctype-tests (Files): Add it and tests/signature.h.
32053         (Depends-on): Add ansi-c++-opt.
32054         (Makefile.am): Arrange to compile and run test-wctype-c++.
32055
32056         Tests of module 'wchar' in C++ mode.
32057         * tests/test-wchar-c++.cc: New file.
32058         * modules/wchar-tests (Files): Add it and tests/signature.h.
32059         (Depends-on): Add ansi-c++-opt.
32060         (Makefile.am): Arrange to compile and run test-wchar-c++.
32061         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32062         gl_MODULE_INDICATOR.
32063
32064         Tests of module 'unistd' in C++ mode.
32065         * tests/test-unistd-c++.cc: New file.
32066         * modules/unistd-tests (Files): Add it and tests/signature.h.
32067         (Depends-on): Add ansi-c++-opt.
32068         (Makefile.am): Arrange to compile and run test-unistd-c++.
32069         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32070         gl_MODULE_INDICATOR.
32071
32072         Tests of module 'time' in C++ mode.
32073         * tests/test-time-c++.cc: New file.
32074         * modules/time-tests (Files): Add it and tests/signature.h.
32075         (Depends-on): Add ansi-c++-opt.
32076         (Makefile.am): Arrange to compile and run test-time-c++.
32077         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32078
32079         Tests of module 'sys_time' in C++ mode.
32080         * tests/test-sys_time-c++.cc: New file.
32081         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32082         (Depends-on): Add ansi-c++-opt.
32083         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32084         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32085         gl_MODULE_INDICATOR.
32086
32087         Tests of module 'sys_stat' in C++ mode.
32088         * tests/test-sys_stat-c++.cc: New file.
32089         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32090         (Depends-on): Add ansi-c++-opt.
32091         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32092         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32093         gl_MODULE_INDICATOR.
32094
32095         Tests of module 'sys_socket' in C++ mode.
32096         * tests/test-sys_socket-c++.cc: New file.
32097         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32098         (Depends-on): Add ansi-c++-opt.
32099         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32101         gl_MODULE_INDICATOR.
32102
32103         Tests of module 'sys_select' in C++ mode.
32104         * tests/test-sys_select-c++.cc: New file.
32105         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32106         (Depends-on): Add ansi-c++-opt.
32107         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32108         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32109         gl_MODULE_INDICATOR.
32110
32111         Tests of module 'sys_ioctl' in C++ mode.
32112         * tests/test-sys_ioctl-c++.cc: New file.
32113         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32114         (Depends-on): Add ansi-c++-opt.
32115         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32117         gl_MODULE_INDICATOR.
32118
32119         Tests of module 'string' in C++ mode.
32120         * tests/test-string-c++.cc: New file.
32121         * modules/string-tests (Files): Add it and tests/signature.h.
32122         (Depends-on): Add ansi-c++-opt.
32123         (Makefile.am): Arrange to compile and run test-string-c++.
32124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32125         gl_MODULE_INDICATOR.
32126
32127         Tests of module 'stdlib' in C++ mode.
32128         * tests/test-stdlib-c++.cc: New file.
32129         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32130         (Depends-on): Add ansi-c++-opt.
32131         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32132         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32133         gl_MODULE_INDICATOR.
32134
32135         Tests of module 'stdio' in C++ mode.
32136         * tests/test-stdio-c++.cc: New file.
32137         * modules/stdio-tests (Files): Add it and tests/signature.h.
32138         (Depends-on): Add ansi-c++-opt.
32139         (Makefile.am): Arrange to compile and run test-stdio-c++.
32140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32141         gl_MODULE_INDICATOR.
32142
32143         Tests of module 'spawn' in C++ mode.
32144         * tests/test-spawn-c++.cc: New file.
32145         * modules/spawn-tests (Files): Add it and tests/signature.h.
32146         (Depends-on): Add ansi-c++-opt.
32147         (Makefile.am): Arrange to compile and run test-spawn-c++.
32148         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32149         gl_MODULE_INDICATOR.
32150
32151         Tests of module 'signal' in C++ mode.
32152         * tests/test-signal-c++.cc: New file.
32153         * modules/signal-tests (Files): Add it and tests/signature.h.
32154         (Depends-on): Add ansi-c++-opt.
32155         (Makefile.am): Arrange to compile and run test-signal-c++.
32156         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32157         gl_MODULE_INDICATOR.
32158
32159         Tests of module 'search' in C++ mode.
32160         * tests/test-search-c++.cc: New file.
32161         * modules/search-tests (Files): Add it and tests/signature.h.
32162         (Depends-on): Add ansi-c++-opt.
32163         (Makefile.am): Arrange to compile and run test-search-c++.
32164         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32165         gl_MODULE_INDICATOR.
32166
32167         Tests of module 'math' in C++ mode.
32168         * tests/test-math-c++.cc: New file.
32169         * modules/math-tests (Files): Add it and tests/signature.h.
32170         (Depends-on): Add ansi-c++-opt.
32171         (Makefile.am): Arrange to compile and run test-math-c++.
32172         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32173
32174         Tests of module 'locale' in C++ mode.
32175         * tests/test-locale-c++.cc: New file.
32176         * modules/locale-tests (Files): Add it and tests/signature.h.
32177         (Depends-on): Add ansi-c++-opt.
32178         (Makefile.am): Arrange to compile and run test-locale-c++.
32179         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32180         gl_MODULE_INDICATOR.
32181
32182         Tests of module 'langinfo' in C++ mode.
32183         * tests/test-langinfo-c++.cc: New file.
32184         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32185         (Depends-on): Add ansi-c++-opt.
32186         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32187         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32188         gl_MODULE_INDICATOR.
32189
32190         Tests of module 'iconv-h' in C++ mode.
32191         * tests/test-iconv-h-c++.cc: New file.
32192         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32193         (Depends-on): Add ansi-c++-opt.
32194         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32195
32196         Tests of module 'glob' in C++ mode.
32197         * tests/test-glob-c++.cc: New file.
32198         * modules/glob-tests (Files): Add it.
32199         (Depends-on): Add ansi-c++-opt.
32200         (Makefile.am): Arrange to compile and run test-glob-c++.
32201
32202         Tests of module 'fcntl-h' in C++ mode.
32203         * tests/test-fcntl-h-c++.cc: New file.
32204         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32205         (Depends-on): Add ansi-c++-opt.
32206         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32207         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32208         gl_MODULE_INDICATOR.
32209
32210         Tests of module 'dirent' in C++ mode.
32211         * tests/test-dirent-c++.cc: New file.
32212         * modules/dirent-tests (Files): Add it and tests/signature.h.
32213         (Depends-on): Add ansi-c++-opt.
32214         (Makefile.am): Arrange to compile and run test-dirent-c++.
32215         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32216         gl_MODULE_INDICATOR.
32217
32218         New module 'ansi-c++-opt'.
32219         * modules/ansi-c++-opt: New file.
32220         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32221
32222         Document C++ namespace mode.
32223         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32224
32225         wctype: Avoid #define replacements in C++ mode.
32226         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32227         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32228         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32229         In C++, define a namespaced alias symbol.
32230         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32231         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32232         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32233         rule.
32234
32235         wchar: Avoid #define replacements in C++ mode.
32236         * lib/wchar.in.h: Include c++defs.h.
32237         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32238         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32239         symbol.
32240         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32241         * modules/wchar (Depends-on): Add c++defs.
32242         (Makefile.am): Update wchar.h rule.
32243
32244         unistd: Avoid #define replacements in C++ mode.
32245         * lib/unistd.in.h: Include c++defs.h.
32246         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32247         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32248         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32249         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32250         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32251         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32252         symbol.
32253         (environ): Update.
32254         * modules/unistd (Depends-on): Add c++defs.
32255         (Makefile.am): Update unistd.h rule.
32256
32257         time: Avoid #define replacements in C++ mode.
32258         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32259         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32260         define a namespaced alias symbol.
32261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32262         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32263         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32264         * modules/time (Depends-on): Add c++defs, warn-on-use.
32265         (Makefile.am): Update time.h rule.
32266         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32267         * modules/nanosleep (configure.ac): Likewise.
32268         * modules/strptime (configure.ac): Likewise.
32269         * modules/timegm (configure.ac): Likewise.
32270
32271         sys_time: Avoid #define replacements in C++ mode.
32272         * lib/sys_time.in.h: Include c++defs.h.
32273         (gettimeofday): In C++, define a namespaced alias symbol.
32274         * modules/sys_time (Depends-on): Add c++defs.
32275         (Makefile.am): Update sys/time.h rule.
32276
32277         sys_stat: Avoid #define replacements in C++ mode.
32278         * lib/sys_stat.in.h: Include c++defs.h.
32279         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32280         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32281         namespaced alias symbol.
32282         In C++, define a namespaced alias symbol.
32283         * modules/sys_stat (Depends-on): Add c++defs.
32284         (Makefile.am): Update sys/stat.h rule.
32285
32286         sys_socket: Avoid #define replacements in C++ mode.
32287         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32288         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32289         definitions also when the system has a <sys/socket.h>.
32290         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32291         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32292         In C++, define a namespaced alias symbol.
32293         * modules/sys_socket (Depends-on): Add c++defs.
32294         (Makefile.am): Update sys/socket.h rule.
32295
32296         sys_select: Avoid #define replacements in C++ mode.
32297         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32298         definitions also when the system has a <sys/select.h>.
32299         (select): In C++, define a namespaced alias symbol.
32300         * modules/sys_select (Depends-on): Add c++defs.
32301         (Makefile.am): Update sys/select.h rule.
32302
32303         sys_ioctl: Avoid #define replacements in C++ mode.
32304         * lib/sys_ioctl.in.h: Include c++defs.h.
32305         (ioctl): In C++, define a namespaced alias symbol.
32306         * modules/sys_ioctl (Depends-on): Add c++defs.
32307         (Makefile.am): Update sys/ioctl.h rule.
32308
32309         string: Avoid #define replacements in C++ mode.
32310         * lib/string.in.h: Include c++defs.h.
32311         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32312         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32313         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32314         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32315         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32316         * modules/string (Depends-on): Add c++defs.
32317         (Makefile.am): Update string.h rule.
32318
32319         stdlib: Avoid #define replacements in C++ mode.
32320         * lib/stdlib.in.h: Include c++defs.h.
32321         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32322         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32323         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32324         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32325         symbol.
32326         * modules/stdlib (Depends-on): Add c++defs.
32327         (Makefile.am): Update stdlib.h rule.
32328
32329         stdio: Avoid #define replacements in C++ mode.
32330         * lib/stdio.in.h: Include c++defs.h.
32331         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32332         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32333         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32334         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32335         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32336         namespaced alias symbol.
32337         * modules/stdio (Depends-on): Add c++defs.
32338         (Makefile.am): Update stdio.h rule.
32339
32340         spawn: Avoid #define replacements in C++ mode.
32341         * lib/spawn.in.h: Include c++defs.h.
32342         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32343         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32344         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32345         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32346         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32347         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32348         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32349         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32350         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32351         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32352         In C++, define a namespaced alias symbol.
32353         * modules/spawn (Depends-on): Add c++defs.
32354         (Makefile.am): Update spawn.h rule.
32355
32356         signal: Avoid #define replacements in C++ mode.
32357         * lib/signal.in.h: Include c++defs.h.
32358         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32359         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32360         namespaced alias symbol.
32361         * modules/signal (Depends-on): Add c++defs.
32362         (Makefile.am): Update signal.h rule.
32363
32364         search: Avoid #define replacements in C++ mode.
32365         * lib/search.in.h: Include c++defs.h.
32366         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32367         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32368         symbol.
32369         * modules/search (Depends-on): Add c++defs.
32370         (Makefile.am): Update search.h rule.
32371
32372         math: Avoid #define replacements in C++ mode.
32373         * lib/math.in.h: Include c++defs.h.
32374         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32375         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32376         trunc, truncl): In C++, define a namespaced alias symbol.
32377         * modules/math (Depends-on): Add c++defs.
32378         (Makefile.am): Update math.h rule.
32379
32380         locale: Avoid #define replacements in C++ mode.
32381         * lib/locale.in.h: Include c++defs.h.
32382         (duplocale): In C++, define a namespaced alias symbol.
32383         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32385         * modules/locale (Depends-on): Add c++defs.
32386         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32387
32388         langinfo: Avoid #define replacements in C++ mode.
32389         * lib/langinfo.in.h: Include c++defs.h.
32390         (nl_langinfo): In C++, define a namespaced alias symbol.
32391         * modules/langinfo (Depends-on): Add c++defs.
32392         (Makefile.am): Update langinfo.h rule.
32393
32394         iconv-h: Avoid #define replacements in C++ mode.
32395         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32396         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32397         symbol.
32398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32399         whenever iconv is present.
32400         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32401         (Makefile.am): Update iconv.h rule.
32402
32403         glob: Avoid #define replacements in C++ mode.
32404         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32405         (_gl_glob_errfunc_fn): New type.
32406         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32407         symbol.
32408         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32409         (Makefile.am): Update glob.h rule.
32410
32411         fcntl-h: Avoid #define replacements in C++ mode.
32412         * lib/fcntl.in.h: Include c++defs.h.
32413         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32414         * modules/fcntl-h (Depends-on): Add c++defs.
32415         (Makefile.am): Update fcntl.h rule.
32416
32417         dirent: Avoid #define replacements in C++ mode.
32418         * lib/dirent.in.h: Include c++defs.h.
32419         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32420         namespaced alias symbol.
32421         (dirfd): Update declaration.
32422         * modules/dirent (Depends-on): Add c++defs.
32423         (Makefile.am): Update dirent.h rule.
32424
32425         ctype: Make it usable in C++ code.
32426         * lib/ctype.in.h: Include c++defs.h.
32427         (isblank): Declare as extern "C".
32428         * modules/ctype (Depends-on): Add c++defs.
32429         (Makefile.am): Update ctype.h rule.
32430
32431         New module 'c++defs'.
32432         * modules/c++defs: New file.
32433         * build-aux/c++defs.h: New file.
32434         Reported by John W. Eaton <jwe@gnu.org>.
32435
32436 2010-03-07  Bruno Haible  <bruno@clisp.org>
32437
32438         logb: Provide missing declaration for Cygwin.
32439         * lib/math.in.h (logb): New declaration.
32440         * m4/logb.m4: New file.
32441         * modules/logb (Files): Add m4/logb.m4.
32442         (Depends-on): Add math.
32443         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32444         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32446         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32447         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32448
32449 2010-03-07  Bruno Haible  <bruno@clisp.org>
32450
32451         Fix test-cond link error.
32452         * tests/test-cond.c: Include <stdio.h>.
32453
32454 2010-03-07  Bruno Haible  <bruno@clisp.org>
32455
32456         Fix test-dirent-safer link error.
32457         * modules/dirent-safer-tests (Makefile.am): Define
32458         test_dirent_safer_LDADD.
32459
32460 2010-03-07  Bruno Haible  <bruno@clisp.org>
32461
32462         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32463         among default module list.
32464
32465 2010-03-07  Bruno Haible  <bruno@clisp.org>
32466
32467         Fix link error on platforms with GNU libiconv.
32468         * modules/unistr/u8-strcoll-tests (Makefile): Define
32469         test_u8_strcoll_LDADD.
32470         * modules/unistr/u16-strcoll-tests (Makefile): Define
32471         test_u16_strcoll_LDADD.
32472         * modules/unistr/u32-strcoll-tests (Makefile): Define
32473         test_u32_strcoll_LDADD.
32474
32475 2010-03-07  Bruno Haible  <bruno@clisp.org>
32476
32477         Use POSIX declarations for socket functions.
32478         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32479         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32480         rpl_sendto): Change declaration to match POSIX.
32481         * lib/connect.c (rpl_connect): Likewise.
32482         * lib/accept.c (rpl_accept): Likewise.
32483         * lib/bind.c (rpl_bind): Likewise.
32484         * lib/getpeername.c (rpl_getpeername): Likewise.
32485         * lib/getsockname.c (rpl_getsockname): Likewise.
32486         * lib/recv.c (rpl_recv): Likewise.
32487         * lib/send.c (rpl_send): Likewise.
32488         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32489         * lib/sendto.c (rpl_sendto): Likewise.
32490
32491 2010-03-06  Bruno Haible  <bruno@clisp.org>
32492
32493         Clarify access, euidaccess, faccessat.
32494         * doc/posix-functions/faccessat.texi: Mention security problem under
32495         "Other problems", not "Portability problems".
32496         * doc/posix-functions/access.texi: Likewise. Mention a related security
32497         problem.
32498         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32499         * lib/euidaccess.c: Add comments about platforms.
32500         * lib/unistd.in.h (access, euidaccess): Add warnings.
32501
32502 2010-03-07  Bruno Haible  <bruno@clisp.org>
32503
32504         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32505         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32506         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32507         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32508         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32509         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32510         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32511         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32512         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32514         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32515         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32516         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32517         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32518         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32519         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32520         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32521         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32522         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32523         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32524         Likewise.
32525         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32526         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32527         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32528         Likewise.
32529         * tests/test-spawn.c (main): Make it work when
32530         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32531
32532 2010-03-07  Bruno Haible  <bruno@clisp.org>
32533
32534         Fix incorrect Makefile.am generation in German locale.
32535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32536         Execute sed command with character range in C locale.
32537
32538 2010-03-06  Bruno Haible  <bruno@clisp.org>
32539
32540         Tests for module 'iconv-h'.
32541         * modules/iconv-h-tests: New file.
32542         * tests/test-iconv-h.c: New file.
32543
32544         New module 'iconv-h'.
32545         * modules/iconv-h: New file.
32546         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32547         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32548         (configure.ac): Remove gl_ICONV_H.
32549         (Makefile.am): Remove rule for iconv.h.
32550
32551 2010-03-06  Bruno Haible  <bruno@clisp.org>
32552
32553         More consistent naming of *.m4 files.
32554         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32555         * modules/wctype (Files): Update.
32556
32557         More consistent naming of *.m4 files.
32558         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32559         * modules/wchar (Files): Update.
32560
32561 2010-03-06  Jim Meyering  <meyering@redhat.com>
32562
32563         euidaccess: relax license to LGPLv2+
32564         * modules/euidaccess (License): Relax to LGPLv2+.
32565
32566 2010-03-06  Bruno Haible  <bruno@clisp.org>
32567
32568         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32569         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32570         (Makefile.am): Augment lib_SOURCES instead.
32571
32572 2010-03-04  Jim Meyering  <meyering@redhat.com>
32573
32574         utime: remove obsolete module
32575         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32576         unnecessary for years, and has been marked as obsolete for 10 months.
32577         * modules/utime: Remove file.
32578         * lib/utime.c: Remove file.
32579         * m4/utime.m4: Remove file.
32580         * m4/utimes-null.m4: Remove file.
32581         * doc/posix-functions/utime.texi (utime): Remove reference to
32582         the module.  Move the sole "fixed by gnulib" item into the
32583         "problems not fixed by Gnulib" list.
32584         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32585
32586 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32587
32588         * modules/exit (License): Relax license to LGPLv2+.
32589         (Status): Mark as obsolete.
32590         * NEWS: Mention deprecated 'exit' module.
32591         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32592         of now obsolete 'exit'.
32593
32594 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32595
32596         fts-lgpl: remove unused module
32597         * modules/fts-lgpl: Remove.
32598         * MODULES.html.sh (func_all_modules): Adjust.
32599         * check-module (find_included_lib_files): Adjust.
32600         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32601
32602 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32603
32604         copy-acl: enhance Solaris ACL error handling
32605         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32606         * lib/set-mode-acl.c (qset_acl): Likewise.
32607
32608 2010-03-02  Bruno Haible  <bruno@clisp.org>
32609
32610         spawn: Don't override the system defined values on FreeBSD 8.
32611         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32612         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32613         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32614         if HAVE_POSIX_SPAWN is 1.
32615         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32616
32617 2010-03-01  Bruno Haible  <bruno@clisp.org>
32618
32619         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32620         regarding Automake.
32621
32622 2010-02-25  Bruno Haible  <bruno@clisp.org>
32623
32624         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32625         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32626         setting, not afterwards.
32627         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32628
32629 2010-02-24  Eric Blake  <eblake@redhat.com>
32630
32631         bootstrap, git-version-gen: use timestamp
32632         * build-aux/git-version-gen (scriptversion): Force UTC.
32633         * build-aux/bootstrap (scriptversion): New variable.
32634
32635         bootstrap: allow older git
32636         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32637         older than 1.6.4.  Requested by the libvirt project.
32638
32639 2010-02-23  Eric Blake  <eblake@redhat.com>
32640
32641         warn-on-use: work with old autoconf
32642         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32643         AS_VAR semantics of autoconf 2.60.
32644         Reported by Bruno Haible.
32645
32646         bootstrap: improve some comments
32647         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32648         clarification comments.
32649
32650         gettimeofday: provide correct function
32651         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32652         when replacement is declared, otherwise provide gettimeofday.
32653         Reported by Michael Goffioul.
32654
32655 2010-02-23  Jim Meyering  <meyering@redhat.com>
32656
32657         lib-ignore: relax license to "unlimited", not LGPLv2+
32658         * modules/lib-ignore (License): Relax to "unlimited".
32659
32660 2010-02-23  Jim Meyering  <meyering@redhat.com>
32661
32662         lib-ignore: relax license to LGPLv2+
32663         * modules/lib-ignore (License): Relax to LGPLv2+.
32664
32665 2010-02-22  Eric Blake  <eblake@redhat.com>
32666
32667         lseek: avoid bash 3.2 broken pipe bug
32668         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32669         warning from bash 3.2.
32670         Reported by Ben Pfaff, with analysis from Bruno Haible.
32671
32672         bootstrap: support non-FSF copyright holder
32673         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32674         bootstrap.conf override of COPYRIGHT_HOLDER.
32675         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32676
32677         bootstrap: interoperate with gettext 0.14.1
32678         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32679
32680         bootstrap: allow for alternate submodule location
32681         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32682         hardcoding submodule location.
32683         (gnulib_mk): Allow direct use of Makefile.am.
32684
32685         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32686         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32687         rather than reconfiguring where the submodule points.
32688
32689         gettimeofday: restore support for platforms that lack function
32690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32691         replacement if function is missing.
32692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32693         * modules/sys_time (Makefile.am): Substitute it.
32694         * lib/sys_time.in.h (gettimeofday): Check it.
32695         Reported by Michael Goffioul.
32696
32697 2010-02-21  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/stdio.in.h (obstack_printf): Fix typo.
32700
32701 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32702
32703         vc-list-files: use bzr ls's -R option
32704         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32705         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32706
32707 2010-02-21  Jim Meyering  <meyering@redhat.com>
32708
32709         init.sh: fix EXEEXT shims to work also for names like test-prog
32710         * tests/init.sh: Re-exec a better shell, when needed.
32711         If the current shell lacks support for posix $(...), an init.sh-using
32712         test will now try to find a shell that supports that.  If EXEEXT is
32713         nonempty, we also require support for hyphen-in-alias-name and shell
32714         substitutions like ${var#glob}.  Failure to find such a shell results
32715         in a skipped test.
32716
32717 2010-02-21  Bruno Haible  <bruno@clisp.org>
32718
32719         Really work around around "broken pipe" error message from bash 3.2.
32720         * gnulib-tool (func_reset_sigpipe): Remove function.
32721         (echo): In bash 3.2, define to a function that uses printf.
32722         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32723
32724 2010-02-20  Bruno Haible  <bruno@clisp.org>
32725
32726         Restore support for automake 1.9.6 with autoconf 2.61.
32727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32728         Reported by James Youngman <jay@gnu.org>.
32729
32730 2010-02-20  Bruno Haible  <bruno@clisp.org>
32731
32732         Improve *printf warning condition.
32733         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32734         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32735         and the function is overridden due to SIGPIPE emulation.
32736
32737 2010-02-20  Bruno Haible  <bruno@clisp.org>
32738
32739         * lib/stdio.in.h: Tweak comments.
32740
32741 2010-02-19  Bruno Haible  <bruno@clisp.org>
32742
32743         Make it easier to find modules. New gnulib-tool option '--find'.
32744         * gnulib-tool: New option --find.
32745         (func_usage): Document it.
32746         (func_sanitize_modulelist): New function, extracted from
32747         func_all_modules.
32748         (func_all_modules): Invoke it.
32749         * doc/gnulib-tool.texi (Which modules?): New node.
32750
32751 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32752
32753         * lib/sys_select.in.h: Provide select replacement even if
32754         sys/select.h exists on a system, for Interix.
32755
32756 2010-02-18  Jim Meyering  <meyering@redhat.com>
32757
32758         init.sh: don't use $(...) just yet
32759         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32760         to accommodate e.g., Solaris' /bin/sh.
32761
32762 2010-02-17  Bruno Haible  <bruno@clisp.org>
32763
32764         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32765         Reported by Ludovic Courtès <ludo@gnu.org>.
32766
32767 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32768
32769         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32770         linking with -lintl.
32771
32772 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32773
32774         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32775         if not provided by the system's netdb.h.  Reported by
32776         ludo@gnu.org (Ludovic Courtès).
32777
32778 2010-02-15  Jim Meyering  <meyering@redhat.com>
32779
32780         init.sh: improve portability and efficiency
32781         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32782         "dummy" in a for loop.
32783         Use '!', not '^' to select the complement of a character set used
32784         in a "case" statement.
32785         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32786         Suggestions from Eric Blake.
32787
32788         init.sh: automatically accommodate programs with the .exe suffix
32789         Automatically arrange for an invocation of "prog" to execute the
32790         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32791         may use the simpler "prog", yet still work when built on a system
32792         that requires specifying the added suffix.
32793         Do this by constructing a function named "prog" that invokes
32794         "prog.exe" for each .exe file in selected directories.
32795         * tests/init.sh (find_exe_basenames_): New function.
32796         (create_exe_shim_functions_): New function.
32797         (path_prepend_): Use it.
32798
32799         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32800         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32801         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32802
32803 2010-02-14  Jim Meyering  <meyering@redhat.com>
32804
32805         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32806         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32807         (sc_prohibit_hash_pjw_without_use): New rule.
32808
32809         maint.mk: allow the default upload destination dir to be overridden
32810         * top/maint.mk (upload_dest_dir_): Define with a default that
32811         preserves the status quo.
32812         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32813         Reported by Peter Simons.
32814
32815         maint.mk: prohibit inclusion of "hash.h" without_use
32816         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32817
32818 2010-02-10  Jim Meyering  <meyering@redhat.com>
32819
32820         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32821         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32822
32823 2010-02-09  Eric Blake  <ebb9@byu.net>
32824         and Bruno Haible  <bruno@clisp.org>
32825
32826         obstack-printf-posix: ensure declaration
32827         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32828         extracted from gl_FUNC_OBSTACK_PRINTF.
32829         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32831         Likewise.
32832         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32833         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32834         0.
32835
32836 2010-02-08  Bruno Haible  <bruno@clisp.org>
32837
32838         gnulib-tool: Fix typo in 2010-02-07 commit.
32839         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32840         Reported by Eric Blake.
32841
32842 2010-02-07  Bruno Haible  <bruno@clisp.org>
32843
32844         gnulib-tool: Fix up caching patches.
32845         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32846         option --no-cache. Use associative arrays when supported by the shell.
32847         (sed_comments): New variable.
32848         (modcache): Renamed from do_cache.
32849         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32850         abbreviate unnecessarily.
32851         (have_associative): New variable.
32852         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32853         way also for ksh and zsh.
32854         (func_init_sed_convert_to_cache_statements): New function, extracted
32855         from func_cache_lookup_module. Add support for associative arrays.
32856         Don't set the c_MODULE_cached variable here. Ignore all lines before
32857         the first field header. Remove only the final newline, not all trailing
32858         newlines. Support empty fields correctly. Limit the use of 'eval' to
32859         assignments.
32860         (func_get_description, func_get_status, func_get_notice,
32861         func_get_applicability, func_get_filelist, func_get_dependencies,
32862         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32863         func_get_automake_snippet, func_get_include_directive,
32864         func_get_link_directive, func_get_license, func_get_maintainer):
32865         Update documentation. List the unoptimized code first. Add support for
32866         associative arrays. Limit the use of 'eval' to assignments.
32867         (func_get_applicability): Undo stylistic pessimisations.
32868         (func_get_automake_snippet, func_get_include_directive): Reduce code
32869         duplication.
32870         (func_modules_transitive_closure, func_modules_add_dummy,
32871         func_modules_notice, func_modules_to_filelist, func_add_file,
32872         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32873         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32874         func_create_testdir, func_create_megatestdir): Update documentation.
32875
32876 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32877
32878         * gnulib-tool (func_cache_lookup_module): Store the module name
32879         belonging to the cache variable; error out if two different
32880         module names map to the same cache variable name.
32881
32882 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32883
32884         gnulib-tool: Make caching optional.
32885         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32886         Update matching short versions of --no-changelog.
32887         (func_usage): Update.
32888         (sed_extract_cache_prog): Renamed from ...
32889         (sed_extract_prog): ... this; revert to old extraction script.
32890         (func_get_description, func_get_status)
32891         (func_get_notice, func_get_applicability, func_get_filelist)
32892         (func_get_dependencies, func_get_autoconf_early_snippet)
32893         (func_get_autoconf_snippet, func_get_automake_snippet)
32894         (func_get_include_directive, func_get_link_directive)
32895         (func_get_license, func_get_maintainer): If $do_cache is false,
32896         use old, non-caching extraction scripts.
32897         Suggestion by Bruno Haible.
32898
32899 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32900
32901         gnulib-tool: cache module metainformation.
32902         * gnulib-tool (sed_extract_prog): Match newline before each
32903         header, and rewrite header to a shell variable suffix.
32904         (func_cache_var, func_cache_lookup_module): New functions,
32905         to turn a module name into a cache variable prefix, and to
32906         look up and cache module metainformation.
32907         (func_get_description, func_get_status)
32908         (func_get_notice, func_get_applicability, func_get_filelist)
32909         (func_get_dependencies, func_get_autoconf_early_snippet)
32910         (func_get_autoconf_snippet, func_get_automake_snippet)
32911         (func_get_include_directive, func_get_link_directive)
32912         (func_get_license, func_get_maintainer): Use
32913         func_cache_lookup_module.
32914
32915 2010-02-07  Bruno Haible  <bruno@clisp.org>
32916
32917         fnctl: Fix missing dependency.
32918         * modules/fcntl (Depends-on): Add getdtablesize.
32919         Reported by John W. Eaton <jwe@gnu.org>.
32920
32921 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32922
32923         Argp: fix recognition of short alias options.
32924
32925         * lib/argp-parse.c (convert_options): Fix improper use of
32926         `|' between character values.
32927         * tests/test-argp.c (group1_option): New alias option
32928         --read (-r).
32929         (group1_parser): Special handling for 'r'.
32930         (test15): New test case.
32931         (test_fun): Add test15.
32932         * tests/test-argp-2.sh: Update expected --help and --usage
32933         outputs.
32934
32935 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32936
32937         * tests/test-argp.c: Fix indentation.
32938
32939 2010-02-04  Eric Blake  <ebb9@byu.net>
32940
32941         gettimeofday: expose type of second argument
32942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32943         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32944         * tests/test-gettimeofday.c: Use it to silence warning.
32945         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32946         the issue.
32947
32948 2010-02-03  Jim Meyering  <meyering@redhat.com>
32949
32950         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32951         * lib/regcomp.c (TYPE_SIGNED): Define.
32952         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32953
32954         regcomp.c: avoid a new -Wshadow warning
32955         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32956
32957 2010-02-01  Jim Meyering  <meyering@redhat.com>
32958
32959         removing useless parentheses in cpp #define directives
32960         For motivation, see commit c0221df4, "define STREQ(a,b)
32961         consistently, removing useless parentheses"
32962         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32963         * lib/mountlist.c (MNT_IGNORE): Likewise.
32964         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32965
32966 2010-02-01  Eric Blake  <ebb9@byu.net>
32967
32968         sys_time: use link-warning
32969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32970         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32971         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32972         * modules/sys_time (Depends-on): Add warn-on-use.
32973         (Makefile.am): Always build replacement.
32974         (configure.ac): Update substitutions.
32975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32976         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32977         bother with SYS_TIME_H.
32978         * modules/gettimeofday (configure.ac): Declare indicator.
32979         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32980         in use.
32981
32982         closein-tests: silence compiler warning
32983         * tests/test-closein.c (main): Ignore fread result.
32984         * modules/closein-tests (Depends-on): Add ignore-value.
32985
32986         tests: silence warning about system return
32987         * tests/test-areadlink-with-size.c (main): Ignore system result.
32988         * tests/test-areadlink.c (main): Likewise.
32989         * tests/test-areadlinkat-with-size.c (main): Likewise.
32990         * tests/test-areadlinkat.c (main): Likewise.
32991         * tests/test-canonicalize-lgpl.c (main): Likewise.
32992         * tests/test-canonicalize.c (main): Likewise.
32993         * tests/test-chown.c (main): Likewise.
32994         * tests/test-fchownat.c (main): Likewise.
32995         * tests/test-fdutimensat.c (main): Likewise.
32996         * tests/test-fstatat.c (main): Likewise.
32997         * tests/test-futimens.c (main): Likewise.
32998         * tests/test-lchown.c (main): Likewise.
32999         * tests/test-link.c (main): Likewise.
33000         * tests/test-linkat.c (main): Likewise.
33001         * tests/test-lstat.c (main): Likewise.
33002         * tests/test-mkdir.c (main): Likewise.
33003         * tests/test-mkdirat.c (main): Likewise.
33004         * tests/test-mkfifo.c (main): Likewise.
33005         * tests/test-mkfifoat.c (main): Likewise.
33006         * tests/test-mknod.c (main): Likewise.
33007         * tests/test-readlink.c (main): Likewise.
33008         * tests/test-remove.c (main): Likewise.
33009         * tests/test-rename.c (main): Likewise.
33010         * tests/test-renameat.c (main): Likewise.
33011         * tests/test-rmdir.c (main): Likewise.
33012         * tests/test-symlink.c (main): Likewise.
33013         * tests/test-symlinkat.c (main): Likewise.
33014         * tests/test-unlink.c (main): Likewise.
33015         * tests/test-unlinkat.c (main): Likewise.
33016         * tests/test-utimens.c (main): Likewise.
33017         * tests/test-utimensat.c (main): Likewise.
33018         * modules/areadlink-tests (Depends-on): Add ignore-value.
33019         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33020         * modules/areadlinkat-tests (Depends-on): Likewise.
33021         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33022         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33023         * modules/canonicalize-tests (Depends-on): Likewise.
33024         * modules/chown-tests (Depends-on): Likewise.
33025         * modules/fdutimensat-tests (Depends-on): Likewise.
33026         * modules/futimens-tests (Depends-on): Likewise.
33027         * modules/lchown-tests (Depends-on): Likewise.
33028         * modules/link-tests (Depends-on): Likewise.
33029         * modules/linkat-tests (Depends-on): Likewise.
33030         * modules/lstat-tests (Depends-on): Likewise.
33031         * modules/mkdir-tests (Depends-on): Likewise.
33032         * modules/mkfifo-tests (Depends-on): Likewise.
33033         * modules/mkfifoat-tests (Depends-on): Likewise.
33034         * modules/mknod-tests (Depends-on): Likewise.
33035         * modules/openat-tests (Depends-on): Likewise.
33036         * modules/readlink-tests (Depends-on): Likewise.
33037         * modules/remove-tests (Depends-on): Likewise.
33038         * modules/rename-tests (Depends-on): Likewise.
33039         * modules/renameat-tests (Depends-on): Likewise.
33040         * modules/rmdir-tests (Depends-on): Likewise.
33041         * modules/symlink-tests (Depends-on): Likewise.
33042         * modules/symlinkat-tests (Depends-on): Likewise.
33043         * modules/unlink-tests (Depends-on): Likewise.
33044         * modules/utimens-tests (Depends-on): Likewise.
33045         * modules/utimensat-tests (Depends-on): Likewise.
33046
33047 2010-01-31  Bruno Haible  <bruno@clisp.org>
33048
33049         Perform the same test for many <math.h> functions.
33050         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33051         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33052         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33053         of gl_MATHFUNC.
33054         * modules/acos (configure.ac): Likewise.
33055         * modules/asin (configure.ac): Likewise.
33056         * modules/atan (configure.ac): Likewise.
33057         * modules/atan2 (configure.ac): Likewise.
33058         * modules/cbrt (configure.ac): Likewise.
33059         * modules/copysign (configure.ac): Likewise.
33060         * modules/cos (configure.ac): Likewise.
33061         * modules/cosh (configure.ac): Likewise.
33062         * modules/erf (configure.ac): Likewise.
33063         * modules/erfc (configure.ac): Likewise.
33064         * modules/exp (configure.ac): Likewise.
33065         * modules/fmod (configure.ac): Likewise.
33066         * modules/hypot (configure.ac): Likewise.
33067         * modules/j0 (configure.ac): Likewise.
33068         * modules/j1 (configure.ac): Likewise.
33069         * modules/jn (configure.ac): Likewise.
33070         * modules/lgamma (configure.ac): Likewise.
33071         * modules/log (configure.ac): Likewise.
33072         * modules/log10 (configure.ac): Likewise.
33073         * modules/log1p (configure.ac): Likewise.
33074         * modules/pow (configure.ac): Likewise.
33075         * modules/remainder (configure.ac): Likewise.
33076         * modules/sin (configure.ac): Likewise.
33077         * modules/sinh (configure.ac): Likewise.
33078         * modules/tan (configure.ac): Likewise.
33079         * modules/tanh (configure.ac): Likewise.
33080         * modules/y0 (configure.ac): Likewise.
33081         * modules/y1 (configure.ac): Likewise.
33082         * modules/yn (configure.ac): Likewise.
33083         Suggested by Paolo Bonzini.
33084
33085 2010-01-31  Bruno Haible  <bruno@clisp.org>
33086
33087         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33088
33089 2010-01-31  Bruno Haible  <bruno@clisp.org>
33090
33091         Work around getdelim() bug on FreeBSD 8.0.
33092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33093         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33094         not work.
33095         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33096         is 1.
33097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33098         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33099         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33100         a non-zero size.
33101         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33102
33103 2010-01-31  Bruno Haible  <bruno@clisp.org>
33104
33105         Work around getline() bug on FreeBSD 8.0.
33106         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33107         and a non-zero size.
33108         * tests/test-getline.c (main): Likewise.
33109         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33110         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33111
33112 2010-01-28  Eric Blake  <ebb9@byu.net>
33113
33114         regex: fix build failure
33115         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33116         platforms.
33117
33118 2010-01-28  Jim Meyering  <meyering@redhat.com>
33119
33120         regex: do not ignore memory allocation failure
33121         * lib/regex_internal.c (create_cd_newstate): Detect
33122         re_node_set_init_copy failure.   Extracted from glibc commit
33123         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33124
33125         regex: sync more white-space changes from libc
33126         * lib/regex_internal.c: White-space only changes.
33127         * lib/regexec.c: Likewise.
33128
33129         regex: add many uses of __attribute_warn_unused_result__
33130         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33131         * lib/regexec.c: Likewise.
33132         Extracted from a messy glibc commit.
33133
33134         regcomp.c: spelling and merge-artifact from glibc
33135         * lib/regcomp.c: Merge remainder of glibc's
33136         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33137
33138         regcomp.c: sync white-space changes from glibc
33139         * lib/regcomp.c: Merge to accommodate white space
33140         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33141
33142         regcomp.c: do not ignore internal return values
33143         * lib/regcomp.c: Do not ignore internal return values.
33144         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33145         but without its white-space changes and spelling fixes.
33146
33147         regex_internal.h: define __attribute_warn_unused_result__
33148         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33149
33150         maint: add a syntax-check rule to check for vulnerable Makefile.in
33151         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33152
33153 2010-01-27  Jim Meyering  <meyering@redhat.com>
33154
33155         ncftpput-ftp: clean up spaces
33156         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33157         Remove trailing blanks.
33158
33159 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33160
33161         * build-aux/git-version-gen: Fix copyright statement.
33162         * build-aux/gnupload: Likewise.
33163         * tests/test-arcfour.c: Likewise.
33164         * tests/test-arctwo.c: Likewise.
33165         * tests/test-count-one-bits.c: Likewise.
33166         * tests/test-crc.c: Likewise.
33167         * tests/test-des.c: Likewise.
33168         * tests/test-gc-arcfour.c: Likewise.
33169         * tests/test-gc-arctwo.c: Likewise.
33170         * tests/test-gc-des.c: Likewise.
33171         * tests/test-gc-hmac-md5.c: Likewise.
33172         * tests/test-gc-hmac-sha1.c: Likewise.
33173         * tests/test-gc-md2.c: Likewise.
33174         * tests/test-gc-md4.c: Likewise.
33175         * tests/test-gc-md5.c: Likewise.
33176         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33177         * tests/test-gc-rijndael.c: Likewise.
33178         * tests/test-gc-sha1.c: Likewise.
33179         * tests/test-gc.c: Likewise.
33180         * tests/test-gethostname.c: Likewise.
33181         * tests/test-gettimeofday.c: Likewise.
33182         * tests/test-hash.c: Likewise.
33183         * tests/test-hmac-md5.c: Likewise.
33184         * tests/test-hmac-sha1.c: Likewise.
33185         * tests/test-md2.c: Likewise.
33186         * tests/test-md4.c: Likewise.
33187         * tests/test-md5.c: Likewise.
33188         * tests/test-memchr.c: Likewise.
33189         * tests/test-memchr2.c: Likewise.
33190         * tests/test-memcmp.c: Likewise.
33191         * tests/test-memmem.c: Likewise.
33192         * tests/test-memrchr.c: Likewise.
33193         * tests/test-rawmemchr.c: Likewise.
33194         * tests/test-read-file.c: Likewise.
33195         * tests/test-rijndael.c: Likewise.
33196         * tests/test-sockets.c: Likewise.
33197         * tests/test-strchrnul.c: Likewise.
33198         * tests/test-strstr.c: Likewise.
33199         * tests/test-strtod.c: Likewise.
33200         * build-aux/ncftpput-ftp: Likewise.
33201
33202 2010-01-26  Eric Blake  <ebb9@byu.net>
33203
33204         ignore-value: update recommended header name
33205         * modules/ignore-value (Include): Only use <> for headers that
33206         exist in glibc.
33207
33208 2010-01-26  Jim Meyering  <meyering@redhat.com>
33209
33210         test-userspec.c: avoid compiler warnings
33211         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33212         and "initialization discards qualifiers..." warnings.
33213         Put the first "uid" in its own scope, and make char* members "const".
33214
33215 2010-01-25  Bruno Haible  <bruno@clisp.org>
33216
33217         gnulib-tool: Make warning diagnostics consistent.
33218         * gnulib-tool (func_warning): New function.
33219         Use it everywhere where gnulib-tool produces output to stderr and it is
33220         not a fatal error.
33221
33222 2010-01-25  Bruno Haible  <bruno@clisp.org>
33223
33224         Fix test dependencies.
33225         * modules/xstrtol-tests (Depends-on): Add inttypes.
33226         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33227
33228 2010-01-25 Pádraig Brady <P@draigBrady.com>
33229
33230         syntax-check: detect incorrect boolean macro values in config.h
33231         * modules/maintainer-makefile (configure.ac): Parameterize the location
33232         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33233         The logic is from Eric Blake and the location indicated by Jim Meyering.
33234         Note the more natural CONFIG_HEADER name is prohibited by automake
33235         for backwards compatibility reasons.
33236         * top/maint.mk (sc_Wundef_boolean): New rule.
33237
33238 2010-01-25  Jim Meyering  <meyering@redhat.com>
33239
33240         bootstrap: detect MacOS 10.6's shasum, too
33241         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33242         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33243
33244 2010-01-23  Jim Meyering  <meyering@redhat.com>
33245
33246         xstrtoll: new module
33247         * modules/xstrtoll: New file.
33248         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33249         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33250         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33251         ./configure fails if you use this module and lack "long long".
33252         * modules/xstrtoll-tests: New module.
33253         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33254         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33255         new init.sh-based test framework.
33256
33257 2010-01-24  Bruno Haible  <bruno@clisp.org>
33258
33259         Tests for module 'yn'.
33260         * modules/yn-tests: New file.
33261         * tests/test-yn.c: New file.
33262
33263         Tests for module 'y1'.
33264         * modules/y1-tests: New file.
33265         * tests/test-y1.c: New file.
33266
33267         Tests for module 'y0'.
33268         * modules/y0-tests: New file.
33269         * tests/test-y0.c: New file.
33270
33271         Tests for module 'tanh'.
33272         * modules/tanh-tests: New file.
33273         * tests/test-tanh.c: New file.
33274
33275         Tests for module 'tan'.
33276         * modules/tan-tests: New file.
33277         * tests/test-tan.c: New file.
33278
33279         Tests for module 'sqrt'.
33280         * modules/sqrt-tests: New file.
33281         * tests/test-sqrt.c: New file.
33282
33283         Tests for module 'sinh'.
33284         * modules/sinh-tests: New file.
33285         * tests/test-sinh.c: New file.
33286
33287         Tests for module 'sin'.
33288         * modules/sin-tests: New file.
33289         * tests/test-sin.c: New file.
33290
33291         Tests for module 'rint'.
33292         * modules/rint-tests: New file.
33293         * tests/test-rint.c: New file.
33294
33295         Tests for module 'remainder'.
33296         * modules/remainder-tests: New file.
33297         * tests/test-remainder.c: New file.
33298
33299         Tests for module 'pow'.
33300         * modules/pow-tests: New file.
33301         * tests/test-pow.c: New file.
33302
33303         Tests for module 'nextafter'.
33304         * modules/nextafter-tests: New file.
33305         * tests/test-nextafter.c: New file.
33306
33307         Tests for module 'modf'.
33308         * modules/modf-tests: New file.
33309         * tests/test-modf.c: New file.
33310
33311         Tests for module 'logb'.
33312         * modules/logb-tests: New file.
33313         * tests/test-logb.c: New file.
33314
33315         Tests for module 'log1p'.
33316         * modules/log1p-tests: New file.
33317         * tests/test-log1p.c: New file.
33318
33319         Tests for module 'log10'.
33320         * modules/log10-tests: New file.
33321         * tests/test-log10.c: New file.
33322
33323         Tests for module 'log'.
33324         * modules/log-tests: New file.
33325         * tests/test-log.c: New file.
33326
33327         Tests for module 'lgamma'.
33328         * modules/lgamma-tests: New file.
33329         * tests/test-lgamma.c: New file.
33330
33331         Tests for module 'ldexp'.
33332         * modules/ldexp-tests: New file.
33333         * tests/test-ldexp.c: New file.
33334
33335         Tests for module 'jn'.
33336         * modules/jn-tests: New file.
33337         * tests/test-jn.c: New file.
33338
33339         Tests for module 'j1'.
33340         * modules/j1-tests: New file.
33341         * tests/test-j1.c: New file.
33342
33343         Tests for module 'j0'.
33344         * modules/j0-tests: New file.
33345         * tests/test-j0.c: New file.
33346
33347         Tests for module 'hypot'.
33348         * modules/hypot-tests: New file.
33349         * tests/test-hypot.c: New file.
33350
33351         Tests for module 'fmod'.
33352         * modules/fmod-tests: New file.
33353         * tests/test-fmod.c: New file.
33354
33355         Tests for module 'fabs'.
33356         * modules/fabs-tests: New file.
33357         * tests/test-fabs.c: New file.
33358
33359         Tests for module 'exp'.
33360         * modules/exp-tests: New file.
33361         * tests/test-exp.c: New file.
33362
33363         Tests for module 'erfc'.
33364         * modules/erfc-tests: New file.
33365         * tests/test-erfc.c: New file.
33366
33367         Tests for module 'erf'.
33368         * modules/erf-tests: New file.
33369         * tests/test-erf.c: New file.
33370
33371         Tests for module 'cosh'.
33372         * modules/cosh-tests: New file.
33373         * tests/test-cosh.c: New file.
33374
33375         Tests for module 'cos'.
33376         * modules/cos-tests: New file.
33377         * tests/test-cos.c: New file.
33378
33379         Tests for module 'copysign'.
33380         * modules/copysign-tests: New file.
33381         * tests/test-copysign.c: New file.
33382
33383         Tests for module 'cbrt'.
33384         * modules/cbrt-tests: New file.
33385         * tests/test-cbrt.c: New file.
33386
33387         Tests for module 'atan2'.
33388         * modules/atan2-tests: New file.
33389         * tests/test-atan2.c: New file.
33390
33391         Tests for module 'atan'.
33392         * modules/atan-tests: New file.
33393         * tests/test-atan.c: New file.
33394
33395         Tests for module 'asin'.
33396         * modules/asin-tests: New file.
33397         * tests/test-asin.c: New file.
33398
33399         Tests for module 'acos'.
33400         * modules/acos-tests: New file.
33401         * tests/test-acos.c: New file.
33402
33403 2010-01-24  Bruno Haible  <bruno@clisp.org>
33404
33405         Fix tests for common <math.h> functions.
33406         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33407         code snippet that references the function pointer, rather than merely
33408         calling the function. Substitute the FUNC_LIBM variable.
33409         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33410         * modules/acos (configure.ac): Likewise.
33411         * modules/asin (configure.ac): Likewise.
33412         * modules/atan (configure.ac): Likewise.
33413         * modules/atan2 (configure.ac): Likewise.
33414         * modules/cbrt (configure.ac): Likewise.
33415         * modules/copysign (configure.ac): Likewise.
33416         * modules/cos (configure.ac): Likewise.
33417         * modules/cosh (configure.ac): Likewise.
33418         * modules/erf (configure.ac): Likewise.
33419         * modules/erfc (configure.ac): Likewise.
33420         * modules/exp (configure.ac): Likewise.
33421         * modules/fabs (configure.ac): Likewise.
33422         * modules/fmod (configure.ac): Likewise.
33423         * modules/hypot (configure.ac): Likewise.
33424         * modules/j0 (configure.ac): Likewise.
33425         * modules/j1 (configure.ac): Likewise.
33426         * modules/jn (configure.ac): Likewise.
33427         * modules/ldexp (configure.ac): Likewise.
33428         * modules/lgamma (configure.ac): Likewise.
33429         * modules/log (configure.ac): Likewise.
33430         * modules/log10 (configure.ac): Likewise.
33431         * modules/log1p (configure.ac): Likewise.
33432         * modules/logb (configure.ac): Likewise.
33433         * modules/modf (configure.ac): Likewise.
33434         * modules/nextafter (configure.ac): Likewise.
33435         * modules/pow (configure.ac): Likewise.
33436         * modules/remainder (configure.ac): Likewise.
33437         * modules/rint (configure.ac): Likewise.
33438         * modules/sin (configure.ac): Likewise.
33439         * modules/sinh (configure.ac): Likewise.
33440         * modules/tan (configure.ac): Likewise.
33441         * modules/tanh (configure.ac): Likewise.
33442         * modules/y0 (configure.ac): Likewise.
33443         * modules/y1 (configure.ac): Likewise.
33444         * modules/yn (configure.ac): Likewise.
33445
33446 2010-01-24  Bruno Haible  <bruno@clisp.org>
33447
33448         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33449         * tests/test-acosl.c (x): New variable.
33450         (main): Store argument in x and fetch it from x.
33451         * tests/test-asinl.c (x): New variable.
33452         (main): Store argument in x and fetch it from x.
33453         * tests/test-atanl.c (x): New variable.
33454         (main): Store argument in x and fetch it from x.
33455         * tests/test-cosl.c (x): New variable.
33456         (main): Store argument in x and fetch it from x.
33457         * tests/test-expl.c (x): New variable.
33458         (main): Store argument in x and fetch it from x.
33459         * tests/test-logl.c (x): New variable.
33460         (main): Store argument in x and fetch it from x.
33461         * tests/test-sinl.c (x): New variable.
33462         (main): Store argument in x and fetch it from x.
33463         * tests/test-sqrtl.c (x): New variable.
33464         (main): Store argument in x and fetch it from x.
33465         * tests/test-tanl.c (x): New variable.
33466         (main): Store argument in x and fetch it from x.
33467
33468 2010-01-24  Bruno Haible  <bruno@clisp.org>
33469
33470         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33471         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33472         assignments to the initial TESTS_ENVIRONMENT.
33473         * doc/gnulib.texi (Unit test modules): Document it.
33474         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33475         TESTS_ENVIRONMENT.
33476         * modules/btowc-tests (Makefile.am): Likewise.
33477         * modules/c-stack-tests (Makefile.am): Likewise.
33478         * modules/c-strcase-tests (Makefile.am): Likewise.
33479         * modules/copy-file-tests (Makefile.am): Likewise.
33480         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33481         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33482         * modules/mbrtowc-tests (Makefile.am): Likewise.
33483         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33484         * modules/mbscasestr-tests (Makefile.am): Likewise.
33485         * modules/mbschr-tests (Makefile.am): Likewise.
33486         * modules/mbscspn-tests (Makefile.am): Likewise.
33487         * modules/mbsinit-tests (Makefile.am): Likewise.
33488         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33489         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33490         * modules/mbspbrk-tests (Makefile.am): Likewise.
33491         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33492         * modules/mbsrchr-tests (Makefile.am): Likewise.
33493         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33494         * modules/mbsspn-tests (Makefile.am): Likewise.
33495         * modules/mbsstr-tests (Makefile.am): Likewise.
33496         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33497         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33498         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33499         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33500         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33501         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33502         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33503         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33504         * modules/wcrtomb-tests (Makefile.am): Likewise.
33505         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33506         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33507         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33508         assignments from TESTS_ENVIRONMENT.
33509         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33510         augmentation.
33511         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33512         * modules/atexit-tests (Makefile.am): Likewise.
33513         * modules/binary-io-tests (Makefile.am): Likewise.
33514         * modules/closein-tests (Makefile.am): Likewise.
33515         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33516         * modules/exclude-tests (Makefile.am): Likewise.
33517         * modules/fflush-tests (Makefile.am): Likewise.
33518         * modules/fpending-tests (Makefile.am): Likewise.
33519         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33520         * modules/freadahead-tests (Makefile.am): Likewise.
33521         * modules/freadptr-tests (Makefile.am): Likewise.
33522         * modules/freadseek-tests (Makefile.am): Likewise.
33523         * modules/fseek-tests (Makefile.am): Likewise.
33524         * modules/fseeko-tests (Makefile.am): Likewise.
33525         * modules/ftell-tests (Makefile.am): Likewise.
33526         * modules/ftello-tests (Makefile.am): Likewise.
33527         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33528         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33529         * modules/lseek-tests (Makefile.am): Likewise.
33530         * modules/parse-duration-tests (Makefile.am): Likewise.
33531         * modules/perror-tests (Makefile.am): Likewise.
33532         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33533         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33534         * modules/pipe-tests (Makefile.am): Likewise.
33535         * modules/pread-tests (Makefile.am): Likewise.
33536         * modules/printf-posix-tests (Makefile.am): Likewise.
33537         * modules/select-tests (Makefile.am): Likewise.
33538         * modules/sigpipe-tests (Makefile.am): Likewise.
33539         * modules/tsearch-tests (Makefile.am): Likewise.
33540         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33541         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33542         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33543         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33544         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33545         * modules/version-etc-tests (Makefile.am): Likewise.
33546         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33547         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33548         * modules/xalloc-die-tests (Makefile.am): Likewise.
33549         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33550         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33551         * modules/xstrtol-tests (Makefile.am): Likewise.
33552         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33553         * modules/yesno-tests (Makefile.am): Likewise.
33554         Suggested by Jim Meyering.
33555
33556 2010-01-24  Bruno Haible  <bruno@clisp.org>
33557
33558         More documentation.
33559         * doc/gnulib.texi (Writing modules): New chapter.
33560         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33561         the new chapter.
33562
33563 2010-01-24  Jim Meyering  <meyering@redhat.com>
33564
33565         maint.mk: do not prepend "./" after filtering
33566         * top/maint.mk (_prepend_srcdir_prefix): New variable
33567         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33568         "./" when $(srcdir) is ".".
33569
33570         define STREQ(a,b) consistently, removing useless parentheses
33571         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33572         since the only risk is that "a" or "b" contains an unparenthesized
33573         comma, but if either did that, STREQ would have 3 or more arguments.
33574         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33575         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33576         * lib/hash-triple.c (STREQ): Likewise.
33577         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33578         * lib/getugroups.c (STREQ): Likewise.
33579
33580 2010-01-23  Jim Meyering  <meyering@redhat.com>
33581
33582         maint.mk: fix syntax-check in a non-srcdir build directory
33583         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33584         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33585
33586 2010-01-22  Jim Meyering  <meyering@redhat.com>
33587
33588         userspec: add unit tests
33589         * tests/test-userspec.c: New file.
33590         * modules/userspec-tests: Likewise.
33591
33592 2010-01-21  Jim Meyering  <meyering@redhat.com>
33593
33594         maint.mk: handle source file names containing "." robustly
33595         * top/maint.mk (_dot_escaped_srcdir): Define.
33596         (VC_LIST): Use it in LHS of sed substitution.
33597
33598 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33599
33600         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33601         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33602         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33603         from a non-srcdir build.
33604
33605 2010-01-20  Eric Blake  <ebb9@byu.net>
33606
33607         warn-on-use: use instead of link-warning
33608         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33609         * modules/unistd (Depends-on, Makefile.am): Likewise.
33610         * modules/arpa_inet (Depends-on): Replace link-warning with
33611         warn-on-use.
33612         (Makefile.am): Update rules accordingly.
33613         * modules/ctype (Depends-on, Makefile.am): Likewise.
33614         * modules/dirent (Depends-on, Makefile.am): Likewise.
33615         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33616         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33617         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33618         * modules/locale (Depends-on, Makefile.am): Likewise.
33619         * modules/math (Depends-on, Makefile.am): Likewise.
33620         * modules/search (Depends-on, Makefile.am): Likewise.
33621         * modules/signal (Depends-on, Makefile.am): Likewise.
33622         * modules/spawn (Depends-on, Makefile.am): Likewise.
33623         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33624         * modules/string (Depends-on, Makefile.am): Likewise.
33625         * modules/strings (Depends-on, Makefile.am): Likewise.
33626         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33627         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33628         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33629         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33630         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33631         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33632         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33633         * modules/wchar (Depends-on, Makefile.am): Likewise.
33634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33635         should be poisoned.
33636         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33637         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33638         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33639         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33640         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33641         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33642         * m4/math_h.m4 (gl_MATH_H): Likewise.
33643         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33644         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33645         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33646         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33647         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33648         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33649         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33650         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33658         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33659         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33660         GL_LINK_WARNING.
33661         * lib/ctype.in.h: Likewise.
33662         * lib/dirent.in.h: Likewise.
33663         * lib/fcntl.in.h: Likewise.
33664         * lib/inttypes.in.h: Likewise.
33665         * lib/langinfo.in.h: Likewise.
33666         * lib/locale.in.h: Likewise.
33667         * lib/math.in.h: Likewise.
33668         * lib/search.in.h: Likewise.
33669         * lib/signal.in.h: Likewise.
33670         * lib/spawn.in.h: Likewise.
33671         * lib/stdio.in.h: Likewise.
33672         * lib/stdlib.in.h: Likewise.
33673         * lib/string.in.h: Likewise.
33674         * lib/strings.in.h: Likewise.
33675         * lib/sys_file.in.h: Likewise.
33676         * lib/sys_ioctl.in.h: Likewise.
33677         * lib/sys_select.in.h: Likewise.
33678         * lib/sys_socket.in.h: Likewise.
33679         * lib/sys_stat.in.h: Likewise.
33680         * lib/sys_times.in.h: Likewise.
33681         * lib/sys_utsname.in.h: Likewise.
33682         * lib/unistd.in.h: Likewise.
33683         * lib/wchar.in.h: Likewise.
33684
33685 2010-01-20  Bruno Haible  <bruno@clisp.org>
33686
33687         Avoid duplicate -lm.
33688         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33689         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33692         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33693         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33694         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33695         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33696         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33697         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33698         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33699         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33700         Reported by Paolo Bonzini.
33701
33702 2010-01-19  Bruno Haible  <bruno@clisp.org>
33703
33704         langinfo, nl_langinfo: Relicense under LGPLv2+.
33705         * modules/langinfo (License): Change to LGPLv2+.
33706         * modules/nl_langinfo (License): Likewise.
33707         Patch by David Lutterkort <lutter@redhat.com>.
33708
33709 2010-01-19  Bruno Haible  <bruno@clisp.org>
33710
33711         Avoid compilation error with cc on OSF/1 5.1.
33712         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33713         statement, not before.
33714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33715
33716 2010-01-18  Bruno Haible  <bruno@clisp.org>
33717
33718         Avoid a link error due to the __printf__ symbol.
33719         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33720         and 2.6.x.
33721         (__format__, __printf__): Remove definitions.
33722         * lib/argp-fmtstream.h: Likewise.
33723         * lib/argp.h: Likewise.
33724         * lib/error.h: Likewise.
33725         * lib/vasnprintf.h: Likewise.
33726         * lib/xprintf.h: Likewise.
33727         * lib/xvasprintf.h: Likewise.
33728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33729
33730 2010-01-18  Bruno Haible  <bruno@clisp.org>
33731
33732         Tests for module 'tanl'.
33733         * modules/tanl-tests: New file.
33734         * tests/test-tanl.c: New file.
33735
33736         Tests for module 'sqrtl'.
33737         * modules/sqrtl-tests: New file.
33738         * tests/test-sqrtl.c: New file.
33739
33740         Tests for module 'sinl'.
33741         * modules/sinl-tests: New file.
33742         * tests/test-sinl.c: New file.
33743
33744         Tests for module 'logl'.
33745         * modules/logl-tests: New file.
33746         * tests/test-logl.c: New file.
33747
33748         Tests for module 'expl'.
33749         * modules/expl-tests: New file.
33750         * tests/test-expl.c: New file.
33751
33752         Tests for module 'cosl'.
33753         * modules/cosl-tests: New file.
33754         * tests/test-cosl.c: New file.
33755
33756         Tests for module 'atanl'.
33757         * modules/atanl-tests: New file.
33758         * tests/test-atanl.c: New file.
33759
33760         Tests for module 'asinl'.
33761         * modules/asinl-tests: New file.
33762         * tests/test-asinl.c: New file.
33763
33764         Tests for module 'acosl'.
33765         * modules/acosl-tests: New file.
33766         * tests/test-acosl.c: New file.
33767
33768         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33769         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33770         tanl): Use the standard gnulib idiom.
33771         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33772         * lib/sinl.c: Likewise.
33773         * lib/tanl.c: Don't include trigl.c.
33774         (kernel_tanl): Make static.
33775         * lib/sincosl.c: Include trigl.h first.
33776         * lib/trigl.c: Likewise.
33777         * m4/acosl.m4: New file.
33778         * m4/asinl.m4: New file.
33779         * m4/atanl.m4: New file.
33780         * m4/cosl.m4: New file.
33781         * m4/expl.m4: New file.
33782         * m4/logl.m4: New file.
33783         * m4/sinl.m4: New file.
33784         * m4/sqrtl.m4: New file.
33785         * m4/tanl.m4: New file.
33786         * m4/mathl.m4: Remove file.
33787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33788         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33789         Don't initialize GNULIB_MATHL.
33790         * modules/acosl: New file.
33791         * modules/asinl: New file.
33792         * modules/atanl: New file.
33793         * modules/cosl: New file.
33794         * modules/expl: New file.
33795         * modules/logl: New file.
33796         * modules/sinl: New file.
33797         * modules/sqrtl: New file.
33798         * modules/tanl: New file.
33799         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33800         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33801         substitute GNULIB_MATHL.
33802         * modules/mathl: Rewritten.
33803         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33804         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33805         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33806         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33807         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33808         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33809         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33810         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33811         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33812
33813 2010-01-18  Bruno Haible  <bruno@clisp.org>
33814
33815         sqrt: Make gl_FUNC_SQRT requirable.
33816         * m4/sqrt.m4: New file.
33817         * modules/sqrt (Files): Add it.
33818         (configure.ac): Invoke gl_FUNC_SQRT.
33819
33820 2010-01-18  Bruno Haible  <bruno@clisp.org>
33821
33822         New modules for common <math.h> functions.
33823         * m4/mathfunc.m4: New file.
33824         * modules/acos: New file.
33825         * modules/asin: New file.
33826         * modules/atan: New file.
33827         * modules/atan2: New file.
33828         * modules/cbrt: New file.
33829         * modules/copysign: New file.
33830         * modules/cos: New file.
33831         * modules/cosh: New file.
33832         * modules/erf: New file.
33833         * modules/erfc: New file.
33834         * modules/exp: New file.
33835         * modules/fabs: New file.
33836         * modules/fmod: New file.
33837         * modules/hypot: New file.
33838         * modules/j0: New file.
33839         * modules/j1: New file.
33840         * modules/jn: New file.
33841         * modules/ldexp: New file.
33842         * modules/lgamma: New file.
33843         * modules/log: New file.
33844         * modules/log10: New file.
33845         * modules/log1p: New file.
33846         * modules/logb: New file.
33847         * modules/modf: New file.
33848         * modules/nextafter: New file.
33849         * modules/pow: New file.
33850         * modules/remainder: New file.
33851         * modules/rint: New file.
33852         * modules/sin: New file.
33853         * modules/sinh: New file.
33854         * modules/sqrt: New file.
33855         * modules/tan: New file.
33856         * modules/tanh: New file.
33857         * modules/y0: New file.
33858         * modules/y1: New file.
33859         * modules/yn: New file.
33860         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33861         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33862         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33863         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33864         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33865         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33866         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33867         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33868         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33869         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33870         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33871         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33872         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33873         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33874         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33875         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33876         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33877         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33878         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33879         * doc/posix-functions/log.texi: Mention the 'log' module.
33880         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33881         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33882         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33883         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33884         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33885         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33886         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33887         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33888         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33889         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33890         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33891         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33892         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33893         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33894         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33895         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33896
33897 2010-01-18  Jim Meyering  <meyering@redhat.com>
33898
33899         ignore-value: relax license to LGPLv2+
33900         * modules/ignore-value (License): Relax to LGPLv2+.
33901
33902         getdate: don't leak when TZ contains two or more '"'s
33903         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33904         double quote in TZ after the first one.
33905
33906         readtokens: do not leak internal token_lengths buffer
33907         * lib/readtokens.c (readtokens): Free the local, lengths,
33908         when the supplied "token_lengths" parameter is NULL.
33909
33910 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33911
33912         Fix a couple of missing LIBTHREAD link failures on AIX.
33913         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33914         $(LIBTHREAD).
33915         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33916
33917         Link test-poll against INET_PTON_LIB.
33918         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33919         for inet_pton on Solaris 10.
33920
33921 2010-01-17  Bruno Haible  <bruno@clisp.org>
33922
33923         unistdio/*-sprintf: Fix typo in module description.
33924         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33925         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33926         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33927         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33928         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33929         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33930         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33932
33933 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33934
33935         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33936         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33937         variables in shell case patterns, for AIX and HP-UX ksh.
33938
33939         Split large sed scripts, for HP-UX sed.
33940         * modules/stdio: Split sed scripts around 50 sed commands,
33941         to avoid HP-UX limit of 99 commands, in the near future.
33942         * modules/string: Likewise.
33943         * modules/unistd: Likewise.
33944
33945         gnulib-tool: avoid writing in the current directory.
33946         * gnulib-tool (func_emit_lib_Makefile_am)
33947         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33948         not in the current directory, so concurrent gnulib-tool
33949         instances do not interfere.
33950
33951 2010-01-16  Jim Meyering  <meyering@redhat.com>
33952
33953         doc: update users.txt
33954         * users.txt: Add grep.
33955         (diffutils, gzip): Update URLs.
33956
33957 2010-01-12  Bruno Haible  <bruno@clisp.org>
33958
33959         posix_spawn: Avoid test failure on Cygwin.
33960         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33961         characters.
33962         Reported by Simon Josefsson.
33963
33964 2010-01-12  Bruno Haible  <bruno@clisp.org>
33965
33966         * tests/test-cond.c (main): When skipping the test, show the reason.
33967
33968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33969
33970         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33971
33972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33973
33974         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33975         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33976
33977 2010-01-12  Eric Blake  <ebb9@byu.net>
33978
33979         build: guarantee AS_VAR_IF
33980         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33981         (gl_AS_VAR_IF): Move...
33982         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33983         Reported by Simon Josefsson.
33984
33985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33986
33987         * lib/stdio.in.h: Fix typo.
33988
33989 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33990
33991         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33992         libgpg-error.
33993
33994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33995
33996         * tests/test-xalloc-die.sh: Use $EXEEXT.
33997
33998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33999             Bruno Haible  <bruno@clisp.org>
34000
34001         getlogin, getlogin_r: Avoid test failure.
34002         * tests/test-getlogin.c: Include <stdio.h>.
34003         (main): Skip the test when the function fails because stdin is not a
34004         tty.
34005         * tests/test-getlogin_r.c: Include <stdio.h>.
34006         (main): Skip the test when the function fails because stdin is not a
34007         tty.
34008
34009 2010-01-11  Eric Blake  <ebb9@byu.net>
34010
34011         tests: avoid more large file warnings
34012         * tests/test-fflush.c: Avoid warning about ftell use.
34013         * tests/test-fseek.c: Avoid warning about fseek use.
34014
34015 2010-01-10  Bruno Haible  <bruno@clisp.org>
34016
34017         nproc: Work better on Linux when /proc and /sys are not mounted.
34018         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34019         as lower bound when, on glibc/Linux systems,
34020         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34021         Suggested by Pádraig Brady <P@draigbrady.com>.
34022         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34023
34024         nproc: Refactor.
34025         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34026         extracted from num_processors.
34027         (num_processors): Call it.
34028
34029 2010-01-11  Jim Meyering  <meyering@redhat.com>
34030
34031         utimecmp: avoid new warning from upcoming gcc-4.5.0
34032         * lib/utimecmp.c (BILLION): Define using #define rather than an
34033         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34034
34035 2010-01-11  Eric Blake  <ebb9@byu.net>
34036
34037         math: add portability warnings for classification macros
34038         * modules/math (Depends-on): Add warn-on-use.
34039         (Makefile.am): Provide new substitutions.
34040         * m4/math_h.m4 (gl_MATH_H): Require inline.
34041         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34042         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34043         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34044         implement warnings.
34045
34046         unistd: warn on use of environ without module
34047         * modules/unistd (Depends-on): Add warn-on-use.
34048         (Makefile.am): Provide new substitutions.
34049         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34050         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34051
34052         stdio: warn on suspicious uses
34053         * modules/stdio (Depends-on): Add warn-on-use.
34054         (Makefile.am): Provide new substitutions.
34055         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34056         fseeko.
34057         * lib/stdio.in.h (gets): Always warn on use.
34058         (fseek, ftell): Adjust when warnings are issued, and honor
34059         _GL_NO_LARGE_FILES as a way to silence the warning.
34060         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34061         any warning about large file offsets.
34062         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34063         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34064         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34065         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34066         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34067         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34068         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34069         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34070
34071         warn-on-use: new module
34072         * modules/warn-on-use: New file.
34073         * build-aux/warn-on-use.h: Likewise.
34074         * m4/warn-on-use.m4: Likewise.
34075         * MODULES.html.sh (Support for building): Mention it.
34076
34077 2010-01-10  Bruno Haible  <bruno@clisp.org>
34078
34079         Tests for module 'unistr/u32-strdup'.
34080         * modules/unistr/u32-strdup-tests: New file.
34081         * tests/unistr/test-u32-strdup.c: New file.
34082
34083         Tests for module 'unistr/u16-strdup'.
34084         * modules/unistr/u16-strdup-tests: New file.
34085         * tests/unistr/test-u16-strdup.c: New file.
34086
34087         Tests for module 'unistr/u8-strdup'.
34088         * modules/unistr/u8-strdup-tests: New file.
34089         * tests/unistr/test-u8-strdup.c: New file.
34090         * tests/unistr/test-strdup.h: New file.
34091
34092         Tests for module 'unistr/u32-strncmp'.
34093         * modules/unistr/u32-strncmp-tests: New file.
34094         * tests/unistr/test-u32-strncmp.c: New file.
34095
34096         Tests for module 'unistr/u16-strncmp'.
34097         * modules/unistr/u16-strncmp-tests: New file.
34098         * tests/unistr/test-u16-strncmp.c: New file.
34099
34100         Tests for module 'unistr/u8-strncmp'.
34101         * modules/unistr/u8-strncmp-tests: New file.
34102         * tests/unistr/test-u8-strncmp.c: New file.
34103         * tests/unistr/test-strncmp.h: New file.
34104
34105         Tests for module 'unistr/u32-strcoll'.
34106         * modules/unistr/u32-strcoll-tests: New file.
34107         * tests/unistr/test-u32-strcoll.c: New file.
34108
34109         Tests for module 'unistr/u16-strcoll'.
34110         * modules/unistr/u16-strcoll-tests: New file.
34111         * tests/unistr/test-u16-strcoll.c: New file.
34112
34113         Tests for module 'unistr/u8-strcoll'.
34114         * modules/unistr/u8-strcoll-tests: New file.
34115         * tests/unistr/test-u8-strcoll.c: New file.
34116
34117         Tests for module 'unistr/u32-strcmp'.
34118         * modules/unistr/u32-strcmp-tests: New file.
34119         * tests/unistr/test-u32-strcmp.c: New file.
34120         * tests/unistr/test-u32-strcmp.h: New file.
34121
34122         Tests for module 'unistr/u16-strcmp'.
34123         * modules/unistr/u16-strcmp-tests: New file.
34124         * tests/unistr/test-u16-strcmp.c: New file.
34125         * tests/unistr/test-u16-strcmp.h: New file.
34126
34127         Tests for module 'unistr/u8-strcmp'.
34128         * modules/unistr/u8-strcmp-tests: New file.
34129         * tests/unistr/test-u8-strcmp.c: New file.
34130         * tests/unistr/test-u8-strcmp.h: New file.
34131         * tests/unistr/test-strcmp.h: New file.
34132
34133         Tests for module 'unistr/u32-strncat'.
34134         * modules/unistr/u32-strncat-tests: New file.
34135         * tests/unistr/test-u32-strncat.c: New file.
34136
34137         Tests for module 'unistr/u16-strncat'.
34138         * modules/unistr/u16-strncat-tests: New file.
34139         * tests/unistr/test-u16-strncat.c: New file.
34140
34141         Tests for module 'unistr/u8-strncat'.
34142         * modules/unistr/u8-strncat-tests: New file.
34143         * tests/unistr/test-u8-strncat.c: New file.
34144         * tests/unistr/test-strncat.h: New file.
34145
34146         Tests for module 'unistr/u32-strcat'.
34147         * modules/unistr/u32-strcat-tests: New file.
34148         * tests/unistr/test-u32-strcat.c: New file.
34149
34150         Tests for module 'unistr/u16-strcat'.
34151         * modules/unistr/u16-strcat-tests: New file.
34152         * tests/unistr/test-u16-strcat.c: New file.
34153
34154         Tests for module 'unistr/u8-strcat'.
34155         * modules/unistr/u8-strcat-tests: New file.
34156         * tests/unistr/test-u8-strcat.c: New file.
34157         * tests/unistr/test-strcat.h: New file.
34158
34159         Tests for module 'unistr/u32-stpncpy'.
34160         * modules/unistr/u32-stpncpy-tests: New file.
34161         * tests/unistr/test-u32-stpncpy.c: New file.
34162
34163         Tests for module 'unistr/u16-stpncpy'.
34164         * modules/unistr/u16-stpncpy-tests: New file.
34165         * tests/unistr/test-u16-stpncpy.c: New file.
34166
34167         Tests for module 'unistr/u8-stpncpy'.
34168         * modules/unistr/u8-stpncpy-tests: New file.
34169         * tests/unistr/test-u8-stpncpy.c: New file.
34170         * tests/unistr/test-stpncpy.h: New file.
34171
34172         Tests for module 'unistr/u32-strncpy'.
34173         * modules/unistr/u32-strncpy-tests: New file.
34174         * tests/unistr/test-u32-strncpy.c: New file.
34175
34176         Tests for module 'unistr/u16-strncpy'.
34177         * modules/unistr/u16-strncpy-tests: New file.
34178         * tests/unistr/test-u16-strncpy.c: New file.
34179
34180         Tests for module 'unistr/u8-strncpy'.
34181         * modules/unistr/u8-strncpy-tests: New file.
34182         * tests/unistr/test-u8-strncpy.c: New file.
34183         * tests/unistr/test-strncpy.h: New file.
34184
34185         Tests for module 'unistr/u32-stpcpy'.
34186         * modules/unistr/u32-stpcpy-tests: New file.
34187         * tests/unistr/test-u32-stpcpy.c: New file.
34188
34189         Tests for module 'unistr/u16-stpcpy'.
34190         * modules/unistr/u16-stpcpy-tests: New file.
34191         * tests/unistr/test-u16-stpcpy.c: New file.
34192
34193         Tests for module 'unistr/u8-stpcpy'.
34194         * modules/unistr/u8-stpcpy-tests: New file.
34195         * tests/unistr/test-u8-stpcpy.c: New file.
34196         * tests/unistr/test-stpcpy.h: New file.
34197
34198         Tests for module 'unistr/u32-strcpy'.
34199         * modules/unistr/u32-strcpy-tests: New file.
34200         * tests/unistr/test-u32-strcpy.c: New file.
34201
34202         Tests for module 'unistr/u16-strcpy'.
34203         * modules/unistr/u16-strcpy-tests: New file.
34204         * tests/unistr/test-u16-strcpy.c: New file.
34205
34206         Tests for module 'unistr/u8-strcpy'.
34207         * modules/unistr/u8-strcpy-tests: New file.
34208         * tests/unistr/test-u8-strcpy.c: New file.
34209         * tests/unistr/test-strcpy.h: New file.
34210
34211         Tests for module 'unistr/u32-strnlen'.
34212         * modules/unistr/u32-strnlen-tests: New file.
34213         * tests/unistr/test-u32-strnlen.c: New file.
34214
34215         Tests for module 'unistr/u16-strnlen'.
34216         * modules/unistr/u16-strnlen-tests: New file.
34217         * tests/unistr/test-u16-strnlen.c: New file.
34218
34219         Tests for module 'unistr/u8-strnlen'.
34220         * modules/unistr/u8-strnlen-tests: New file.
34221         * tests/unistr/test-u8-strnlen.c: New file.
34222         * tests/unistr/test-strnlen.h: New file.
34223
34224         Tests for module 'unistr/u32-strlen'.
34225         * modules/unistr/u32-strlen-tests: New file.
34226         * tests/unistr/test-u32-strlen.c: New file.
34227
34228         Tests for module 'unistr/u16-strlen'.
34229         * modules/unistr/u16-strlen-tests: New file.
34230         * tests/unistr/test-u16-strlen.c: New file.
34231
34232         Tests for module 'unistr/u8-strlen'.
34233         * modules/unistr/u8-strlen-tests: New file.
34234         * tests/unistr/test-u8-strlen.c: New file.
34235
34236         Tests for module 'unistr/u32-prev'.
34237         * modules/unistr/u32-prev-tests: New file.
34238         * tests/unistr/test-u32-prev.c: New file.
34239
34240         Tests for module 'unistr/u16-prev'.
34241         * modules/unistr/u16-prev-tests: New file.
34242         * tests/unistr/test-u16-prev.c: New file.
34243
34244         Tests for module 'unistr/u8-prev'.
34245         * modules/unistr/u8-prev-tests: New file.
34246         * tests/unistr/test-u8-prev.c: New file.
34247
34248         Tests for module 'unistr/u32-next'.
34249         * modules/unistr/u32-next-tests: New file.
34250         * tests/unistr/test-u32-next.c: New file.
34251
34252         Tests for module 'unistr/u16-next'.
34253         * modules/unistr/u16-next-tests: New file.
34254         * tests/unistr/test-u16-next.c: New file.
34255
34256         Tests for module 'unistr/u8-next'.
34257         * modules/unistr/u8-next-tests: New file.
34258         * tests/unistr/test-u8-next.c: New file.
34259
34260         Tests for module 'unistr/u32-strmbtouc'.
34261         * modules/unistr/u32-strmbtouc-tests: New file.
34262         * tests/unistr/test-u32-strmbtouc.c: New file.
34263
34264         Tests for module 'unistr/u16-strmbtouc'.
34265         * modules/unistr/u16-strmbtouc-tests: New file.
34266         * tests/unistr/test-u16-strmbtouc.c: New file.
34267
34268         Tests for module 'unistr/u8-strmbtouc'.
34269         * modules/unistr/u8-strmbtouc-tests: New file.
34270         * tests/unistr/test-u8-strmbtouc.c: New file.
34271
34272         Tests for module 'unistr/u32-strmblen'.
34273         * modules/unistr/u32-strmblen-tests: New file.
34274         * tests/unistr/test-u32-strmblen.c: New file.
34275
34276         Tests for module 'unistr/u16-strmblen'.
34277         * modules/unistr/u16-strmblen-tests: New file.
34278         * tests/unistr/test-u16-strmblen.c: New file.
34279
34280         Tests for module 'unistr/u8-strmblen'.
34281         * modules/unistr/u8-strmblen-tests: New file.
34282         * tests/unistr/test-u8-strmblen.c: New file.
34283
34284         Tests for module 'unistr/u32-cpy-alloc'.
34285         * modules/unistr/u32-cpy-alloc-tests: New file.
34286         * tests/unistr/test-u32-cpy-alloc.c: New file.
34287
34288         Tests for module 'unistr/u16-cpy-alloc'.
34289         * modules/unistr/u16-cpy-alloc-tests: New file.
34290         * tests/unistr/test-u16-cpy-alloc.c: New file.
34291
34292         Tests for module 'unistr/u8-cpy-alloc'.
34293         * modules/unistr/u8-cpy-alloc-tests: New file.
34294         * tests/unistr/test-u8-cpy-alloc.c: New file.
34295         * tests/unistr/test-cpy-alloc.h: New file.
34296
34297         Tests for module 'unistr/u32-mbsnlen'.
34298         * modules/unistr/u32-mbsnlen-tests: New file.
34299         * tests/unistr/test-u32-mbsnlen.c: New file.
34300
34301         Tests for module 'unistr/u16-mbsnlen'.
34302         * modules/unistr/u16-mbsnlen-tests: New file.
34303         * tests/unistr/test-u16-mbsnlen.c: New file.
34304
34305         Tests for module 'unistr/u8-mbsnlen'.
34306         * modules/unistr/u8-mbsnlen-tests: New file.
34307         * tests/unistr/test-u8-mbsnlen.c: New file.
34308
34309         Tests for module 'unistr/u32-chr'.
34310         * modules/unistr/u32-chr-tests: New file.
34311         * tests/unistr/test-u32-chr.c: New file.
34312
34313         Tests for module 'unistr/u16-chr'.
34314         * modules/unistr/u16-chr-tests: New file.
34315         * tests/unistr/test-u16-chr.c: New file.
34316
34317         Tests for module 'unistr/u8-chr'.
34318         * modules/unistr/u8-chr-tests: New file.
34319         * tests/unistr/test-u8-chr.c: New file.
34320         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34321
34322         Tests for module 'unistr/u32-cmp2'.
34323         * modules/unistr/u32-cmp2-tests: New file.
34324         * tests/unistr/test-u32-cmp2.c: New file.
34325
34326         Tests for module 'unistr/u16-cmp2'.
34327         * modules/unistr/u16-cmp2-tests: New file.
34328         * tests/unistr/test-u16-cmp2.c: New file.
34329
34330         Tests for module 'unistr/u8-cmp2'.
34331         * modules/unistr/u8-cmp2-tests: New file.
34332         * tests/unistr/test-u8-cmp2.c: New file.
34333         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34334
34335         Tests for module 'unistr/u32-cmp'.
34336         * modules/unistr/u32-cmp-tests: New file.
34337         * tests/unistr/test-u32-cmp.c: New file.
34338
34339         Tests for module 'unistr/u16-cmp'.
34340         * modules/unistr/u16-cmp-tests: New file.
34341         * tests/unistr/test-u16-cmp.c: New file.
34342
34343         Tests for module 'unistr/u8-cmp'.
34344         * modules/unistr/u8-cmp-tests: New file.
34345         * tests/unistr/test-u8-cmp.c: New file.
34346         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34347
34348         Tests for module 'unistr/u32-set'.
34349         * modules/unistr/u32-set-tests: New file.
34350         * tests/unistr/test-u32-set.c: New file.
34351
34352         Tests for module 'unistr/u16-set'.
34353         * modules/unistr/u16-set-tests: New file.
34354         * tests/unistr/test-u16-set.c: New file.
34355
34356         Tests for module 'unistr/u8-set'.
34357         * modules/unistr/u8-set-tests: New file.
34358         * tests/unistr/test-u8-set.c: New file.
34359         * tests/unistr/test-set.h: New file.
34360
34361         Tests for module 'unistr/u32-move'.
34362         * modules/unistr/u32-move-tests: New file.
34363         * tests/unistr/test-u32-move.c: New file.
34364
34365         Tests for module 'unistr/u16-move'.
34366         * modules/unistr/u16-move-tests: New file.
34367         * tests/unistr/test-u16-move.c: New file.
34368
34369         Tests for module 'unistr/u8-move'.
34370         * modules/unistr/u8-move-tests: New file.
34371         * tests/unistr/test-u8-move.c: New file.
34372         * tests/unistr/test-move.h: New file.
34373
34374         Tests for module 'unistr/u32-cpy'.
34375         * modules/unistr/u32-cpy-tests: New file.
34376         * tests/unistr/test-u32-cpy.c: New file.
34377
34378         Tests for module 'unistr/u16-cpy'.
34379         * modules/unistr/u16-cpy-tests: New file.
34380         * tests/unistr/test-u16-cpy.c: New file.
34381
34382         Tests for module 'unistr/u8-cpy'.
34383         * modules/unistr/u8-cpy-tests: New file.
34384         * tests/unistr/test-u8-cpy.c: New file.
34385         * tests/unistr/test-cpy.h: New file.
34386
34387 2010-01-09  Bruno Haible  <bruno@clisp.org>
34388
34389         Tests for module 'unistr/u32-uctomb'.
34390         * modules/unistr/u32-uctomb-tests: New file.
34391         * tests/unistr/test-u32-uctomb.c: New file.
34392
34393         Tests for module 'unistr/u16-uctomb'.
34394         * modules/unistr/u16-uctomb-tests: New file.
34395         * tests/unistr/test-u16-uctomb.c: New file.
34396
34397         Tests for module 'unistr/u8-uctomb'.
34398         * modules/unistr/u8-uctomb-tests: New file.
34399         * tests/unistr/test-u8-uctomb.c: New file.
34400
34401         Tests for module 'unistr/u32-mbtoucr'.
34402         * modules/unistr/u32-mbtoucr-tests: New file.
34403         * tests/unistr/test-u32-mbtoucr.c: New file.
34404
34405         Tests for module 'unistr/u16-mbtoucr'.
34406         * modules/unistr/u16-mbtoucr-tests: New file.
34407         * tests/unistr/test-u16-mbtoucr.c: New file.
34408
34409         Tests for module 'unistr/u8-mbtoucr'.
34410         * modules/unistr/u8-mbtoucr-tests: New file.
34411         * tests/unistr/test-u8-mbtoucr.c: New file.
34412
34413         Tests for module 'unistr/u32-mbtouc'.
34414         * modules/unistr/u32-mbtouc-tests: New file.
34415         * tests/unistr/test-u32-mbtouc.c: New file.
34416
34417         Tests for module 'unistr/u16-mbtouc'.
34418         * modules/unistr/u16-mbtouc-tests: New file.
34419         * tests/unistr/test-u16-mbtouc.c: New file.
34420
34421         Tests for module 'unistr/u8-mbtouc'.
34422         * modules/unistr/u8-mbtouc-tests: New file.
34423         * tests/unistr/test-u8-mbtouc.c: New file.
34424
34425         Tests for module 'unistr/u32-mbtouc-unsafe'.
34426         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34427         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34428         * tests/unistr/test-u32-mbtouc.h: New file.
34429
34430         Tests for module 'unistr/u16-mbtouc-unsafe'.
34431         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34432         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34433         * tests/unistr/test-u16-mbtouc.h: New file.
34434
34435         Tests for module 'unistr/u8-mbtouc-unsafe'.
34436         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34437         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34438         * tests/unistr/test-u8-mbtouc.h: New file.
34439
34440         Tests for module 'unistr/u32-mblen'.
34441         * modules/unistr/u32-mblen-tests: New file.
34442         * tests/unistr/test-u32-mblen.c: New file.
34443
34444         Tests for module 'unistr/u16-mblen'.
34445         * modules/unistr/u16-mblen-tests: New file.
34446         * tests/unistr/test-u16-mblen.c: New file.
34447
34448         Tests for module 'unistr/u8-mblen'.
34449         * modules/unistr/u8-mblen-tests: New file.
34450         * tests/unistr/test-u8-mblen.c: New file.
34451
34452         Tests for module 'unistr/u32-to-u16'.
34453         * modules/unistr/u32-to-u16-tests: New file.
34454         * tests/unistr/test-u32-to-u16.c: New file.
34455
34456         Tests for module 'unistr/u32-to-u8'.
34457         * modules/unistr/u32-to-u8-tests: New file.
34458         * tests/unistr/test-u32-to-u8.c: New file.
34459
34460         Tests for module 'unistr/u16-to-u32'.
34461         * modules/unistr/u16-to-u32-tests: New file.
34462         * tests/unistr/test-u16-to-u32.c: New file.
34463
34464         Tests for module 'unistr/u16-to-u8'.
34465         * modules/unistr/u16-to-u8-tests: New file.
34466         * tests/unistr/test-u16-to-u8.c: New file.
34467
34468         Tests for module 'unistr/u8-to-u32'.
34469         * modules/unistr/u8-to-u32-tests: New file.
34470         * tests/unistr/test-u8-to-u32.c: New file.
34471
34472         Tests for module 'unistr/u8-to-u16'.
34473         * modules/unistr/u8-to-u16-tests: New file.
34474         * tests/unistr/test-u8-to-u16.c: New file.
34475
34476         Tests for module 'unistr/u32-check'.
34477         * modules/unistr/u32-check-tests: New file.
34478         * tests/unistr/test-u32-check.c: New file.
34479
34480         Tests for module 'unistr/u16-check'.
34481         * modules/unistr/u16-check-tests: New file.
34482         * tests/unistr/test-u16-check.c: New file.
34483
34484         Tests for module 'unistr/u8-check'.
34485         * modules/unistr/u8-check-tests: New file.
34486         * tests/unistr/test-u8-check.c: New file.
34487
34488         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34489         (category_equals): New function.
34490         (main): Add more tests.
34491         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34492
34493         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34494
34495 2010-01-10  Bruno Haible  <bruno@clisp.org>
34496
34497         unistr/u*-strcoll: Try harder to distinguish different strings.
34498         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34499         compare s1 and s2 to see if they are different.
34500
34501 2010-01-10  Bruno Haible  <bruno@clisp.org>
34502
34503         unistr/u*-stpncpy: Fix the return value.
34504         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34505         description of the return value consistent with stpncpy in glibc.
34506         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34507         written non-NUL unit.
34508
34509 2010-01-10  Bruno Haible  <bruno@clisp.org>
34510
34511         unistr/u*-next: Add missing dependencies.
34512         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34513         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34514         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34515
34516 2010-01-10  Bruno Haible  <bruno@clisp.org>
34517
34518         unistr/u8-mbsnlen: Fix return value for incomplete character.
34519         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34520         u8_mblen.
34521         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34522         Remove unistr/u8-mblen.
34523         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34524         u16_mblen.
34525         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34526         Remove unistr/u16-mblen.
34527
34528 2010-01-10  Bruno Haible  <bruno@clisp.org>
34529
34530         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34531         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34532         Reported by Brian Gough <bjg@gnu.org> and
34533         Chris Clayton <chris2553@googlemail.com> via
34534         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34535
34536 2010-01-09  Bruno Haible  <bruno@clisp.org>
34537
34538         unistr/u16-to-u32: Reject invalid input.
34539         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34540         u16_mbtouc.
34541         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34542         Remove unistr/u16-mbtouc.
34543
34544         unistr/u16-to-u8: Reject invalid input.
34545         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34546         u16_mbtouc.
34547         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34548         Remove unistr/u16-mbtouc.
34549
34550         unistr/u8-to-u32: Reject invalid input.
34551         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34552         u8_mbtouc.
34553         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34554         Remove unistr/u8-mbtouc.
34555
34556         unistr/u8-to-u16: Reject invalid input.
34557         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34558         u8_mbtouc.
34559         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34560         Remove unistr/u8-mbtouc.
34561
34562 2010-01-09  Bruno Haible  <bruno@clisp.org>
34563
34564         Tests for module 'getlogin'.
34565         * modules/getlogin-tests: New file.
34566         * tests/test-getlogin.c: New file.
34567
34568         New module 'getlogin'.
34569         * lib/unistd.in.h (getlogin): New declaration.
34570         * lib/getlogin.c: New file.
34571         * m4/getlogin.m4: New file.
34572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34573         HAVE_GETLOGIN.
34574         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34575         HAVE_GETLOGIN.
34576         * modules/getlogin: New file.
34577         * doc/posix-functions/getlogin.texi: Mention the new module.
34578         Reported by John W. Eaton <jwe@gnu.org>.
34579
34580 2010-01-09  Bruno Haible  <bruno@clisp.org>
34581
34582         getlogin_r: Support for native Windows.
34583         * lib/getlogin_r.c: Include <windows.h>
34584         (getlogin_r): Implement for native Windows.
34585         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34586         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34587         via John W. Eaton <jwe@gnu.org>.
34588
34589 2010-01-09  Bruno Haible  <bruno@clisp.org>
34590
34591         getlogin_r: Small fixes.
34592         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34593         succeeds.
34594         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34595         before testing whether getlogin_r is declared. No need to set
34596         HAVE_DECL_GETLOGIN_R to 1.
34597         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34598
34599 2010-01-09  Bruno Haible  <bruno@clisp.org>
34600
34601         * lib/unistd.in.h (getlogin_r): Add comment.
34602
34603 2010-01-09  Bruno Haible  <bruno@clisp.org>
34604
34605         Tests for module 'getlogin_r'.
34606         * modules/getlogin_r-tests: New file.
34607         * tests/test-getlogin_r.c: New file.
34608
34609 2010-01-09  Jim Meyering  <meyering@redhat.com>
34610
34611         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34612         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34613         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34614
34615 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34616
34617         * lib/dup2.c (rpl_dup2): Improve comment.
34618
34619 2010-01-08  Eric Blake  <ebb9@byu.net>
34620
34621         maint.mk: allow packages to add makefile @@ exceptions
34622         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34623         (sc_makefile_check): Rename...
34624         (sc_makefile_at_at_check): ...to this, and use hook.
34625
34626         dup2: work around mingw bug
34627         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34628         Reported by Simon Josefsson.
34629
34630 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34631
34632         glob: Fix C++ compilation.
34633         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34634         C++.
34635
34636 2010-01-07  Bruno Haible  <bruno@clisp.org>
34637
34638         Fix indentation of wctype.in.h, broken since 2007-01-06.
34639         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34640
34641 2010-01-07  Bruno Haible  <bruno@clisp.org>
34642
34643         mbslen: Avoid collision with system function.
34644         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34645         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34646         * m4/mbslen.m4: New file.
34647         * modules/mbslen (Files): Add it.
34648         (configure.ac): Invoke gl_MBSLEN.
34649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34650         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34651         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34652         via Ian Beckwith <ianb@erislabs.net>.
34653
34654 2010-01-07  Bruno Haible  <bruno@clisp.org>
34655
34656         dirent: Document the last fix.
34657         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34658
34659 2010-01-07  Bruno Haible  <bruno@clisp.org>
34660
34661         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34662         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34663         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34664         va_list are defined.
34665         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34666         Reported by Eric Blake.
34667
34668 2010-01-07  Bruno Haible  <bruno@clisp.org>
34669
34670         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34671         * modules/xlist (Depends-on): Add 'list',
34672         * modules/xoset (Depends-on): Add 'oset'.
34673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34674
34675 2010-01-07  Bruno Haible  <bruno@clisp.org>
34676
34677         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34678         * doc/posix-functions/strncasecmp.texi: Likewise.
34679
34680 2010-01-07  Bruno Haible  <bruno@clisp.org>
34681
34682         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34683
34684 2010-01-07  John W. Eaton  <jwe@octave.org>
34685
34686         wctype: allow C++ use
34687         * lib/wctype.in.h: Add extern "C" block for C++.
34688
34689 2010-01-06  Eric Blake  <ebb9@byu.net>
34690
34691         maint.mk: detect incorrect GFDL usage
34692         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34693
34694 2010-01-06  Jim Meyering  <meyering@redhat.com>
34695         and Eric Blake  <ebb9@byu.net>
34696
34697         maint.mk: ignore multi-line copyright in NEWS
34698         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34699
34700 2010-01-06  Eric Blake  <ebb9@byu.net>
34701
34702         select: add missing dependency
34703         * modules/select-tests (Depends-on): Move sockets dependency...
34704         * modules/select (Depends-on): ...here.
34705         Reported by Ian Beckwith.
34706
34707         doc: regenerate INSTALL
34708         * doc/INSTALL: Reflect recent autoconf update.
34709         * doc/INSTALL.ISO: Likewise.
34710         * doc/INSTALL.UTF-8: Likewise.
34711
34712         pread: fix compilation on glibc
34713         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34714         Reported by Ralf Wildenhues.
34715
34716         dirent: fix test failure
34717         * lib/dirent.in.h (includes): Guarantee ino_t.
34718         Reported by Ralf Wildenhues.
34719
34720 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34721
34722         linkat, renameat: avoid bad free
34723         * lib/at-func2.c (at_func2): Fix typo.
34724         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34725
34726 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34727
34728         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34729         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34730         to avoid failure of symlink test later.
34731
34732 2010-01-06  Eric Blake  <ebb9@byu.net>
34733
34734         stdio, unistd: guarantee ssize_t
34735         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34736         2008 are exposed when needed.
34737         * lib/stdio.in.h (includes): Likewise.
34738         Reported by Ralf Wildenhues.
34739
34740 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34741
34742         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34744         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34745
34746 2010-01-06  Jim Meyering  <meyering@redhat.com>
34747
34748         readtokens: this module *does* require xalloc.h
34749         It uses only functions that were omitted by the old syntax-check rule.
34750         * lib/readtokens.c: Include "xalloc.h" once again.
34751         * modules/readtokens (Depends-on): Add xalloc.
34752         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34753
34754 2010-01-05  Eric Blake  <ebb9@byu.net>
34755
34756         maint: support 'make announcement' from a VPATH build
34757         * top/maint.mk (announcement): Look for correct NEWS file.
34758
34759 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34760
34761         utimens (fdutimens): ignore a negative FD, per contract
34762         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34763         when we have a valid file descriptor.  Otherwise, using a brand
34764         new glibc (with just-patched futimens that now fails with EBADF)
34765         would cause this function to fail with ENOSYS.
34766         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34767         See also http://bugzilla.redhat.com/552320.
34768
34769 2010-01-05  Eric Blake  <ebb9@byu.net>
34770
34771         strcase: document what it provides
34772         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34773         gnulib module.
34774         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34775         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34776
34777 2010-01-05  Jim Meyering  <meyering@redhat.com>
34778
34779         maint: remove useless inclusions of "xalloc.h"
34780         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34781         * lib/readtokens.c: Likewise.
34782         * lib/same.c: Likewise.
34783         * modules/getloadavg (Depends-on): Remove xalloc.
34784         * modules/readtokens: Likewise.
34785         * modules/same: Likewise.
34786
34787         maint.mk: include 4 more function names in alloca.h-checking regexp
34788         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34789         regexp.  Before, we would give a false-positive (saying alloca.h
34790         is included unnecessarily) when the only uses involved omitted symbols.
34791
34792         xalloc.h: use consistent formatting
34793         * lib/xalloc.h: Move declarations to start in the first column.
34794
34795 2010-01-05  Eric Blake  <ebb9@byu.net>
34796
34797         mkdir: avoid xalloc
34798         * lib/mkdir.c (includes): Drop unused header.
34799         Reported by John W. Eaton.
34800
34801 2010-01-04  Jim Meyering  <meyering@redhat.com>
34802
34803         nl_langinfo: avoid configure-time syntax error
34804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34805         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34806         the empty string.  Don't let that provoke a shell syntax error.
34807
34808         regcomp, regexec, fnmatch: avoid array bounds read error
34809         * lib/regcomp.c (build_equiv_class): From glibc:
34810         Use only the low 24 bits of a findidx return value as an index
34811         into the weights array.  Patch by Ulrich Drepper:
34812         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34813         * lib/regexec.c (check_node_accept_bytes): Likewise.
34814         * lib/fnmatch_loop.c (FCT): Likewise.
34815
34816         regcomp: skip collseq lookup when there are no rules
34817         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34818         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34819
34820         regcomp: recognize ill-formed { } expressions
34821         * lib/regcomp.c (parse_dup_op): From glibc:
34822         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34823
34824         regcomp: fix typo in comment
34825         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34826         s/satisfy/satisfies/.
34827
34828         regcomp: sync from glibc: remove dead store
34829         * lib/regcomp.c (duplicate_node_closure): Remove useless
34830         search_duplicated_node call and dead store.
34831
34832         regcomp: sync from glibc; always use nl_langinfo
34833         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34834         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34835         * modules/regex (Depends-on): Add nl_langinfo.
34836
34837 2010-01-04  Eric Blake  <ebb9@byu.net>
34838
34839         fdopendir: fix configure test
34840         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34841
34842 2010-01-01  Bruno Haible  <bruno@clisp.org>
34843
34844         wchar: Remove unused configure check.
34845         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34846
34847 2010-01-01  Eric Blake  <ebb9@byu.net>
34848
34849         headers: make check of system header explicit
34850         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34851         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34852         ourselves.
34853         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34857         internals.
34858         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34859         missing.
34860         Suggested by Bruno Haible.
34861
34862 2010-01-01  Jim Meyering  <meyering@redhat.com>
34863
34864         ChangeLog: tweak to eliminate unnecessary copyright line
34865         * ChangeLog: Remove a copyright line that was mistakenly updated
34866         by today's update-copyright run.  Reported by Eric Blake.
34867
34868         test-update-copyright: don't let envvar setting cause test failure
34869         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34870
34871 2010-01-01  Bruno Haible  <bruno@clisp.org>
34872
34873         localename: Avoid gcc warning.
34874         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34875         function if it is not used.
34876
34877 2010-01-01  Jim Meyering  <meyering@redhat.com>
34878
34879         update nearly all FSF copyright year lists to include 2010
34880         Use the same procedure as for 2009, outlined in
34881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34882
34883         version-etc: set COPYRIGHT_YEAR to 2010
34884         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34885
34886 2009-12-31  Eric Blake  <ebb9@byu.net>
34887
34888         doc: correct availability of cygwin 1.5.x getopt
34889         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34890         variables.
34891         * doc/posix-functions/opterr.texi (opterr): Likewise.
34892         * doc/posix-functions/optind.texi (optind): Likewise.
34893         * doc/posix-functions/optopt.texi (optopt): Likewise.
34894         * doc/posix-functions/tzname.texi (tzname): Likewise.
34895
34896         openat: update maintainer
34897         * modules/openat (Maintainer): Add myself.
34898
34899         utimens: avoid shadowing warning
34900         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34901         buffers into one, to avoid shadowing, as well as avoiding a
34902         redundant stat.
34903         Reported by Jim Meyering.
34904
34905         test-dup2: avoid compiler warning
34906         * tests/test-dup2.c (is_inheritable): Only define if used.
34907
34908 2010-01-01  Bruno Haible  <bruno@clisp.org>
34909
34910         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34911         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34912         defined, use wctomb instead of wcrtomb.
34913
34914 2010-01-01  Bruno Haible  <bruno@clisp.org>
34915
34916         iconv: Reject native Solaris iconv.
34917         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34918         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34919
34920 2009-12-31  Bruno Haible  <bruno@clisp.org>
34921
34922         * tests/test-signal.c (main): Remove test of 'SIG'.
34923
34924 2009-12-31  Bruno Haible  <bruno@clisp.org>
34925
34926         spawn: Fix incomplete fix.
34927         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34928         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34929         warnings for GNULIB_POSIXCHECK again.
34930         Reported by Eric Blake.
34931
34932 2009-12-31  Bruno Haible  <bruno@clisp.org>
34933
34934         Avoid namespace pollution on glibc systems.
34935         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34936         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34937         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34938         glibc systems.
34939
34940 2009-12-31  Bruno Haible  <bruno@clisp.org>
34941
34942         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34943         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34944         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34945         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34946         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34947         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34948         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34949
34950 2009-12-31  Bruno Haible  <bruno@clisp.org>
34951
34952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34953         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34954         afterwards.
34955
34956 2009-12-31  Bruno Haible  <bruno@clisp.org>
34957
34958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34959         SYS_UTSNAME_H.
34960
34961 2009-12-31  Bruno Haible  <bruno@clisp.org>
34962
34963         spawn: Fix misapplied patch.
34964         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34965         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34966         warnings for GNULIB_POSIXCHECK.
34967
34968 2009-12-31  Bruno Haible  <bruno@clisp.org>
34969
34970         times: Update after sys_times changed.
34971         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34972         * modules/times (Files): Add it.
34973         (configure.ac): Invoke gl_FUNC_TIMES.
34974
34975 2009-12-31  Bruno Haible  <bruno@clisp.org>
34976
34977         Use AC_C_INLINE where necessary.
34978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34979         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34981         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34982         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34983         * m4/mbiter.m4 (gl_MBITER): Likewise.
34984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34986         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34987         * modules/u64 (configure.ac): Likewise.
34988
34989 2009-12-31  Bruno Haible  <bruno@clisp.org>
34990
34991         Use AC_C_INLINE instead of module 'inline' where possible.
34992         * modules/inline (Description): Clarify purpose.
34993         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34994         * modules/count-one-bits (Depends-on): Remove inline.
34995         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34996         * modules/openat (Depends-on): Remove inline.
34997         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34998         instead of depending on module 'inline'.
34999         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35000         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35001         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35002         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35003         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35004         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35005         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35006         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35007         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35008         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35009         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35010         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35011         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35012         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35013         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35014         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35015         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35016         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35017         Likewise.
35018         * modules/unictype/property-ascii-hex-digit (Depends-on,
35019         configure.ac): Likewise.
35020         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35021         configure.ac): Likewise.
35022         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35023         configure.ac): Likewise.
35024         * modules/unictype/property-bidi-block-separator (Depends-on,
35025         configure.ac): Likewise.
35026         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35027         configure.ac): Likewise.
35028         * modules/unictype/property-bidi-common-separator (Depends-on,
35029         configure.ac): Likewise.
35030         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35031         Likewise.
35032         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35033         configure.ac): Likewise.
35034         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35035         configure.ac): Likewise.
35036         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35037         configure.ac): Likewise.
35038         * modules/unictype/property-bidi-european-digit (Depends-on,
35039         configure.ac): Likewise.
35040         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35041         configure.ac): Likewise.
35042         * modules/unictype/property-bidi-left-to-right (Depends-on,
35043         configure.ac): Likewise.
35044         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35045         configure.ac): Likewise.
35046         * modules/unictype/property-bidi-other-neutral (Depends-on,
35047         configure.ac): Likewise.
35048         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35049         Likewise.
35050         * modules/unictype/property-bidi-segment-separator (Depends-on,
35051         configure.ac): Likewise.
35052         * modules/unictype/property-bidi-whitespace (Depends-on,
35053         configure.ac): Likewise.
35054         * modules/unictype/property-combining (Depends-on, configure.ac):
35055         Likewise.
35056         * modules/unictype/property-composite (Depends-on, configure.ac):
35057         Likewise.
35058         * modules/unictype/property-currency-symbol (Depends-on,
35059         configure.ac): Likewise.
35060         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35061         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35062         Likewise.
35063         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35064         configure.ac): Likewise.
35065         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35066         Likewise.
35067         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35068         Likewise.
35069         * modules/unictype/property-extender (Depends-on, configure.ac):
35070         Likewise.
35071         * modules/unictype/property-format-control (Depends-on, configure.ac):
35072         Likewise.
35073         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35074         Likewise.
35075         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35076         Likewise.
35077         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35078         Likewise.
35079         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35080         Likewise.
35081         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35082         Likewise.
35083         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35084         Likewise.
35085         * modules/unictype/property-id-start (Depends-on, configure.ac):
35086         Likewise.
35087         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35088         Likewise.
35089         * modules/unictype/property-ids-binary-operator (Depends-on,
35090         configure.ac): Likewise.
35091         * modules/unictype/property-ids-trinary-operator (Depends-on,
35092         configure.ac): Likewise.
35093         * modules/unictype/property-ignorable-control (Depends-on,
35094         configure.ac): Likewise.
35095         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35096         Likewise.
35097         * modules/unictype/property-join-control (Depends-on, configure.ac):
35098         Likewise.
35099         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35100         Likewise.
35101         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35102         Likewise.
35103         * modules/unictype/property-logical-order-exception (Depends-on,
35104         configure.ac): Likewise.
35105         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35106         Likewise.
35107         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35108         * modules/unictype/property-non-break (Depends-on, configure.ac):
35109         Likewise.
35110         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35111         Likewise.
35112         * modules/unictype/property-numeric (Depends-on, configure.ac):
35113         Likewise.
35114         * modules/unictype/property-other-alphabetic (Depends-on,
35115         configure.ac): Likewise.
35116         * modules/unictype/property-other-default-ignorable-code-point
35117         (Depends-on, configure.ac): Likewise.
35118         * modules/unictype/property-other-grapheme-extend (Depends-on,
35119         configure.ac): Likewise.
35120         * modules/unictype/property-other-id-continue (Depends-on,
35121         configure.ac): Likewise.
35122         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35123         Likewise.
35124         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35125         Likewise.
35126         * modules/unictype/property-other-math (Depends-on, configure.ac):
35127         Likewise.
35128         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35129         Likewise.
35130         * modules/unictype/property-paired-punctuation (Depends-on,
35131         configure.ac): Likewise.
35132         * modules/unictype/property-paragraph-separator (Depends-on,
35133         configure.ac): Likewise.
35134         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35135         Likewise.
35136         * modules/unictype/property-pattern-white-space (Depends-on,
35137         configure.ac): Likewise.
35138         * modules/unictype/property-private-use (Depends-on, configure.ac):
35139         Likewise.
35140         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35141         Likewise.
35142         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35143         Likewise.
35144         * modules/unictype/property-radical (Depends-on, configure.ac):
35145         Likewise.
35146         * modules/unictype/property-sentence-terminal (Depends-on,
35147         configure.ac): Likewise.
35148         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35149         Likewise.
35150         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35151         * modules/unictype/property-terminal-punctuation (Depends-on,
35152         configure.ac): Likewise.
35153         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35154         Likewise.
35155         * modules/unictype/property-unassigned-code-value (Depends-on,
35156         configure.ac): Likewise.
35157         * modules/unictype/property-unified-ideograph (Depends-on,
35158         configure.ac): Likewise.
35159         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35160         Likewise.
35161         * modules/unictype/property-variation-selector (Depends-on,
35162         configure.ac): Likewise.
35163         * modules/unictype/property-white-space (Depends-on, configure.ac):
35164         Likewise.
35165         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35166         Likewise.
35167         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35168         Likewise.
35169         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35170         Likewise.
35171         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35172         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35173         Likewise.
35174
35175 2009-12-31  Bruno Haible  <bruno@clisp.org>
35176
35177         Remove unnecessary AC_C_INLINE invocation.
35178         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35179         since 2009-08-21.
35180
35181 2009-12-31  Jim Meyering  <meyering@redhat.com>
35182
35183         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35184         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35185         With this change, we can all remove the gpg_key_ID = ... definition
35186         from our respective cfg.mk files.
35187
35188         maint.mk: create announcement template in ~/, not in /tmp
35189         * top/maint.mk (emit_upload_commands): Adjust.
35190         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35191         Remove temporary file, .ci-msg.
35192
35193 2009-12-31  Eric Blake  <ebb9@byu.net>
35194
35195         link-warning: always build headers with link warnings
35196         * modules/arpa_inet (Makefile.am): Always build replacement
35197         header.
35198         * modules/ctype (Makefile.am): Likewise.
35199         * modules/dirent (Makefile.am): Likewise.
35200         * modules/inttypes (Makefile.am): Likewise.
35201         * modules/langinfo (Makefile.am): Likewise.
35202         * modules/locale (Makefile.am): Likewise.
35203         * modules/spawn (Makefile.am): Likewise.
35204         * modules/sys_file (Makefile.am): Likewise.
35205         * modules/sys_ioctl (Makefile.am): Likewise.
35206         * modules/sys_select (Makefile.am): Likewise.
35207         * modules/sys_socket (Makefile.am): Likewise.
35208         * modules/sys_times (Makefile.am): Likewise.
35209         * modules/sys_utsname (Makefile.am): Likewise.
35210         * modules/sys_wait (Makefile.am): Likewise.
35211         * modules/wchar (Makefile.am): Likewise.
35212         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35213         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35214         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35215         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35217         Likewise.
35218         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35219         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35220         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35221         Likewise.
35222         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35223         Likewise.
35224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35226         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35230         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35231         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35232         (gl_WCHAR_H_DEFAULTS): Likewise.
35233
35234 2009-12-31  Eric Blake  <ebb9@byu.net>
35235
35236         signal, spawn: use link warnings
35237         * lib/signal.in.h (sigset_t): Make unconditional.
35238         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35239         (sigpending, sigprocmask, sigaction): Add link warnings.
35240         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35241         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35242         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35243         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35244         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35245         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35246         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35247         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35248         (posix_spawn_file_actions_destroy)
35249         (posix_spawn_file_actions_addopen)
35250         (posix_spawn_file_actions_addclose)
35251         (posix_spawn_file_actions_adddup2): Likewise.
35252         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35253         * tests/test-signal.c (main): Enhance test.
35254
35255         spawn: improve wrapper support
35256         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35257         (gl_SPAWN_H_DEFAULTS): New defaults.
35258         * modules/spawn (Makefile.am): Substitute them.
35259         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35260         Only declare if missing or broken.
35261
35262         sys_times, sys_utsname: use include_next
35263         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35264         header.
35265         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35266         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35267         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35268         * modules/sys_times (Depends-on): Add include_next.
35269         (Makefile.am): Substitute additional values.
35270         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35271         * lib/sys_times.in.h (includes): Include native header, if
35272         available.
35273         * lib/sys_utsname.in.h (includes): Likewise.
35274         * tests/test-sys_times.c (main): Enhance test.
35275
35276         fdutimensat: revert prior patch
35277         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35278         utimens.h.
35279         Reported by Bruno Haible.
35280
35281 2009-12-30  Eric Blake  <ebb9@byu.net>
35282
35283         sys_wait: drop link-warning dependency
35284         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35285         link-warning efforts.
35286         * lib/sys_wait.in.h: Likewise.
35287
35288         fdutimensat: remove bogus dependency
35289         * modules/fdutimensat (Depends-on): Drop inline.
35290
35291         unistd: fix typo
35292         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35293
35294 2009-12-30  Bruno Haible  <bruno@clisp.org>
35295
35296         Fix compilation error with Solaris cc.
35297         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35298         * lib/unicase/u16-is-invariant.c: Likewise.
35299         * lib/unicase/u32-is-invariant.c: Likewise.
35300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35301
35302 2009-12-30  Bruno Haible  <bruno@clisp.org>
35303
35304         Fix test crash.
35305         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35306         locales.
35307         Reported by Simon Josefsson <simon@josefsson.org>.
35308
35309 2009-12-30  Bruno Haible  <bruno@clisp.org>
35310
35311         Fix compilation error on most platforms.
35312         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35313         Reported by Simon Josefsson <simon@josefsson.org>
35314         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35315
35316 2009-12-30  Eric Blake  <ebb9@byu.net>
35317
35318         futimens, utimensat: work around ntfs-3g bug
35319         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35320         a ctime bug is present, and expand workaround to cover ntfs-3g.
35321         * lib/utimens.c (fdutimens, lutimens): Likewise.
35322         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35323         (validate_timespec): Adjust return value.
35324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35325         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35326         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35327
35328 2009-12-29  Eric Blake  <ebb9@byu.net>
35329
35330         link-warning: make usage consistent
35331         * modules/ctype (Depends-on): Add link-warning.
35332         (Makefile.am): Update rules accordingly.
35333         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35334         * modules/locale (Depends-on, Makefile.am): Likewise.
35335         * modules/sys_file (Makefile.am): Likewise.
35336         * modules/getopt-posix (Makefile.am): Delete unused link warning
35337         efforts.
35338         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35339         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35340         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35341         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35342
35343         stdio: remove unused variables
35344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35346         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35347
35348         tests: test more substitute headers
35349         * modules/ctype-tests: New file.
35350         * modules/dirent-tests: Likewise.
35351         * modules/spawn-tests: Likewise.
35352         * modules/sys_file-tests: Likewise.
35353         * modules/sys_ioctl-tests: Likewise.
35354         * modules/sys_wait-tests: Likewise.
35355         * tests/test-ctype.c: Likewise.
35356         * tests/test-dirent.c: Likewise.
35357         * tests/test-spawn.c: Likewise.
35358         * tests/test-sys_file.c: Likewise.
35359         * tests/test-sys_ioctl.c: Likewise.
35360         * tests/test-sys_wait.c: Likewise.
35361         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35362         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35363         whether or not flock is in use.
35364
35365         tests: remove License section from module
35366         * modules/arpa_inet-tests: Remove unneeded section.
35367         * modules/byteswap-tests: Likewise.
35368         * modules/ceilf-tests: Likewise.
35369         * modules/ceill-tests: Likewise.
35370         * modules/crypto/des-tests: Likewise.
35371         * modules/crypto/gc-arcfour-tests: Likewise.
35372         * modules/crypto/gc-arctwo-tests: Likewise.
35373         * modules/crypto/gc-des-tests: Likewise.
35374         * modules/crypto/gc-hmac-md5-tests: Likewise.
35375         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35376         * modules/crypto/gc-md2-tests: Likewise.
35377         * modules/crypto/gc-md4-tests: Likewise.
35378         * modules/crypto/gc-md5-tests: Likewise.
35379         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35380         * modules/crypto/gc-rijndael-tests: Likewise.
35381         * modules/crypto/gc-sha1-tests: Likewise.
35382         * modules/crypto/gc-tests: Likewise.
35383         * modules/crypto/md2-tests: Likewise.
35384         * modules/crypto/md4-tests: Likewise.
35385         * modules/fcntl-h-tests: Likewise.
35386         * modules/floorf-tests: Likewise.
35387         * modules/floorl-tests: Likewise.
35388         * modules/frexp-nolibm-tests: Likewise.
35389         * modules/frexp-tests: Likewise.
35390         * modules/frexpl-nolibm-tests: Likewise.
35391         * modules/frexpl-tests: Likewise.
35392         * modules/getaddrinfo-tests: Likewise.
35393         * modules/inttypes-tests: Likewise.
35394         * modules/isfinite-tests: Likewise.
35395         * modules/isinf-tests: Likewise.
35396         * modules/ldexpl-tests: Likewise.
35397         * modules/locale-tests: Likewise.
35398         * modules/math-tests: Likewise.
35399         * modules/netdb-tests: Likewise.
35400         * modules/netinet_in-tests: Likewise.
35401         * modules/printf-frexp-tests: Likewise.
35402         * modules/printf-frexpl-tests: Likewise.
35403         * modules/priv-set-tests: Likewise.
35404         * modules/random_r-tests: Likewise.
35405         * modules/round-tests: Likewise.
35406         * modules/roundf-tests: Likewise.
35407         * modules/roundl-tests: Likewise.
35408         * modules/search-tests: Likewise.
35409         * modules/select-tests: Likewise.
35410         * modules/signal-tests: Likewise.
35411         * modules/stdbool-tests: Likewise.
35412         * modules/stddef-tests: Likewise.
35413         * modules/stdint-tests: Likewise.
35414         * modules/stdio-tests: Likewise.
35415         * modules/stdlib-tests: Likewise.
35416         * modules/string-tests: Likewise.
35417         * modules/strings-tests: Likewise.
35418         * modules/sys_select-tests: Likewise.
35419         * modules/sys_socket-tests: Likewise.
35420         * modules/sys_stat-tests: Likewise.
35421         * modules/sys_time-tests: Likewise.
35422         * modules/sys_utsname-tests: Likewise.
35423         * modules/sysexits-tests: Likewise.
35424         * modules/time-tests: Likewise.
35425         * modules/trunc-tests: Likewise.
35426         * modules/truncf-tests: Likewise.
35427         * modules/truncl-tests: Likewise.
35428         * modules/tsearch-tests: Likewise.
35429         * modules/unistd-tests: Likewise.
35430         * modules/wchar-tests: Likewise.
35431         * modules/wctype-tests: Likewise.
35432
35433         tests: fix license on several tests
35434         * tests/test-des.c: Update to GPLv3+.
35435         * tests/test-flock.c: Likewise.
35436         * tests/test-fsync.c: Likewise.
35437         * tests/test-futimens.h: Likewise.
35438         * tests/test-gc-arcfour.c: Likewise.
35439         * tests/test-gc-arctwo.c: Likewise.
35440         * tests/test-gc-des.c: Likewise.
35441         * tests/test-gc-hmac-md5.c: Likewise.
35442         * tests/test-gc-hmac-sha1.c: Likewise.
35443         * tests/test-gc-md2.c: Likewise.
35444         * tests/test-gc-md4.c: Likewise.
35445         * tests/test-gc-md5.c: Likewise.
35446         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35447         * tests/test-gc-rijndael.c: Likewise.
35448         * tests/test-gc-sha1.c: Likewise.
35449         * tests/test-gc.c: Likewise.
35450         * tests/test-getcwd.c: Likewise.
35451         * tests/test-link.c: Likewise.
35452         * tests/test-link.h: Likewise.
35453         * tests/test-lutimens.h: Likewise.
35454         * tests/test-md2.c: Likewise.
35455         * tests/test-md4.c: Likewise.
35456         * tests/test-mkdir.h: Likewise.
35457         * tests/test-rename.c: Likewise.
35458         * tests/test-rename.h: Likewise.
35459         * tests/test-safe-alloc.c: Likewise.
35460         * tests/test-utimens-common.h: Likewise.
35461         * tests/test-utimens.h: Likewise.
35462
35463         maint: sync license texts
35464         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35465         * doc/gpl-3.0.texi: Revert copyright year update.
35466         * doc/lgpl-3.0.texi: Likewise.
35467
35468 2009-12-29  Jim Meyering  <meyering@redhat.com>
35469
35470         update nearly all FSF copyright year lists to include 2009
35471         The files named by the following are exempted:
35472             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35473               test -f "$dst" && { echo "$dst"; continue; }
35474               test -d "$dst" || continue
35475               echo "$dst"/$(basename "$src")
35476             done > exempt
35477             git ls-files tests/unictype >> exempt
35478         In the remaining files, convert to all-interval notation if
35479         - there is already at least one year interval like 2000-2003
35480         - the file is maintained by me
35481         - the file is in lib/uni*/, where that style already prevails
35482         Otherwise, use update-copyright's default.
35483
35484 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35485         and Eric Blake  <ebb9@byu.net>
35486
35487         tests: don't require debug system() to pass
35488         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35489         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35490         * tests/test-unlink.h (test_unlink_func): Likewise.
35491         * tests/test-fstatat.c (main): ...into callers.
35492         * tests/test-lstat.c (main): Likewise.
35493         * tests/test-rmdir.c (main): Likewise.
35494         * tests/test-unlink.c (main): Likewise.
35495         * tests/test-unlinkat.c (main): Likewise.
35496         * tests/test-areadlink-with-size.c (main): Don't require a
35497         debug-only system call to pass, aiding cross-testing to mingw.
35498         * tests/test-areadlink.c (main): Likewise.
35499         * tests/test-areadlinkat-with-size.c (main): Likewise.
35500         * tests/test-areadlinkat.c (main): Likewise.
35501         * tests/test-canonicalize-lgpl.c (main): Likewise.
35502         * tests/test-canonicalize.c (main): Likewise.
35503         * tests/test-chown.c (main): Likewise.
35504         * tests/test-fchownat.c (main): Likewise.
35505         * tests/test-lchown.c (main): Likewise.
35506         * tests/test-fdutimensat.c (main): Likewise.
35507         * tests/test-futimens.c (main): Likewise.
35508         * tests/test-link.c (main): Likewise.
35509         * tests/test-linkat.c (main): Likewise.
35510         * tests/test-mkdir.c (main): Likewise.
35511         * tests/test-mkdirat.c (main): Likewise.
35512         * tests/test-mkfifo.c (main): Likewise.
35513         * tests/test-mkfifoat.c (main): Likewise.
35514         * tests/test-mknod.c (main): Likewise.
35515         * tests/test-readlink.c (main): Likewise.
35516         * tests/test-remove.c (main): Likewise.
35517         * tests/test-rename.c (main): Likewise.
35518         * tests/test-renameat.c (main): Likewise.
35519         * tests/test-symlink.c (main): Likewise.
35520         * tests/test-symlinkat.c (main): Likewise.
35521         * tests/test-utimens.c (main): Likewise.
35522         * tests/test-utimensat.c (main): Likewise.
35523
35524 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35525
35526         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35527         on $(UNUSED_PARAMETER_H) to avoid build failure.
35528
35529 2009-12-28  Jim Meyering  <meyering@redhat.com>
35530
35531         update-copyright: you may specify a max. line length other than 72
35532         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35533
35534         maint: use consistent FSF copyright line syntax
35535         * lib/posixtm.c: Add missing comma in FSF copyright line.
35536         * lib/posixtm.h: Likewise.
35537         * lib/getugroups.c: Add missing ", Inc.".
35538
35539         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35540         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35541         FSF copyright line.  Remove trailing blanks.
35542
35543 2009-12-28  Eric Blake  <ebb9@byu.net>
35544
35545         test-dup2: reduce dependencies
35546         * modules/cloexec (Configure.ac): Set witness.
35547         * modules/dup2-tests (Depends-on): Drop cloexec.
35548         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35549         not present.
35550         Suggested by Bruno Haible.
35551
35552 2009-12-26  Bruno Haible  <bruno@clisp.org>
35553
35554         Remove an unneeded dependency.
35555         * modules/fseterr (Depends-on): Remove dup2.
35556
35557 2009-12-26  Eric Blake  <ebb9@byu.net>
35558
35559         tests: use macros.h in more places
35560         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35561         (ASSERT_STREAM): Provide default of stderr.
35562         * tests/test-dirent-safer.c: Include macros.h, using alternate
35563         stream for assertions.
35564         * tests/test-dup-safer.c: Likewise.
35565         * tests/test-freopen-safer.c: Likewise.
35566         * tests/test-getopt.c: Likewise.
35567         * tests/test-openat-safer.c: Likewise.
35568         * tests/test-pipe.c: Likewise.
35569         * tests/test-popen-safer.c: Likewise.
35570         * modules/dirent-safer-tests (Files): Include macros.h.
35571         * modules/unistd-safer-tests (Files): Likewise.
35572         * modules/freopen-safer-tests (Files): Likewise.
35573         * modules/getopt-posix-tests (Files): Likewise.
35574         * modules/openat-safer-tests (Files): Likewise.
35575         * modules/pipe-tests (Files): Likewise.
35576
35577 2009-12-26  Bruno Haible  <bruno@clisp.org>
35578
35579         javacomp: Portability fix.
35580         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35581         that it also works on Solaris.
35582
35583 2009-12-26  Bruno Haible  <bruno@clisp.org>
35584
35585         localename: Fix storage allocation of gl_locale_name_thread's result.
35586         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35587         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35588         all platforms that have 'uselocale'.
35589         (gl_locale_name_thread_unsafe): New function, extracted from
35590         gl_locale_name_thread.
35591         (gl_locale_name_thread): Call struniq on all platforms that have
35592         'uselocale'.
35593         * tests/test-localename.c (test_locale_name_thread): Check that the
35594         resulting strings are permanently allocated.
35595         * modules/localename-tests (Depends-on): Add strdup.
35596
35597 2009-12-26  Bruno Haible  <bruno@clisp.org>
35598
35599         * tests/test-localename.c (categories): Fill in the strings.
35600
35601 2009-12-26  Jim Meyering  <meyering@redhat.com>
35602
35603         isdir: complete the removal of m4/isdir.m4
35604         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35605
35606         isdir: clean up, since at least grep still uses it
35607         * lib/isdir.c: Include "isdir.h".
35608         (S_ISDIR): Remove now-unneeded definition.
35609         * modules/isdir (Files): Add lib/isdir.h.
35610         * lib/isdir.h: New file, with declaration.
35611         * m4/isdir.m4: Remove file -- unneeded.
35612
35613 2009-12-25  Bruno Haible  <bruno@clisp.org>
35614
35615         selinux-h: Make generated .h files standalone.
35616         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35617         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35618         * lib/se-selinux.in.h: Likewise.
35619         * modules/selinux-h (Depends-on): Add unused-parameter.
35620         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35621         selinux/selinux.h and selinux/context.h.
35622         Suggested by Eric Blake.
35623
35624 2009-12-25  Bruno Haible  <bruno@clisp.org>
35625
35626         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35627         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35628         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35629         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35630         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35631
35632 2009-12-24  Bruno Haible  <bruno@clisp.org>
35633
35634         openat: Fix warning.
35635         * lib/openat-proc.c: Include <unistd.h>.
35636
35637 2009-12-24  Bruno Haible  <bruno@clisp.org>
35638
35639         New module 'unused-parameter'.
35640         * build-aux/unused-parameter.h: New file, extracted from earlier
35641         gnulib-common.m4.
35642         * modules/unused-parameter: New file.
35643         * lib/unistr.h: Include unused-parameter.h.
35644         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35645         _GL_UNUSED.
35646         * modules/unistr/base (Depends-on): Add unused-parameter.
35647
35648 2009-12-24  Bruno Haible  <bruno@clisp.org>
35649
35650         Add missing dependencies to 'extensions' module.
35651         * m4/extensions.m4: Add comment.
35652         * modules/accept4 (Depends-on): Add extensions.
35653         * modules/dup3 (Depends-on): Likewise.
35654         * modules/fcntl (Depends-on): Likewise.
35655         * modules/futimens (Depends-on): Likewise.
35656         * modules/mknod (Depends-on): Likewise.
35657         * modules/pipe2 (Depends-on): Likewise.
35658         * modules/stat-time (Depends-on): Likewise.
35659         * modules/strcasestr-simple (Depends-on): Likewise.
35660         * modules/strsignal (Depends-on): Likewise.
35661         * modules/utimensat (Depends-on): Likewise.
35662         * modules/localcharset (Depends-on): Likewise. Needed because of
35663         gl_FCNTL_O_FLAGS.
35664         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35665         AC_TYPE_MBSTATE_T.
35666         * modules/wcsnrtombs (Depends-on): Likewise.
35667         * modules/wcsrtombs (Depends-on): Likewise.
35668
35669 2009-12-24  Bruno Haible  <bruno@clisp.org>
35670
35671         binary-io: Avoid gcc warning due to SET_BINARY.
35672         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35673         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35674
35675 2009-12-24  Bruno Haible  <bruno@clisp.org>
35676
35677         Avoid future namespace pollution on glibc systems.
35678         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35679         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35680         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35681         glibc systems.
35682
35683 2009-12-24  Bruno Haible  <bruno@clisp.org>
35684
35685         Refactor common macros used in tests.
35686         * tests/macros.h: New file.
35687         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35688         and/or <stdlib.h>, if appropriate.
35689         (ASSERT, SIZEOF): Remove macros.
35690         * tests/test-areadlink-with-size.c: Likewise.
35691         * tests/test-areadlinkat.c: Likewise.
35692         * tests/test-areadlinkat-with-size.c: Likewise.
35693         * tests/test-argmatch.c: Likewise.
35694         * tests/test-argv-iter.c: Likewise.
35695         * tests/test-array-mergesort.c: Likewise.
35696         * tests/test-array_list.c: Likewise.
35697         * tests/test-array_oset.c: Likewise.
35698         * tests/test-avltree_list.c: Likewise.
35699         * tests/test-avltree_oset.c: Likewise.
35700         * tests/test-avltreehash_list.c: Likewise.
35701         * tests/test-base64.c: Likewise.
35702         * tests/test-binary-io.c: Likewise.
35703         * tests/test-bitrotate.c: Likewise.
35704         * tests/test-btowc.c: Likewise.
35705         * tests/test-byteswap.c: Likewise.
35706         * tests/test-c-ctype.c: Likewise.
35707         * tests/test-c-stack.c: Likewise.
35708         * tests/test-c-strcasecmp.c: Likewise.
35709         * tests/test-c-strcasestr.c: Likewise.
35710         * tests/test-c-strncasecmp.c: Likewise.
35711         * tests/test-c-strstr.c: Likewise.
35712         * tests/test-canonicalize-lgpl.c: Likewise.
35713         * tests/test-canonicalize.c: Likewise.
35714         * tests/test-carray_list.c: Likewise.
35715         * tests/test-ceilf1.c: Likewise.
35716         * tests/test-ceilf2.c: Likewise.
35717         * tests/test-ceill.c: Likewise.
35718         * tests/test-chown.c: Likewise.
35719         * tests/test-cloexec.c: Likewise.
35720         * tests/test-copy-acl.c: Likewise.
35721         * tests/test-copy-file.c: Likewise.
35722         * tests/test-count-one-bits.c: Likewise.
35723         * tests/test-dprintf-posix.c: Likewise.
35724         * tests/test-dup2.c: Likewise.
35725         * tests/test-dup3.c: Likewise.
35726         * tests/test-duplocale.c: Likewise.
35727         * tests/test-fbufmode.c: Likewise.
35728         * tests/test-fchdir.c: Likewise.
35729         * tests/test-fchownat.c: Likewise.
35730         * tests/test-fcntl-safer.c: Likewise.
35731         * tests/test-fcntl.c: Likewise.
35732         * tests/test-fdopendir.c: Likewise.
35733         * tests/test-fdutimensat.c: Likewise.
35734         * tests/test-fflush2.c: Likewise.
35735         * tests/test-file-has-acl.c: Likewise.
35736         * tests/test-filevercmp.c: Likewise.
35737         * tests/test-flock.c: Likewise.
35738         * tests/test-floorf1.c: Likewise.
35739         * tests/test-floorf2.c: Likewise.
35740         * tests/test-floorl.c: Likewise.
35741         * tests/test-fnmatch.c: Likewise.
35742         * tests/test-fopen.h: Likewise.
35743         * tests/test-fpending.c: Likewise.
35744         * tests/test-fprintf-posix.c: Likewise.
35745         * tests/test-fpurge.c: Likewise.
35746         * tests/test-freadable.c: Likewise.
35747         * tests/test-freadahead.c: Likewise.
35748         * tests/test-freading.c: Likewise.
35749         * tests/test-freadptr.c: Likewise.
35750         * tests/test-freadptr2.c: Likewise.
35751         * tests/test-freadseek.c: Likewise.
35752         * tests/test-freopen.c: Likewise.
35753         * tests/test-frexp.c: Likewise.
35754         * tests/test-frexpl.c: Likewise.
35755         * tests/test-fseek.c: Likewise.
35756         * tests/test-fseeko.c: Likewise.
35757         * tests/test-fstatat.c: Likewise.
35758         * tests/test-fstrcmp.c: Likewise.
35759         * tests/test-fsync.c: Likewise.
35760         * tests/test-ftell.c: Likewise.
35761         * tests/test-ftello.c: Likewise.
35762         * tests/test-func.c: Likewise.
35763         * tests/test-futimens.c: Likewise.
35764         * tests/test-fwritable.c: Likewise.
35765         * tests/test-fwriting.c: Likewise.
35766         * tests/test-getcwd.c: Likewise.
35767         * tests/test-getdate.c: Likewise.
35768         * tests/test-getdelim.c: Likewise.
35769         * tests/test-getdtablesize.c: Likewise.
35770         * tests/test-getgroups.c: Likewise.
35771         * tests/test-getline.c: Likewise.
35772         * tests/test-getndelim2.c: Likewise.
35773         * tests/test-glob.c: Likewise.
35774         * tests/test-hash.c: Likewise.
35775         * tests/test-i-ring.c: Likewise.
35776         * tests/test-iconv-utf.c: Likewise.
35777         * tests/test-iconv.c: Likewise.
35778         * tests/test-idpriv-drop.c: Likewise.
35779         * tests/test-idpriv-droptemp.c: Likewise.
35780         * tests/test-inet_ntop.c: Likewise.
35781         * tests/test-inet_pton.c: Likewise.
35782         * tests/test-isblank.c: Likewise.
35783         * tests/test-isfinite.c: Likewise.
35784         * tests/test-isinf.c: Likewise.
35785         * tests/test-isnan.c: Likewise.
35786         * tests/test-isnand.h: Likewise.
35787         * tests/test-isnanf.h: Likewise.
35788         * tests/test-isnanl.h: Likewise.
35789         * tests/test-lchown.c: Likewise.
35790         * tests/test-ldexpl.c: Likewise.
35791         * tests/test-link.c: Likewise.
35792         * tests/test-linkat.c: Likewise.
35793         * tests/test-linked_list.c: Likewise.
35794         * tests/test-linkedhash_list.c: Likewise.
35795         * tests/test-localename.c: Likewise.
35796         * tests/test-lseek.c: Likewise.
35797         * tests/test-lstat.c: Likewise.
35798         * tests/test-mbmemcasecmp.c: Likewise.
35799         * tests/test-mbmemcasecoll.c: Likewise.
35800         * tests/test-mbrtowc.c: Likewise.
35801         * tests/test-mbscasecmp.c: Likewise.
35802         * tests/test-mbscasestr1.c: Likewise.
35803         * tests/test-mbscasestr2.c: Likewise.
35804         * tests/test-mbscasestr3.c: Likewise.
35805         * tests/test-mbscasestr4.c: Likewise.
35806         * tests/test-mbschr.c: Likewise.
35807         * tests/test-mbscspn.c: Likewise.
35808         * tests/test-mbsinit.c: Likewise.
35809         * tests/test-mbsncasecmp.c: Likewise.
35810         * tests/test-mbsnrtowcs.c: Likewise.
35811         * tests/test-mbspbrk.c: Likewise.
35812         * tests/test-mbspcasecmp.c: Likewise.
35813         * tests/test-mbsrchr.c: Likewise.
35814         * tests/test-mbsrtowcs.c: Likewise.
35815         * tests/test-mbsspn.c: Likewise.
35816         * tests/test-mbsstr1.c: Likewise.
35817         * tests/test-mbsstr2.c: Likewise.
35818         * tests/test-mbsstr3.c: Likewise.
35819         * tests/test-memchr.c: Likewise.
35820         * tests/test-memchr2.c: Likewise.
35821         * tests/test-memcmp.c: Likewise.
35822         * tests/test-memmem.c: Likewise.
35823         * tests/test-memrchr.c: Likewise.
35824         * tests/test-mkdir.c: Likewise.
35825         * tests/test-mkdirat.c: Likewise.
35826         * tests/test-mkfifo.c: Likewise.
35827         * tests/test-mkfifoat.c: Likewise.
35828         * tests/test-mknod.c: Likewise.
35829         * tests/test-nanosleep.c: Likewise.
35830         * tests/test-nl_langinfo.c: Likewise.
35831         * tests/test-obstack-printf.c: Likewise.
35832         * tests/test-open.c: Likewise.
35833         * tests/test-openat.c: Likewise.
35834         * tests/test-pipe-filter-gi1.c: Likewise.
35835         * tests/test-pipe-filter-gi2-main.c: Likewise.
35836         * tests/test-pipe-filter-ii1.c: Likewise.
35837         * tests/test-pipe-filter-ii2-main.c: Likewise.
35838         * tests/test-pipe2.c: Likewise.
35839         * tests/test-popen.h: Likewise.
35840         * tests/test-posixtm.c: Likewise.
35841         * tests/test-pread.c: Likewise.
35842         * tests/test-printf-frexp.c: Likewise.
35843         * tests/test-printf-frexpl.c: Likewise.
35844         * tests/test-printf-posix.c: Likewise.
35845         * tests/test-priv-set.c: Likewise.
35846         * tests/test-quotearg.c: Likewise.
35847         * tests/test-random_r.c: Likewise.
35848         * tests/test-rawmemchr.c: Likewise.
35849         * tests/test-rbtree_list.c: Likewise.
35850         * tests/test-rbtree_oset.c: Likewise.
35851         * tests/test-rbtreehash_list.c: Likewise.
35852         * tests/test-readlink.c: Likewise.
35853         * tests/test-remove.c: Likewise.
35854         * tests/test-rename.c: Likewise.
35855         * tests/test-renameat.c: Likewise.
35856         * tests/test-rmdir.c: Likewise.
35857         * tests/test-round1.c: Likewise.
35858         * tests/test-roundf1.c: Likewise.
35859         * tests/test-roundl.c: Likewise.
35860         * tests/test-safe-alloc.c: Likewise.
35861         * tests/test-sameacls.c: Likewise.
35862         * tests/test-set-mode-acl.c: Likewise.
35863         * tests/test-setenv.c: Likewise.
35864         * tests/test-sigaction.c: Likewise.
35865         * tests/test-signbit.c: Likewise.
35866         * tests/test-sleep.c: Likewise.
35867         * tests/test-snprintf-posix.c: Likewise.
35868         * tests/test-snprintf.c: Likewise.
35869         * tests/test-sprintf-posix.c: Likewise.
35870         * tests/test-stat-time.c: Likewise.
35871         * tests/test-stat.c: Likewise.
35872         * tests/test-strcasestr.c: Likewise.
35873         * tests/test-strchrnul.c: Likewise.
35874         * tests/test-strerror.c: Likewise.
35875         * tests/test-striconv.c: Likewise.
35876         * tests/test-striconveh.c: Likewise.
35877         * tests/test-striconveha.c: Likewise.
35878         * tests/test-strsignal.c: Likewise.
35879         * tests/test-strstr.c: Likewise.
35880         * tests/test-strtod.c: Likewise.
35881         * tests/test-strverscmp.c: Likewise.
35882         * tests/test-symlink.c: Likewise.
35883         * tests/test-symlinkat.c: Likewise.
35884         * tests/test-trunc1.c: Likewise.
35885         * tests/test-trunc2.c: Likewise.
35886         * tests/test-truncf1.c: Likewise.
35887         * tests/test-truncf2.c: Likewise.
35888         * tests/test-truncl.c: Likewise.
35889         * tests/test-uname.c: Likewise.
35890         * tests/test-unlink.c: Likewise.
35891         * tests/test-unlinkat.c: Likewise.
35892         * tests/test-unsetenv.c: Likewise.
35893         * tests/test-usleep.c: Likewise.
35894         * tests/test-utimens.c: Likewise.
35895         * tests/test-utimensat.c: Likewise.
35896         * tests/test-vasnprintf-posix.c: Likewise.
35897         * tests/test-vasnprintf-posix2.c: Likewise.
35898         * tests/test-vasnprintf.c: Likewise.
35899         * tests/test-vasprintf-posix.c: Likewise.
35900         * tests/test-vasprintf.c: Likewise.
35901         * tests/test-vdprintf-posix.c: Likewise.
35902         * tests/test-vfprintf-posix.c: Likewise.
35903         * tests/test-vprintf-posix.c: Likewise.
35904         * tests/test-vsnprintf-posix.c: Likewise.
35905         * tests/test-vsnprintf.c: Likewise.
35906         * tests/test-vsprintf-posix.c: Likewise.
35907         * tests/test-wcrtomb.c: Likewise.
35908         * tests/test-wcsnrtombs.c: Likewise.
35909         * tests/test-wcsrtombs.c: Likewise.
35910         * tests/test-wctype.c: Likewise.
35911         * tests/test-wcwidth.c: Likewise.
35912         * tests/test-xfprintf-posix.c: Likewise.
35913         * tests/test-xmemdup0.c: Likewise.
35914         * tests/test-xprintf-posix.c: Likewise.
35915         * tests/test-xvasprintf.c: Likewise.
35916         * tests/unicase/test-locale-language.c: Likewise.
35917         * tests/unicase/test-mapping-part1.h: Likewise.
35918         * tests/unicase/test-predicate-part1.h: Likewise.
35919         * tests/unicase/test-u8-casecmp.c: Likewise.
35920         * tests/unicase/test-u8-casecoll.c: Likewise.
35921         * tests/unicase/test-u8-casefold.c: Likewise.
35922         * tests/unicase/test-u8-is-cased.c: Likewise.
35923         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35924         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35925         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35926         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35927         * tests/unicase/test-u8-tolower.c: Likewise.
35928         * tests/unicase/test-u8-totitle.c: Likewise.
35929         * tests/unicase/test-u8-toupper.c: Likewise.
35930         * tests/unicase/test-u16-casecmp.c: Likewise.
35931         * tests/unicase/test-u16-casecoll.c: Likewise.
35932         * tests/unicase/test-u16-casefold.c: Likewise.
35933         * tests/unicase/test-u16-is-cased.c: Likewise.
35934         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35935         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35936         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35937         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35938         * tests/unicase/test-u16-tolower.c: Likewise.
35939         * tests/unicase/test-u16-totitle.c: Likewise.
35940         * tests/unicase/test-u16-toupper.c: Likewise.
35941         * tests/unicase/test-u32-casecmp.c: Likewise.
35942         * tests/unicase/test-u32-casecoll.c: Likewise.
35943         * tests/unicase/test-u32-casefold.c: Likewise.
35944         * tests/unicase/test-u32-is-cased.c: Likewise.
35945         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35946         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35947         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35948         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35949         * tests/unicase/test-u32-tolower.c: Likewise.
35950         * tests/unicase/test-u32-totitle.c: Likewise.
35951         * tests/unicase/test-u32-toupper.c: Likewise.
35952         * tests/unicase/test-ulc-casecmp.c: Likewise.
35953         * tests/unicase/test-ulc-casecoll.c: Likewise.
35954         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35955         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35956         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35957         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35958         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35959         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35960         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35961         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35962         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35963         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35964         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35965         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35966         * tests/unictype/test-bidi_byname.c: Likewise.
35967         * tests/unictype/test-bidi_name.c: Likewise.
35968         * tests/unictype/test-bidi_of.c: Likewise.
35969         * tests/unictype/test-bidi_test.c: Likewise.
35970         * tests/unictype/test-block_list.c: Likewise.
35971         * tests/unictype/test-block_of.c: Likewise.
35972         * tests/unictype/test-block_test.c: Likewise.
35973         * tests/unictype/test-categ_and.c: Likewise.
35974         * tests/unictype/test-categ_and_not.c: Likewise.
35975         * tests/unictype/test-categ_byname.c: Likewise.
35976         * tests/unictype/test-categ_name.c: Likewise.
35977         * tests/unictype/test-categ_none.c: Likewise.
35978         * tests/unictype/test-categ_of.c: Likewise.
35979         * tests/unictype/test-categ_or.c: Likewise.
35980         * tests/unictype/test-categ_test_withtable.c: Likewise.
35981         * tests/unictype/test-combining.c: Likewise.
35982         * tests/unictype/test-decdigit.c: Likewise.
35983         * tests/unictype/test-digit.c: Likewise.
35984         * tests/unictype/test-mirror.c: Likewise.
35985         * tests/unictype/test-numeric.c: Likewise.
35986         * tests/unictype/test-pr_byname.c: Likewise.
35987         * tests/unictype/test-pr_test.c: Likewise.
35988         * tests/unictype/test-predicate-part1.h: Likewise.
35989         * tests/unictype/test-scripts.c: Likewise.
35990         * tests/unictype/test-sy_c_ident.c: Likewise.
35991         * tests/unictype/test-sy_java_ident.c: Likewise.
35992         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35993         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35994         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35995         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35996         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35997         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35998         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35999         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36000         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36001         * tests/uninorm/test-compat-decomposition.c: Likewise.
36002         * tests/uninorm/test-composition.c: Likewise.
36003         * tests/uninorm/test-decomposing-form.c: Likewise.
36004         * tests/uninorm/test-decomposition.c: Likewise.
36005         * tests/uninorm/test-u8-nfc.c: Likewise.
36006         * tests/uninorm/test-u8-nfd.c: Likewise.
36007         * tests/uninorm/test-u8-nfkc.c: Likewise.
36008         * tests/uninorm/test-u8-nfkd.c: Likewise.
36009         * tests/uninorm/test-u8-normcmp.c: Likewise.
36010         * tests/uninorm/test-u8-normcoll.c: Likewise.
36011         * tests/uninorm/test-u16-nfc.c: Likewise.
36012         * tests/uninorm/test-u16-nfd.c: Likewise.
36013         * tests/uninorm/test-u16-nfkc.c: Likewise.
36014         * tests/uninorm/test-u16-nfkd.c: Likewise.
36015         * tests/uninorm/test-u16-normcmp.c: Likewise.
36016         * tests/uninorm/test-u16-normcoll.c: Likewise.
36017         * tests/uninorm/test-u32-nfc.c: Likewise.
36018         * tests/uninorm/test-u32-nfd.c: Likewise.
36019         * tests/uninorm/test-u32-nfkc.c: Likewise.
36020         * tests/uninorm/test-u32-nfkd.c: Likewise.
36021         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36022         * tests/uninorm/test-u32-normcmp.c: Likewise.
36023         * tests/uninorm/test-u32-normcoll.c: Likewise.
36024         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36025         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36026         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36027         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36028         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36029         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36030         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36031         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36032         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36033         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36034         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36035         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36036         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36037         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36038         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36039         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36040         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36041         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36042         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36043         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36044         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36045         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36046         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36053         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36054         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36055         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36056         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36058         * tests/uniwidth/test-u8-width.c: Likewise.
36059         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36060         * tests/uniwidth/test-u16-width.c: Likewise.
36061         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36062         * tests/uniwidth/test-u32-width.c: Likewise.
36063         * tests/uniwidth/test-uc_width.c: Likewise.
36064         * tests/uniwidth/test-uc_width2.c: Likewise.
36065         * modules/acl-tests (Files): Add tests/macros.h.
36066         * modules/areadlink-tests (Files): Likewise.
36067         * modules/areadlink-with-size-tests (Files): Likewise.
36068         * modules/areadlinkat-tests (Files): Likewise.
36069         * modules/areadlinkat-with-size-tests (Files): Likewise.
36070         * modules/argmatch-tests (Files): Likewise.
36071         * modules/argv-iter-tests (Files): Likewise.
36072         * modules/array-list-tests (Files): Likewise.
36073         * modules/array-mergesort-tests (Files): Likewise.
36074         * modules/array-oset-tests (Files): Likewise.
36075         * modules/avltree-list-tests (Files): Likewise.
36076         * modules/avltree-oset-tests (Files): Likewise.
36077         * modules/avltreehash-list-tests (Files): Likewise.
36078         * modules/base64-tests (Files): Likewise.
36079         * modules/binary-io-tests (Files): Likewise.
36080         * modules/bitrotate-tests (Files): Likewise.
36081         * modules/btowc-tests (Files): Likewise.
36082         * modules/byteswap-tests (Files): Likewise.
36083         * modules/c-ctype-tests (Files): Likewise.
36084         * modules/c-stack-tests (Files): Likewise.
36085         * modules/c-strcase-tests (Files): Likewise.
36086         * modules/c-strcasestr-tests (Files): Likewise.
36087         * modules/c-strstr-tests (Files): Likewise.
36088         * modules/canonicalize-lgpl-tests (Files): Likewise.
36089         * modules/canonicalize-tests (Files): Likewise.
36090         * modules/carray-list-tests (Files): Likewise.
36091         * modules/ceilf-tests (Files): Likewise.
36092         * modules/ceill-tests (Files): Likewise.
36093         * modules/chown-tests (Files): Likewise.
36094         * modules/cloexec-tests (Files): Likewise.
36095         * modules/copy-file-tests (Files): Likewise.
36096         * modules/count-one-bits-tests (Files): Likewise.
36097         * modules/dprintf-posix-tests (Files): Likewise.
36098         * modules/dup2-tests (Files): Likewise.
36099         * modules/dup3-tests (Files): Likewise.
36100         * modules/duplocale-tests (Files): Likewise.
36101         * modules/fbufmode-tests (Files): Likewise.
36102         * modules/fchdir-tests (Files): Likewise.
36103         * modules/fcntl-safer-tests (Files): Likewise.
36104         * modules/fcntl-tests (Files): Likewise.
36105         * modules/fdopendir-tests (Files): Likewise.
36106         * modules/fdutimensat-tests (Files): Likewise.
36107         * modules/fflush-tests (Files): Likewise.
36108         * modules/filevercmp-tests (Files): Likewise.
36109         * modules/flock-tests (Files): Likewise.
36110         * modules/floorf-tests (Files): Likewise.
36111         * modules/floorl-tests (Files): Likewise.
36112         * modules/fnmatch-tests (Files): Likewise.
36113         * modules/fopen-safer-tests (Files): Likewise.
36114         * modules/fopen-tests (Files): Likewise.
36115         * modules/fpending-tests (Files): Likewise.
36116         * modules/fprintf-posix-tests (Files): Likewise.
36117         * modules/fpurge-tests (Files): Likewise.
36118         * modules/freadable-tests (Files): Likewise.
36119         * modules/freadahead-tests (Files): Likewise.
36120         * modules/freading-tests (Files): Likewise.
36121         * modules/freadptr-tests (Files): Likewise.
36122         * modules/freadseek-tests (Files): Likewise.
36123         * modules/freopen-tests (Files): Likewise.
36124         * modules/frexp-nolibm-tests (Files): Likewise.
36125         * modules/frexp-tests (Files): Likewise.
36126         * modules/frexpl-nolibm-tests (Files): Likewise.
36127         * modules/frexpl-tests (Files): Likewise.
36128         * modules/fseek-tests (Files): Likewise.
36129         * modules/fseeko-tests (Files): Likewise.
36130         * modules/fstrcmp-tests (Files): Likewise.
36131         * modules/fsync-tests (Files): Likewise.
36132         * modules/ftell-tests (Files): Likewise.
36133         * modules/ftello-tests (Files): Likewise.
36134         * modules/func-tests (Files): Likewise.
36135         * modules/futimens-tests (Files): Likewise.
36136         * modules/fwritable-tests (Files): Likewise.
36137         * modules/fwriting-tests (Files): Likewise.
36138         * modules/getcwd-tests (Files): Likewise.
36139         * modules/getdate-tests (Files): Likewise.
36140         * modules/getdelim-tests (Files): Likewise.
36141         * modules/getdtablesize-tests (Files): Likewise.
36142         * modules/getgroups-tests (Files): Likewise.
36143         * modules/getline-tests (Files): Likewise.
36144         * modules/getndelim2-tests (Files): Likewise.
36145         * modules/glob-tests (Files): Likewise.
36146         * modules/hash-tests (Files): Likewise.
36147         * modules/i-ring-tests (Files): Likewise.
36148         * modules/iconv-tests (Files): Likewise.
36149         * modules/iconv_open-utf-tests (Files): Likewise.
36150         * modules/idpriv-drop-tests (Files): Likewise.
36151         * modules/idpriv-droptemp-tests (Files): Likewise.
36152         * modules/inet_ntop-tests (Files): Likewise.
36153         * modules/inet_pton-tests (Files): Likewise.
36154         * modules/isblank-tests (Files): Likewise.
36155         * modules/isfinite-tests (Files): Likewise.
36156         * modules/isinf-tests (Files): Likewise.
36157         * modules/isnan-tests (Files): Likewise.
36158         * modules/isnand-nolibm-tests (Files): Likewise.
36159         * modules/isnand-tests (Files): Likewise.
36160         * modules/isnanf-nolibm-tests (Files): Likewise.
36161         * modules/isnanf-tests (Files): Likewise.
36162         * modules/isnanl-nolibm-tests (Files): Likewise.
36163         * modules/isnanl-tests (Files): Likewise.
36164         * modules/lchown-tests (Files): Likewise.
36165         * modules/ldexpl-tests (Files): Likewise.
36166         * modules/link-tests (Files): Likewise.
36167         * modules/linkat-tests (Files): Likewise.
36168         * modules/linked-list-tests (Files): Likewise.
36169         * modules/linkedhash-list-tests (Files): Likewise.
36170         * modules/localename-tests (Files): Likewise.
36171         * modules/lseek-tests (Files): Likewise.
36172         * modules/lstat-tests (Files): Likewise.
36173         * modules/mbmemcasecmp-tests (Files): Likewise.
36174         * modules/mbmemcasecoll-tests (Files): Likewise.
36175         * modules/mbrtowc-tests (Files): Likewise.
36176         * modules/mbscasecmp-tests (Files): Likewise.
36177         * modules/mbscasestr-tests (Files): Likewise.
36178         * modules/mbschr-tests (Files): Likewise.
36179         * modules/mbscspn-tests (Files): Likewise.
36180         * modules/mbsinit-tests (Files): Likewise.
36181         * modules/mbsncasecmp-tests (Files): Likewise.
36182         * modules/mbsnrtowcs-tests (Files): Likewise.
36183         * modules/mbspbrk-tests (Files): Likewise.
36184         * modules/mbspcasecmp-tests (Files): Likewise.
36185         * modules/mbsrchr-tests (Files): Likewise.
36186         * modules/mbsrtowcs-tests (Files): Likewise.
36187         * modules/mbsspn-tests (Files): Likewise.
36188         * modules/mbsstr-tests (Files): Likewise.
36189         * modules/memchr-tests (Files): Likewise.
36190         * modules/memchr2-tests (Files): Likewise.
36191         * modules/memcmp-tests (Files): Likewise.
36192         * modules/memmem-tests (Files): Likewise.
36193         * modules/memrchr-tests (Files): Likewise.
36194         * modules/mkdir-tests (Files): Likewise.
36195         * modules/mkfifo-tests (Files): Likewise.
36196         * modules/mkfifoat-tests (Files): Likewise.
36197         * modules/mknod-tests (Files): Likewise.
36198         * modules/nanosleep-tests (Files): Likewise.
36199         * modules/nl_langinfo-tests (Files): Likewise.
36200         * modules/obstack-printf-tests (Files): Likewise.
36201         * modules/open-tests (Files): Likewise.
36202         * modules/openat-tests (Files): Likewise.
36203         * modules/pipe-filter-gi-tests (Files): Likewise.
36204         * modules/pipe-filter-ii-tests (Files): Likewise.
36205         * modules/pipe2-tests (Files): Likewise.
36206         * modules/popen-safer-tests (Files): Likewise.
36207         * modules/popen-tests (Files): Likewise.
36208         * modules/posixtm-tests (Files): Likewise.
36209         * modules/pread-tests (Files): Likewise.
36210         * modules/printf-frexp-tests (Files): Likewise.
36211         * modules/printf-frexpl-tests (Files): Likewise.
36212         * modules/printf-posix-tests (Files): Likewise.
36213         * modules/priv-set-tests (Files): Likewise.
36214         * modules/quotearg-tests (Files): Likewise.
36215         * modules/random_r-tests (Files): Likewise.
36216         * modules/rawmemchr-tests (Files): Likewise.
36217         * modules/rbtree-list-tests (Files): Likewise.
36218         * modules/rbtree-oset-tests (Files): Likewise.
36219         * modules/rbtreehash-list-tests (Files): Likewise.
36220         * modules/readlink-tests (Files): Likewise.
36221         * modules/remove-tests (Files): Likewise.
36222         * modules/rename-tests (Files): Likewise.
36223         * modules/renameat-tests (Files): Likewise.
36224         * modules/rmdir-tests (Files): Likewise.
36225         * modules/round-tests (Files): Likewise.
36226         * modules/roundf-tests (Files): Likewise.
36227         * modules/roundl-tests (Files): Likewise.
36228         * modules/safe-alloc-tests (Files): Likewise.
36229         * modules/setenv-tests (Files): Likewise.
36230         * modules/sigaction-tests (Files): Likewise.
36231         * modules/signbit-tests (Files): Likewise.
36232         * modules/sleep-tests (Files): Likewise.
36233         * modules/snprintf-posix-tests (Files): Likewise.
36234         * modules/snprintf-tests (Files): Likewise.
36235         * modules/sprintf-posix-tests (Files): Likewise.
36236         * modules/stat-tests (Files): Likewise.
36237         * modules/stat-time-tests (Files): Likewise.
36238         * modules/strcasestr-tests (Files): Likewise.
36239         * modules/strchrnul-tests (Files): Likewise.
36240         * modules/strerror-tests (Files): Likewise.
36241         * modules/striconv-tests (Files): Likewise.
36242         * modules/striconveh-tests (Files): Likewise.
36243         * modules/striconveha-tests (Files): Likewise.
36244         * modules/strsignal-tests (Files): Likewise.
36245         * modules/strstr-tests (Files): Likewise.
36246         * modules/strtod-tests (Files): Likewise.
36247         * modules/strverscmp-tests (Files): Likewise.
36248         * modules/symlink-tests (Files): Likewise.
36249         * modules/symlinkat-tests (Files): Likewise.
36250         * modules/trunc-tests (Files): Likewise.
36251         * modules/truncf-tests (Files): Likewise.
36252         * modules/truncl-tests (Files): Likewise.
36253         * modules/uname-tests (Files): Likewise.
36254         * modules/unicase/cased-tests (Files): Likewise.
36255         * modules/unicase/ignorable-tests (Files): Likewise.
36256         * modules/unicase/locale-language-tests (Files): Likewise.
36257         * modules/unicase/tolower-tests (Files): Likewise.
36258         * modules/unicase/totitle-tests (Files): Likewise.
36259         * modules/unicase/toupper-tests (Files): Likewise.
36260         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36261         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36262         * modules/unicase/u8-casefold-tests (Files): Likewise.
36263         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36264         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36265         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36266         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36267         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36268         * modules/unicase/u8-tolower-tests (Files): Likewise.
36269         * modules/unicase/u8-totitle-tests (Files): Likewise.
36270         * modules/unicase/u8-toupper-tests (Files): Likewise.
36271         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36272         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36273         * modules/unicase/u16-casefold-tests (Files): Likewise.
36274         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36275         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36276         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36277         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36278         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36279         * modules/unicase/u16-tolower-tests (Files): Likewise.
36280         * modules/unicase/u16-totitle-tests (Files): Likewise.
36281         * modules/unicase/u16-toupper-tests (Files): Likewise.
36282         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36283         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36284         * modules/unicase/u32-casefold-tests (Files): Likewise.
36285         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36286         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36287         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36288         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36289         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36290         * modules/unicase/u32-tolower-tests (Files): Likewise.
36291         * modules/unicase/u32-totitle-tests (Files): Likewise.
36292         * modules/unicase/u32-toupper-tests (Files): Likewise.
36293         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36294         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36295         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36296         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36297         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36298         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36299         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36300         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36301         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36302         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36303         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36304         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36305         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36306         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36307         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36308         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36309         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36310         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36311         * modules/unictype/block-list-tests (Files): Likewise.
36312         * modules/unictype/block-of-tests (Files): Likewise.
36313         * modules/unictype/block-test-tests (Files): Likewise.
36314         * modules/unictype/category-C-tests (Files): Likewise.
36315         * modules/unictype/category-Cc-tests (Files): Likewise.
36316         * modules/unictype/category-Cf-tests (Files): Likewise.
36317         * modules/unictype/category-Cn-tests (Files): Likewise.
36318         * modules/unictype/category-Co-tests (Files): Likewise.
36319         * modules/unictype/category-Cs-tests (Files): Likewise.
36320         * modules/unictype/category-L-tests (Files): Likewise.
36321         * modules/unictype/category-Ll-tests (Files): Likewise.
36322         * modules/unictype/category-Lm-tests (Files): Likewise.
36323         * modules/unictype/category-Lo-tests (Files): Likewise.
36324         * modules/unictype/category-Lt-tests (Files): Likewise.
36325         * modules/unictype/category-Lu-tests (Files): Likewise.
36326         * modules/unictype/category-M-tests (Files): Likewise.
36327         * modules/unictype/category-Mc-tests (Files): Likewise.
36328         * modules/unictype/category-Me-tests (Files): Likewise.
36329         * modules/unictype/category-Mn-tests (Files): Likewise.
36330         * modules/unictype/category-N-tests (Files): Likewise.
36331         * modules/unictype/category-Nd-tests (Files): Likewise.
36332         * modules/unictype/category-Nl-tests (Files): Likewise.
36333         * modules/unictype/category-No-tests (Files): Likewise.
36334         * modules/unictype/category-P-tests (Files): Likewise.
36335         * modules/unictype/category-Pc-tests (Files): Likewise.
36336         * modules/unictype/category-Pd-tests (Files): Likewise.
36337         * modules/unictype/category-Pe-tests (Files): Likewise.
36338         * modules/unictype/category-Pf-tests (Files): Likewise.
36339         * modules/unictype/category-Pi-tests (Files): Likewise.
36340         * modules/unictype/category-Po-tests (Files): Likewise.
36341         * modules/unictype/category-Ps-tests (Files): Likewise.
36342         * modules/unictype/category-S-tests (Files): Likewise.
36343         * modules/unictype/category-Sc-tests (Files): Likewise.
36344         * modules/unictype/category-Sk-tests (Files): Likewise.
36345         * modules/unictype/category-Sm-tests (Files): Likewise.
36346         * modules/unictype/category-So-tests (Files): Likewise.
36347         * modules/unictype/category-Z-tests (Files): Likewise.
36348         * modules/unictype/category-Zl-tests (Files): Likewise.
36349         * modules/unictype/category-Zp-tests (Files): Likewise.
36350         * modules/unictype/category-Zs-tests (Files): Likewise.
36351         * modules/unictype/category-and-not-tests (Files): Likewise.
36352         * modules/unictype/category-and-tests (Files): Likewise.
36353         * modules/unictype/category-byname-tests (Files): Likewise.
36354         * modules/unictype/category-name-tests (Files): Likewise.
36355         * modules/unictype/category-none-tests (Files): Likewise.
36356         * modules/unictype/category-of-tests (Files): Likewise.
36357         * modules/unictype/category-or-tests (Files): Likewise.
36358         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36359         * modules/unictype/combining-class-tests (Files): Likewise.
36360         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36361         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36362         * modules/unictype/ctype-blank-tests (Files): Likewise.
36363         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36364         * modules/unictype/ctype-digit-tests (Files): Likewise.
36365         * modules/unictype/ctype-graph-tests (Files): Likewise.
36366         * modules/unictype/ctype-lower-tests (Files): Likewise.
36367         * modules/unictype/ctype-print-tests (Files): Likewise.
36368         * modules/unictype/ctype-punct-tests (Files): Likewise.
36369         * modules/unictype/ctype-space-tests (Files): Likewise.
36370         * modules/unictype/ctype-upper-tests (Files): Likewise.
36371         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36372         * modules/unictype/decimal-digit-tests (Files): Likewise.
36373         * modules/unictype/digit-tests (Files): Likewise.
36374         * modules/unictype/mirror-tests (Files): Likewise.
36375         * modules/unictype/numeric-tests (Files): Likewise.
36376         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36377         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36378         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36379         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36380         Likewise.
36381         * modules/unictype/property-bidi-block-separator-tests (Files):
36382         Likewise.
36383         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36384         Likewise.
36385         * modules/unictype/property-bidi-common-separator-tests (Files):
36386         Likewise.
36387         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36388         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36389         Likewise.
36390         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36391         Likewise.
36392         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36393         Likewise.
36394         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36395         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36396         Likewise.
36397         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36398         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36399         Likewise.
36400         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36401         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36402         * modules/unictype/property-bidi-segment-separator-tests (Files):
36403         Likewise.
36404         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36405         * modules/unictype/property-byname-tests (Files): Likewise.
36406         * modules/unictype/property-combining-tests (Files): Likewise.
36407         * modules/unictype/property-composite-tests (Files): Likewise.
36408         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36409         * modules/unictype/property-dash-tests (Files): Likewise.
36410         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36411         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36412         Likewise.
36413         * modules/unictype/property-deprecated-tests (Files): Likewise.
36414         * modules/unictype/property-diacritic-tests (Files): Likewise.
36415         * modules/unictype/property-extender-tests (Files): Likewise.
36416         * modules/unictype/property-format-control-tests (Files): Likewise.
36417         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36418         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36419         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36420         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36421         * modules/unictype/property-hyphen-tests (Files): Likewise.
36422         * modules/unictype/property-id-continue-tests (Files): Likewise.
36423         * modules/unictype/property-id-start-tests (Files): Likewise.
36424         * modules/unictype/property-ideographic-tests (Files): Likewise.
36425         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36426         * modules/unictype/property-ids-trinary-operator-tests (Files):
36427         Likewise.
36428         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36429         * modules/unictype/property-iso-control-tests (Files): Likewise.
36430         * modules/unictype/property-join-control-tests (Files): Likewise.
36431         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36432         * modules/unictype/property-line-separator-tests (Files): Likewise.
36433         * modules/unictype/property-logical-order-exception-tests (Files):
36434         Likewise.
36435         * modules/unictype/property-lowercase-tests (Files): Likewise.
36436         * modules/unictype/property-math-tests (Files): Likewise.
36437         * modules/unictype/property-non-break-tests (Files): Likewise.
36438         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36439         * modules/unictype/property-numeric-tests (Files): Likewise.
36440         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36441         * modules/unictype/property-other-default-ignorable-code-point-tests
36442         (Files): Likewise.
36443         * modules/unictype/property-other-grapheme-extend-tests (Files):
36444         Likewise.
36445         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36446         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36447         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36448         * modules/unictype/property-other-math-tests (Files): Likewise.
36449         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36450         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36451         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36452         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36453         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36454         * modules/unictype/property-private-use-tests (Files): Likewise.
36455         * modules/unictype/property-punctuation-tests (Files): Likewise.
36456         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36457         * modules/unictype/property-radical-tests (Files): Likewise.
36458         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36459         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36460         * modules/unictype/property-space-tests (Files): Likewise.
36461         * modules/unictype/property-terminal-punctuation-tests (Files):
36462         Likewise.
36463         * modules/unictype/property-test-tests (Files): Likewise.
36464         * modules/unictype/property-titlecase-tests (Files): Likewise.
36465         * modules/unictype/property-unassigned-code-value-tests (Files):
36466         Likewise.
36467         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36468         * modules/unictype/property-uppercase-tests (Files): Likewise.
36469         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36470         * modules/unictype/property-white-space-tests (Files): Likewise.
36471         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36472         * modules/unictype/property-xid-start-tests (Files): Likewise.
36473         * modules/unictype/property-zero-width-tests (Files): Likewise.
36474         * modules/unictype/scripts-tests (Files): Likewise.
36475         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36476         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36477         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36478         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36479         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36480         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36481         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36482         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36483         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36484         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36485         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36486         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36487         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36488         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36489         * modules/uninorm/composition-tests (Files): Likewise.
36490         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36491         * modules/uninorm/decomposition-tests (Files): Likewise.
36492         * modules/uninorm/filter-tests (Files): Likewise.
36493         * modules/uninorm/nfc-tests (Files): Likewise.
36494         * modules/uninorm/nfd-tests (Files): Likewise.
36495         * modules/uninorm/nfkc-tests (Files): Likewise.
36496         * modules/uninorm/nfkd-tests (Files): Likewise.
36497         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36498         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36499         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36500         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36501         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36502         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36503         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36504         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36505         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36506         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36507         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36508         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36509         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36510         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36511         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36512         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36513         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36514         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36515         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36516         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36517         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36518         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36519         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36520         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36521         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36522         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36523         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36524         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36525         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36526         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36527         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36528         * modules/uniwidth/u8-width-tests (Files): Likewise.
36529         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36530         * modules/uniwidth/u16-width-tests (Files): Likewise.
36531         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36532         * modules/uniwidth/u32-width-tests (Files): Likewise.
36533         * modules/uniwidth/width-tests (Files): Likewise.
36534         * modules/unlink-tests (Files): Likewise.
36535         * modules/unsetenv-tests (Files): Likewise.
36536         * modules/usleep-tests (Files): Likewise.
36537         * modules/utimens-tests (Files): Likewise.
36538         * modules/utimensat-tests (Files): Likewise.
36539         * modules/vasnprintf-posix-tests (Files): Likewise.
36540         * modules/vasnprintf-tests (Files): Likewise.
36541         * modules/vasprintf-posix-tests (Files): Likewise.
36542         * modules/vasprintf-tests (Files): Likewise.
36543         * modules/vdprintf-posix-tests (Files): Likewise.
36544         * modules/vfprintf-posix-tests (Files): Likewise.
36545         * modules/vprintf-posix-tests (Files): Likewise.
36546         * modules/vsnprintf-posix-tests (Files): Likewise.
36547         * modules/vsnprintf-tests (Files): Likewise.
36548         * modules/vsprintf-posix-tests (Files): Likewise.
36549         * modules/wcrtomb-tests (Files): Likewise.
36550         * modules/wcsnrtombs-tests (Files): Likewise.
36551         * modules/wcsrtombs-tests (Files): Likewise.
36552         * modules/wctype-tests (Files): Likewise.
36553         * modules/wcwidth-tests (Files): Likewise.
36554         * modules/xmemdup0-tests (Files): Likewise.
36555         * modules/xprintf-posix-tests (Files): Likewise.
36556         * modules/xvasprintf-tests (Files): Likewise.
36557
36558 2009-12-24  Eric Blake  <ebb9@byu.net>
36559
36560         test-nanosleep: fix typo
36561         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36562         patch.
36563         Reported by Bruno Haible.
36564
36565 2009-12-24  Bruno Haible  <bruno@clisp.org>
36566
36567         Reduce namespace pollution on glibc systems.
36568         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36569         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36570         systems.
36571         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36572         <getopt.h> on glibc systems.
36573         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36574         systems.
36575         * lib/fcntl.c: Include <unistd.h> here instead.
36576
36577 2009-12-24  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36580
36581 2009-12-24  Eric Blake  <ebb9@byu.net>
36582
36583         tests: add signature checks
36584         * tests/signature.h (SIGNATURE_CHECK): New file.
36585         * modules/atexit-tests (Files): Use it.
36586         * modules/btowc-tests (Files): Likewise.
36587         * modules/canonicalize-lgpl-tests (Files): Likewise.
36588         * modules/ceilf-tests (Files): Likewise.
36589         * modules/ceill-tests (Files): Likewise.
36590         * modules/chown-tests (Files): Likewise.
36591         * modules/dprintf-posix-tests (Files): Likewise.
36592         * modules/dup2-tests (Files): Likewise.
36593         * modules/dup3-tests (Files): Likewise.
36594         * modules/duplocale-tests (Files): Likewise.
36595         * modules/fchdir-tests (Files): Likewise.
36596         * modules/fcntl-tests (Files): Likewise.
36597         * modules/fdopendir-tests (Files): Likewise.
36598         * modules/fflush-tests (Files): Likewise.
36599         * modules/flock-tests (Files): Likewise.
36600         * modules/floorf-tests (Files): Likewise.
36601         * modules/floorl-tests (Files): Likewise.
36602         * modules/fnmatch-tests (Files): Likewise.
36603         * modules/fopen-tests (Files): Likewise.
36604         * modules/fprintf-posix-tests (Files): Likewise.
36605         * modules/freopen-tests (Files): Likewise.
36606         * modules/frexp-nolibm-tests (Files): Likewise.
36607         * modules/frexp-tests (Files): Likewise.
36608         * modules/frexpl-nolibm-tests (Files): Likewise.
36609         * modules/frexpl-tests (Files): Likewise.
36610         * modules/fseek-tests (Files): Likewise.
36611         * modules/fseeko-tests (Files): Likewise.
36612         * modules/fsync-tests (Files): Likewise.
36613         * modules/ftell-tests (Files): Likewise.
36614         * modules/ftello-tests (Files): Likewise.
36615         * modules/futimens-tests (Files): Likewise.
36616         * modules/getaddrinfo-tests (Files): Likewise.
36617         * modules/getcwd-tests (Files): Likewise.
36618         * modules/getdelim-tests (Files): Likewise.
36619         * modules/getdtablesize-tests (Files): Likewise.
36620         * modules/getgroups-tests (Files): Likewise.
36621         * modules/gethostname-tests (Files): Likewise.
36622         * modules/getline-tests (Files): Likewise.
36623         * modules/getopt-posix-tests (Files): Likewise.
36624         * modules/gettimeofday-tests (Files): Likewise.
36625         * modules/glob-tests (Files): Likewise.
36626         * modules/iconv-tests (Files): Likewise.
36627         * modules/inet_ntop-tests (Files): Likewise.
36628         * modules/inet_pton-tests (Files): Likewise.
36629         * modules/isblank-tests (Files): Likewise.
36630         * modules/lchown-tests (Files): Likewise.
36631         * modules/ldexpl-tests (Files): Likewise.
36632         * modules/link-tests (Files): Likewise.
36633         * modules/linkat-tests (Files): Likewise.
36634         * modules/lseek-tests (Files): Likewise.
36635         * modules/lstat-tests (Files): Likewise.
36636         * modules/mbrtowc-tests (Files): Likewise.
36637         * modules/mbsinit-tests (Files): Likewise.
36638         * modules/mbsnrtowcs-tests (Files): Likewise.
36639         * modules/mbsrtowcs-tests (Files): Likewise.
36640         * modules/memchr-tests (Files): Likewise.
36641         * modules/memcmp-tests (Files): Likewise.
36642         * modules/memmem-tests (Files): Likewise.
36643         * modules/memrchr-tests (Files): Likewise.
36644         * modules/mkdir-tests (Files): Likewise.
36645         * modules/mkfifo-tests (Files): Likewise.
36646         * modules/mkfifoat-tests (Files): Likewise.
36647         * modules/mknod-tests (Files): Likewise.
36648         * modules/nanosleep-tests (Files): Likewise.
36649         * modules/nl_langinfo-tests (Files): Likewise.
36650         * modules/obstack-printf-tests (Files): Likewise.
36651         * modules/open-tests (Files): Likewise.
36652         * modules/openat-tests (Files): Likewise.
36653         * modules/perror-tests (Files): Likewise.
36654         * modules/pipe2-tests (Files): Likewise.
36655         * modules/poll-tests (Files): Likewise.
36656         * modules/popen-tests (Files): Likewise.
36657         * modules/posix_spawn-tests (Files): Likewise.
36658         * modules/posix_spawnp-tests (Files): Likewise.
36659         * modules/pread-tests (Files): Likewise.
36660         * modules/printf-posix-tests (Files): Likewise.
36661         * modules/pty-tests (Files): Likewise.
36662         * modules/random_r-tests (Files): Likewise.
36663         * modules/rawmemchr-tests (Files): Likewise.
36664         * modules/readlink-tests (Files): Likewise.
36665         * modules/remove-tests (Files): Likewise.
36666         * modules/rename-tests (Files): Likewise.
36667         * modules/renameat-tests (Files): Likewise.
36668         * modules/rmdir-tests (Files): Likewise.
36669         * modules/round-tests (Files): Likewise.
36670         * modules/roundf-tests (Files): Likewise.
36671         * modules/roundl-tests (Files): Likewise.
36672         * modules/select-tests (Files): Likewise.
36673         * modules/setenv-tests (Files): Likewise.
36674         * modules/sigaction-tests (Files): Likewise.
36675         * modules/sleep-tests (Files): Likewise.
36676         * modules/snprintf-posix-tests (Files): Likewise.
36677         * modules/snprintf-tests (Files): Likewise.
36678         * modules/sprintf-posix-tests (Files): Likewise.
36679         * modules/stat-tests (Files): Likewise.
36680         * modules/strcasestr-tests (Files): Likewise.
36681         * modules/strchrnul-tests (Files): Likewise.
36682         * modules/strerror-tests (Files): Likewise.
36683         * modules/strsignal-tests (Files): Likewise.
36684         * modules/strstr-tests (Files): Likewise.
36685         * modules/strtod-tests (Files): Likewise.
36686         * modules/strverscmp-tests (Files): Likewise.
36687         * modules/symlink-tests (Files): Likewise.
36688         * modules/symlinkat-tests (Files): Likewise.
36689         * modules/times-tests (Files): Likewise.
36690         * modules/trunc-tests (Files): Likewise.
36691         * modules/truncf-tests (Files): Likewise.
36692         * modules/truncl-tests (Files): Likewise.
36693         * modules/tsearch-tests (Files): Likewise.
36694         * modules/uname-tests (Files): Likewise.
36695         * modules/unlink-tests (Files): Likewise.
36696         * modules/unsetenv-tests (Files): Likewise.
36697         * modules/usleep-tests (Files): Likewise.
36698         * modules/utimensat-tests (Files): Likewise.
36699         * modules/vasprintf-tests (Files): Likewise.
36700         * modules/vdprintf-posix-tests (Files): Likewise.
36701         * modules/vfprintf-posix-tests (Files): Likewise.
36702         * modules/vprintf-posix-tests (Files): Likewise.
36703         * modules/vsnprintf-posix-tests (Files): Likewise.
36704         * modules/vsnprintf-tests (Files): Likewise.
36705         * modules/vsprintf-posix-tests (Files): Likewise.
36706         * modules/wcrtomb-tests (Files): Likewise.
36707         * modules/wcsnrtombs-tests (Files): Likewise.
36708         * modules/wcsrtombs-tests (Files): Likewise.
36709         * modules/wcwidth-tests (Files): Likewise.
36710         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36711         * tests/test-isinf.c (isinf): Likewise.
36712         * tests/test-isnan.c (isnan): Likewise.
36713         * tests/test-signbit.c (signbit): Likewise.
36714         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36715         declaration, either as macro or with correct signature.
36716         (select): Ensure function under test is declared with correct
36717         signature in correct header.
36718         * tests/test-atexit.c (atexit): Likewise.
36719         * tests/test-btowc.c (btowc): Likewise.
36720         * tests/test-canonicalize-lgpl.c (realpath)
36721         (canonicalize_file_name): Likewise.
36722         * tests/test-ceilf1.c (ceilf): Likewise.
36723         * tests/test-ceill.c (ceill): Likewise.
36724         * tests/test-chown.c (chown): Likewise.
36725         * tests/test-dprintf-posix.c (dprintf): Likewise.
36726         * tests/test-dup2.c (dup2): Likewise.
36727         * tests/test-dup3.c (dup3): Likewise.
36728         * tests/test-duplocale.c (duplocale): Likewise.
36729         * tests/test-fchdir.c (fchdir): Likewise.
36730         * tests/test-fchownat.c (fchownat): Likewise.
36731         * tests/test-fcntl.c (fcntl): Likewise.
36732         * tests/test-fdopendir.c (fdopendir): Likewise.
36733         * tests/test-fflush.c (fflush): Likewise.
36734         * tests/test-flock.c (flock): Likewise.
36735         * tests/test-floorf1.c (floorf): Likewise.
36736         * tests/test-floorl.c (floorl): Likewise.
36737         * tests/test-fnmatch.c (fnmatch): Likewise.
36738         * tests/test-fopen.c (fopen): Likewise.
36739         * tests/test-fprintf-posix.c (fprintf): Likewise.
36740         * tests/test-freopen.c (freopen): Likewise.
36741         * tests/test-frexp.c (frexp): Likewise.
36742         * tests/test-frexpl.c (frexpl): Likewise.
36743         * tests/test-fseek.c (fseek): Likewise.
36744         * tests/test-fseeko.c (fseeko): Likewise.
36745         * tests/test-fstatat.c (fstatat): Likewise.
36746         * tests/test-fsync.c (fsync): Likewise.
36747         * tests/test-ftell.c (ftell): Likewise.
36748         * tests/test-ftello.c (ftello): Likewise.
36749         * tests/test-futimens.c (futimens): Likewise.
36750         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36751         (gai_strerror): Likewise.
36752         * tests/test-getcwd.c (getcwd): Likewise.
36753         * tests/test-getdelim.c (getdelim): Likewise.
36754         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36755         * tests/test-getgroups.c (getgroups): Likewise.
36756         * tests/test-gethostname.c (gethostname): Likewise.
36757         * tests/test-getline.c (getline): Likewise.
36758         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36759         Likewise.
36760         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36761         * tests/test-glob.c (glob, globfree): Likewise.
36762         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36763         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36764         * tests/test-inet_pton.c (inet_pton): Likewise.
36765         * tests/test-isblank.c (isblank): Likewise.
36766         * tests/test-lchown.c (lchown): Likewise.
36767         * tests/test-ldexpl.c (ldexpl): Likewise.
36768         * tests/test-link.c (link): Likewise.
36769         * tests/test-linkat.c (linkat): Likewise.
36770         * tests/test-lseek.c (lseek): Likewise.
36771         * tests/test-lstat.c (lstat): Likewise.
36772         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36773         * tests/test-mbsinit.c (mbsinit): Likewise.
36774         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36775         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36776         * tests/test-memchr.c (memchr): Likewise.
36777         * tests/test-memcmp.c (memcmp): Likewise.
36778         * tests/test-memmem.c (memmem): Likewise.
36779         * tests/test-memrchr.c (memrchr): Likewise.
36780         * tests/test-mkdir.c (mkdir): Likewise.
36781         * tests/test-mkdirat.c (mkdirat): Likewise.
36782         * tests/test-mkfifo.c (mkfifo): Likewise.
36783         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36784         * tests/test-mknod.c (mknod): Likewise.
36785         * tests/test-nanosleep.c (nanosleep): Likewise.
36786         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36787         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36788         Likewise.
36789         * tests/test-open.c (open): Likewise.
36790         * tests/test-openat.c (openat): Likewise.
36791         * tests/test-perror.c (perror): Likewise.
36792         * tests/test-pipe2.c (pipe2): Likewise.
36793         * tests/test-poll.c (poll): Likewise.
36794         * tests/test-popen.c (popen, pclose): Likewise.
36795         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36796         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36797         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36798         (posix_spawn_file_actions_destroy)
36799         (posix_spawn_file_actions_addclose)
36800         (posix_spawn_file_actions_addopen)
36801         (posix_spawn_file_actions_adddup2): Likewise.
36802         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36803         * tests/test-pread.c (pread): Likewise.
36804         * tests/test-printf-posix.c (printf): Likewise.
36805         * tests/test-pty.c (openpty, forkpty): Likewise.
36806         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36807         (random_r): Likewise.
36808         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36809         * tests/test-readlink.c (readlink): Likewise.
36810         * tests/test-remove.c (remove): Likewise.
36811         * tests/test-rename.c (rename): Likewise.
36812         * tests/test-renameat.c (renameat): Likewise.
36813         * tests/test-rmdir.c (rmdir): Likewise.
36814         * tests/test-round1.c (round): Likewise.
36815         * tests/test-roundf1.c (roundf): Likewise.
36816         * tests/test-roundl.c (roundl): Likewise.
36817         * tests/test-setenv.c (setenv): Likewise.
36818         * tests/test-sigaction.c (sigaction): Likewise.
36819         * tests/test-sleep.c (sleep): Likewise.
36820         * tests/test-snprintf.c (snprintf): Likewise.
36821         * tests/test-sprintf-posix.c (sprintf): Likewise.
36822         * tests/test-stat.c (stat): Likewise.
36823         * tests/test-stpncpy.c (stpncpy): Likewise.
36824         * tests/test-strcasestr.c (strcasestr): Likewise.
36825         * tests/test-strchrnul.c (strchrnul): Likewise.
36826         * tests/test-strerror.c (strerror): Likewise.
36827         * tests/test-strsignal.c (strsignal): Likewise.
36828         * tests/test-strstr.c (strstr): Likewise.
36829         * tests/test-strtod.c (strtod): Likewise.
36830         * tests/test-strverscmp.c (strverscmp): Likewise.
36831         * tests/test-symlink.c (symlink): Likewise.
36832         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36833         * tests/test-times.c (times): Likewise.
36834         * tests/test-trunc1.c (trunc): Likewise.
36835         * tests/test-truncf1.c (truncf): Likewise.
36836         * tests/test-truncl.c (truncl): Likewise.
36837         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36838         Likewise.
36839         * tests/test-uname.c (uname): Likewise.
36840         * tests/test-unlink.c (unlink): Likewise.
36841         * tests/test-unlinkat.c (unlinkat): Likewise.
36842         * tests/test-unsetenv.c (unsetenv): Likewise.
36843         * tests/test-usleep.c (usleep): Likewise.
36844         * tests/test-utimensat.c (utimensat): Likewise.
36845         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36846         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36847         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36848         * tests/test-vprintf-posix.c (vprintf): Likewise.
36849         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36850         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36851         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36852         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36853         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36854         * tests/test-wcwidth.c (wcwidth): Likewise.
36855
36856         build: pull in conditional headers during GNULIB_POSIXCHECK
36857         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36858         definitions from any conditionally-included headers.
36859         * lib/stdlib.in.h (includes): Likewise.
36860         * lib/unistd.in.h (includes): Likewise.
36861
36862 2009-12-24  Bruno Haible  <bruno@clisp.org>
36863
36864         * tests/test-argv-iter.c: Include header file being tested immediately
36865         after config.h.
36866         * tests/test-base64.c: Likewise.
36867         * tests/test-flock.c: Likewise.
36868         * tests/test-fsync.c: Likewise.
36869         * tests/test-getdate.c: Likewise.
36870         * tests/test-getndelim2.c: Likewise.
36871         * tests/test-isfinite.c: Likewise.
36872         * tests/test-isinf.c: Likewise.
36873         * tests/test-strerror.c: Likewise.
36874         * tests/test-strsignal.c: Likewise.
36875
36876 2009-12-23  Eric Blake  <ebb9@byu.net>
36877
36878         unistd: work around cygwin bug
36879         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36880         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36881         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36882
36883 2009-12-23  Bruno Haible  <bruno@clisp.org>
36884
36885         localename: More tests.
36886         * tests/test-localename.c (SIZEOF): New macro.
36887         (categories): New variable.
36888         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36889         test_locale_name_default): Add test w.r.t. thread locale.
36890         (test_locale_name_thread): New function.
36891         (main): Invoke it.
36892
36893         localename: Make aware of thread locale.
36894         * lib/localename.h (gl_locale_name_thread): New declaration.
36895         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36896         behaviour with respect to thread locale.
36897         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36898         <langinfo.h>, glthread/lock.h.
36899         (SIZE_BITS): New macro.
36900         (string_hash): New function.
36901         (struct hash_node): New type.
36902         (HASH_TABLE_SIZE): New macro.
36903         (struniq_hash_table, struniq_lock): New variables.
36904         (struniq): New function.
36905         (gl_locale_name_thread): New function.
36906         (gl_locale_name): Invoke it.
36907         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36908         * modules/localename (Depends-on): Add lock.
36909         Reported by Mike Gran <spk121@yahoo.com>.
36910
36911 2009-12-23  Eric Blake  <ebb9@byu.net>
36912
36913         va-args: new module
36914         * modules/va-args: New file.
36915         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36916         * MODULES.html.sh (Core language properties): Mention it.
36917
36918         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36919         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36920         named alias for __attribute__((__unused__)).
36921         * lib/chown.c: Update client.
36922         * lib/fchmodat.c: Likewise.
36923         * lib/fts.c: Likewise.
36924         * lib/getdate.y: Likewise.
36925         * lib/getgroups.c: Likewise.
36926         * lib/getopt.c: Likewise.
36927         * lib/getugroups.c: Likewise.
36928         * lib/mkdir.c: Likewise.
36929         * lib/mkfifo.c: Likewise.
36930         * lib/mkfifoat.c: Likewise.
36931         * lib/mknod.c: Likewise.
36932         * lib/mknodat.c: Likewise.
36933         * lib/readlink.c: Likewise.
36934         * lib/se-context.in.h: Likewise.
36935         * lib/se-selinux.in.h: Likewise.
36936         * lib/sockets.c: Likewise.
36937         * lib/symlink.c: Likewise.
36938         * lib/symlinkat.c: Likewise.
36939         * lib/unicodeio.c: Likewise.
36940         * lib/unistr.h: Likewise.
36941         * tests/test-areadlink.c: Likewise.
36942         * tests/test-areadlinkat.c: Likewise.
36943         * tests/test-filenamecat.c: Likewise.
36944         * tests/test-fseeko.c: Likewise.
36945         * tests/test-ftello.c: Likewise.
36946         * tests/test-getdate.c: Likewise.
36947         * tests/test-getgroups.c: Likewise.
36948         * tests/test-gethostname.c: Likewise.
36949         * tests/test-quotearg.c: Likewise.
36950         * tests/test-version-etc.c: Likewise.
36951         * tests/test-xalloc-die.c: Likewise.
36952         * tests/test-xfprintf-posix.c: Likewise.
36953         * tests/test-xprintf-posix.c: Likewise.
36954         * tests/test-xvasprintf.c: Likewise.
36955
36956         tests: avoid compiler warnings
36957         * tests/test-fcntl.c (main): Delete unused parameters.
36958         * tests/test-freopen-safer.c (main): Likewise.
36959         * tests/test-xalloc-die.c (main): Mark unused parameters.
36960         * tests/test-fseeko.c (main): Likewise.
36961         * tests/test-ftello.c (main): Likewise.
36962         * tests/test-nanosleep.c (main): Avoid declaration warning.
36963         * tests/test-sleep.c (main): Likewise.
36964         * tests/test-unsetenv.c (main): Silence warning about string
36965         literal.
36966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36967
36968 2009-12-23  Bruno Haible  <bruno@clisp.org>
36969
36970         * tests/test-localename.c (test_locale_name): New function, extracted
36971         from main. Also test mixed situations.
36972         (test_locale_name_posix, test_locale_name_environ,
36973         test_locale_name_default): New functions.
36974         (main): Invoke them all.
36975         * modules/localename-tests (configure.ac): Test for newlocale.
36976
36977 2009-12-23  Bruno Haible  <bruno@clisp.org>
36978
36979         unistd: Ensure getcwd gets declared before being overridden.
36980         * lib/unistd.in.h: Conditionally include <io.h>.
36981
36982 2009-12-22  Bruno Haible  <bruno@clisp.org>
36983
36984         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36985         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36986         (gl_WCHAR_H): Invoke it.
36987         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36988         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36989         Reported by Karl Berry <karl@freefriends.org>.
36990
36991 2009-12-22  Eric Blake  <ebb9@byu.net>
36992
36993         math, unistd: avoid redundant includes
36994         * lib/math.in.h (isnan): No need to re-include <math.h>.
36995         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36996
36997         getsubopt: work around cygwin bug
36998         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36999         avoid conflicting with system getsubopt.
37000         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37001         bug.
37002
37003         getopt: synchronize from glibc
37004         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37005         parameter order.  Adjust all callers.
37006         (_getopt_internal_r, main): Adjust quoting in error messages.
37007         Drop considerations for outdated POSIX 1003.2 error message.
37008         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37009         callers.
37010         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37011
37012         test-getopt: test stderr behavior
37013         * modules/getopt-posix-tests (Depends-on): Add dup2.
37014         * tests/test-getopt.c (ASSERT): Avoid stderr.
37015         (main): Move stderr to a temporary file.
37016         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37017         Instead, add parameter to inform caller if output occurred.
37018         (test_getopt): Adjust all existing tests to expect silence, and
37019         add new tests of leading ":".
37020         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37021         glibc shortcomings with leading "-:" or "+:" in optstring.
37022         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37023         Likewise.
37024         * doc/posix-functions/getopt.texi (getopt): Likewise.
37025
37026         test-getopt: enhance test
37027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37028         supports optind=0.
37029         * tests/test-getopt.c (OPTIND_MIN): Move...
37030         * tests/test-getopt.h (OPTIND_MIN): ...here.
37031         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37032         Require that optind=0 works, since modern BSD supports it in
37033         addition to optreset, and since coreutils expects it.
37034         (test_getopt_long_only): New test.
37035         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37036         glibc shortcomings with 'W;', and enforcement of optind=0.
37037         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37038         Likewise.
37039
37040 2009-12-21  Bruno Haible  <bruno@clisp.org>
37041
37042         localename: Improvements for MacOS X and Cygwin.
37043         * lib/localename.h (gl_locale_name_environ): New declaration.
37044         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37045         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37046         (gl_locale_name_posix): Invoke it.
37047         (gl_locale_name_default): Add comments. Use Windows native API also on
37048         Cygwin.
37049
37050 2009-12-21  Bruno Haible  <bruno@clisp.org>
37051
37052         Update list of Win32 locale ids.
37053         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37054         (LANG_SAMI): Renamed from LANG_SAAMI.
37055         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37056         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37057         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37058         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37059         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37060         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37061         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37062         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37063         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37064         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37065         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37066         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37067         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37068         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37069         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37070         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37071         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37072         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37073         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37074         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37075         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37076         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37077         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37078         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37079         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37080         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37081         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37082         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37083         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37084         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37085         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37086         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37087         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37088         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37089         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37090         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37091         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37092         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37093         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37094         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37095         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37096         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37097         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37098         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37099         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37100         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37101         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37102         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37103         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37104         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37105         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37106         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37107         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37108         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37109         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37110         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37111         Add more languages and countries for Sami, Sorbian. Add more countries
37112         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37113         for Pashto. Change country for Syriac, Tswana.
37114
37115 2009-12-21  Eric Blake  <ebb9@byu.net>
37116
37117         test-utimens: avoid spurious failure
37118         * tests/test-chown.h (nap): Factor...
37119         * tests/nap.h: ...into new file.
37120         * tests/test-lchown.h (nap): Avoid duplication.
37121         * tests/test-utimens-common.h (nap): Use shared implementation,
37122         necessary on file systems with 1-second resolution.
37123         * modules/chown-tests (Files): Include new file.
37124         * modules/fdutimensat-tests (Files): Likewise.
37125         * modules/futimens-tests (Files): Likewise.
37126         * modules/lchown-tests (Files): Likewise.
37127         * modules/openat-tests (Files): Likewise.
37128         * modules/utimens-tests (Files): Likewise.
37129         * modules/utimensat-tests (Files): Likewise.
37130
37131 2009-12-19  Eric Blake  <ebb9@byu.net>
37132
37133         futimens, utimensat: work around Linux bug
37134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37136         * lib/utimensat.c (rpl_utimensat): Work around it.
37137         * lib/futimens.c (rpl_futimens): Adjust comment.
37138
37139         utimens: work around Linux ctime bug
37140         * lib/utimens.c (detect_ctime_bug): New helper function.
37141         (update_timespec): Differentiate between workaround needed for
37142         this bug vs. what is needed for systems that lack utimensat.
37143         (fdutimens, lutimens): Work around bug.
37144
37145         utimens: check for ctime update
37146         * tests/test-utimens-common.h (check_ctime): Define.
37147         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37148         * tests/test-futimens.h (test_futimens): Likewise.
37149         * tests/test-lutimens.h (test_lutimens): Likewise.
37150         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37151         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37152
37153 2009-12-19  Bruno Haible  <bruno@clisp.org>
37154
37155         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37156         * tests/test-dprintf-posix2.sh: New file.
37157         * tests/test-dprintf-posix2.c: New file.
37158         * modules/dprintf-posix-tests (Files): Add them.
37159         (configure.ac): Check for getrlimit and setrlimit.
37160         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37161
37162 2009-12-19  Bruno Haible  <bruno@clisp.org>
37163
37164         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37165         * tests/test-fprintf-posix3.sh: New file.
37166         * tests/test-fprintf-posix3.c: New file.
37167         * modules/fprintf-posix-tests (Files): Add them.
37168         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37169
37170 2009-12-19  Eric Blake  <ebb9@byu.net>
37171
37172         dirfd: fix prototype
37173         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37174         * lib/dirfd.c (dirfd): Likewise.
37175
37176         canonicalize: reduce memory usage
37177         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37178         allocation to size.
37179         Reported by Solar Designer <solar@openwall.com>.
37180
37181 2009-12-19  Bruno Haible  <bruno@clisp.org>
37182
37183         New module attribute 'Applicability'.
37184         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37185         * gnulib-tool: New option --extract-applicability.
37186         (func_usage): Document it.
37187         (sed_extract_prog): Recognize it.
37188         (func_get_applicability): New function.
37189         (func_import): Generalize handling of 'link-warning' module.
37190         * modules/link-warning (Applicability): New section.
37191         * modules/arg-nonnull (Applicability): New section.
37192         Repoted by Simon Josefsson <simon@josefsson.org>.
37193
37194 2009-12-19  Bruno Haible  <bruno@clisp.org>
37195
37196         fflush: tweak
37197         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37198         * lib/fseeko.c (rpl_fseeko): Likewise.
37199
37200 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37201
37202         * lib/gl_list.h: Fix typo in comment.
37203
37204 2009-12-16  Eric Blake  <ebb9@byu.net>
37205
37206         fcntl: use to simplify other modules
37207         * modules/cloexec (Depends-on): Add fcntl.
37208         * modules/fchdir (Depends-on): Likewise.
37209         * modules/fd-safer-flag (Depends-on): Likewise.
37210         * modules/unistd-safer (Depends-on): Likewise.
37211         * modules/dup3 (configure.ac): Set module indicator.
37212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37213         missing.
37214         * lib/fchdir.c (_gl_register_dup): Fix comment.
37215         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37216         * lib/dup-safer.c (dup_safer): Likewise.
37217         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37218         * lib/dup3.c (dup3): Likewise.
37219         * tests/test-fchdir.c (main): Enhance test.
37220         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37221
37222         fcntl: port portions of fcntl to mingw
37223         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37224         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37225         replacement for mingw.
37226         * modules/fcntl (Description): Update.
37227         (Depends-on): Add dup2.
37228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37229         * modules/fcntl-h (Makefile.am): Substitute it.
37230         * lib/fcntl.in.h (fcntl): Update declaration.
37231         (F_DUPFD, F_GETFD): New macros, when needed.
37232         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37233         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37234         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37235         we now guarantee.
37236
37237         fcntl: work around cygwin bug in F_DUPFD
37238         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37239         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37240         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37241         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37242         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37243
37244         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37245         * modules/fcntl (Files): List new files.
37246         (configure.ac): Run a test.
37247         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37248         * lib/fcntl.c (rpl_fcntl): Likewise.
37249         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37250         (gl_FCNTL_H): Always replace fcntl.h.
37251         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37252         * lib/fcntl.in.h (fcntl): Declare replacement.
37253         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37254         needed, plus a witness.
37255         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37256         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37257         * tests/test-fcntl.c: New file.
37258         * modules/fcntl-tests: Likewise.
37259
37260         binary-io: avoid potential compilation warning
37261         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37262         directives.
37263
37264         fflush: avoid compilation error on NetBSD
37265         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37266         between off_t and fpos_t, since the latter is sometimes a struct.
37267         * lib/fseeko.c (rpl_fseeko): Likewise.
37268         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37269
37270 2009-12-15  Eric Blake  <ebb9@byu.net>
37271
37272         fcntl-h, stdio, sys_ioctl: fix declarations
37273         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37274         function must not take arguments.
37275         * lib/sys_ioctl.in.h (ioctl): Likewise.
37276         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37277         (open): Add a link warning.
37278
37279 2009-12-15  Jim Meyering  <meyering@redhat.com>
37280
37281         areadlink, areadlink-with-size: relax license to LGPLv2+
37282         * modules/areadlink (License): Relax to LGPLv2+.
37283         * modules/areadlink-with-size (License): Likewise.
37284
37285 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37286             Bruno Haible  <bruno@clisp.org>
37287
37288         *printf: Fix memory leak.
37289         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37290         * lib/vfprintf.c (vfprintf): Likewise.
37291         * lib/dprintf.c (dprintf): Likewise.
37292         * lib/vdprintf.c (vdprintf): Likewise.
37293
37294 2009-12-14  Eric Blake  <ebb9@byu.net>
37295
37296         accept4: adjust module dependencies
37297         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37298
37299         utimens: one more try at avoiding compiler warning
37300         * lib/utimens.c (lutimens): Lower scope of result.
37301
37302 2009-12-13  Bruno Haible  <bruno@clisp.org>
37303
37304         Move the malloc checking from module 'list' to new module 'xlist'.
37305         * modules/xlist: New file.
37306         * lib/gl_xlist.h: New file.
37307         * lib/gl_xlist.c: New file.
37308         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37309         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37310         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37311         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37312         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37313         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37314         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37315         gl_sortedlist_nx_add): New declarations.
37316         (struct gl_list_implementation): Rename and change methods accordingly.
37317         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37318         (gl_list_nx_create): Renamed from gl_list_create.
37319         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37320         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37321         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37322         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37323         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37324         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37325         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37326         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37327         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37328         gl_list_create_empty.
37329         (gl_list_nx_create): Renamed from gl_list_create.
37330         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37331         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37332         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37333         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37334         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37335         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37336         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37337         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37338         * lib/gl_array_list.c: Don't include xalloc.h.
37339         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37340         NULL upon out-of-memory.
37341         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37342         out-of-memory.
37343         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37344         Change return type to 'int'.
37345         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37346         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37347         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37348         upon out-of-memory.
37349         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37350         upon out-of-memory.
37351         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37352         upon out-of-memory.
37353         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37354         upon out-of-memory.
37355         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37356         out-of-memory.
37357         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37358         Update.
37359         (gl_array_list_implementation): Update.
37360         * lib/gl_carray_list.c: Don't include xalloc.h.
37361         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37362         Return NULL upon out-of-memory.
37363         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37364         out-of-memory.
37365         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37366         Change return type to 'int'.
37367         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37368         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37369         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37370         upon out-of-memory.
37371         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37372         upon out-of-memory.
37373         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37374         out-of-memory.
37375         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37376         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37377         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37378         Update.
37379         (gl_carray_list_implementation): Update.
37380         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37381         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37382         gl_linked_create_empty. Return NULL upon out-of-memory.
37383         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37384         out-of-memory.
37385         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37386         Change return type to 'int'. Return -1 upon out-of-memory.
37387         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37388         out-of-memory.
37389         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37390         upon out-of-memory.
37391         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37392         upon out-of-memory.
37393         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37394         NULL upon out-of-memory.
37395         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37396         upon out-of-memory.
37397         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37398         out-of-memory.
37399         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37400         Update.
37401         * lib/gl_linked_list.c: Don't include xalloc.h.
37402         (gl_linked_list_implementation): Update.
37403         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37404         (add_to_bucket): Change return type to 'int'.
37405         (gl_linkedhash_list_implementation): Update.
37406         * lib/gl_anytree_list1.h (free_subtree): New function.
37407         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37408         gl_tree_create_empty. Return NULL upon out-of-memory.
37409         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37410         Change return type to 'int'. Return -1 upon out-of-memory.
37411         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37412         out-of-memory.
37413         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37414         (gl_tree_remove_node): New function, moved here from
37415         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37416         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37417         Update.
37418         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37419         malloc, not xmalloc. Return NULL upon out-of-memory.
37420         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37421         out-of-memory.
37422         (gl_tree_remove_node_from_tree): New function, extracted from
37423         gl_tree_remove_node.
37424         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37425         upon out-of-memory.
37426         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37427         out-of-memory.
37428         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37429         upon out-of-memory.
37430         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37431         upon out-of-memory.
37432         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37433         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37434         not xmalloc. Return NULL upon out-of-memory.
37435         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37436         out-of-memory.
37437         (gl_tree_remove_node_from_tree): New function, extracted from
37438         gl_tree_remove_node.
37439         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37440         upon out-of-memory.
37441         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37442         out-of-memory.
37443         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37444         upon out-of-memory.
37445         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37446         upon out-of-memory.
37447         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37448         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37449         gl_anytree_list1.h before gl_anyavltree_list2.h.
37450         (gl_avltree_list_implementation): Update.
37451         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37452         gl_anytree_list1.h before gl_anyavltree_list2.h.
37453         (gl_rbtree_list_implementation): Update.
37454         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37455         Change return type to 'int'. Return -1 upon out-of-memory. Use
37456         __builtin_expect.
37457         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37458         (gl_avltreehash_list_implementation): Update.
37459         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37460         (gl_rbtreehash_list_implementation): Update.
37461         * modules/array-list (Depends-on): Remove xalloc.
37462         * modules/carray-list (Depends-on): Likewise.
37463         * modules/linked-list (Depends-on): Likewise.
37464         * modules/linkedhash-list (Depends-on): Likewise.
37465         * modules/avltree-list (Depends-on): Likewise.
37466         * modules/rbtree-list (Depends-on): Likewise.
37467         * modules/avltreehash-list (Depends-on): Likewise.
37468         * modules/rbtreehash-list (Depends-on): Likewise.
37469
37470         * modules/xsublist: New file.
37471         * lib/gl_xsublist.h: New file.
37472         * lib/gl_xsublist.c: New file.
37473         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37474         (gl_sublist_nx_create): New declaration.
37475         * lib/gl_sublist.c: Don't include xalloc.h.
37476         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37477         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37478         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37479         Change return type to 'int'. Return -1 upon out-of-memory.
37480         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37481         upon out-of-memory.
37482         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37483         NULL upon out-of-memory.
37484         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37485         upon out-of-memory.
37486         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37487         NULL upon out-of-memory.
37488         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37489         NULL upon out-of-memory.
37490         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37491         upon out-of-memory.
37492         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37493         (gl_sublist_list_implementation): Update.
37494         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37495         upon out-of-memory.
37496         * modules/sublist (Depends-on): Remove xalloc.
37497
37498         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37499         * tests/test-carray_list.c: Likewise.
37500         * tests/test-linked_list.c: Likewise.
37501         * tests/test-linkedhash_list.c: Likewise.
37502         * tests/test-avltree_list.c: Likewise.
37503         * tests/test-rbtree_list.c: Likewise.
37504         * tests/test-avltreehash_list.c: Likewise.
37505         * tests/test-rbtreehash_list.c: Likewise.
37506         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37507         * modules/carray-list-tests (Makefile.am): Likewise.
37508         * modules/linked-list-tests (Makefile.am): Likewise.
37509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37510         * modules/avltree-list-tests (Makefile.am): Likewise.
37511         * modules/rbtree-list-tests (Makefile.am): Likewise.
37512         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37514
37515         * NEWS: Mention the changes.
37516
37517         * lib/clean-temp.c: Include gl_xlist.h.
37518         * modules/clean-temp (Depends-on): Add xlist.
37519
37520         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37521         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37522
37523         * tests/test-array_oset.c: Include gl_xlist.h.
37524         * modules/array-oset-tests (Depends-on): Add xlist.
37525
37526         Reported by José E. Marchesi <jemarch@gnu.org>.
37527
37528 2009-12-13  Bruno Haible  <bruno@clisp.org>
37529
37530         Move the malloc checking from module 'oset' to new module 'xoset'.
37531         * modules/xoset: New file.
37532         * lib/gl_xoset.h: New file.
37533         * lib/gl_xoset.c: New file.
37534         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37535         declarations.
37536         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37537         (struct gl_oset_implementation): Rename and change methods accordingly.
37538         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37539         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37540         'int'. Mark as __warn_unused_result__.
37541         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37542         gl_oset_create_empty.
37543         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37544         'int'.
37545         * lib/gl_array_oset.c: Don't include xalloc.h.
37546         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37547         malloc, not xmalloc.
37548         (grow): Change return type to 'int'. Don't call xalloc_die.
37549         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37550         to 'int'.
37551         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37552         'int'.
37553         (gl_array_oset_implementation): Update.
37554         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37555         gl_tree_create_empty.
37556         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37557         'int'.
37558         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37559         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37560         xmalloc.
37561         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37562         not xmalloc.
37563         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37564         xmalloc.
37565         (gl_avltree_oset_implementation): Update.
37566         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37568         xmalloc.
37569         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37570         not xmalloc.
37571         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37572         xmalloc.
37573         (gl_rbtree_oset_implementation): Update.
37574         * modules/array-oset (Depends-on): Remove xalloc.
37575         * modules/avltree-oset (Depends-on): Likewise.
37576         * modules/rbtree-oset (Depends-on): Likewise.
37577         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37578         * tests/test-avltree_oset.c: Likewise.
37579         * tests/test-rbtree_oset.c: Likewise.
37580         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37581         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37582         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37583         * NEWS: Mention the change.
37584
37585 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37586
37587         maint.mk: allow a project to override release-prep commands
37588         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37589         commands into a new rule.
37590         (release-prep): New rule.
37591         (release-prep-hook): New overridable variable.
37592
37593 2009-12-13  Bruno Haible  <bruno@clisp.org>
37594
37595         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37596
37597 2009-12-13  Jim Meyering  <meyering@redhat.com>
37598
37599         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37600         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37601
37602 2009-12-12  Bruno Haible  <bruno@clisp.org>
37603
37604         duplocale: Tweak.
37605         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37606
37607 2009-12-12  Karl Berry  <karl@gnu.org>
37608
37609         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37610
37611 2009-12-12  Bruno Haible  <bruno@clisp.org>
37612
37613         * m4/po.m4: Undo incorrect untabification.
37614
37615 2009-12-12  Bruno Haible  <bruno@clisp.org>
37616
37617         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37618         * modules/c-strtod (Depends-on): Add locale.
37619         * modules/c-strtold (Depends-on): Likewise.
37620
37621 2009-12-12  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37624
37625 2009-12-11  Eric Blake  <ebb9@byu.net>
37626
37627         setenv: relax requirement in light of POSIX ruling
37628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37629         not NULL.
37630         * tests/test-setenv.c (main): Relax test.
37631         * tests/test-unsetenv.c (main): Likewise.
37632         * doc/posix-functions/setenv.texi (setenv): Document this.
37633         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37634
37635 2009-12-11  Bruno Haible  <bruno@clisp.org>
37636
37637         New module 'fd-safer-flag'.
37638         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37639         * lib/dup-safer.c (dup_safer_flag): Remove function.
37640         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37641         * lib/fd-safer.c (fd_safer_flag): Remove function.
37642         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37643         * modules/cloexec (configure.ac): Drop indicator macro.
37644         * modules/fd-safer-flag: New file.
37645         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37646         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37647         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37648
37649 2009-12-11  Bruno Haible  <bruno@clisp.org>
37650
37651         Tests for module 'nl_langinfo'.
37652         * modules/nl_langinfo-tests: New file.
37653         * tests/test-nl_langinfo.sh: New file.
37654         * tests/test-nl_langinfo.c: New file.
37655
37656         New module 'nl_langinfo'.
37657         * lib/nl_langinfo.c: New file.
37658         * m4/nl_langinfo.m4: New file.
37659         * modules/nl_langinfo: New file.
37660         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37661
37662 2009-12-11  Bruno Haible  <bruno@clisp.org>
37663
37664         Tests for module 'langinfo'.
37665         * modules/langinfo-tests: New file.
37666         * tests/test-langinfo.c: New file.
37667
37668         New module 'langinfo'.
37669         * lib/langinfo.in.h: New file.
37670         * m4/langinfo_h.m4: New file.
37671         * modules/langinfo: New file.
37672         * doc/posix-headers/langinfo.texi: Mention the new module.
37673
37674 2009-12-11  Bruno Haible  <bruno@clisp.org>
37675
37676         * lib/config.charset: Untabify.
37677
37678 2009-12-11  Bruno Haible  <bruno@clisp.org>
37679
37680         * modules/unistd-safer (configure.ac): Drop indicator macro.
37681
37682 2009-12-11  Bruno Haible  <bruno@clisp.org>
37683
37684         Move pipe2-safer code to its own file.
37685         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37686         * lib/pipe-safer.c (pipe2_safer): Remove function.
37687         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37688         (Makefile.am): Add it to lib_SOURCES.
37689
37690 2009-12-10  Bruno Haible  <bruno@clisp.org>
37691
37692         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37693
37694 2009-12-10  Bruno Haible  <bruno@clisp.org>
37695
37696         Declare which arguments expect non-NULL values, for GCC and clang.
37697         * build-aux/arg-nonnull.h: New file.
37698         * modules/arg-nonnull: New file.
37699         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37700         (inet_ntop, inet_pton): Use it.
37701         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37702         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37703         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37704         (open, openat): Use it.
37705         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37706         (fnmatch): Use it.
37707         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37708         (getopt, getopt_long, getopt_long_only): Use it.
37709         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37710         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37711         Use it.
37712         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37713         (iconv_open): Use it.
37714         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37715         (strtoimax, strtoumax): Use it.
37716         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37717         (duplocale): Use it.
37718         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37719         (frexp, frexpl): Use it.
37720         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37721         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37722         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37723         (tsearch, tfind, tdelete, twalk): Use it.
37724         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37725         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37726         sigpending): Use it.
37727         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37728         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37729         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37730         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37731         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37732         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37733         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37734         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37735         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37736         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37737         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37738         Use it.
37739         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37740         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37741         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37742         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37743         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37744         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37745         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37746         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37747         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37748         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37749         strtoull, unsetenv): Use it.
37750         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37751         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37752         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37753         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37754         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37755         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37756         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37757         (strcasecmp, strncasecmp): Use it.
37758         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37759         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37760         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37761         rpl_setsockopt): Use it.
37762         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37763         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37764         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37765         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37766         (gettimeofday): Use it.
37767         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37768         (times): Use it.
37769         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37770         (uname): Use it.
37771         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37772         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37773         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37774         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37775         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37776         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37777         unlinkat, write): Use it.
37778         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37779         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37780         * lib/argv-iter.h: Include arg-nonnull.h.
37781         (_ATTRIBUTE_NONNULL_): Remove macro.
37782         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37783         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37784         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37785         optimization.
37786         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37787         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37788         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37789         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37790         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37791         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37792         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37793         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37794         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37795         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37796         * modules/dirent (Depends-on): Add arg-nonnull.
37797         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37798         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37799         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37800         * modules/fnmatch (Depends-on): Add arg-nonnull.
37801         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37802         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37803         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37804         * modules/glob (Depends-on): Add arg-nonnull.
37805         (Makefile.am): Insert arg-nonnull.h into glob.h.
37806         * modules/iconv_open (Depends-on): Add arg-nonnull.
37807         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37808         * modules/inttypes (Depends-on): Add arg-nonnull.
37809         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37810         * modules/locale (Depends-on): Add arg-nonnull.
37811         (Makefile.am): Insert arg-nonnull.h into locale.h.
37812         * modules/math (Depends-on): Add arg-nonnull.
37813         (Makefile.am): Insert arg-nonnull.h into math.h.
37814         * modules/netdb (Depends-on): Add arg-nonnull.
37815         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37816         * modules/search (Depends-on): Add arg-nonnull.
37817         (Makefile.am): Insert arg-nonnull.h into search.h.
37818         * modules/signal (Depends-on): Add arg-nonnull.
37819         (Makefile.am): Insert arg-nonnull.h into signal.h.
37820         * modules/spawn (Depends-on): Add arg-nonnull.
37821         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37822         * modules/stdio (Depends-on): Add arg-nonnull.
37823         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37824         * modules/stdlib (Depends-on): Add arg-nonnull.
37825         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37826         * modules/string (Depends-on): Add arg-nonnull.
37827         (Makefile.am): Insert arg-nonnull.h into string.h.
37828         * modules/strings (Depends-on): Add arg-nonnull.
37829         (Makefile.am): Insert arg-nonnull.h into strings.h.
37830         * modules/sys_socket (Depends-on): Add arg-nonnull.
37831         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37832         * modules/sys_stat (Depends-on): Add arg-nonnull.
37833         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37834         * modules/sys_time (Depends-on): Add arg-nonnull.
37835         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37836         * modules/sys_times (Depends-on): Add arg-nonnull.
37837         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37838         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37839         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37840         * modules/time (Depends-on): Add arg-nonnull.
37841         (Makefile.am): Insert arg-nonnull.h into time.h.
37842         * modules/unistd (Depends-on): Add arg-nonnull.
37843         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37844         * modules/wchar (Depends-on): Add arg-nonnull.
37845         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37846         * modules/argv-iter (Depends-on): Add arg-nonnull.
37847         * tests/test-canonicalize.c (null_ptr): New function.
37848         (main): Use it.
37849         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37850         (main): Use it.
37851         * tests/test-memmem.c (null_ptr): New function.
37852         (main): Use it.
37853         Reported by Jim Meyering.
37854
37855 2009-12-10  Bruno Haible  <bruno@clisp.org>
37856
37857         Use spaces for indentation, not tabs.
37858         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37859         * m4/*.m4: Untabify.
37860         * build-aux/*.h: Untabify.
37861         * tests/**/*.[hc]: Untabify.
37862         * README: New section "Indent with spaces, not TABs", based on
37863         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37864         * NEWS: Mention the change.
37865
37866 2009-12-10  Bruno Haible  <bruno@clisp.org>
37867
37868         pty test: Fix link error.
37869         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37870         test_pty_LDADD.
37871
37872 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37873
37874         * modules/pty: New file.
37875         * modules/pty-tests: New file.
37876         * m4/pty.m4: New file.
37877         * tests/test-pty.c: New file.
37878         * doc/glibc-headers/pty.texi: Modified.
37879         * doc/glibc-functions/forkpty.texi: Modified.
37880         * doc/glibc-functions/openpty.texi: Modified.
37881
37882 2009-12-10  Bruno Haible  <bruno@clisp.org>
37883
37884         Avoid syntax error in C++ mode.
37885         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37886
37887 2009-12-10  Bruno Haible  <bruno@clisp.org>
37888
37889         Use sed with option -e.
37890         * gnulib-tool (func_version, func_emit_copyright_notice,
37891         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37892         option -e to sed.
37893         * modules/link-warning (Makefile.am): Likewise.
37894
37895 2009-12-10  Jim Meyering  <meyering@redhat.com>
37896
37897         mgetgroups: do not write bytes beyond end of malloc'd buffer
37898         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37899         username, we call getgroups with a one-element-shorter buffer,
37900         but still told it the length was original, max_n_groups.
37901
37902 2009-12-09  Eric Blake  <ebb9@byu.net>
37903
37904         cloexec: relax license
37905         * modules/cloexec (Maintainer): Add myself.
37906         (License): Use LGPL, not GPL.
37907
37908         link-warning: optimize generation
37909         * modules/link-warning (Makefile.am): Reduce process usage.
37910
37911 2009-12-09  Bruno Haible  <bruno@clisp.org>
37912
37913         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37914         workaround was added on 2009-11-17.
37915
37916 2009-12-09  Jim Meyering  <meyering@redhat.com>
37917             Bruno Haible  <bruno@clisp.org>
37918
37919         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37920         * modules/link-warning (Makefile.am): Make the comment-removing sed
37921         command more robust in the face of bootstrap-prepended comment lines.
37922
37923 2009-12-09  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37926         most one group.
37927
37928 2009-12-09  Simon Josefsson <simon@josefsson.org>
37929             Bruno Haible  <bruno@clisp.org>
37930
37931         * build-aux/link-warning.h: Add copyright notice.
37932         * modules/link-warning (Makefile.am): Generate link-warning.h from
37933         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37934         * NEWS: Mention change in link-warning module.
37935         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37936         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37937         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37938         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37939         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37940         * modules/math (Makefile.am): Add dependency to math.h.
37941         * modules/search (Makefile.am): Add dependency to search.h.
37942         * modules/signal (Makefile.am): Add dependency to signal.h.
37943         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37944         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37945         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37946         * modules/string (Makefile.am): Add dependency to string.h.
37947         * modules/strings (Makefile.am): Add dependency to strings.h.
37948         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37949         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37950         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37951         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37952         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37953         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37954         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37955         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37956         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37957
37958 2009-12-09  Bruno Haible  <bruno@clisp.org>
37959
37960         fchdir: Optimize away rpl_fstat when possible.
37961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37962         REPLACE_OPEN_DIRECTORY.
37963         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37964
37965 2009-12-09  Bruno Haible  <bruno@clisp.org>
37966
37967         * lib/fchdir.c: Update comment.
37968
37969 2009-12-09  Bruno Haible  <bruno@clisp.org>
37970
37971         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37972
37973 2009-12-08  Eric Blake  <ebb9@byu.net>
37974
37975         fchdir: avoid memory leak on re-registration.
37976         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37977
37978 2009-12-08  Jim Meyering  <meyering@redhat.com>
37979
37980         init.sh: avoid Solaris 10 /bin/sh portability problem
37981         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37982         sourced script:
37983           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37984           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37985           bar
37986         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37987         and two tests used that idiom.
37988         * tests/init.sh: Update suggested usage comments.
37989         (path_prepend_): New function, to be used in place
37990         of the --src-path=DIR option.
37991         (setup_): Move PATH-prepending code into path_prepend_.
37992         * tests/test-pread.sh: Adapt to new usage.
37993         * tests/test-xalloc-die.sh: Likewise.
37994
37995 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37996
37997         * doc/gnulib.texi (Glibc pty.h): Add.
37998         * doc/glibc-functions/forkpty.texi: Add.
37999         * doc/glibc-functions/openpty.texi: Add.
38000         Suggested by Bruno Haible.
38001
38002 2009-12-08  Eric Blake  <ebb9@byu.net>
38003
38004         fchdir: fix logic bugs
38005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38006         * tests/test-fchdir.c (main): Enhance test.
38007         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38008         is in use.
38009
38010         dup2: fix logic bugs
38011         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38012         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38013         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38014         exists.
38015         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38016
38017 2009-12-07  Eric Blake  <ebb9@byu.net>
38018
38019         unlink: fix m4 detection
38020         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38021
38022         unistd-safer: add unit test
38023         * modules/unistd-safer-tests: New file.
38024         * tests/test-dup-safer.c: Likewise.
38025         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38026         * tests/test-dup2.c (setmode): Likewise.
38027         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38028
38029         cloexec: preserve text vs. binary across dup_cloexec
38030         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38031         mode.
38032         * modules/dup2-tests (Depends-on): Add binary-io.
38033         * modules/cloexec-tests (Depends-on): Likewise.
38034         * tests/test-dup2.c (setmode, is_mode): New helpers.
38035         (main): Add tests that translation mode is preserved.
38036         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38037         Reported by Bruno Haible.
38038
38039         mgetgroups: reduce duplicate listings
38040         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38041         resulting array.
38042         * tests/test-chown.h (test_chown): Simplify client.
38043         * tests/test-lchown.h (test_lchown): Likewise.
38044
38045 2009-12-06  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38048         value.
38049
38050 2009-12-06  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/progname.c: Include stdio.h, stdlib.h.
38053         (set_program_name): Reject a NULL argument.
38054
38055 2009-12-05  Eric Blake  <ebb9@byu.net>
38056
38057         pipe2-safer: new module
38058         * modules/pipe2-safer: New file.
38059         * lib/unistd-safer.h (pipe2_safer): New prototype.
38060         * lib/unistd--.h (pipe2): New wrapper.
38061         * lib/pipe-safer.c (pipe2_safer): New function.
38062         * modules/pipe (Depends-on): Add pipe2-safer.
38063         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38064
38065         stdlib-safer: preserve cloexec flag for mkostemp[s]
38066         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38067         fd_safer_flag.
38068
38069         unistd-safer: allow preservation of cloexec status via flag
38070         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38071         prototypes.
38072         * lib/dup-safer.c (dup_safer_flag): New function.
38073         * lib/fd-safer.c (fd_safer_flag): Likewise.
38074         * modules/cloexec (configure.ac): Set witness.
38075
38076         test-dup2: enhance test
38077         * modules/dup2-tests (Depends-on): Add cloexec.
38078         * tests/test-dup2.c (main): Enhance test.
38079
38080         cloexec: add dup_cloexec
38081         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38082         header and comments.
38083         * lib/cloexec.c (set_cloexec_flag): Add comments.
38084         (dup_cloexec): New function, with mingw implementation borrowed
38085         from...
38086         * lib/w32spawn.h (dup_noinherit): ...here.
38087         * modules/execute (Depends-on): Add cloexec.
38088         * modules/pipe (Depends-on): Likewise.
38089         * modules/cloexec (Depends-on): Add dup2.
38090         * modules/cloexec-tests (Files): New file.
38091         * tests/test-cloexec.c: Likewise.
38092
38093         test-xalloc-die: fix test for mingw
38094         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38095         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38096         directory and .exe suffix off argv[0] output.
38097
38098         test-fseeko: fix test for mingw
38099         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38100         than undefining fseek, so test will pass on mingw.
38101
38102 2009-12-05  Bruno Haible  <bruno@clisp.org>
38103
38104         * lib/progname.h (set_program_name): Clarify specification.
38105         * lib/progname.c (set_program_name): Likewise.
38106         Reported by Jim Meyering.
38107
38108 2009-12-05  Jim Meyering  <meyering@redhat.com>
38109
38110         maint.mk: backslash-escape parens in default regexp
38111         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38112         backslash-escape the literal parentheses.
38113
38114         maint.mk: news-date-check: use grep -E
38115         * top/maint.mk (today): Define a Make variable, not a...
38116         (news-date-check): ...shell variable.
38117         (news-date-regexp): Use the Make variable.
38118         Use grep's -E option.  Change the failing diagnostic to mention
38119         the variable, $(news-date-regexp).
38120
38121 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38122
38123         maintainer-makefile: allow customization of NEWS entry format
38124         * top/maint.mk (news-date-regexp): New overridable variable.
38125         (news-date-check): Use it.
38126
38127 2009-12-04  Eric Blake  <ebb9@byu.net>
38128
38129         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38130         * lib/mgetgroups.h (xgetgroups): New prototype.
38131         * lib/mgetgroups.c (xgetgroups): New wrapper.
38132         (mgetgroups): Handle ENOSYS.
38133         * modules/mgetgroups (Depends-on): Add realloc.
38134         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38135
38136         mgetgroups: avoid argument promotion issues with -1
38137         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38138         for invalid gid_t.
38139         * tests/test-chown.h (getegid, test_chown): Likewise.
38140         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38141
38142 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38143
38144         exclude: Fix header file problems.
38145         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38146
38147 2009-12-01  Jim Meyering  <meyering@redhat.com>
38148
38149         fts: fts_open: do not let an empty string cause immediate failure
38150         This is required in support of GNU rm, for which the command
38151         "rm A '' B" must process and remove both A and B, in spite of
38152         the empty string argument.
38153         * lib/fts.c (fts_open): Do not let the presence of an empty string
38154         cause fts_open to fail immediately.  Most fts-using tools must be
38155         able to process all arguments, in order, and can be expected to
38156         diagnose such arguments themselves.
38157
38158 2009-11-30  Eric Blake  <ebb9@byu.net>
38159
38160         utimens: fix compilation error
38161         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38162         Declare variable at right scope.
38163
38164 2009-11-29  Jim Meyering  <meyering@redhat.com>
38165
38166         bootstrap: handle perl-5.11's changed --version output
38167         * build-aux/bootstrap (get_version): Handle perl separately,
38168         since perl-5.11's --version output is different.
38169
38170 2009-11-28  Jim Meyering  <meyering@redhat.com>
38171
38172         userspec: depend on the inttostr module, too
38173         * modules/userspec (Depends-on): Add inttostr.
38174
38175         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38176         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38177         number of MAXUID when it evaluates to (uid_t) -1.
38178         Likewise for group ID.  Reported by Matt McCutchen in
38179         <http://savannah.gnu.org/bugs/?28113>
38180
38181         userspec: reformat to use spaces, not TABs
38182         * lib/userspec.c: Expand TABs to spaces.
38183         Add Emacs' "indent-tabs-mode: nil" hint.
38184
38185 2009-11-27  Eric Blake  <ebb9@byu.net>
38186
38187         getopt-gnu: flush out another BSD bug
38188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38189         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38190         flush out BSD bug.
38191         * tests/test-getopt.h (test_getopt): End lists with NULL.
38192         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38193         (test_getopt_long_posix): Enhance test.
38194         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38195         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38196         getopt-gnu.
38197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38198         Likewise.
38199
38200 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38201
38202         * modules/idpriv-droptemp-tests (Notice): Fix text.
38203
38204 2009-11-27  Jim Meyering  <meyering@redhat.com>
38205
38206         test-xalloc-die: avoid spurious failure due to libtool argv difference
38207         In a libtool-enabled project, this test would fail due to a difference
38208         in the emitted program name, e.g.,
38209         -test-xalloc-die: memory exhausted
38210         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38211         Use program to avoid that.
38212         * modules/xalloc-die-tests (Depends-on): Add progname.
38213         * tests/test-xalloc-die.c: Include progname.h".
38214         (program_name): Remove decl.
38215         (main): Call set_program_name.
38216         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38217
38218 2009-11-26  Richard Jones  <rjones@redhat.com>
38219
38220         w32sock: leave win32 error in place.
38221         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38222
38223 2009-11-26  Eric Blake  <ebb9@byu.net>
38224
38225         init.sh: suggest to use skip_ and fail_ functions in comments
38226         * tests/init.sh: Add a sentence.
38227
38228 2009-11-25  Bruno Haible  <bruno@clisp.org>
38229
38230         init.sh: add documentation in comments
38231         * tests/init.sh: Add some developer and user documentation.
38232
38233 2009-11-26  Jim Meyering  <meyering@redhat.com>
38234
38235         init.sh: accommodate even those who specify bogus srcdir manually
38236         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38237         configure-time tests to be sanitized, so that there is no need to
38238         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38239         (with no double quotes) suffices.  However, since tests may be
38240         invoked manually, and since you may explicitly set srcdir to the
38241         name of a directory containing spaces, do quote its uses here.
38242         * tests/test-pread.sh: Likewise.
38243         Suggested by Bruno Haible.
38244
38245         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38246         * tests/test-pread.sh: Write no data into the pipe, because
38247         test-pread actually reads none.  This avoids a diagnostic,
38248         "bash: echo: write error: Broken pipe", that arises in the unusual
38249         event something is ignoring SIGPIPE, and might be interpreted
38250         as some sort of failure.  Reported by Bruno Haible.
38251
38252 2009-11-25  Jim Meyering  <meyering@redhat.com>
38253
38254         test-pread: cover failure with ESPIPE and EINVAL
38255         * tests/test-pread.c (main): Test for failure, too.
38256         * tests/test-pread.sh: Invoke with stdin on a pipe.
38257         Suggested by Eric Blake.
38258
38259         pread: improvement and fix
38260         * modules/pread (Depends-on): Depend on lseek, for portability to
38261         e.g., mingw.  Suggested by Eric Blake.
38262         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38263
38264         unistd.in.h: correct declaration of pread
38265         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38266         Reported by Richard W.M. Jones.
38267
38268         test-pread.sh: distribute the test script
38269         * modules/pread-tests (Files): Include test-pread.sh.
38270
38271         test-pread.sh: clean up
38272         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38273         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38274         That is unnecessary, since it's always ".".
38275         Suggestion from Eric Blake.
38276
38277         test-pread.sh: make executable
38278         * tests/test-pread.sh: Set executable bit.
38279         Reported by Eric Blake.
38280
38281         correct typo in test-pread.sh
38282         * tests/test-pread.sh: Add #! line.
38283
38284         test pread
38285         * tests/test-pread.c: New file.
38286         * tests/test-pread.sh: Likewise.
38287         * modules/pread-tests: Likewise.
38288
38289         pread: new module
38290         * modules/pread: New file.
38291         * lib/unistd.in.h (pread): Define/declare.
38292         * lib/pread.c (pread): New file.
38293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38294         * modules/unistd (Makefile.am): Substitute witnesses.
38295         * doc/posix-functions/pread.texi (pread): Update.
38296         * MODULES.html.sh: Add pread.
38297
38298 2009-11-25  Jim Meyering  <meyering@redhat.com>
38299
38300         tests/init.sh: new file to be used via most *.sh tests
38301         * tests/init.sh: New file.
38302
38303 2009-11-25  Eric Blake  <ebb9@byu.net>
38304
38305         utimens: work around older Linux failure with symlinks
38306         * lib/utimens.c (lutimensat_works_really): New variable.
38307         (fdutimens, lutimens): Use it to manage kernels that support
38308         nanosecond times on files, but not on symlinks.
38309         Reported by OndÅ™ej Vašík.
38310
38311         utimes: fix configure grammar
38312         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38313
38314 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38315
38316         regex: Fix fastmap for multibyte character ranges.
38317         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38318         characters when a multibyte character range is included.
38319
38320 2009-11-22  Andy Wingo  <wingo@pobox.com>
38321
38322         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38323         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38324
38325 2009-11-24  Bruno Haible  <bruno@clisp.org>
38326
38327         doc: Most *_l functions exist in MacOS X 10.5.
38328         * doc/posix-functions/duplocale.texi: Update platforms list.
38329         * doc/posix-functions/freelocale.texi: Likewise.
38330         * doc/posix-functions/newlocale.texi: Likewise.
38331         * doc/posix-functions/uselocale.texi: Likewise.
38332         * doc/posix-functions/isalnum_l.texi: Likewise.
38333         * doc/posix-functions/isalpha_l.texi: Likewise.
38334         * doc/posix-functions/isblank_l.texi: Likewise.
38335         * doc/posix-functions/iscntrl_l.texi: Likewise.
38336         * doc/posix-functions/isdigit_l.texi: Likewise.
38337         * doc/posix-functions/isgraph_l.texi: Likewise.
38338         * doc/posix-functions/islower_l.texi: Likewise.
38339         * doc/posix-functions/isprint_l.texi: Likewise.
38340         * doc/posix-functions/ispunct_l.texi: Likewise.
38341         * doc/posix-functions/isspace_l.texi: Likewise.
38342         * doc/posix-functions/isupper_l.texi: Likewise.
38343         * doc/posix-functions/iswalnum_l.texi: Likewise.
38344         * doc/posix-functions/iswalpha_l.texi: Likewise.
38345         * doc/posix-functions/iswblank_l.texi: Likewise.
38346         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38347         * doc/posix-functions/iswctype_l.texi: Likewise.
38348         * doc/posix-functions/iswdigit_l.texi: Likewise.
38349         * doc/posix-functions/iswgraph_l.texi: Likewise.
38350         * doc/posix-functions/iswlower_l.texi: Likewise.
38351         * doc/posix-functions/iswprint_l.texi: Likewise.
38352         * doc/posix-functions/iswpunct_l.texi: Likewise.
38353         * doc/posix-functions/iswspace_l.texi: Likewise.
38354         * doc/posix-functions/iswupper_l.texi: Likewise.
38355         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38356         * doc/posix-functions/isxdigit_l.texi: Likewise.
38357         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38358         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38359         * doc/posix-functions/strcoll_l.texi: Likewise.
38360         * doc/posix-functions/strfmon_l.texi: Likewise.
38361         * doc/posix-functions/strftime_l.texi: Likewise.
38362         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38363         * doc/posix-functions/strxfrm_l.texi: Likewise.
38364         * doc/posix-functions/tolower_l.texi: Likewise.
38365         * doc/posix-functions/toupper_l.texi: Likewise.
38366         * doc/posix-functions/towctrans_l.texi: Likewise.
38367         * doc/posix-functions/towlower_l.texi: Likewise.
38368         * doc/posix-functions/towupper_l.texi: Likewise.
38369         * doc/posix-functions/wcscoll_l.texi: Likewise.
38370         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38371         * doc/posix-functions/wctrans_l.texi: Likewise.
38372         * doc/posix-functions/wctype_l.texi: Likewise.
38373         * doc/glibc-functions/strptime_l.texi: Likewise.
38374         * doc/glibc-functions/strtod_l.texi: Likewise.
38375         * doc/glibc-functions/strtof_l.texi: Likewise.
38376         * doc/glibc-functions/strtol_l.texi: Likewise.
38377         * doc/glibc-functions/strtold_l.texi: Likewise.
38378         * doc/glibc-functions/strtoll_l.texi: Likewise.
38379         * doc/glibc-functions/strtoul_l.texi: Likewise.
38380         * doc/glibc-functions/strtoull_l.texi: Likewise.
38381         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38382         * doc/glibc-functions/wcstod_l.texi: Likewise.
38383         * doc/glibc-functions/wcstof_l.texi: Likewise.
38384         * doc/glibc-functions/wcstol_l.texi: Likewise.
38385         * doc/glibc-functions/wcstold_l.texi: Likewise.
38386         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38387         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38388         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38389
38390 2009-11-24  Bruno Haible  <bruno@clisp.org>
38391
38392         duplocale: Fix logic bug.
38393         * lib/duplocale.c: Don't include <langinfo.h>.
38394         (_NL_LOCALE_NAME): Remove macro.
38395         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38396         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38397
38398 2009-11-23  Jim Meyering  <meyering@redhat.com>
38399
38400         test-update-copyright: don't hard-code /usr/bin/perl
38401         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38402         perl to print the current year.  Gilles Espinasse reported that
38403         the replaced use of perl was hard-coded as /usr/bin/perl.
38404
38405 2009-11-23  Bruno Haible  <bruno@clisp.org>
38406
38407         duplocale: Add support for glibc 2.3.x.
38408         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38409
38410 2009-11-22  Bruno Haible  <bruno@clisp.org>
38411
38412         vasnprintf: Tiny optimization.
38413         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38414         MacOS X.
38415
38416 2009-11-22  Bruno Haible  <bruno@clisp.org>
38417
38418         Tests for module 'duplocale'.
38419         * modules/duplocale-tests: New file.
38420         * tests/test-duplocale.c: New file.
38421
38422         New module 'duplocale'.
38423         * m4/duplocale.m4: New file.
38424         * lib/locale.in.h (duplocale): New declaration.
38425         * lib/duplocale.c: New file.
38426         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38427         gl_LOCALE_H_DEFAULTS): New macros.
38428         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38429         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38430         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38431         REPLACE_DUPLOCALE.
38432         * modules/duplocale: New file.
38433         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38434
38435 2009-11-22  Bruno Haible  <bruno@clisp.org>
38436
38437         * modules/locale-tests (configure.ac): Test for newlocale function.
38438         * tests/test-locale.c: When the system has extended locale functions,
38439         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38440
38441         locale: Make locale_t available when possible.
38442         * lib/locale.in.h: Include <xlocale.h> when it exists.
38443         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38444         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38445         * modules/locale (Depends-on): Add extensions.
38446         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38447         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38448
38449 2009-11-22  Bruno Haible  <bruno@clisp.org>
38450
38451         Add comments.
38452         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38453         invocation.
38454         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38456         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38457
38458 2009-11-22  Bruno Haible  <bruno@clisp.org>
38459
38460         error: account for the possibility of freopen (stdout).
38461         * lib/error.c: Include <unistd.h>.
38462         (flush_stdout): New function, extracted from error and error_at_line.
38463         Determine stdout's fd dynamically.
38464         (error, error_at_line): Invoke flush_stdout.
38465         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38466         * modules/error (Depends-on): Add unistd.
38467
38468 2009-11-22  Bruno Haible  <bruno@clisp.org>
38469
38470         diffseq: Add comment.
38471         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38472
38473 2009-11-22  Jim Meyering  <meyering@redhat.com>
38474
38475         c-stack: avoid defining an unused static function
38476         * lib/c-stack.c (find_stack_direction): Do not define this function
38477         when it will not be used.
38478
38479         diffseq: avoid spurious gcc warnings
38480         * lib/diffseq.h (IF_LINT2): Define.
38481         (compareseq): Use it to initialize two members of "part".
38482         This avoids two used-uninitialized warnings.
38483
38484 2009-11-21  Jim Meyering  <meyering@redhat.com>
38485
38486         c-stack: avoid "ignoring return value of `write'" warning
38487         * lib/c-stack.c: Include "ignore-value.h".
38488         (die): Explicitly ignore each write return value.
38489         * modules/c-stack (Depends-on): Add ignore-value.
38490
38491 2009-11-21  Bruno Haible  <bruno@clisp.org>
38492
38493         diffseq: reduce scope of variable 'best'.
38494         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38495         variable, earlier used for two different purposes.
38496
38497 2009-11-21  Jim Meyering  <meyering@redhat.com>
38498
38499         diffseq: remove useless assignment to "best"
38500         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38501         assignment.  At that point "best" is already guaranteed to be zero.
38502
38503 2009-11-20  Eric Blake  <ebb9@byu.net>
38504
38505         build: mention ftp redirector in release announcements
38506         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38507         values that used to come from cfg.mk; mention FTP redirect URL.
38508         * build-aux/announce-gen: Mention the mirror list.
38509         Suggested by Karl Berry.
38510
38511         nanosleep: improve port to mingw
38512         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38514         LIB_NANOSLEEP, but only when needed.
38515         * modules/select (Link): Document LIBSOCKET.
38516         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38517         enough.
38518
38519         nanosleep: work around cygwin bug
38520         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38521         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38522         bug.
38523         (getnow): Delete, not needed.
38524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38525         LIB_CLOCK_GETTIME.
38526         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38527         clock-time, gettime.
38528         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38529         bug.
38530         * modules/nanosleep-tests: New test.
38531         * tests/test-nanosleep.c: New file.
38532
38533         sleep: work around cygwin bug
38534         * lib/sleep.c (rpl_sleep): Work around the bug.
38535         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38536         (gl_PREREQ_SLEEP): Delete unused macro.
38537         * modules/sleep (Depends-on): Add verify.
38538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38539         * modules/unistd (Makefile.am): Substitute witness.
38540         * lib/unistd.in.h (sleep): Update prototype.
38541         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38542         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38543         * modules/sleep-tests (Depends-on): Check for alarm.
38544
38545 2009-11-20  Jim Meyering  <meyering@redhat.com>
38546
38547         maint.mk: improve sc_prohibit_magic_number_exit
38548         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38549         so it does not match uses like System.exit(1).
38550         Add comments showing how to correct all offenders.
38551
38552 2009-11-19  Eric Blake  <ebb9@byu.net>
38553
38554         xalloc-die-tests: add missing library
38555         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38556
38557         test-xvasprintf: silence compiler warnings
38558         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38559         empty string from gcc.
38560
38561 2009-11-19  Jim Meyering  <meyering@redhat.com>
38562
38563         xfreopen: new module, from coreutils
38564         * modules/xfreopen: New module.
38565         * lib/xfreopen.c: New file.
38566         * lib/xfreopen.h: New file.
38567         * MODULES.html.sh (File stream based Input/Output"): Add it.
38568
38569 2009-11-19  Eric Blake  <ebb9@byu.net>
38570
38571         manywarnings: depend on warnings
38572         * modules/manywarnings (Depends-on): Add warnings.
38573
38574         build: avoid compiler warnings
38575         * lib/select.c (rpl_select): Delete unused variable.
38576         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38577
38578 2009-11-18  Eric Blake  <ebb9@byu.net>
38579
38580         tests: avoid false negative with --with-packager
38581         * tests/test-version-etc.sh: Discard packager information.
38582         * tests/test-argp-version-etc-1.sh: Likewise.
38583         Reported by Mike Frysinger.
38584
38585         utimens: fix regression on Solaris
38586         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38587         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38588         can only change fd timestamps via futimesat.  Instead, use an
38589         additional witness macro to avoid BSD bug.
38590         Reported by Jim Meyering.
38591
38592 2009-11-17  Eric Blake  <ebb9@byu.net>
38593
38594         usleep: use it to simplify tests
38595         * modules/stat-time-tests (Depends-on): Add usleep.
38596         (configure.ac): Drop usleep check.
38597         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38598         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38599         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38600         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38601         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38602         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38603         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38604         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38605         Likewise.
38606         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38607         * tests/test-lchown.h (nap): Likewise.
38608         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38609         * tests/test-stat-time.c (nap): Likewise.
38610         * tests/test-utimens-common.h (nap): Update comments.
38611
38612         usleep: new module
38613         * modules/usleep: New file.
38614         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38615         * lib/usleep.c (usleep): Likewise.
38616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38617         * modules/unistd (Makefile.am): Substitute witnesses.
38618         * lib/unistd.in.h (usleep): Add declaration.
38619         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38620         * MODULES.html.sh (Date and time): Likewise.
38621         * modules/usleep-tests (Depends-on): New test.
38622         * tests/test-usleep.c: New file.
38623
38624         chown: work around OpenBSD bug
38625         * lib/chown.c (rpl_chown): Work around the bug.
38626         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38627         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38629         * modules/chown (Depends-on): Add stdbool.
38630         * modules/lchown (Depends-on): Likewise.
38631         * doc/posix-functions/chown.texi (chown): Document the bug.
38632         * doc/posix-functions/lchown.texi (lchown): Likewise.
38633         * tests/test-lchown.h (test_chown): Relax test.
38634
38635         mkstemp: avoid conflict with C++ keyword template
38636         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38637         * lib/mkostemp.c (mkostemp): Likewise.
38638         * lib/mkostemps.c (mkostemps): Likewise.
38639         * lib/mkstemp.c (mkstemp): Likewise.
38640         * lib/mkstemps.c (mkstemps): Likewise.
38641
38642         xalloc-die-tests: optimize
38643         * tests/test-xalloc-die.sh: Reduce number of processes.
38644
38645 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38646
38647         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38648         patch from ludo@gnu.org (Ludovic Courtès).
38649
38650 2009-11-17  Jim Meyering  <meyering@redhat.com>
38651
38652         version-etc: use proper license string
38653         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38654         * modules/version-etc-fsf: Likewise.
38655
38656 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38657
38658         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38659         printed to stdout.  Deal with EOL differences.
38660
38661 2009-11-17  Eric Blake  <ebb9@byu.net>
38662
38663         unsetenv: work around Solaris bug
38664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38665         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38666         Reported by Jim Meyering.
38667
38668         vasnprintf: avoid compiler warnings
38669         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38670         variables.
38671         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38672
38673 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38674
38675         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38676         settings since xalloc-die is no longer the self test,
38677         xalloc-die.sh is.
38678
38679 2009-11-17  Jim Meyering  <meyering@redhat.com>
38680
38681         test-xalloc-die.sh: make the code agree with the commit log
38682         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38683         at the end, just in case you happen to have a test-xalloc-die
38684         program in some other PATH directory.
38685
38686         test-xalloc-die.sh: fix a portability bug
38687         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38688         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38689         Otherwise, argv[0] (as often seen in diagnostics) would be too
38690         system-dependent, sometimes with, and sometimes without the leading "./".
38691
38692         version-etc-fsf: relax license to LGPLv3+
38693         * modules/version-etc-fsf (License): Relax license.
38694
38695 2009-11-16  Eric Blake  <ebb9@byu.net>
38696
38697         xalloc-die-tests: avoid printing null pointer
38698         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38699         shell script.
38700         * tests/test-xalloc-die.c (program_name): Declare.
38701         * tests/test-xalloc-die.sh (tmpfiles): New file.
38702
38703         setenv, unsetenv: work around various bugs
38704         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38705         (setenv) [HAVE_SETENV]: Work around bugs.
38706         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38708         for bugs.
38709         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38710         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38712         * modules/stdlib (Makefile.am): Update substitutions.
38713         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38714         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38715         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38716         * modules/setenv-tests: New test.
38717         * modules/unsetenv-tests: Likewise.
38718         * tests/test-setenv.c: New file.
38719         * tests/test-unsetenv.c: Likewise.
38720
38721 2009-11-16  Jim Meyering  <meyering@redhat.com>
38722
38723         version-etc: relax license to LGPLv3+
38724         * modules/version-etc (License): Relax license.
38725
38726         better AC_REQUIRE expanded-before-required-warning avoidance
38727         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38728         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38729         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38730         which is no longer needed.
38731
38732 2009-11-16  Eric Blake  <ebb9@byu.net>
38733
38734         test-freading: clean up temporary file
38735         * tests/test-freading.c (main): Remove file on success, and use
38736         ASSERT more liberally.
38737         Reported by Jim Meyering.
38738
38739 2009-11-16  Jim Meyering  <meyering@redhat.com>
38740
38741         avoid new AC_REQUIRE expanded-before-required warnings
38742         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38743         merely using it.
38744         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38745         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38746
38747 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38748
38749         * tests/test-xalloc-die.c: New file.
38750         * modules/xalloc-die-tests: New file.
38751         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38752         XFAIL_TESTS so it can be appended by modules.
38753
38754 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38755
38756         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38757         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38758
38759 2009-11-14  Eric Blake  <ebb9@byu.net>
38760
38761         fnmatch: avoid compiler warning
38762         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38763         to silence compiler warning about mismatch signedness in ?:.
38764         Reported by Robert Millan.
38765
38766         intprops: add double-inclusion guard
38767         * lib/intprops.h: Allow idempotent includes.
38768         Suggested by Bruce Korb.
38769
38770         openat: detect Solaris fchownat bug
38771         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38772         penalizing glibc chownat when only lchownat is broken.
38773         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38774         trailing slash bugs.
38775         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38776         * modules/openat-tests (Files): Include more files.
38777         (Depends-on): Add mgetgroups, sleep, stat-time.
38778         (configure.ac): Add additional checks.
38779         (Makefile.am): Build new test.
38780         * tests/test-fchownat.c: New file.
38781
38782         lchown: detect Solaris and FreeBSD bug
38783         * lib/lchown.c (rpl_lchown): Work around bug.
38784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38786         * modules/unistd (Makefile.am): Populate it.
38787         * lib/unistd.in.h (lchown): Update declaration.
38788         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38789         * modules/lchown-tests: New file.
38790         * tests/test-lchown.h (test_lchown): Likewise.
38791         * tests/test-lchown.c (main): Likewise.
38792
38793         chown: detect Solaris and FreeBSD bug
38794         * lib/chown.c (rpl_chown): Work around bug.
38795         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38796         (gl_PREREQ_CHOWN): Delete.
38797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38798         * modules/unistd (Makefile.am): Populate it.
38799         * lib/unistd.in.h (chown): Update declaration.
38800         * lib/lchown.c (chown): Update client.
38801         * modules/lchown (Depends-on): Add lstat.
38802         * doc/posix-functions/chown.texi (chown): Document the bug.
38803         * doc/posix-functions/getgroups.texi (getgroups): Document
38804         getgroups pitfall.
38805         * modules/chown-tests: New file.
38806         * tests/test-chown.h (test_chown): Likewise.
38807         * tests/test-chown.c (main): Likewise.
38808
38809 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38810
38811         gnulib-tool: correctly detect absence of m4 directories
38812         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38813
38814 2009-11-14  Jim Meyering  <meyering@redhat.com>
38815
38816         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38817         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38818
38819 2009-11-14  John W. Eaton  <jwe@gnu.org>
38820
38821         strftime.h: wrap funtion declaration in extern "C" block
38822         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38823
38824 2009-11-13  Eric Blake  <ebb9@byu.net>
38825
38826         getgroups: avoid compiler warning
38827         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38828
38829         getgroups: work around FreeBSD bug
38830         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38831         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38832         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38833         * tests/test-getgroups.c (main): Fix buffer overrun.
38834
38835         getgroups: avoid compilation failure
38836         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38837         * modules/getgroups (Depends-on): Add stdint.
38838
38839 2009-11-13  Jim Meyering  <meyering@redhat.com>
38840
38841         test-getgroups: avoid compilation failure
38842         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38843
38844 2009-11-13  Eric Blake  <ebb9@byu.net>
38845
38846         mgetgroups: new module, taken from coreutils
38847         * modules/mgetgroups: New file.
38848         * lib/mgetgroups.h: Likewise.
38849         * lib/mgetgroups.c (mgetgroups): Likewise.
38850         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38851         * MODULES.html.sh (Users and groups): Mention it.
38852
38853         getgroups: don't expose GETGROUPS_T to user
38854         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38855         an element at a time if GETGROUPS_T is wrong size.
38856         * lib/getugroups.h (getugroups): Change signature.
38857         * lib/unistd.in.h (getgroups): Likewise.
38858         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38859         signature needs fixing.
38860         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38861         AC_TYPE_GETGROUPS.
38862         * modules/group-member (Depends-on): Add getgroups.
38863         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38864         (group_member): Rely on getgroups replacement.
38865         * lib/getugroups.c (getugroups): Use gid_t.
38866         * tests/test-getgroups.c (main): Likewise.
38867         * NEWS: Mention the signature change.
38868         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38869         problem with signature.
38870         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38871         GETGROUPS_T is still useful for setgroups.
38872
38873         getgroups, getugroups: provide stubs for mingw
38874         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38875         * lib/getugroups.c (getugroups): Likewise.
38876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38877         function.  Modernize replacement scheme.
38878         (gl_PREREQ_GETGROUPS): Delete.
38879         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38880         * modules/getgroups (configure.ac): Declare witness.
38881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38882         * modules/unistd (Depends-on): Substitute witness.
38883         * lib/unistd.in.h (getgroups): Declare replacement.
38884
38885         getgroups: avoid calling exit
38886         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38887         drop xalloc.
38888         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38889         dependencies.
38890         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38891         exiting, in the rare case of malloc failure.
38892
38893         getgroups: fix logic error
38894         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38895         has more than 20 groups.
38896         * modules/getgroups-tests: New test.
38897         * tests/test-getgroups.c: New file.
38898
38899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38900
38901         * tests/test-base64.c: Improve.
38902
38903 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38904
38905         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38906         Blake <ebb9@byu.net>.
38907
38908 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38909
38910         * tests/test-xvasprintf.c: Add %s%s related checks.
38911
38912 2009-11-12  Eric Blake  <ebb9@byu.net>
38913
38914         version-etc: match standards.texi style
38915         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38916         and use <> only for URLs.
38917
38918 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38919
38920         fts: do not fail on a submount during traversal
38921         * lib/fts.c (fts_build): Read the stat info again after opening
38922         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38923         Original report at http://bugzilla.redhat.com/501848.
38924
38925 2009-11-12  Jim Meyering  <meyering@redhat.com>
38926
38927         bootstrap: sync from coreutils
38928         * build-aux/bootstrap (bootstrap_epilogue): New function.
38929         Use git_modules_config in one more place.  This make bootstrap's
38930         --gnulib-srcdir option more useful for testing.
38931
38932         bootstrap: generalize autoheader check
38933         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38934         AC_CONFIG_HEADERS.
38935
38936 2009-11-11  Eric Blake  <ebb9@byu.net>
38937
38938         mkfifoat: use new modules for Solaris and BSD bugs
38939         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38940         * lib/mkfifoat.c (mknodat): Split...
38941         * lib/mknodat.c (mknodat): ...into new file.
38942         * modules/mkfifoat (Files): Ship new file.
38943         (Depends-on): Add mkfifo, mknod.
38944         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38945         (Depends-on): Add symlink.
38946         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38947         redundant with test_mkfifo.h.
38948         (do_mkfifoat, do_mknodat): New helpers.
38949
38950         mknod: new module
38951         * modules/mknod: New file.
38952         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38953         * lib/mknod.c (mknod): Likewise.
38954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38955         defaults.
38956         * modules/sys_stat (Makefile.am): Substitute them.
38957         * lib/sys_stat.in.h (mknod): Declare replacement.
38958         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38959         Document it.
38960         * doc/posix-functions/mknod.texi (mknod): Likewise.
38961         * modules/mknod-tests: New test.
38962         * tests/test-mknod.c: Likewise.
38963
38964         mkfifo: new module
38965         * modules/mkfifo: New file.
38966         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38967         * lib/mkfifo.c (mkfifo): Likewise.
38968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38969         defaults.
38970         * modules/sys_stat (Makefile.am): Substitute them.
38971         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38972         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38973         Document it.
38974         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38975         * modules/mkfifo-tests: New test.
38976         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38977         from test-mkfifoat.c.
38978         * tests/test-mkfifo.c: New file.
38979
38980         readlink: detect FreeBSD bug
38981         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38982         slash on symlink.
38983         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38984         * tests/test-readlink.h (test_readlink): Enhance test.
38985
38986         symlink: detect FreeBSD bug
38987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38988         slash on symlink.
38989         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38990         * tests/test-symlink.h (test_symlink): Enhance test.
38991
38992 2009-11-10  Eric Blake  <ebb9@byu.net>
38993
38994         link: detect FreeBSD bug
38995         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38996         symlink.
38997         * doc/posix-functions/link.texi (link): Document the bug.
38998         * tests/test-link.h (test_link): Enhance test.
38999         * tests/test-linkat.c (main): Update caller.
39000
39001         unlink, remove: detect FreeBSD bug
39002         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39003         slash on symlink.
39004         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39005         * doc/posix-functions/remove.texi (remove): Likewise.
39006         * tests/test-unlink.h (test_unlink): Enhance test.
39007         * tests/test-remove.c (main): Likewise.
39008
39009 2009-11-09  Eric Blake  <ebb9@byu.net>
39010
39011         rename: detect FreeBSD bug
39012         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39013         slash on symlink.
39014         * modules/renameat-tests (Depends-on): Add filenamecat.
39015         * tests/test-rename.h (test_rename): Allow one more errno.
39016         * tests/test-renameat.c (main): Likewise.
39017         * doc/posix-functions/rename.texi (rename): Document the bug.
39018
39019         open: detect FreeBSD bug
39020         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39021         symlink.
39022         * doc/posix-functions/open.texi (open): Document the bug.
39023         * doc/posix-functions/utimes.texi (utimes): Likewise.
39024         * tests/test-open.h (test_open): Add parameters, and test symlink
39025         handling.
39026         * tests/test-open.c (main): Adjust caller.
39027         * tests/test-fcntl-safer.c (main): Likewise.
39028         * modules/open-tests (Depends-on): Add stdbool, symlink.
39029         * modules/fcntl-safer-tests (Depends-on): Likewise.
39030         * tests/test-openat.c (main): Add test-open tests.
39031
39032         stat: detect FreeBSD bug
39033         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39034         symlink.
39035         * doc/posix-functions/stat.texi (stat): Document the bug.
39036         * tests/test-stat.h (test_stat_func): Add argument.
39037         * tests/test-stat.c (main): Adjust caller.
39038         * tests/test-fstatat.c (main): Likewise.
39039         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39040         Reported by Jim Meyering.
39041
39042 2009-11-09  James Youngman  <jay@gnu.org>
39043
39044         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39045         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39046
39047 2009-11-08  Jim Meyering  <meyering@redhat.com>
39048
39049         utimens: remove invalid futimesat call
39050         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39051         It used the file descriptor of the target file as the DIR_FD
39052         parameter and NULL as the file name.  That caused failure with
39053         errno == EFAULT on FreeBSD-8.0-rc2
39054
39055 2009-11-07  Eric Blake  <ebb9@byu.net>
39056
39057         fflush, freadseek: use fseeko, not fseek
39058         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39059         (clear_ungetc_buffer): Avoid potential problems on large files.
39060         * lib/freadseek.c (freadseek): Likewise.
39061         * modules/freadseek (Depends-on): Add fseeko.
39062         * modules/fseek (configure.ac): Set a witness.
39063         * tests/test-fflush.c (main): Use fseeko.
39064         * tests/test-fpurge.c (fseek): Disable link warning.
39065         * tests/test-freadable.c (fseek): Likewise.
39066         * tests/test-freading.c (fseek): Likewise.
39067         * tests/test-fseeko.c (fseek): Likewise.
39068         * tests/test-ftell.c (fseek): Likewise.
39069         * tests/test-ftello.c (fseek): Likewise.
39070         * tests/test-fwritable.c (fseek): Likewise.
39071         * tests/test-fwriting.c (fseek): Likewise.
39072
39073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39074
39075         * modules/memchr (Depends-on): Drop getpagesize dependency.
39076
39077 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39078
39079         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39080         Reported by Ludovic Courtès.
39081         * build-aux/pmccabe2html: Improve example usage.
39082         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39083
39084 2009-11-06  Jim Meyering  <meyering@redhat.com>
39085
39086         do-release-commit-and-tag: New module.
39087         Automate the release-commit and tag process.
39088         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39089         * modules/do-release-commit-and-tag: New file.
39090         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39091
39092 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39093
39094         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39095         because test-select.c uses inet_pton.
39096
39097 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39098
39099         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39100         GETADDRINFO_LIB.  Bump serial number.
39101         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39102         Suggested by Eric Blake <ebb9@byu.net>.
39103
39104 2009-11-05  Eric Blake  <ebb9@byu.net>
39105
39106         strtod: detect darwin bug
39107         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39108         Reported by Leo Davis.
39109
39110         freopen-safer: new module
39111         * modules/freopen-safer: New module.
39112         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39113         * lib/freopen-safer.c (freopen_safer): New file.
39114         * lib/stdio-safer.h (freopen_safer): New declaration.
39115         * lib/stdio--.h (freopen): New override.
39116         * MODULES.html.sh (File stream based Input/Output): Mention it.
39117         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39118         freopen-safer module.
39119         * doc/posix-functions/stderr.texi (stderr): Likewise.
39120         * doc/posix-functions/stdin.texi (stdin): Likewise.
39121         * doc/posix-functions/stdout.texi (stdout): Likewise.
39122         * modules/freopen-safer-tests: New test.
39123         * tests/test-reopen-safer.c: New file.
39124
39125 2009-11-05  Jim Meyering  <meyering@redhat.com>
39126
39127         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39128         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39129
39130 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39131
39132         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39133
39134 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39135
39136         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39137
39138 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39139
39140         Fix link error.
39141         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39143
39144 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39145
39146         * tests/test-func.c: Also test value of __func__.
39147
39148 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39149
39150         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39151         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39152
39153 2009-11-05  Bruno Haible  <bruno@clisp.org>
39154
39155         Fix link error.
39156         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39157         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39158         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39159
39160 2009-11-05  Bruno Haible  <bruno@clisp.org>
39161
39162         Tests for module 'inet_pton'.
39163         * modules/inet_pton-tests: New file.
39164         * tests/test-inet_pton.c: New file.
39165
39166 2009-11-05  Bruno Haible  <bruno@clisp.org>
39167
39168         Tests for module 'inet_ntop'.
39169         * modules/inet_ntop-tests: New file.
39170         * tests/test-inet_ntop.c: New file.
39171
39172 2009-11-04  Eric Blake  <ebb9@byu.net>
39173
39174         stdlib-safer: wrap all mkstemp variants
39175         * modules/mkostemp (configure.ac): Set witness.
39176         * modules/mkostemps (configure.ac): Likewise.
39177         * modules/mkstemps (configure.ac): Likewise.
39178         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39179         (mkstemps_safer): Wrap more functions.
39180         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39181         wrapping.
39182         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39183         (mkstemps_safer): Implement the wrappers.
39184
39185         mkstemps, mkostemps: new modules
39186         * modules/mkostemps: New module.
39187         * modules/mkstemps: Likewise.
39188         * lib/mkostemps.c (mkostemps): New file.
39189         * lib/mkstemps.c (mkstemps): Likewise.
39190         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39191         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39193         * modules/stdlib (Makefile.am): Substitute them.
39194         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39195         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39196         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39197         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39198         * MODULES.html.sh (File system functions): Mention them.
39199
39200         tempname: resync from glibc
39201         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39202         same values for __GT_FILE as glibc.  Abort even when assertions
39203         are disabled.
39204         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39205         match its value otherwise.  Allow idempotent inclusion.
39206         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39207         * lib/mkostemp.c (mkostemp): Likewise.
39208         * lib/mkstemp.c (mkstemp): Likewise.
39209         * lib/tmpfile.c (tmpfile): Likewise.
39210         * NEWS: Document this.
39211
39212         utimens: fix use of futimens on older Linux
39213         * lib/utimens.c (fdutimens): Use updated, rather than original,
39214         timespec to avoid bug in older Linux kernel.
39215         Reported by Simon Josefsson.
39216
39217 2009-11-04  Bruno Haible  <bruno@clisp.org>
39218
39219         Make num_processors more flexible and consistent.
39220         * lib/nproc.h (enum nproc_query): New type.
39221         (num_processors): Add a 'query' argument.
39222         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39223         (num_processors): Add a 'query' argument. Test the value of the
39224         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39225         mingw, count the number of CPUs available for the current process.
39226         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39227         Check for sched_getaffinity and sched_getaffinity_np.
39228         * modules/nproc (Depends-on): Add c-ctype, extensions.
39229         * NEWS: Mention the change.
39230
39231 2009-11-03  Bruno Haible  <bruno@clisp.org>
39232
39233         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39234
39235 2009-11-03  Jim Meyering  <meyering@redhat.com>
39236
39237         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39238         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39239         if it is defined.
39240
39241 2009-11-02  Eric Blake  <ebb9@byu.net>
39242
39243         mktime, timegm: share common declaration
39244         * lib/mktime-internal.h: New file.
39245         * lib/mktime.c: Use it rather than open-coding a declaration.
39246         * lib/timegm.c: Likewise.
39247         * modules/mktime (Files): Ship it.
39248         * modules/timegm (Files): Likewise.
39249         Suggested by Bruno Haible.
39250
39251         test-update-copyright: update test to match script changes
39252         * tests/test-update-copyright.sh: Avoid hard-coding perl
39253         location.  Don't update *.bak created by earlier runs.
39254
39255 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39256             Simon Josefsson  <simon@josefsson.org>
39257             Bruno Haible  <bruno@clisp.org>
39258
39259         Fix link error on Solaris 8.
39260         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39261         also in libnsl. Define also INET_PTON_LIB.
39262         * modules/inet_pton (Link): New section.
39263
39264 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39265             Bruno Haible  <bruno@clisp.org>
39266
39267         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39268         * modules/inet_ntop (Link): New section.
39269         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39270
39271 2009-11-02  Eric Blake  <ebb9@byu.net>
39272
39273         maint: avoid compiler warnings in m4 macros
39274         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39276
39277 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39278
39279         * m4/pmccabe2html.m4: Remove file.
39280         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39281         function.  Change maintainer.
39282         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39283         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39284         Courtès).
39285
39286 2009-10-31  Eric Blake  <ebb9@byu.net>
39287
39288         fseeko: fix m4 regression
39289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39290         regression from 2009-10-27.
39291         Reported by Ralf Wildenhues.
39292
39293 2009-10-31  Jim Meyering  <meyering@redhat.com>
39294
39295         inttostr: aesthetics and improved (compile-time) safety
39296         Define inttype_is_signed rather than inttype_is_unsigned,
39297         since the sole use is via "#if inttype_is_signed".
39298         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39299         inttype_is_unsigned.
39300         * lib/offtostr.c (inttype_is_signed): Likewise.
39301         * lib/uinttostr.c (inttype_is_signed): Likewise.
39302         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39303         * lib/inttostr.c (inttostr): Use verify to cross-check the
39304         inttype_is_signed value and the signedness of the actual type.
39305         * modules/inttostr (Depends-on): Add verify.
39306
39307 2009-10-30  Eric Blake  <ebb9@byu.net>
39308
39309         build: avoid compiler warnings
39310         * lib/fchmodat.c (lchmod): Mark unused variables.
39311         * lib/getopt.c (_getopt_initialize): Likewise.
39312         * lib/mktime.c (__mktime_internal): Provide prototype.
39313         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39314         older gcc that do not understand #pragma GCC diagnostic.
39315         * lib/uinttostr.c (inttype_is_unsigned): Define.
39316         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39317
39318 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39319
39320         stat: fix compilation on AIX
39321         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39322         only see struct stat64.
39323
39324 2009-10-30  Eric Blake  <ebb9@byu.net>
39325
39326         exclude: make more robust
39327         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39328         rather than masking a coding bug.
39329         Suggested by Bruno Haible.
39330
39331 2009-10-30  Jim Meyering  <meyering@redhat.com>
39332
39333         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39334         Rather than putting #!/usr/bin/perl on the first line,
39335         start with a variant of what's recommended by "man perlrun" that
39336         invokes the first "perl" program from your shell's search path.
39337         * build-aux/gitlog-to-changelog: Replace #!... as above.
39338         Add a "Local Variables" perl mode setting.
39339         Prompted by a patch from Ludovic Courtès.
39340         Improved by Eric Blake.
39341         * build-aux/useless-if-before-free: Likewise.
39342         * build-aux/announce-gen: Likewise.
39343         * build-aux/update-copyright: Likewise.
39344
39345 2009-10-29  Eric Blake  <ebb9@byu.net>
39346
39347         filenamecat-lgpl: adjust clients
39348         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39349         filenamecat.
39350         * modules/renameat (Depends-on): Likewise.
39351
39352         filenamecat: split into filenamecat-lgpl
39353         * modules/filenamecat-lgpl: New module.
39354         * modules/filenamecat (Files): Move library-safe files into
39355         filenamecat-lgpl.
39356         (Depends-on): Add filenamecat-lgpl.
39357         (configure.ac): Declare witness.
39358         * lib/filenamecat.h (file_name_concat): Only declare when using
39359         GPL module.
39360         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39361         Move...
39362         * lib/filenamecat-lgpl.c: ...into new file.
39363         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39364         (gl_FILE_NAME_CONCAT): Use it.
39365         * MODULES.html.sh (File system functions): Mention new module.
39366
39367         argp: avoid memory leak
39368         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39369         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39370         base_name, since the latter malloc()s and can call exit().
39371         Leak introduced 2006-07-03.
39372
39373         dirname-lgpl: adjust clients that don't need full dirname
39374         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39375         * modules/filenamecat (Depends-on): Likewise.
39376         * modules/linkat (Depends-on): Likewise.
39377         * modules/mkancesdirs (Depends-on): Likewise.
39378         * modules/mkdir (Depends-on): Likewise.
39379         * modules/openat (Depends-on): Likewise.
39380         * modules/savewd (Depends-on): Likewise.
39381         * modules/rename (Depends-on): Likewise.
39382         (License): Relax license.
39383         * modules/mkdir-tests (Depends-on): Drop progname.
39384         (Makefile.am): Delete unneeded LDADD.
39385         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39386
39387         dirname: split into dirname-lgpl
39388         * modules/dirname-lgpl: New module.
39389         * modules/dirname (Files): Move library-safe files into
39390         dirname-lgpl.
39391         (Depends-on): Add dirname-lgpl.
39392         (configure.ac): Declare witness.
39393         * modules/double-slash-root (License): Relax license.
39394         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39395         module.
39396         * lib/dirname.c (dir_len, mdir_name): Move...
39397         * lib/dirname-lgpl.c: ...into new file.
39398         * lib/basename.c (last_component, base_len): Move...
39399         * lib/basename-lgpl.c: ...into new file.
39400         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39401         (gl_DIRNAME): Use it.
39402         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39403         Mention new module.
39404         * modules/dirname-tests (Depends-on): Add progname.
39405         * tests/test-dirname.c (program_name): Delete.
39406
39407         mkdir: make safe for libraries
39408         * modules/mkdir (Depends-on): Drop xalloc.
39409         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39410         exit.
39411
39412         tests: avoid some compiler warnings
39413         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39414         literals.
39415         * tests/test-memchr.c (main): Avoid type mismatch.
39416         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39417         * tests/test-base64.c (main): Likewise.
39418         * tests/test-getdelim.c (main): Likewise.
39419         * tests/test-gethostname.c (main): Likewise.
39420         * tests/test-getline.c (main): Likewise.
39421         * tests/test-netinet_in.c (main): Likewise.
39422         * tests/test-select.c (open_server_socket, main): Likewise.
39423         * tests/test-select-stdin.c (main): Likewise.
39424         * tests/test-sockets.c (main): Likewise.
39425         * tests/test-strsignal.c (main): Likewise.
39426         * tests/test-sys_select.c (main): Likewise.
39427         * tests/test-sys_socket.c (main): Likewise.
39428         * tests/test-u64.c (main): Likewise.
39429         * tests/test-xfprintf-posix.c (main): Likewise.
39430         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39431
39432         sockets: avoid compiler warning
39433         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39434
39435         maint: detect usage(1) and other suspicious exits
39436         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39437
39438 2009-10-29  Jim Meyering  <meyering@redhat.com>
39439
39440         timespec: long-to-int truncation could make timespec_cmp malfunction
39441         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39442         a multiple of 2^32 nanoseconds as no difference.
39443
39444 2009-10-28  Jim Meyering  <meyering@redhat.com>
39445
39446         fprintftime: wrap macro code argument in "do {...} while(0)"
39447         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39448         cpy macro must be a statement that can be followed by a semicolon.
39449         Now that the else clause contains a comment and is hence longer
39450         than one line, I require curly braces.  That in turn requires
39451         that we wrap this code block in the standard do...while(0).
39452
39453         fprintftime: remove stray semicolon from previous change
39454         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39455
39456         fprintftime: avoid a warning about ignored fwrite return value
39457         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39458         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39459         that is unsafe.
39460         * modules/fprintftime (Depends-on): Add ignore-value.
39461
39462         exclude: avoid an unwarranted warning
39463         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39464
39465 2009-10-27  Eric Blake  <ebb9@byu.net>
39466
39467         fseek: avoid compilation failure when fflush is replaced
39468         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39469         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39470         module is in use.
39471         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39472         module is not in use; since REPLACE_FSEEK worked otherwise.
39473         (GNULIB_FTELLO): Likewise for ftell.
39474         Reported by Ian Beckwith and others.
39475
39476 2009-10-27  Bruno Haible  <bruno@clisp.org>
39477
39478         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39479         Reported by Jim Meyering.
39480
39481 2009-10-27  Jim Meyering  <jim@meyering.net>
39482             Bruno Haible  <bruno@clisp.org>
39483
39484         Avoid warning despite dropping the return value of fwrite.
39485         * lib/unicodeio.c: Include ignore-value.h.
39486         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39487         * modules/unicodeio (Depends-on): Add ignore-value.
39488
39489 2009-10-26  Eric Blake  <ebb9@byu.net>
39490
39491         areadlinkat: fix fallback path
39492         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39493         pointer and zero.
39494
39495 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39496
39497         Use a better IO block size for modern systems
39498         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39499         * lib/md2.c: Likewise.
39500         * lib/md4.c: Likewise.
39501         * lib/md5.c: Likewise.
39502         * lib/sha1.c: Likewise.
39503         * lib/sha256.c: Likewise.
39504         * lib/sha512.c: Likewise.
39505
39506 2009-10-22  Eric Blake  <ebb9@byu.net>
39507
39508         tests: avoid several compiler warnings
39509         * tests/test-getcwd.c (main): Avoid buffer underflow.
39510         * tests/test-getdate.c (main): String literals are not safe with
39511         putenv, so use setenv.  Declare unused argument.
39512         * modules/getdate-tests (Depends-on): Add setenv.
39513         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39514         problems with string literals in char *.
39515         * tests/test-hash.c (main): Avoid shadowing declaration.
39516         (insert_new): Treat string literals as char const *.
39517         * tests/test-getopt.h (test_getopt): Likewise.
39518         (getopt_loop): Alter types to minimize casting elsewhere.
39519         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39520         (test_getopt_long_posix): Likewise.
39521         (do_getopt_long): Add wrapper to minimize casting.
39522         * tests/test-atexit.c (clear_temp_file): Use void.
39523         * tests/test-areadlink-with-size.c (main): Declare unused
39524         arguments.
39525         * tests/test-areadlink.c (main): Likewise.
39526         * tests/test-areadlinkat-with-size.c (main): Likewise.
39527         * tests/test-areadlinkat.c (main): Likewise.
39528         * tests/test-canonicalize-lgpl.c (main): Likewise.
39529         * tests/test-canonicalize.c (main): Likewise.
39530         * tests/test-dirent-safer.c (main): Likewise.
39531         * tests/test-dirname.c (main): Likewise.
39532         * tests/test-dup2.c (main): Likewise.
39533         * tests/test-fchdir.c (main): Likewise.
39534         * tests/test-fcntl-h.c (main): Likewise.
39535         * tests/test-fcntl-safer.c (main): Likewise.
39536         * tests/test-fdopendir.c (main): Likewise.
39537         * tests/test-fdutimensat.c (main): Likewise.
39538         * tests/test-fflush.c (main): Likewise.
39539         * tests/test-filenamecat.c (main): Likewise.
39540         * tests/test-filevercmp.c (main): Likewise.
39541         * tests/test-fopen-safer.c (main): Likewise.
39542         * tests/test-fopen.c (main): Likewise.
39543         * tests/test-fpending.c (main): Likewise.
39544         * tests/test-fpurge.c (main): Likewise.
39545         * tests/test-freading.c (main): Likewise.
39546         * tests/test-fstatat.c (main): Likewise.
39547         * tests/test-fsync.c (main): Likewise.
39548         * tests/test-futimens.c (main): Likewise.
39549         * tests/test-getndelim2.c (main): Likewise.
39550         * tests/test-gettimeofday.c (main): Likewise.
39551         * tests/test-getopt.c (main): Likewise.
39552         * tests/test-i-ring.c (main): Likewise.
39553         * tests/test-inttypes.c (main): Likewise.
39554         * tests/test-link.c (main): Likewise.
39555         * tests/test-lstat.c (main): Likewise.
39556         * tests/test-math.c (main): Likewise.
39557         * tests/test-md5.c (main): Likewise.
39558         * tests/test-memchr2.c (main): Likewise.
39559         * tests/test-memrchr.c (main): Likewise.
39560         * tests/test-mkdir.c (main): Likewise.
39561         * tests/test-mkdirat.c (main): Likewise.
39562         * tests/test-mkfifoat.c (main): Likewise.
39563         * tests/test-open.c (main): Likewise.
39564         * tests/test-openat-safer.c (main): Likewise.
39565         * tests/test-openat.c (main): Likewise.
39566         * tests/test-quotearg.c (main): Likewise.
39567         * tests/test-rawmemchr.c (main): Likewise.
39568         * tests/test-readlink.c (main): Likewise.
39569         * tests/test-remove.c (main): Likewise.
39570         * tests/test-rename.c (main): Likewise.
39571         * tests/test-renameat.c (main): Likewise.
39572         * tests/test-rmdir.c (main): Likewise.
39573         * tests/test-sha1.c (main): Likewise.
39574         * tests/test-signal.c (main): Likewise.
39575         * tests/test-sigaction.c (main): Likewise.
39576         * tests/test-stat.c (main): Likewise.
39577         * tests/test-stat-time.c (main): Likewise.
39578         * tests/test-stddef.c (main): Likewise.
39579         * tests/test-stdint.c (main): Likewise.
39580         * tests/test-stdio.c (main): Likewise.
39581         * tests/test-stdlib.c (main): Likewise.
39582         * tests/test-strchrnul.c (main): Likewise.
39583         * tests/test-strerror.c (main): Likewise.
39584         * tests/test-string.c (main): Likewise.
39585         * tests/test-strtod.c (main): Likewise.
39586         * tests/test-strverscmp.c (main): Likewise.
39587         * tests/test-symlink.c (main): Likewise.
39588         * tests/test-symlinkat.c (main): Likewise.
39589         * tests/test-sys_stat.c (main): Likewise.
39590         * tests/test-sys_time.c (main): Likewise.
39591         * tests/test-time.c (main): Likewise.
39592         * tests/test-unistd.c (main): Likewise.
39593         * tests/test-unlink.c (main): Likewise.
39594         * tests/test-unlinkat.c (main): Likewise.
39595         * tests/test-utimens.c (main): Likewise.
39596         * tests/test-utimensat.c (main): Likewise.
39597         * tests/test-version-etc.c (main): Likewise.
39598         * tests/test-wchar.c (main): Likewise.
39599         * tests/test-wctype.c (main): Likewise.
39600         * tests/test-xprintf-posix.c (main): Likewise.
39601         * tests/test-posixtm.c (main): Likewise.
39602         (STREQ): Delete unused macro.
39603         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39604         shadowed variables.
39605         * tests/test-memchr.c (main): Likewise.
39606
39607 2009-10-21  Eric Blake  <ebb9@byu.net>
39608
39609         areadlinkat: avoid failure on older glibc
39610         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39611         rather than mis-comparing 0 against FUNC_RESULT of char*.
39612
39613 2009-10-21  Bruno Haible  <bruno@clisp.org>
39614
39615         * modules/stpncpy (License): Relicense under LGPLv2+.
39616         Reported by David Lutterkort <lutter@redhat.com>.
39617
39618 2009-10-20  Eric Blake  <ebb9@byu.net>
39619
39620         utimensat: work around Solaris 9 bug
39621         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39622         has trailing slash bugs.
39623         * tests/test-lutimens.h (test_lutimens): Enhance test.
39624         * tests/test-utimens.h (test_utimens): Likewise.
39625         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39626         * doc/posix-functions/utimes.texi (utimes): Likewise.
39627         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39628         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39629         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39630         * doc/posix-functions/futimens.texi (futimens): Likewise.
39631
39632         fdutimensat: new module
39633         * modules/fdutimensat: New file.
39634         * lib/fdutimensat.c (fdutimensat): Likewise.
39635         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39636         * MODULES.html.sh (File system functions): Mention module.
39637         * modules/fdutimensat-tests: New test.
39638         * tests/test-fdutimensat.c: Likewise.
39639
39640         doc: regenerate INSTALL
39641         * doc/INSTALL: Reflect recent autoconf update.
39642         * doc/INSTALL.ISO: Likewise.
39643         * doc/INSTALL.UTF-8: Likewise.
39644
39645 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39646
39647         acl: warn if ACL support is not detected
39648         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39649
39650 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39651
39652         * lib/nproc.h: Add extern "C" block for C++.
39653
39654 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39655             Bruno Haible  <bruno@clisp.org>
39656
39657         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39658         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39659         * doc/posix-functions/isalpha.texi: Likewise.
39660         * doc/posix-functions/isblank.texi: Likewise.
39661         * doc/posix-functions/iscntrl.texi: Likewise.
39662         * doc/posix-functions/isdigit.texi: Likewise.
39663         * doc/posix-functions/isgraph.texi: Likewise.
39664         * doc/posix-functions/islower.texi: Likewise.
39665         * doc/posix-functions/isprint.texi: Likewise.
39666         * doc/posix-functions/ispunct.texi: Likewise.
39667         * doc/posix-functions/isspace.texi: Likewise.
39668         * doc/posix-functions/isupper.texi: Likewise.
39669         * doc/posix-functions/isxdigit.texi: Likewise.
39670
39671 2009-10-18  Bruno Haible  <bruno@clisp.org>
39672
39673         Tests for module 'isblank'.
39674         * modules/isblank-tests: New file.
39675         * tests/test-isblank.c: New file.
39676
39677         New module 'isblank'.
39678         * lib/isblank.c: New file.
39679         * m4/isblank.m4: New file.
39680         * modules/isblank: New file.
39681         * doc/posix-functions/isblank.texi: Mention the new module.
39682
39683 2009-10-18  Bruno Haible  <bruno@clisp.org>
39684
39685         New module 'ctype'.
39686         * lib/ctype.in.h: New file.
39687         * m4/ctype.m4: New file.
39688         * modules/ctype: New file.
39689         * doc/posix-headers/ctype.texi: Mention the new module.
39690
39691 2009-10-18  Jim Meyering  <meyering@redhat.com>
39692
39693         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39694         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39695         right after its initialization, rather than farther down.
39696         Keeping these in close proximity makes it easier to ensure
39697         that each such variable is initialized.  E.g.,
39698
39699             LIB_CLOCK_GETTIME=
39700             AC_SUBST([LIB_CLOCK_GETTIME])
39701
39702         This change also increments these serial numbers.
39703         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39704         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39706
39707 2009-10-18  Bruno Haible  <bruno@clisp.org>
39708
39709         Don't let environment variables perturb build.
39710         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39711         (gl_PREREQ_GETHRXTIME): ... not here.
39712
39713 2009-10-18  Bruno Haible  <bruno@clisp.org>
39714
39715         Avoid symlink attack in localcharset module.
39716         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39717         (O_NOFOLLOW): Define fallback.
39718         (get_charset_aliases): Don't open the file if it is a symbolic link.
39719         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39720         gl_FCNTL_H.
39721         (gl_FCNTL_H): Require it.
39722         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39723         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39724         Reported by Fergal Glynn <fglynn@veracode.com>.
39725
39726 2009-10-18  Bruno Haible  <bruno@clisp.org>
39727
39728         Implement nproc for mingw.
39729         * lib/nproc.c: Include <windows.h>
39730         (num_processors): On native Windows platforms, try GetSystemInfo.
39731
39732 2009-10-18  Bruno Haible  <bruno@clisp.org>
39733
39734         Implement nproc for IRIX.
39735         * lib/nproc.c: Include <sys/sysmp.h>.
39736         (num_processors): On IRIX systems, try sysmp.
39737         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39738
39739 2009-10-18  Bruno Haible  <bruno@clisp.org>
39740
39741         Implement nproc for HP-UX.
39742         * lib/nproc.c: Include <sys/pstat.h>
39743         (num_processors): On HP-UX systems, try pstat_getdynamic.
39744         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39745         pstat_getdynamic.
39746
39747 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39748             Bruno Haible  <bruno@clisp.org>
39749
39750         Implement nproc for NetBSD, OpenBSD.
39751         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39752         (ARRAY_SIZE): New macro.
39753         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39754         * m4/nproc.m4: New file.
39755         * modules/nproc (Files): Add m4/nproc.m4.
39756         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39757         (Makefile.am): Instead, augment lib_SOURCES.
39758
39759 2009-10-18  Bruno Haible  <bruno@clisp.org>
39760
39761         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39762         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39763         sys/param.h.
39764
39765 2009-10-16  Eric Blake  <ebb9@byu.net>
39766
39767         utimensat: new module
39768         * modules/utimensat: New file.
39769         * lib/utimensat.c (utimensat): Likewise.
39770         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39771         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39772         so we can work around Linux bugs.
39773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39774         * modules/sys_stat (Makefile.am): Substitute them.
39775         * lib/sys_stat.in.h (utimensat): Declare it.
39776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39777         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39778         * modules/utimensat-tests: New test.
39779         * tests/test-utimensat.c: Likewise.
39780
39781         utimens: let lutimens work on non-symlinks
39782         * lib/utimens.c (lutimens): Fall back to utimens rather than
39783         failing with ENOSYS, when file is not a symlink.
39784         (utimens): Reduce redirection.
39785         * tests/test-lutimens.h (test_lutimens): Update test to cover
39786         non-symlinks.
39787         * tests/test-utimens.h (test_utimens): Update test to cover
39788         symlinks.
39789         * tests/test-utimens.c (main): Update caller.
39790
39791         utimens: cache whether utimensat syscall works
39792         * lib/utimens.c (utimensat_works_really): New cache variable.
39793         (fdutimens, lutimens): Use it to avoid failing syscall.
39794
39795         test-stat-time, test-utimens: improve portability
39796         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39797         ext4 on alpha, and for cygwin.
39798         * tests/test-utimens-common.h: New file.
39799         (nap): Factor delays into single function.
39800         * tests/test-lutimens.h (test_lutimens): Use new header.
39801         * tests/test-futimens.h (test_futimens): Likewise.
39802         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39803         timestamps to occur from same machine, as was done previously for
39804         test_utimens.
39805         * modules/utimens-tests (Files): Ship new file.
39806         * modules/futimens-tests (Files): Likewise.
39807         Reported in part by Jim Meyering.
39808
39809         sys_stat: sort replacement declarations
39810         * lib/sys_stat.in.h: Sort declarations.
39811         * lib/futimens.c (futimens): Fix typo.
39812
39813 2009-10-15  Jim Meyering  <meyering@redhat.com>
39814
39815         don't let environment settings perturb build
39816         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39817         could cause a configure-time and/or build-time malfunction.
39818         Typically, a configure-time function-in-library test is performed
39819         via code like this:
39820
39821           LIB_VAR=
39822           AC_SUBST([LIB_VAR])
39823           prefix_saved_LIBS=$LIBS
39824             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39825                        [test "$ac_cv_search_FUNC" = "none required" ||
39826                         LIB_VAR=$ac_cv_search_FUNC])
39827           LIBS=$prefix_saved_LIBS
39828
39829         However, in each of the files affected by this change, the LIB_VAR=
39830         initialization was omitted.  Thus, when set in the environment, its
39831         value would propagate into generated Makefiles when FUNC is not found
39832         in LIB_NAME.
39833         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39834         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39836
39837 2009-10-14  Eric Blake  <ebb9@byu.net>
39838
39839         fchdir: avoid infinite recursion in mingw
39840         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39841         recursing.
39842
39843         test-stat-time: port to mingw
39844         * tests/test-stat-time.c (force_unlink): Return a value.
39845         (test_ctime) [W32]: Fix compilation error.
39846         (nap): Don't call usleep with too large an argument.  Use
39847         force_unlink.
39848         * doc/pastposix-functions/usleep.texi (usleep): Document the
39849         portability issue.
39850
39851 2009-10-13  Jim Meyering  <meyering@redhat.com>
39852
39853         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39854         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39855         * modules/pipe-filter-ii: Likewise.
39856         * modules/sys_socket-tests: Likewise.
39857         * modules/tsearch-tests: Likewise.
39858         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39859         (check): Depend on it.
39860
39861 2009-10-12  Eric Blake  <ebb9@byu.net>
39862
39863         utimens-tests: port to NFS file systems
39864         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39865         comparisons to avoid spurious failures from timestamp drift
39866         between NFS machines.
39867
39868 2009-10-12  Eric Blake  <ebb9@byu.net>
39869
39870         stat-time-tests: minor cleanups
39871         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39872         * tests/test-stat-time.c (nap): Separate assignment from call.
39873         Suggested by Paolo Bonzini and Bruno Haible.
39874
39875         sys_stat: guarantee struct timespec
39876         * lib/sys_stat.in.h (includes): Always include <time.h>
39877         * modules/sys_stat (Depends-on): Add time.
39878         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39879         mode_t permission values.
39880         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39881         get at subsecond timestamps.
39882
39883 2009-10-10  Eric Blake  <ebb9@byu.net>
39884
39885         futimens: new module
39886         * modules/futimens: New file.
39887         * lib/futimens.c (futimens): Likewise.
39888         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39889         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39890         we can work around Linux bugs.
39891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39892         * modules/sys_stat (Makefile.am): Substitute them.
39893         * lib/sys_stat.in.h (futimens): Declare it.
39894         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39895         * doc/posix-functions/futimens.texi (futimens): Likewise.
39896         * modules/futimens-tests: New test.
39897         * tests/test-futimens.c: Likewise.
39898
39899         utimens: introduce fdutimens
39900         * lib/utimens.h (fdutimens): New prototype.
39901         * lib/utimens.c (gl_futimens): Move guts...
39902         (fdutimens): ...to new interface.
39903         * tests/test-utimens.c (do_fdutimens): Use it.
39904
39905         utimens: add UTIME_NOW and UTIME_OMIT support
39906         * lib/utimens.c (validate_timespec, update_timespec): New helper
39907         functions.
39908         (gl_futimens, lutimens): Use them.
39909         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39910         stdbool, sys_stat.
39911         (Link): Mention resulting library dependency.
39912         * modules/utimecmp (Link): Likewise.
39913         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39914         (Makefile.am): Pick up library dependency.
39915         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39916         definition.
39917         * tests/test-sys_stat.c: Test the definitions.
39918         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39919         * NEWS: Document library dependency.
39920
39921         utimecmp: support symlink timestamps
39922         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39923         hashing when possible.  Use pathconf when available.
39924         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39925         * modules/utimecmp (Depends-on): Add lstat.
39926
39927         utimens: add lutimens interface
39928         * lib/utimens.c (lutimens): New function.
39929         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39930         * lib/utimens.h (lutimens): Declare new interface.
39931         * tests/test-utimens.c (main): Enhance test.
39932         * tests/test-lutimens.h (test_lutimens): New file.
39933         * modules/utimens-tests (Files): Distribute it.
39934         (Depends-on): Add symlink.
39935         (configure.ac): Check for usleep.
39936
39937         utimens: validate futimens usage
39938         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39939         fewer syscalls on failure later on.  Avoid compiler warning on
39940         mingw.
39941         * modules/utimens (Depends-on): Add dup2.
39942
39943         utimens: add test
39944         * modules/utimens-tests: New test.
39945         * tests/test-utimens.h: New file.
39946         * tests/test-futimens.h: Likewise.
39947         * tests/test-utimens.c: Likewise.
39948
39949         doc: mention timestamp portability issues
39950         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39951         instead.
39952         * doc/posix-functions/utime.texi (utime): Likewise.
39953         * doc/posix-functions/utimes.texi (utimes): Likewise.
39954         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39955         instead.
39956         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39957         module.
39958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39959         Mention weakness with symlink timestamps.
39960         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39961         to utimensat/futimens instead.
39962         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39963
39964         test-dup2: enhance test
39965         * tests/test-dup2.c (main): Also check AT_FDCWD.
39966
39967         test-stat-time: avoid more spurious failures
39968         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39969         xfs; and avoid race if the two timestamps cross quantization edge.
39970
39971         relocatable: prefer 'file system' over 'filesystem'
39972         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39973         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39974         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39975         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39976         * lib/relocatable.c (compute_curr_prefix): Likewise.
39977
39978 2009-10-10  Jim Meyering  <meyering@redhat.com>
39979
39980         stat-time-tests: check for the usleep function
39981         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39982
39983 2009-10-10  Bruno Haible  <bruno@clisp.org>
39984
39985         * modules/xnanosleep: Put the Link section after the Include section.
39986
39987 2009-10-09  Eric Blake  <ebb9@byu.net>
39988
39989         dup2: work around FreeBSD 6.1 bug
39990         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39991         * doc/posix-functions/dup2.texi (dup2): Document it.
39992         Reported by Nelson H. F. Beebe and Jim Meyering.
39993
39994         test-stat-time: port to buggy NFS clients
39995         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39996         (test_ctime): Also skip test if mtime and ctime are skewed.
39997
39998         maint: prefer 'file system' over 'filesystem'
39999         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40000         * doc/posix-functions/lstat.texi (lstat): Likewise.
40001         * lib/file-has-acl.c (file_has_acl): Likewise.
40002         * lib/fwriteerror.c [TEST]: Likewise.
40003         * tests/test-areadlink.h (test_areadlink): Likewise.
40004         * tests/test-areadlinkat-with-size.c (main): Likewise.
40005         * tests/test-areadlinkat.c (main): Likewise.
40006         * tests/test-canonicalize-lgpl.c (main): Likewise.
40007         * tests/test-canonicalize.c (main): Likewise.
40008         * tests/test-fstatat.c (main): Likewise.
40009         * tests/test-linkat.c (main): Likewise.
40010         * tests/test-lstat.h (test_lstat_func): Likewise.
40011         * tests/test-mkdir.h (test_mkdir): Likewise.
40012         * tests/test-readlink.h (test_readlink): Likewise.
40013         * tests/test-remove.c (main): Likewise.
40014         * tests/test-rename.h (test_rename): Likewise.
40015         * tests/test-renameat.c (main): Likewise.
40016         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40017         * tests/test-symlink.h (test_symlink): Likewise.
40018         * tests/test-symlinkat.c (main): Likewise.
40019         * tests/test-unlink.h (test_unlink_func): Likewise.
40020         * tests/test-unlinkat.c (main): Likewise.
40021
40022         maint: make realtime library usage explicit
40023         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40024         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40025         * modules/settime (Link): Likewise.
40026         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40027
40028         test-stat-time: speed up execution
40029         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40030         warning on mingw.
40031         (nap): New helper function.
40032         (prepare_test): Use it to reduce sleep time.
40033         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40034         execution.
40035         * modules/stat-time-tests (configure.ac): Check for usleep.
40036
40037 2009-10-09  Jim Meyering  <meyering@redhat.com>
40038
40039         selinux-h: always use getfilecon wrappers
40040         * lib/getfilecon.c: New file.
40041         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40042         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40043         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40044         (fgetfilecon): Provide a stub.
40045         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40046         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40047         file unconditionally.
40048         When <selinux/selinux.h> is found, arrange to use wrappers.
40049         * modules/selinux-h (Files): Add getfilecon.c.
40050         (Makefile.am): Substitute include-next-related bits
40051         into the now-always-generated selinux/selinux.h file.
40052         * doc/glibc-functions/lgetfilecon.texi: New file.
40053         * doc/glibc-functions/fgetfilecon.texi: New file.
40054         * doc/glibc-functions/getfilecon.texi: New file.
40055         * doc/glibc-functions/getfilecon-desc.texi: New file.
40056         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40057         which to pull in the new files.
40058         * MODULES.html.sh (Misc): Add selinux-h.
40059
40060 2009-10-08  Jim Meyering  <meyering@redhat.com>
40061
40062         unistd: fix comment typo
40063         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40064
40065 2009-10-08  Eric Blake  <ebb9@byu.net>
40066
40067         areadlink: use SIZE_MAX consistently
40068         * modules/areadlink (Depends-on): Add stdint.
40069         * modules/areadlink-with-size (Depends-on): Likewise.
40070         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40071         gives NULL; drop sys/types, since unistd gives size_t; and add
40072         stdint for SIZE_MAX.
40073         (SIZE_MAX): Rely on headers.
40074         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40075         and add stdint.
40076         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40077         (SIZE_MAX): Likewise.
40078         (INITIAL_BUF_SIZE): Turn into enum.
40079         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40080
40081 2009-10-08  Jim Meyering  <meyering@redhat.com>
40082
40083         areadlinkat: avoid compilation failure
40084         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40085         Fix typo in comment.
40086
40087 2009-10-07  Eric Blake  <ebb9@byu.net>
40088
40089         areadlinkat-with-size: new module
40090         * modules/areadlinkat-with-size: New module.
40091         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40092         * lib/areadlink.h (areadlinkat): Declare it.
40093         * MODULES.html.sh (File system functions): Mention it.
40094         * modules/areadlinkat-with-size-tests: New test.
40095         * tests/test-areadlinkat-with-size.c: New file.
40096
40097         xreadlinkat: new module
40098         * modules/xreadlinkat: New module.
40099         * lib/xreadlinkat.c (xreadlinkat): New file.
40100         * lib/xreadlink.h (xreadlinkat): Declare it.
40101         * MODULES.html.sh (File system functions): Mention it.
40102
40103         areadlinkat: new module
40104         * lib/at-func.c (FUNC_FAIL): New define.
40105         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40106         * modules/areadlinkat: New module.
40107         * lib/linkat.c (areadlinkat): Move...
40108         * lib/areadlinkat.c (areadlinkat): ...to new file.
40109         * lib/areadlink.h (areadlinkat): Declare it.
40110         * modules/linkat (Depends-on): Add areadlinkat.
40111         * MODULES.html.sh (File system functions): Mention it.
40112         * modules/areadlinkat-tests: New test.
40113         * tests/test-areadlinkat.c: New file.
40114
40115         areadlink, areadlink-with-size: add tests
40116         * modules/areadlink-tests: New test.
40117         * modules/areadlink-with-size-tests: Likewise.
40118         * tests/test-areadlink.h: New file.
40119         * tests/test-areadlink.c: Likewise.
40120         * tests/test-areadlink-with-size.c: Likewise.
40121
40122         maint: minor cleanups
40123         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40124         _UNUSED_PARAMETER_ instead.
40125         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40126         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40127         * modules/linkat-tests (Files): Distribute test-link.h.
40128
40129         openat, utimens: whitespace cleanup
40130         * lib/openat.c: Prefer space throughout, rather than mix of 8
40131         spaces vs. tabs.
40132         * lib/at-func.c: Likewise.
40133         * lib/utimens.c: Likewise.
40134
40135         openat: avoid using wrong fd
40136         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40137         working directory chooses same fd.
40138         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40139
40140         mkdir, mkdirat: fix cygwin 1.5.x bug
40141         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40142         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40143         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40144         bug.
40145         (gl_PREREQ_MKDIR): Delete unused macro.
40146         * modules/mkdir (Files): Track file rename.
40147         (configure.ac): Update macro name.
40148         * modules/openat (Depends-on): Add mkdir.
40149         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40150
40151         mkdir, mkdirat: add tests
40152         * modules/mkdir-tests: New test.
40153         * tests/test-mkdir.h: New file.
40154         * tests/test-mkdir.c: Likewise.
40155         * tests/test-mkdirat.c: Likewise.
40156         * modules/openat-tests (Files): Add new files.
40157         (Makefile.am): Run new test.
40158
40159 2009-10-06  Eric Blake  <ebb9@byu.net>
40160
40161         doc: tweak *at function documentation
40162         * doc/posix-functions/faccessat.texi (faccessat): Mention
40163         known issue with replacement.
40164         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40165         * doc/posix-functions/linkat.texi (linkat): Likewise.
40166         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40167         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40168         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40169         * doc/posix-functions/renameat.texi (renameat): Likewise.
40170         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40171
40172         openat: fix GNU/Hurd bug in unlinkat
40173         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40174         broken.
40175         * doc/posix-functions/unlink.texi (unlink): Document this.
40176         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40177
40178         fdopendir: fix GNU/Hurd bug
40179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40180         allowing non-directory fds.
40181         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40182         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40183         * modules/dirent (Makefile.am): Substitute it.
40184         * lib/dirent.in.h (fdopendir): Declare replacement.
40185         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40186         * tests/test-fdopendir.c (main): Test something other than
40187         /dev/null, since on Hurd that behaves like a directory.
40188
40189         test-symlink: port to GNU/Hurd
40190         * tests/test-symlink.h (test_symlink): Relax expected errno.
40191
40192         doc: tweak more cygwin information
40193         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40194         now compatible with glibc.
40195         * doc/posix-functions/getopt.texi (getopt): Likewise.
40196
40197         getopt-gnu: add another test
40198         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40199         guarantee behavior relied on by m4.
40200         * tests/test-getopt.c (main): Use it.
40201         * modules/getopt-posix-tests (Depends-on): Add setenv.
40202         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40203
40204         getopt: fix compilation on darwin
40205         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40206         include.
40207         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40208         Reported by Ludovic Courtès.
40209
40210 2009-10-06  Bruno Haible  <bruno@clisp.org>
40211
40212         * modules/size_max (Description): Discourage its use.
40213         Reported by Simon Josefsson.
40214
40215 2009-10-06  Jim Meyering  <meyering@redhat.com>
40216
40217         linkat: avoid compilation failure
40218         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40219
40220 2009-10-05  Eric Blake  <ebb9@byu.net>
40221
40222         linkat: support Linux 2.6.17
40223         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40224         linkat on Linux, but allow cache variable override.
40225         * lib/linkat.c (rpl_linkat): Define override.
40226         * modules/linkat (Depends-on): Add symlinkat.
40227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40228         * modules/unistd (Makefile.am): Substitute it.
40229         * lib/unistd.in.h (linkat): Declare replacement.
40230         Reported by Pádraig Brady.
40231
40232         quotearg: port test to systems with C.UTF-8 locale
40233         * tests/test-quotearg.c (struct result_strings): Add another
40234         member, differentiating between C.ASCII and C.UTF-8 handling.
40235         (compare_strings): Add parameter.
40236         (main): Adjust all callers.
40237
40238         getopt: avoid clash with FreeBSD _getopt_internal
40239         * lib/getopt.in.h (_getopt_internal): Override the name.
40240         * lib/getopt_int.h (includes): Pick up any overrides.
40241         Reported by Reuben Thomas.
40242
40243         hash: allow C89 compilation
40244         * lib/hash.c (check_tuning): Move declaration before statement.
40245         Reported by Reuben Thomas.
40246
40247 2009-10-05  Karl Berry  <karl@gnu.org>
40248
40249         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40250
40251 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40252             Bruno Haible  <bruno@clisp.org>
40253
40254         * lib/uname.c (uname): Use a table-driven algorithm to compute
40255         Windows NT versions.
40256
40257 2009-10-04  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40260         program_invocation_short_name.
40261         * modules/progname (configure.ac): Test for presence of
40262         program_invocation_short_name.
40263         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40264
40265 2009-10-04  Bruno Haible  <bruno@clisp.org>
40266
40267         * lib/progname.c (set_program_name): Fix comment.
40268         Reported by Jim Meyering.
40269
40270 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40271             Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/uname.c: Include <string.h>.
40274         (uname): Do only one call to GetVersionEx in the common case.
40275
40276 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40277             Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40280         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40281         (uname): Add support for Windows CE and various non-x86 CPU types.
40282
40283 2009-10-03  Bruno Haible  <bruno@clisp.org>
40284
40285         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40286         invocation to tests/configure.ac.
40287         Reported by Ian Beckwith <ianb@erislabs.net>.
40288
40289 2009-10-02  Eric Blake  <ebb9@byu.net>
40290
40291         fchdir: avoid compiler warning
40292         * lib/fchdir.c (canonicalize_file_name)
40293         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40294
40295         test-open: support mingw errno values
40296         * tests/test-open.h (test_open): Relax test.
40297         * tests/test-fopen.h (test_fopen): Likewise.
40298         * tests/test-openat-safer.c (main): Likewise.
40299
40300         open: fix opening directory on mingw
40301         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40302
40303         test-open: on GNU/Hurd, /dev/null is a directory
40304         * tests/test-fopen.h (main): Rename...
40305         (test_fopen): ...to this.  Use a guaranteed non-directory when
40306         confirming open behavior on trailing slash.
40307         * tests/test-openat-safer.c (main): Likewise.
40308         * tests/test-open.h (main): Likewise....
40309         (test_open): ...to this.
40310         * tests/test-fopen.c (main): Adjust caller.
40311         * tests/test-fopen-safer.c (main): Likewise.
40312         * tests/test-open.c (main): Likewise.
40313         * tests/test-fcntl-safer.c (main): Likewise.
40314         Reported by Samuel Thibault.
40315
40316         rename, fchdir: don't ignore chdir failure
40317         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40318         * lib/rename.c (rpl_rename) [W32]: Likewise.
40319         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40320         an empty destination directory if source cannot be renamed,
40321         although there is still possibility for failure.
40322         * doc/posix-functions/rename.texi (rename): Document the race.
40323         Reported by Jim Meyering.
40324
40325         maint: cleanup whitespace in recent commits
40326         * lib/rename.c (rpl_rename): Remove tabs.
40327         * tests/test-link.h (test_link): Likewise.
40328         * lib/fchdir.c (get_name): Likewise.
40329         Reported by Jim Meyering.
40330
40331 2009-10-02  Ben Pfaff  <blp@gnu.org>
40332
40333         relocatable-prog-wrapper: Add missing dependency on
40334         double-slash-root.
40335         * modules/relocatable-prog-wrapper: Add dependency.
40336         Reported by Ian Beckwith <ianb@erislabs.net>.
40337
40338 2009-10-02  Eric Blake  <ebb9@byu.net>
40339
40340         renameat: fix Solaris bugs
40341         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40342         needed fixing.
40343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40344         * modules/stdio (Makefile.am): Substitute it.
40345         * lib/stdio.in.h (renameat): Declare replacement.
40346         * lib/renameat.c (rpl_renameat): Implement fix.
40347
40348         renameat: new module
40349         * modules/renameat: New file.
40350         * lib/renameat.c (renameat): Likewise.
40351         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40353         * modules/stdio (Makefile.am): Substitute them.
40354         * lib/stdio.in.h (renameat): Declare it.
40355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40356         * doc/posix-functions/renameat.texi (renameat): Likewise.
40357         * modules/renameat-tests: New test.
40358         * tests/test-renameat.c: Likewise.
40359
40360         rename: fix mingw bugs
40361         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40362         directory overwrite bugs.
40363
40364         rename: fix another cygwin 1.5 bug
40365         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40366         checks.
40367         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40368         unnecessary cygwin workarounds.  Also work around bug with moving
40369         full directory onto an empty one.
40370         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40371
40372         rename-dest-slash: merge into rename module
40373         * modules/rename-dest-slash (Status): Mark obsolete.
40374         (Depends-on): Add rename.
40375         (Files): Let rename do it all.
40376         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40377         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40378         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40379         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40380         * lib/rename.c (rpl_rename): Update comments.
40381
40382         rename: fix cygwin 1.5.x bugs
40383         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40384         * lib/rename.c (rpl_rename): Work around them.
40385         * modules/rename (Depends-on): Add same-inode.
40386
40387         rename: fix Solaris 10 bug
40388         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40389         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40390         was the only bug.
40391
40392         rename: fix Solaris 9 bug
40393         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40394         on non-directory.  Avoid calling exit.
40395         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40396         strdup.
40397         * modules/rename-tests (Depends-on): Drop lstat.
40398         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40399         (gl_PREREQ_RENAME): Delete unused macro.
40400
40401         rename-dest-slash: fix NetBSD bug
40402         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40403         links.
40404         * modules/rename-dest-slash (Depends-on): Add same-inode.
40405
40406         rename-tests: new test, exposes several platform bugs
40407         * modules/rename-tests: New file.
40408         * tests/test-rename.h: Likewise.
40409         * tests/test-rename.c: Likewise.
40410         * doc/posix-functions/rename.texi (rename): Improve documentation,
40411         including bugs that will eventually be fixed in gnulib.
40412
40413 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40414
40415         * lib/uname.c: Include <stdlib.h>
40416         (uname): Assume version info is available.
40417
40418 2009-10-02  Jim Meyering  <meyering@redhat.com>
40419
40420         gnu-web-doc-update: correct --help output
40421         * build-aux/gnu-web-doc-update: Make --help output relevant.
40422
40423         gnu-web-doc-update: add standard options
40424         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40425
40426         gnu-web-doc-update: New module.
40427         Use this script to automatically update the on-line web documentation
40428         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40429         * modules/gnu-web-doc-update: New file, from coreutils.
40430         * build-aux/gnu-web-doc-update: New script.
40431
40432 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40433
40434         link: LoadLibrary is not needed.
40435         * lib/link.c: Use GetModuleHandle.
40436
40437 2009-10-01  Eric Blake  <ebb9@byu.net>
40438
40439         getopt: bump serial number
40440         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40441         change.
40442
40443         tests: tighten link, rmdir, and remove tests
40444         * tests/test-link.h (includes): No need to use <config.h> here.
40445         Clean up if directory hard link was created, otherwise test for
40446         trailing '.'.
40447         * tests/test-linkat.c (main): Simplify.
40448         * tests/test-remove.c (main): Enhance test for trailing '.'.
40449         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40450
40451 2009-10-01  Jim Meyering  <meyering@redhat.com>
40452
40453         maint.mk: requiring "make major" was annoying, for a "minor" release.
40454         What is intended is "stable", to contrast with alpha and beta,
40455         so require "make stable", not "make major".
40456         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40457         (get_tool_versions): Likewise.
40458         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40459
40460 2009-09-30  Ben Pfaff  <blp@gnu.org>
40461
40462         Fix broken build of replacement for Windows tmpfile().
40463         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40464         flags argument added along with the 'mkostemp' module.
40465
40466 2009-09-28  Bruno Haible  <bruno@clisp.org>
40467
40468         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40469         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40470         to 'remove_elt'.
40471         (gl_list_remove): Update.
40472         * lib/gl_list.c (gl_list_remove): Update.
40473         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40474         to 'remove_elt'.
40475         (gl_oset_remove): Update.
40476         * lib/gl_list.c (gl_oset_remove): Update.
40477         Reported by Eric Blake.
40478
40479 2009-09-28  Eric Blake  <ebb9@byu.net>
40480
40481         doc: mention yet more cygwin 1.7 status
40482         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40483         cygwin.
40484         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40485         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40486
40487         argp: fix test failure
40488         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40489         that are not upper-case.  Pass correct range to tolower.
40490
40491 2009-09-27  Jim Meyering  <meyering@redhat.com>
40492
40493         test-yesno: work around sparc-dash here-document infelicity
40494         Without this change, the literal \177 byte in a here document
40495         would make dash 0.5.5.1-3 access uninitialized memory.
40496         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40497         Instead, use a marker, "@", and filter through tr to create the desired
40498         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40499
40500 2009-09-27  Bruno Haible  <bruno@clisp.org>
40501
40502         Disable untested support for new flavours of ACLs on AIX.
40503         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40504         progress.
40505         * lib/set-mode-acl.c (qset_acl): Likewise.
40506
40507 2008-12-07  Bruno Haible  <bruno@clisp.org>
40508
40509         Add support for new flavours of ACLs on AIX. (Untested.)
40510         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40511         (file_has_acl): Add support for newer AIX.
40512         * lib/set-mode-acl.c (qset_acl): Likewise.
40513         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40514         Rainer Tammer <tammer@tammer.net>.
40515
40516 2009-09-26  Eric Blake  <ebb9@byu.net>
40517
40518         argp: fix compilation of getopt
40519         * lib/getopt.in.h (includes): Use different guard than glibc.
40520         Reported by Sergey Poznyakoff.
40521
40522         doc: mention more cygwin 1.7 status
40523         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40524         bug.
40525         * doc/posix-functions/execl.texi (execl): Likewise.
40526         * doc/posix-functions/execle.texi (execle): Likewise.
40527         * doc/posix-functions/execlp.texi (execlp): Likewise.
40528         * doc/posix-functions/execv.texi (execv): Likewise.
40529         * doc/posix-functions/execve.texi (execve): Likewise.
40530         * doc/posix-functions/execvp.texi (execvp): Likewise.
40531         * doc/glibc-functions/canonicalize_file_name.texi
40532         (canonicalize_file_name): Cygwin 1.7 now provides this.
40533         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40534         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40535         on AT_SYMLINK_NOFOLLOW.
40536
40537 2009-09-24  Eric Blake  <ebb9@byu.net>
40538
40539         test-linkat: make test more robust
40540         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40541
40542         getopt: fix inclusion guards for cygwin
40543         * modules/getopt-posix (Depends-on): Add include-next.
40544         (Makefile.am): Substitute more items in replacement header.
40545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40546         <getopt.h>.
40547         * lib/getopt.in.h (includes): Use split inclusion guard, and
40548         prefer <getopt.h> over include <unistd.h> when one is present.
40549         (option): Also override name of 'struct option'.
40550
40551         same-inode: revert prior change; it is not yet ready
40552         * NEWS: Undo mention of this change.
40553         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40554         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40555         * lib/cycle-check.c (cycle_check): Likewise.
40556         * lib/same.c (same_name): Likewise.
40557         * lib/at-func2.c (at_func2): Likewise.
40558
40559 2009-09-23  Eric Blake  <ebb9@byu.net>
40560
40561         linkat: new module
40562         * modules/linkat: New file.
40563         * lib/at-func2.c (at_func2): Likewise.
40564         * lib/linkat.c (linkat): Likewise.
40565         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40566         * lib/openat-priv.h (at_func2): Add declaration.
40567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40568         * modules/unistd (Makefile.am): Substitute them.
40569         * lib/unistd.in.h (linkat): Declare it.
40570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40571         * doc/posix-functions/linkat.texi (linkat): Likewise.
40572         * doc/posix-functions/link.texi (link): Tweak wording.
40573         * tests/test-link.c (main): Move guts...
40574         * tests/test-link.h (test_link): ...into new file.
40575         * modules/linkat-tests: New test.
40576         * tests/test-linkat.c: Likewise.
40577         * modules/link-tests (Files): Ship new file.
40578         (Depends-on): Add stdbool.
40579
40580         dirname: add library-safe mdir_name
40581         * lib/dirname.h (mdir_name): New prototype.
40582         * lib/dirname.c (dir_name): Move guts...
40583         (mdir_name): ...to new function that avoids xalloc_die.
40584
40585         fchdir: another mingw fix
40586         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40587         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40588         on mingw (where it has not yet been ported), and make it optional
40589         elsewhere.
40590         (_gl_register_fd): Use it.
40591
40592         same-inode: make SAME_INODE tri-state, to port to mingw
40593         * NEWS: Mention this change.
40594         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40595         st_ino always being 0.
40596         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40597         * lib/cycle-check.c (cycle_check): Likewise.
40598         * lib/same.c (same_name): Likewise.
40599
40600         lstat: avoid mingw compilation error
40601         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40603         lstat ourselves.
40604         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40605         was adequate.
40606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40607         the checks for lstat.
40608         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40609
40610         link: fix test failure on Solaris 9
40611         * lib/link.c (rpl_link): Don't assume link will catch bogus
40612         trailing slash on source.
40613
40614         test-symlinkat: enhance test
40615         * tests/test-readlink.c (main): Move guts...
40616         * tests/test-readlink.h (test_readlink): ...into new file.
40617         * tests/test-symlink.c (main): Move guts...
40618         * tests/test-symlink.h (test_symlink): ...into new file.
40619         * tests/test-symlinkat.c (main): Use new files for further
40620         coverage.
40621         (do_symlink, do_readlink): New helper functions.
40622         * modules/symlink-tests (Files): Ship new file.
40623         (Depends-on): Add stdbool.
40624         * modules/readlink-tests (Files): Ship new file.
40625         (Depends-on): Add stdbool.
40626         * modules/symlinkat-tests (Files): Use new files.
40627
40628 2009-09-23  Eric Blake  <ebb9@byu.net>
40629
40630         readlink: document portability issue with symlink length
40631         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40632         systems have bogus st_size on symlinks, and mention the
40633         areadlink-with-size module.
40634         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40635         * doc/posix-functions/readlink.texi (readlink): Mention the
40636         areadlink module, and ERANGE failure.
40637         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40638         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40639
40640         readlink: fix Solaris 9 bug with trailing slash
40641         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40642         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40643         * doc/posix-functions/readlink.texi (readlink): Document this.
40644         * modules/readlink-tests: New test.
40645         * tests/test-readlink.c: Likewise.
40646
40647         readlink: fix cygwin 1.5.x bug with return type
40648         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40649         * lib/unistd.in.h (readlink): Use ssize_t.
40650         * lib/readlink.c (readlink): Likewise.
40651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40652         * modules/unistd (Makefile.am): Substitute it.
40653         * lib/unistd.in.h (readlink): Declare replacement.
40654         * doc/posix-functions/readlink.texi (readlink): Document this.
40655
40656         symlink: use throughout gnulib
40657         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40658         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40659         symlink is not used.
40660         * modules/symlinkat (Depends-on): Add symlink.
40661         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40662         * modules/canonicalize-tests (Depends-on): Likewise.
40663         * modules/lstat-tests (Depends-on): Likewise.
40664         * modules/openat-tests (Depends-on): Likewise.
40665         * modules/remove-tests (Depends-on): Likewise.
40666         * modules/rmdir-tests (Depends-on): Likewise.
40667         * modules/unlink-tests (Depends-on): Likewise.
40668         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40669         * tests/test-canonicalize.c (symlink): Likewise.
40670         * tests/test-fstatat.c (symlink): Likewise.
40671         * tests/test-lstat.c (symlink): Likewise.
40672         * tests/test-remove.c (symlink): Likewise.
40673         * tests/test-rmdir.c (symlink): Likewise.
40674         * tests/test-unlink.c (symlink): Likewise.
40675         * tests/test-unlinkat.c (symlink): Likewise.
40676
40677         symlink: new module, for Solaris 9 bug
40678         * modules/symlink: New file.
40679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40680         * lib/symlink.c: Likewise.
40681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40682         * modules/unistd (Makefile.am): Substitute them.
40683         * lib/unistd.in.h (symlink): Declare replacement.
40684         * MODULES.html.sh (File system functions): Mention it.
40685         * doc/posix-functions/symlink.texi (symlink): Likewise.
40686         * modules/symlink-tests: New test.
40687         * tests/test-symlink.c: Likewise.
40688
40689 2009-09-23  Bruno Haible  <bruno@clisp.org>
40690
40691         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40692         when needed.
40693         Test case: gnulib-tool --import --with-tests atexit inttypes.
40694         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40695
40696 2009-09-23  Bruno Haible  <bruno@clisp.org>
40697
40698         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40699         subcommand, not in a subshell.
40700
40701 2009-09-22  Eric Blake  <ebb9@byu.net>
40702
40703         unistd: sort replacement declarations
40704         * lib/unistd.in.h: Sort declarations.
40705
40706         open, openat: minor optimization
40707         * lib/open.c (open): If open succeeded, len is non-zero.
40708         * lib/openat.c (rpl_openat): Likewise.
40709
40710         link-follow: ensure correct result
40711         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40712         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40713         distinguish between possible failures.
40714
40715 2009-09-21  Eric Blake  <ebb9@byu.net>
40716
40717         fts: avoid compiler warning
40718         * lib/fts.c (dirent_inode_sort_may_be_useful)
40719         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40720
40721 2009-09-19  Bruno Haible  <bruno@clisp.org>
40722
40723         * lib/progreloc.c (canonicalize_file_name): New declaration.
40724
40725 2009-09-19  Eric Blake  <ebb9@byu.net>
40726
40727         link: fix quoting
40728         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40729
40730         openat: fix openat bugs on Solaris 9
40731         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40732         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40733         * modules/openat (Depends-on): Add open.
40734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40735         * modules/fcntl-h (Makefile.am): Substitute it.
40736         * lib/fcntl.in.h (openat): Declare replacement.
40737         * doc/posix-functions/openat.texi (openat): Document this.
40738
40739         openat: move fstatat and unlinkat into correct files
40740         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40741         compiled.
40742         * lib/openat.c (fstatat, unlinkat): Move...
40743         * lib/fstatat.c (fstatat): ...into correct files.
40744         * lib/unlinkat.c (unlinkat): Likewise.
40745
40746         openat: fix unlinkat bugs on Solaris 9
40747         * lib/unlinkat.c (unlinkat): New file.
40748         * modules/openat (Depends-on): Add unlink.
40749         (Files): Distribute it.
40750         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40751         trailing slash behavior is broken.
40752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40753         * modules/unistd (Makefile.am): Substitute it.
40754         * lib/unistd.in.h (unlinkat): Declare replacement.
40755         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40756
40757         openat: fix fstatat bugs on Solaris 9
40758         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40759         stat.
40760         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40761
40762         test-unlinkat: enhance test, to expose Solaris 9 bug
40763         * tests/test-unlink.c (main): Factor guts...
40764         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40765         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40766         * tests/test-rmdir.c (main): Adjust caller.
40767         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40768         (unlinker): New helper function.
40769         (rmdirat): Enhance check.
40770         * modules/rmdir-tests (Depends-on): Add stdbool.
40771         * modules/unlink-tests (Depends-on): Likewise.
40772         (Files): Add test-unlink.h.
40773         * modules/openat-tests (Files): Likewise.
40774         (Depends-on): Add unlinkdir.
40775
40776         test-fstatat: new test, to expose Solaris 9 bugs
40777         * tests/test-stat.c (main): Factor guts...
40778         * tests/test-stat.h (test_stat_func): ...into new file.
40779         * tests/test-lstat.c (main): Factor guts...
40780         * tests/test-lstat.h (test_lstat_func): ...into new file.
40781         * tests/test-fstatat.c: New file.
40782         * modules/stat-tests (Files): Add test-stat.h.
40783         * modules/lstat-tests (Files): Add test-lstat.h.
40784         (Depends-on): Add stdbool.
40785         * modules/openat-tests (Depends-on): Add pathmax.
40786         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40787         (Makefile.am): Run new test.
40788
40789         remove: new module, for mingw and Solaris 9 bugs
40790         * modules/remove: New file.
40791         * lib/remove.c: Likewise.
40792         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40794         * modules/stdio (Makefile.am): Use them.
40795         * lib/stdio.in.h (remove): Declare replacement.
40796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40797         * doc/posix-functions/remove.texi (remove): Likewise.
40798         * modules/remove-tests: New test.
40799         * tests/test-remove.c: Likewise.
40800
40801         unlink: new module, for Solaris 9 bug
40802         * modules/unlink: New file.
40803         * lib/unlink.c: Likewise.
40804         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40806         * modules/unistd (Makefile.am): Use them.
40807         * lib/unistd.in.h (stat): Declare replacement.
40808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40809         * doc/posix-functions/unlink.texi (unlink): Likewise.
40810         * modules/unlink-tests: New test.
40811         * tests/test-unlink.c: Likewise.
40812
40813         lstat: fix Solaris 9 bug
40814         * lib/lstat.c (lstat): Also check for trailing slash on
40815         non-symlink, non-directories.  Use stat module to simplify logic.
40816         * doc/posix-functions/lstat.texi (lstat): Document it.
40817         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40818         (configure.ac): Check for symlink.
40819         * tests/test-lstat.c (main): Add more tests.
40820
40821         stat: add as dependency to other modules
40822         * modules/chown (Depends-on): Add stat.
40823         * modules/euidaccess (Depends-on): Likewise.
40824         * modules/fchdir (Depends-on): Likewise.
40825         * modules/isdir (Depends-on): Likewise.
40826         * modules/link (Depends-on): Likewise.
40827         * modules/lstat (Depends-on): Likewise.
40828         * modules/mkdir-p (Depends-on): Likewise.
40829         * modules/modechange (Depends-on): Likewise.
40830         * modules/open (Depends-on): Likewise.
40831         * modules/readlink (Depends-on): Likewise.
40832         * modules/same (Depends-on): Likewise.
40833
40834         stat: fix Solaris 9 bug
40835         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40836         slash.
40837         * lib/stat.c (rpl_stat): Work around it.
40838         * doc/posix-functions/stat.texi (stat): Update documentation.
40839
40840         stat: new module, for mingw bug
40841         * modules/stat: New file.
40842         * lib/stat.c: Likewise.
40843         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40845         * modules/sys_stat (Makefile.am): Use them.
40846         * lib/sys_stat.in.h (stat): Declare replacement.
40847         * lib/openat.c (fstatat): Deal with lstat and stat being function
40848         macros.
40849         * modules/openat (Depends-on): Add inline.
40850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40851         * doc/posix-functions/stat.texi (stat): Likewise.
40852         * modules/stat-tests: New test.
40853         * tests/test-stat.c: Likewise.
40854
40855 2009-09-19  Jim Meyering  <meyering@redhat.com>
40856
40857         syntax-check: detect unnecessary inclusion of canonicalize.h
40858         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40859
40860 2009-09-19  Eric Blake  <ebb9@byu.net>
40861
40862         canonicalize-lgpl: adjust clients to use correct header
40863         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40864         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40865         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40866         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40867         * lib/progreloc.c (includes): Likewise.
40868
40869 2009-09-19  Jim Meyering  <meyering@redhat.com>
40870
40871         test-posixtm.c: correct a comment
40872         * tests/test-posixtm.c: Correct first-line comment.
40873         Spotted by Eric Blake.
40874
40875 2009-09-16  Jim Meyering  <meyering@redhat.com>
40876
40877         posixtm-tests: make T const-correct; add a test case
40878         * tests/test-posixtm.c (T): Declare const.
40879         Add a test for -(2^31+1).
40880         Remove useless can-succeed-only-in-2002 test.
40881
40882         posixtm-tests: adjust the sole failing test
40883         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40884         expected output matches what mktime now produces.  Cross-checked via
40885         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40886
40887         posixtm: move #ifdef'd tests into a new module
40888         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40889         * tests/test-posixtm.c: ... this new file.
40890         * modules/posixtm-tests: New module.
40891
40892 2009-09-19  Eric Blake  <ebb9@byu.net>
40893
40894         openat: simplify use of at-func.c
40895         * lib/at-func.c (includes): Include prerequisites here, to
40896         simplify requirements on client files.
40897         * lib/openat-priv.h: Add double-inclusion guard.
40898         * lib/faccessat.c (includes): Simplify.
40899         * lib/fchmodat.c (includes): Likewise.
40900         * lib/fchownat.c (includes): Likewise.
40901         * lib/mkdirat.c (includes): Likewise.
40902         * lib/mkfifoat.c (includes): Likewise.
40903         * lib/symlinkat.c (includes): Likewise.
40904
40905         openat: allow return of fd 0
40906         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40907         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40908         unistd-safer.
40909         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40910         <fcntl.h>; this module does not leak fds.
40911         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40912         must be allowed to return 0, leaving openat_safer to add the
40913         safety.
40914         (openat_permissive): Avoid writing to just-opened fd 2 if
40915         restoring the current directory fails.
40916         * lib/openat-die.c (openat_restore_fail): Add comment.
40917         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40918         (save_cwd): Guarantee safe fd, but without use of open_safer.
40919         * tests/test-openat.c: New test.
40920         * modules/openat-tests (Files, Makefile.am): Distribute and build
40921         new file.
40922
40923         relocatable-prog-wrapper: fix build
40924         * modules/relocatable-prog-wrapper (Files): Update name of
40925         canonicalize m4 file, broken on 2009-09-17.
40926         Reported by emad hajjar <aleppos@hotmail.com>.
40927
40928 2009-09-19  Bruno Haible  <bruno@clisp.org>
40929
40930         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40931         * lib/safe-alloc.c: Likewise.
40932         Reported by Ian Beckwith <ianb@erislabs.net>.
40933
40934 2009-09-18  Bruno Haible  <bruno@clisp.org>
40935
40936         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40937         Reported by <erobles@sensacd.com.mx>.
40938
40939 2009-09-17  Eric Blake  <ebb9@byu.net>
40940
40941         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40942         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40943         slashes when checking if last component is missing.
40944         * tests/test-canonicalize.c (main): Test this.
40945
40946         canonicalize, canonicalize-lgpl: honor // if distinct from /
40947         * modules/canonicalize (Files): Add double-slash-root.m4.
40948         * modules/canonicalize-lgpl (Files): Likewise.
40949         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40950         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40951         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40952         fallback definition.
40953         (canonicalize_filename_mode): Use it to protect //.
40954         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40955         (__realpath): Likewise.
40956         * tests/test-canonicalize.c (main): Test this.
40957         * tests/test-canonicalize-lgpl.c (main): Likewise.
40958         * modules/canonicalize-tests (Depends-on): Add same-inode.
40959         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40960
40961         canonicalize-lgpl: fix glibc bug with trailing slash
40962         * m4/canonicalize-lgpl.m4: Move contents...
40963         * m4/canonicalize.m4: ...here.
40964         (gl_CANONICALIZE_LGPL): Factor realpath check...
40965         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40966         glibc 2.3.5 bug, fixed 2005-04-27.
40967         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40968         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40969         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40970         * modules/canonicalize-lgpl (Files): Manage file rename.
40971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40972         * modules/stdlib (Makefile.am): Substitute witness.
40973         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40974         is needed.
40975         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40976         replacement is required.
40977         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40978         * doc/glibc-functions/canonicalize_file_name.texi
40979         (canonicalize_file_name): Document this.
40980         * doc/posix-functions/realpath.texi (realpath): Likewise.
40981
40982         canonicalize-lgpl: reject non-directory with trailing slash
40983         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40984         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40985         catches failures in glibc 2.3.5.
40986         * tests/test-canonicalize.c (main): Likewise.
40987
40988         canonicalize-lgpl: use native realpath if it works
40989         * lib/canonicalize-lgpl.c (realpath): Guard with
40990         FUNC_REALPATH_WORKS.
40991         * lib/stdlib.in.h (realpath): Make declaration optional based on
40992         HAVE_REALPATH.
40993         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40994         native realpath works.
40995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40996         * modules/stdlib (Makefile.am): Substitute witness.
40997
40998         canonicalize, canonicalize-lgpl: use <stdlib.h>
40999         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41000         (Include): Mention <stdlib.h>.
41001         (configure.ac): Mention functions we provide.
41002         * modules/canonicalize (configure.ac): Likewise.
41003         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41004         realpath if canonicalize_file_name is missing.
41005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41006         * modules/stdlib (Makefile.am): Substitute witnesses.
41007         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41008         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41009         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41010         * NEWS: Document this.
41011         * doc/glibc-functions/canonicalize_file_name.texi
41012         (canonicalize_file_name): Likewise.
41013         * doc/posix-functions/realpath.texi (realpath): Likewise.
41014         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41015
41016         test-canonicalize: consolidate into single C program
41017         * tests/test-canonicalize.sh: Delete; move setup into...
41018         * tests/test-canonicalize.c (main): ...the program, making it
41019         easier to run in debugger.  Add some tests.
41020         * modules/canonicalize-tests (Files): Remove unused file.
41021         (Depends-on): Add progname.
41022         (configure.ac, Makefile.am): Simplify.
41023
41024         test-canonicalize-lgpl: consolidate into single C program
41025         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41026         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41027         easier to run in debugger.  Add some tests.
41028         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41029         (configure.ac, Makefile.am): Simplify.
41030
41031         canonicalize: avoid resolvepath
41032         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41033         unnecessary checks.
41034         * lib/canonicalize.c (includes): Simplify.
41035         (canonicalize_file_name): Drop resolvepath implementation.
41036         * modules/canonicalize (Depends-on): Drop filenamecat.
41037
41038         canonicalize: don't lose errno
41039         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41040         over calls to free.
41041
41042         canonicalize: simplify errno handling
41043         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41044         assignment.
41045
41046         canonicalize, canonicalize-lgpl: update module dependencies
41047         * modules/canonicalize (Depends-on): Add extensions, lstat,
41048         pathmax, stdlib.
41049         (Files): Drop pathmax.h.
41050         (configure.ac): Adjust macro name.
41051         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41052         lstat, stdlib, sys_stat.
41053         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41054         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41055         extensions.
41056         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41057         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41058         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41059         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41060         declaration, if available.
41061         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41062         we can rely on the readlink module.
41063         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41064         (includes): Use <unistd.h> unconditionally.
41065
41066 2009-09-17  Eric Blake  <ebb9@byu.net>
41067
41068         maint: make Include sections of modules consistent
41069         * modules/alloca: Use only header name; no need to list #include.
41070         * modules/alloca-opt: Likewise.
41071         * modules/arpa_inet: Likewise.
41072         * modules/canon-host: Likewise.
41073         * modules/configmake: Likewise.
41074         * modules/dirent: Likewise.
41075         * modules/eealloc: Likewise.
41076         * modules/environ: Likewise.
41077         * modules/fchdir: Likewise.
41078         * modules/fcntl: Likewise.
41079         * modules/fcntl-h: Likewise.
41080         * modules/gethrxtime: Likewise.
41081         * modules/gettime: Likewise.
41082         * modules/ignore-value: Likewise.
41083         * modules/inet_ntop: Likewise.
41084         * modules/inet_pton: Likewise.
41085         * modules/inttypes: Likewise.
41086         * modules/isnand-nolibm: Likewise.
41087         * modules/isnanf-nolibm: Likewise.
41088         * modules/mbchar: Likewise.
41089         * modules/mbfile: Likewise.
41090         * modules/mbiter: Likewise.
41091         * modules/mbuiter: Likewise.
41092         * modules/netdb: Likewise.
41093         * modules/netinet_in: Likewise.
41094         * modules/nproc: Likewise.
41095         * modules/pagealign_alloc: Likewise.
41096         * modules/poll: Likewise.
41097         * modules/printf-frexp: Likewise.
41098         * modules/pthread: Likewise.
41099         * modules/putenv: Likewise.
41100         * modules/random_r: Likewise.
41101         * modules/relocatable-prog: Likewise.
41102         * modules/search: Likewise.
41103         * modules/select: Likewise.
41104         * modules/selinux-h: Likewise.
41105         * modules/settime: Likewise.
41106         * modules/signal: Likewise.
41107         * modules/size_max: Likewise.
41108         * modules/socklen: Likewise.
41109         * modules/ssize_t: Likewise.
41110         * modules/stdarg: Likewise.
41111         * modules/stdbool: Likewise.
41112         * modules/stddef: Likewise.
41113         * modules/stdint: Likewise.
41114         * modules/stdio: Likewise.
41115         * modules/stdlib: Likewise.
41116         * modules/string: Likewise.
41117         * modules/strings: Likewise.
41118         * modules/sys_file: Likewise.
41119         * modules/sys_ioctl: Likewise.
41120         * modules/sys_select: Likewise.
41121         * modules/sys_socket: Likewise.
41122         * modules/sys_stat: Likewise.
41123         * modules/sys_time: Likewise.
41124         * modules/sys_times: Likewise.
41125         * modules/sys_utsname: Likewise.
41126         * modules/sys_wait: Likewise.
41127         * modules/sysexits: Likewise.
41128         * modules/time: Likewise.
41129         * modules/times: Likewise.
41130         * modules/tmpfile: Likewise.
41131         * modules/trim: Likewise.
41132         * modules/unistd: Likewise.
41133         * modules/wchar: Likewise.
41134         * modules/wctype: Likewise.
41135
41136 2009-09-17  Bruno Haible  <bruno@clisp.org>
41137
41138         Make getdate.y compile on QNX and NetBSD 5 / i386.
41139         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41140         TIME_T_FITS_IN_LONG_INT.
41141         * lib/getdate.y (long_time_t): New type.
41142         (relative_time): Change type of 'seconds' field to long_time_t.
41143         (get_date): Update types of local variables. Check against overflow
41144         during conversion from long_time_t to time_t.
41145         Reported by Matt Kraai <kraai@ftbfs.org>
41146         and Hasso Tepper <hasso@netbsd.org>.
41147
41148 2009-09-17  Bruno Haible  <bruno@clisp.org>
41149
41150         * modules/COPYING: Update copyright years.
41151         * modules/README: Likeiwse.
41152         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41153         Reported by Ian Beckwith <ianb@erislabs.net>.
41154
41155 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41156
41157         * users.txt: Update references for gnuit package.
41158
41159 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41160
41161         * m4/getdelim.m4: Fix typo in copyright line.
41162
41163 2009-09-17  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/atoll.c: Use the standard header with GPL copyright.
41166         * lib/argz.in.h: Likewise.
41167         * lib/glob.c: Likewise.
41168         * lib/glob-libc.h: Likewise.
41169         * lib/random_r.c: Likewise.
41170         * lib/siglist.h: Likewise.
41171         * lib/strsignal.c: Likewise.
41172         Reported by Ian Beckwith <ianb@erislabs.net>.
41173
41174 2009-09-17  Eric Blake  <ebb9@byu.net>
41175
41176         rmdir: ensure correct dependency order
41177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41178
41179 2009-09-17  Bruno Haible  <bruno@clisp.org>
41180
41181         Disable assertion that fails on NetBSD 5 / i386.
41182         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41183         Reported by Sam Steingold <sds@gnu.org>
41184         and Hasso Tepper <hasso@netbsd.org>.
41185
41186 2009-09-16  Eric Blake  <ebb9@byu.net>
41187
41188         unlinkdir: port to mingw
41189         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41190         on which no one can unlink a directory.
41191
41192         stdlib: sort witness names
41193         * modules/stdlib (Makefile.am): Sort replacements.
41194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41195         * lib/stdlib.in.h: Likewise.
41196
41197         parse-duration-tests: avoid link failure
41198         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41199         LIBINTL.
41200         Reported by Tom G. Christensen.
41201
41202         openat-tests: ensure unlinkat behaves like rmdir
41203         * tests/test-rmdir.c (main): Factor guts...
41204         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41205         * modules/rmdir-tests (Files): Ship new file.
41206         * modules/openat-tests: New test.
41207         * tests/test-unlinkat.c: Likewise.
41208
41209         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41210         * modules/rmdir-errno (Status, Notice): Now obsolete.
41211
41212         rmdir: work around cygwin 1.5.x and mingw bugs
41213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41214         * lib/rmdir.c (rmdir): Work around it.
41215         * modules/rmdir (Status, Notice): No longer obsolete.
41216         (Files): Add dos.m4.
41217         (Depends-on): Add unistd.
41218         (configure.ac): Set witnesses.
41219         (License): Relax to LGPLv2+.
41220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41221         * modules/unistd (Makefile.am): Substitute witnesses.
41222         * lib/unistd.in.h (rmdir): Declare replacement.
41223         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41224         * modules/rmdir-tests: New tests.
41225         * tests/test-rmdir.c: Likewise.
41226
41227 2009-09-15  Eric Blake  <ebb9@byu.net>
41228
41229         fchdir: improve use of replacement functions
41230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41233         REPLACE_CLOSEDIR.
41234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41235         * modules/sys_stat (Makefile.am): Substitute correct witness.
41236         * modules/dirent (Makefile.am): Likewise.
41237         * modules/unistd (Makefile.am): Likewise.
41238         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41239         * lib/unistd.in.h (dup): Likewise.
41240         * lib/sys_stat.in.h (fstat): Likewise.
41241
41242         maint: ignore gnulib-tool temp files
41243         * .gitignore: Ignore files created during gnulib-tool --test.
41244
41245 2009-09-13  Jim Meyering  <meyering@redhat.com>
41246
41247         posixtm: don't reject a time that specify "60" as the number of seconds
41248         * lib/posixtm.c (posixtime): The code to reject invalid dates
41249         would also reject a time specified with the .60 suffix.
41250         But POSIX allows that, in order to accommodate leap seconds.
41251         So don't reject it.
41252         (main): Adjust tests accordingly.
41253         * modules/posixtm (Depends-on): Add stpcpy.
41254
41255 2009-09-11  Jim Meyering  <meyering@redhat.com>
41256
41257         announce-gen: include [$release_type] in emitted Subject:
41258         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41259         e.g., [stable] in the emitted Subject: line.
41260
41261 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41262
41263         Remove obsolete macros from several modules.
41264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41265         obsolete Autoconf macros with their modern counterparts.
41266         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41267         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41270         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41271         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41274         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41275         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41276         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41278         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41279         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41280         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41281         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41282         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41283         * m4/time_r.m4 (gl_TIME_R): Likewise.
41284         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41285         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41286         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41287
41288         Fix copyright header in build-aux scripts.
41289         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41290         recommendation.
41291         * build-aux/ncftpput-ftp: Likewise.
41292         * build-aux/update-copyright: Likewise.
41293
41294 2009-09-09  Eric Blake  <ebb9@byu.net>
41295
41296         test-link: allow Linux choice of errno
41297         * tests/test-link.c (main): Relax test for alternate error.
41298
41299         strndup: fix improper m4 caching
41300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41301         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41302         (gl_PREREQ_STRNDUP): Delete.
41303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41304         * modules/string (Makefile.am): Substitute it.
41305         * lib/string.in.h (strndup): Modernize prototype.
41306
41307         getcwd: port to mingw
41308         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41309         different from the POSIX assumptions made throughout the getcwd
41310         module; fortunately, the mingw getcwd does not need replacement.
41311         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41312         * modules/getcwd-tests: New test.
41313         * tests/test-getcwd.c: Likewise.
41314
41315         link: fix platform bugs
41316         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41317         * lib/link.c (link): Work around them.  Fix related mingw bug.
41318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41319         * modules/unistd (Makefile.am): Substitute it.
41320         * lib/unistd.in.h (link): Declare replacement.
41321         * doc/posix-functions/link.texi (link): Document this.
41322         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41323
41324         test-link: consolidate into single C program, test more cases
41325         * tests/test-link.sh: Delete.
41326         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41327         at least Cygwin and Solaris.
41328         * modules/link-tests (Files): Remove unused file.
41329         (Depends-on): Add errno, sys_stat.
41330         (Makefile.am): Simplify.
41331
41332 2009-09-08  Bruno Haible  <bruno@clisp.org>
41333
41334         Work around towlower, towupper bug on mingw.
41335         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41336         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41337         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41338         * doc/posix-functions/towupper.texi: Likewise.
41339         Reported by Eric Blake.
41340
41341 2009-09-08  Jim Meyering  <meyering@redhat.com>
41342
41343         build: don't try to run autoheader if we don't use it
41344         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41345         is not used in configure.ac.
41346
41347 2009-09-08  Eric Blake  <ebb9@byu.net>
41348
41349         euidaccess: fix compilation error
41350         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41351
41352         rawmemchr: relax license
41353         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41354         okay.
41355         Reported by Jim Meyering.
41356
41357         mkfifoat: new module
41358         * modules/mkfifoat: New file.
41359         * lib/mkfifoat.c: Likewise.
41360         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41362         * modules/sys_stat (Makefile.am): Use them.
41363         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41364         * MODULES.html.sh (File system functions): Mention module.
41365         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41366         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41367         * modules/mkfifoat-tests: New test.
41368         * tests/test-mkfifoat.c: Likewise.
41369
41370         strchrnul: relax license
41371         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41372         okay.
41373         Reported by Jim Meyering.
41374
41375 2009-09-08  Eric Blake  <ebb9@byu.net>
41376
41377         fstatat: fix compilation on Solaris
41378         * lib/fstatat.c (includes): Add fcntl.h.
41379         Reported by Pádraig Brady.
41380
41381 2009-09-07  Eric Blake  <ebb9@byu.net>
41382
41383         rename: modernize replacement
41384         * modules/rename (Depends-on): Add stdio.
41385         (configure.ac): Declare witness.
41386         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41387         stdio take care of replacement.
41388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41389         * modules/stdio (Makefile.am): Substitute them.
41390         * lib/stdio.in.h (rename): Declare replacement.
41391         * lib/rename.c (includes): Allow cross-compilation to non-windows
41392         machines.
41393         * doc/posix-functions/rename.texi (rename): Improve
41394         documentation.
41395
41396         stdio: sort witness names
41397         * modules/stdio (Makefile.am): Sort replacements.
41398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41399         * lib/stdio.in.h: Likewise.
41400
41401         getcwd: minor cleanups
41402         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41403         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41404
41405         openat: provide more convenience names
41406         * modules/faccessat (configure.ac): Add C witness.
41407         * lib/unistd.in.h (readlinkat): Fix typo.
41408         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41409         convenience wrappers.
41410         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41411         wrappers in syntax checks.
41412
41413 2009-09-06  Eric Blake  <ebb9@byu.net>
41414
41415         doc: fix comments in recent patches
41416         * lib/faccessat.c: Mention correct function.
41417         * lib/fchmodat.c: Likewise.
41418         * lib/fchownat.c: Likewise.
41419         * lib/symlinkat.c: Likewise.
41420         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41421         constants.
41422
41423         faccessat, symlinkat: continue cleanup of previous patch
41424         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41425         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41426         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41428         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41429         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41430         set.
41431
41432 2009-09-06  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41435         (fstatat): Declare if GNULIB_FSTATAT is set.
41436         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41437         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41438         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41439         * modules/fcntl-h (Files): Remove m4/openat.m4.
41440         * modules/sys_stat (Files): Remove m4/openat.m4.
41441         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41442         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41443         * modules/unistd (Files): Remove m4/openat.m4.
41444         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41445         GNULIB_OPENAT.
41446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41447         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41449         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41450         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41451         gl_OPENAT_DEFAULTS.
41452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41453         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41454         Don't require gl_OPENAT_DEFAULTS.
41455         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41456         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41457         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41458         (gl_OPENAT_DEFAULTS): Remove macro.
41459
41460 2009-09-06  Bruno Haible  <bruno@clisp.org>
41461
41462         * modules/openat (configure.ac): Remove unneeded witness.
41463
41464 2009-09-06  Bruno Haible  <bruno@clisp.org>
41465
41466         Set errno to ENOSYS when a function is entirely unsupported.
41467         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41468         EOPNOTSUPP.
41469         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41470         * modules/chown (Depends-on): Remove errno.
41471
41472 2009-09-06  Bruno Haible  <bruno@clisp.org>
41473
41474         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41475
41476 2009-09-06  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41479
41480 2009-09-06  Ben Pfaff  <blp@gnu.org>
41481             Bruno Haible  <bruno@clisp.org>
41482
41483         Work around a glibc bug in strtok_r.
41484         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41485         Undefine if UNDEFINE_STRTOK_R is set.
41486         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41488         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41489         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41490         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41491         UNDEFINE_STRTOK_R.
41492         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41493
41494 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41495
41496         exclude: minor fix
41497         * lib/exclude.c: Include wctype.h
41498
41499 2009-09-06  Akim Demaille  <demaille@gostai.com>
41500
41501         bootstrap: improve error message
41502         * build-aux/bootstrap (find_tool): Upon failure, report the list
41503         of candidates.
41504         Honor the initial value of the envvar.
41505
41506 2009-09-05  Eric Blake  <ebb9@byu.net>
41507
41508         symlinkat: new module
41509         * modules/symlinkat: New file.
41510         * lib/symlinkat.c: Likewise.
41511         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41513         * modules/unistd (Makefile.am): Use them.
41514         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41515         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41516         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41517         * MODULES.html.sh (File system functions): Mention module.
41518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41519         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41520         * modules/symlinkat-tests: New test.
41521         * tests/test-symlinkat.c: Likewise.
41522
41523         test-openat-safer: add more checks
41524         * tests/test-openat-safer.c (main): Check more code paths.
41525
41526 2009-09-05  Jim Meyering  <meyering@redhat.com>
41527
41528         syntax-check: detect unnecessary inclusion of openat.h
41529         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41530
41531 2009-09-05  Bruno Haible  <bruno@clisp.org>
41532
41533         Support towlower, towupper.
41534         * doc/posix-functions/towlower.texi: Mention module wctype.
41535         * doc/posix-functions/towupper.texi: Likewise.
41536         * lib/wctype.in.h (towlower, towupper): New functions.
41537         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41538         (ASSERT): New macro.
41539         (e): New variable.
41540         (main): Test also towlower, towupper. Test WEOF argument.
41541         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41542
41543 2009-09-05  Bruno Haible  <bruno@clisp.org>
41544
41545         Fix conversion behaviour when the input is invalid.
41546         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41547         mark occurring in first pass of indirect conversion.
41548         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41549         input.
41550         Found by clang's static analyzer.
41551
41552 2009-09-05  Bruno Haible  <bruno@clisp.org>
41553
41554         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41555         where direct conversion is possible.
41556
41557 2009-09-04  Eric Blake  <ebb9@byu.net>
41558
41559         openat: fail with ENOENT on empty name
41560         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41561         buffer.
41562
41563         link-follow: fix logic bug in prior patch
41564         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41565         reversed sense of yes and no in prior patch.  Avoid confusing
41566         compilation failure with desired semantics.
41567
41568         link-follow: accomodate mingw and cross-compilation
41569         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41570         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41571         cross-compilation results to -1, to make linkat easier to
41572         implement when cross-compiling.  Trivially support mingw.
41573         * modules/link-follow (configure.ac): Call new name.
41574         * NEWS: Mention this.
41575
41576 2009-09-03  Eric Blake  <ebb9@byu.net>
41577
41578         faccessat: compile replacement
41579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41580         needed.
41581
41582         fts: fix compilation error
41583         * lib/fts.c (includes): Re-add "openat.h", for
41584         openat_needs_fchdir.
41585
41586         faccessat: new module
41587         * modules/faccessat: New file.
41588         * lib/faccessat.c: Likewise.
41589         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41591         * modules/unistd (Makefile.am): Use it.
41592         * lib/unistd.in.h (faccessat): Declare it.
41593         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41594         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41595         * MODULES.html.sh (File system functions): Mention it.
41596         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41597         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41598
41599         euidaccess: prefer POSIX over non-standard implementation
41600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41601         * lib/euidaccess.c (euidaccess): Use it if available.
41602
41603         openat: make template easier to use
41604         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41605         AT_FUNC_F2 to be undefined.
41606         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41607         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41608         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41609         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41610         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41611         Likewise.
41612         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41613         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41614         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41615         Likewise.
41616
41617         openat: declare in POSIX headers
41618         * NEWS: Mention this.
41619         * modules/openat (configure.ac): Declare witnesses.
41620         (Depends-on): Add fcntl-h, sys_stat, unistd.
41621         (Include): Mention correct headers.
41622         * modules/fcntl-h (Depends-on): Add link-warning.
41623         (Files): Add openat.m4.
41624         (Makefile.am): Substitute witnesses.
41625         * modules/sys_stat (Files, Makefile.am): Likewise.
41626         * modules/unistd (Files, Makefile.am): Likewise.
41627         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41628         (gl_OPENAT_DEFAULTS): New macro.
41629         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41631         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41632         (SYS_STAT_H): Remove unused variable.
41633         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41634         * lib/fcntl--.h (includes): Remove unneeded header.
41635         * lib/openat-safer.c (includes): Likewise.
41636         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41637         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41638         appropriate headers.
41639         (__OPENAT_PREFIX): Delete.
41640         * lib/fcntl.in.h (openat): Provide declaration.
41641         (AT_FDCWD): Fix Solaris bug.
41642         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41643         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41644         * lib/fchmodat.c (includes):  Adjust to find declaration.
41645         * lib/fchownat.c (includes): Likewise.
41646         * lib/mkdirat.c (includes): Likewise.
41647         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41648         still visible.
41649
41650 2009-09-02  Eric Blake  <ebb9@byu.net>
41651
41652         errno: use consistently
41653         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41654         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41655         * lib/canonicalize.c (ELOOP): Likewise.
41656         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41657         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41658         * lib/lchown.c (EOPNOTSUPP): Likewise.
41659         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41660         * lib/savewd.c (ESTALE): Likewise.
41661         * lib/settime.c (ENOSYS): Likewise.
41662         * lib/utimens.c (ENOSYS): Likewise.
41663         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41664         * lib/chdir-safer.c (ELOOP): Likewise.
41665         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41666         * modules/c-stack (Depends-on): Add errno.
41667         * modules/canonicalize (Depends-on): Likewise.
41668         * modules/chdir-safer (Depends-on): Likewise.
41669         * modules/fdopendir (Depends-on): Likewise.
41670         * modules/inet_ntop (Depends-on): Likewise.
41671         * modules/inet_pton (Depends-on): Likewise.
41672         * modules/lchown (Depends-on): Likewise.
41673         * modules/openat (Depends-on): Likewise.
41674         * modules/savewd (Depends-on): Likewise.
41675         * modules/settime (Depends-on): Likewise.
41676         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41677
41678         fts: avoid leaking fds
41679         * modules/fts (Depends-on): Add cloexec.
41680         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41681         flag.
41682
41683         fts: make directory fds more robust
41684         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41685         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41686
41687         backupfile, chdir-long, fts, savedir: make safer
41688         * lib/backupfile.c (includes): Use "dirent--.h", since
41689         numbered_backup can write to stderr during readdir.
41690         * lib/savedir.c (includes): Likewise.
41691         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41692         emulation can write to stderr on failure.
41693         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41694         * lib/getcwd.c: Document why opendir_safer is unused.
41695         * lib/glob.c: Likewise.
41696         * lib/scandir.c: Likewise.
41697         * lib/openat-proc.c: Likewise, for open_safer.
41698         * modules/backupfile (Depends-on): Add dirent-safer.
41699         * modules/savedir (Depends-on): Likewise.
41700         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41701         * modules/chdir-long (Depends-on): Add openat-safer.
41702
41703         openat-safer: new module
41704         * modules/openat-safer: New file.
41705         * lib/openat-safer.c: Likewise.
41706         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41707         * lib/fcntl-safer.h (openat_safer): Declare.
41708         * lib/fcntl--.h (openat): Override.
41709         * MODULES.html.sh (File descriptor based I/O): Mention it.
41710         * lib/openat.h: Add double-inclusion guards.
41711         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41712         "fcntl--.h", so we can implement openat.
41713         * modules/openat-safer-tests: New test.
41714         * tests/test-openat-safer.c: New file.
41715
41716         dirent-safer: new module
41717         * modules/dirent-safer: New file.
41718         * lib/dirent--.h: Likewise.
41719         * lib/dirent-safer.h: Likewise.
41720         * lib/opendir-safer.c: Likewise.
41721         * m4/dirent-safer.m4: Likewise.
41722         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41723         * modules/dirent-safer-tests: New test.
41724         * tests/test-dirent-safer.c: New file.
41725         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41726
41727         fdopendir: optimize on mingw
41728         * lib/unistd.in.h (_gl_directory_name): New prototype.
41729         * lib/fchdir.c (_gl_directory_name): Implement it.
41730         (fchdir): Use it to simplify implementation.
41731         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41732         fchdir, when available, to avoid calling [f]chdir().
41733
41734         fdopendir: split into its own module
41735         * lib/openat.c (fdopendir): Move...
41736         * lib/fdopendir.c: ...into new file.
41737         * modules/fdopendir: New module.
41738         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41739         * modules/openat (Depends-on): Add fdopendir.
41740         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41741         fdopendir here.
41742         * modules/savedir (Depends-on): Only need fdopendir, not full
41743         openat.
41744         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41745         * lib/openat.h (fdopendir): Drop prototype.
41746         * lib/dirent.in.h (fdopendir): Provide prototype.
41747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41748         * modules/dirent (Makefile.am): Substitute them.
41749         * MODULES.html.sh (File system functions): Mention it.
41750         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41751         * modules/fdopendir-tests: New file.
41752         * tests/test-fdopendir.c: Likewise.
41753
41754         fchdir: use more consistent macro convention
41755         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41756         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41757         REPLACE_FCHDIR, rather than relying on config.h macros.
41758         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41759         inside a single make-time REPLACE_FCHDIR block, rather than using
41760         the config.h FCHDIR_REPLACEMENT.
41761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41762         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41763         Manage fstat replacement.
41764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41765         REPLACE_FCHDIR.
41766         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41767         (Makefile.am): Substitute REPLACE_FCHDIR.
41768         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41769         FCHDIR_REPLACEMENT.
41770         * lib/dup-safer.c (dup_safer): Likewise.
41771         * lib/dup2.c (rpl_dup2): Likewise.
41772         * lib/dup3.c (rpl_dup3): Likewise.
41773         * lib/open.c (rpl_open): Likewise.
41774
41775         fchdir: simplify error handling, and support dup3
41776         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41777         stdbool, malloc-posix, realloc-posix.
41778         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41779         (ensure_dirs_slot): Return false on allocation failure.
41780         (rpl_dup2): Delete.
41781         (_gl_register_dup): New function.
41782         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41783         (_gl_register_fd): Close fd on allocation failure.
41784         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41785         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41786         prototype.
41787         (rpl_dup2_fchdir): Delete prototype.
41788         * lib/open.c (open): Update caller.
41789         * lib/dup2.c (dup2): Track fchdir metadata.
41790         * lib/dup3.c (dup3): Likewise.
41791         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41793
41794 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41795
41796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41797         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41798         don't pass arguments to AC_OUTPUT.
41799
41800 2009-09-02  Bruno Haible  <bruno@clisp.org>
41801
41802         * modules/mkdtemp (License): Relicense under LGPLv2+.
41803         Reported by Paolo Bonzini.
41804
41805 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41806
41807         Replace uses of obsolete autoconf macros in Jim's modules.
41808         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41809         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41810         can evoke a warning from autoconf when run with -Wobsolete
41811         enabled.  They were declared obsolete for good reasons (see
41812         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41813         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41814         should not continue using the deprecated macros.
41815         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41816         obsolete Autoconf macros with modern counterparts.
41817         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41818         * m4/dos.m4 (gl_AC_DOS): Likewise.
41819         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41821         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41822         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41823         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41824         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41825         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41826         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41827         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41828         Likewise.
41829         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41831         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41832         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41833         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41834         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41835
41836 2009-09-01  Eric Blake  <ebb9@byu.net>
41837
41838         fchdir: fix off-by-one bug in previous patch
41839         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41840         (_gl_unregister_fd): Delete useless if.
41841
41842 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41843
41844         maint.mk: sort the list of syntax-check rules
41845         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41846         easier to get a sense of progress when the rules are run sequentially
41847         and take a long time.
41848
41849 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41850
41851         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41852         * modules/netinet_in: Likewise.
41853         * modules/sys_file: Likewise.
41854         * modules/sys_ioctl: Likewise.
41855         * modules/sys_select: Likewise.
41856         * modules/sys_socket: Likewise.
41857         * modules/sys_stat: Likewise.
41858         * modules/sys_time: Likewise.
41859         * modules/sys_times: Likewise.
41860         * modules/sys_utsname: Likewise.
41861         * modules/sys_wait: Likewise.
41862
41863 2009-09-01  Jim Meyering  <meyering@redhat.com>
41864
41865         fts: help ensure that return values are not ignored
41866         * lib/fts_.h (__GNUC_PREREQ): Define.
41867         (__attribute_warn_unused_result__): Define.
41868         (fts_children, fts_close, fts_open, fts_read): Declare with
41869         __attribute_warn_unused_result__.
41870
41871         fts: fts_close now fails also when closing a dir file descriptor fails
41872         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41873         and propagate to caller, along with errno.
41874
41875         announce-gen: correct formatting in --help output
41876         * build-aux/announce-gen (usage): Move the one-line description in
41877         --help output "up", to where it belongs, just after Usage:.
41878
41879 2009-08-31  Eric Blake  <ebb9@byu.net>
41880
41881         fchdir: port to mingw
41882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41883         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41884         opened, then use a substitute.
41885         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41886         replacement.
41887         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41888         (_gl_register_fd): No need to check stat if open already filters
41889         all directories.
41890         (fchdir): Fix error condition to match POSIX.
41891         * modules/fchdir (Depends-on): Add sys_stat.
41892         * doc/posix-functions/open.texi (open): Document the limitation.
41893         * modules/fchdir-tests: New file.
41894         * tests/test-fchdir.c: Likewise.
41895
41896         canonicalize: allow cross-testing from cygwin to mingw
41897         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41898         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41899         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41900         Likewise.
41901         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41902         target does not support symlinks.
41903         * tests/test-canonicalize-lgpl.sh: Likewise.
41904
41905         chown: avoid compilation warning on mingw
41906         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41907         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41908         mingw.
41909         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41910         * modules/chown (Depends-on): Add errno.
41911
41912 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41913
41914         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41915         command.
41916
41917 2009-08-31  Jim Meyering  <meyering@redhat.com>
41918
41919         canonicalize: remove useless initialization
41920         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41921         initialization of local, "end".
41922
41923 2009-08-30  Bruno Haible  <bruno@clisp.org>
41924
41925         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41926         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41927         ENOSYS.
41928
41929 2009-08-30  Bruno Haible  <bruno@clisp.org>
41930
41931         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41932         /usr/xpg4/bin/tr when it exists.
41933         * tests/test-pipe-filter-gi1.sh: Likewise.
41934
41935 2009-08-30  Bruno Haible  <bruno@clisp.org>
41936
41937         Work around deficient /usr/bin/id program on Solaris.
41938         * tests/test-file-has-acl.sh (ID): New variable.
41939         * tests/test-set-mode-acl.sh (ID): Likewise.
41940         * tests/test-copy-acl.sh (ID): Likewise.
41941         * tests/test-copy-file.sh (ID): Likewise.
41942
41943 2009-08-30  Bruno Haible  <bruno@clisp.org>
41944
41945         New module 'xstriconveh'.
41946         * lib/xstriconveh.h: New file.
41947         * lib/xstriconveh.c: New file.
41948         * modules/xstriconveh: New file.
41949
41950 2009-08-30  Bruno Haible  <bruno@clisp.org>
41951
41952         Make it easier to use mem_cd_iconveh.
41953         * lib/striconveh.h (iconveh_t): New type.
41954         (iconveh_open, iconveh_close): New declarations.
41955         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41956         with a single 'const iconveh_t *' argument.
41957         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41958         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41959         with a single 'const iconveh_t *' argument.
41960         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41961         * tests/test-striconveh.c (main): Update.
41962         * NEWS: Mention the change.
41963
41964 2009-08-30  Bruno Haible  <bruno@clisp.org>
41965
41966         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41967         problem.
41968
41969 2009-08-30  Bruno Haible  <bruno@clisp.org>
41970
41971         Work around iconv_open problem on Solaris.
41972         * lib/iconv_open-solaris.gperf: New file.
41973         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41975         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41976         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41977         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41978         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41979
41980 2009-08-29  Jim Meyering  <meyering@redhat.com>
41981
41982         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41983         * top/maint.mk (cvs-check): Remove target; it was just an alias
41984         to the better-named vc-diff-check.
41985         (maintainer-distcheck): Remove rule.  It was used only from
41986         the (alpha/beta/major) target, and all of its commands but one
41987         were coreutils-specific.
41988         (vc-dist): Remove rule.
41989         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41990         Run vc-diff-check, not vc-dist.
41991         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41992
41993 2009-08-27  Bruno Haible  <bruno@clisp.org>
41994
41995         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41996         of 0.
41997
41998 2009-08-27  Bruno Haible  <bruno@clisp.org>
41999
42000         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42001         compilers.
42002         * doc/func.texi: Document the SunPRO C bug.
42003
42004 2009-08-27  Bruno Haible  <bruno@clisp.org>
42005
42006         Fix link error on Solaris.
42007         * tests/test-parse-duration.c (xstrdup): Remove function.
42008
42009 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42010
42011         ignore-value: handle pointer types, too
42012         * lib/ignore-value.h (__attribute__): Remove definition.
42013         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42014         of a more concise and more-often effective "(void) i" statement.
42015         (ignore_ptr): New function to suppress warnings from functions that
42016         return pointers, and to make it explicit that one function doesn't
42017         handle all cases.
42018
42019 2009-08-25  Bruno Haible  <bruno@clisp.org>
42020
42021         dup2: work around a Linux bug.
42022         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42023         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42024         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42025         Reported by Simon Josefsson.
42026
42027 2009-08-25  Jim Meyering  <meyering@redhat.com>
42028
42029         libguestfs uses gnulib
42030         * users.txt: Add libguestfs.
42031
42032 2009-08-24  Eric Blake  <ebb9@byu.net>
42033
42034         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42035         * lib/pipe2.c (includes): Add binary-io.h.
42036         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42037
42038 2009-08-24  Bruno Haible  <bruno@clisp.org>
42039
42040         Tolerate declared but missing accept4 syscall.
42041         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42042         available.
42043         * lib/sys_socket.in.h (accept4): If the function is already present,
42044         override it.
42045         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42046         * modules/accept4 (Makefile.am): Compile accept4.c always.
42047         Reported by Paolo Bonzini and Eric Blake.
42048
42049 2009-08-23  Bruno Haible  <bruno@clisp.org>
42050
42051         New module 'accept4'.
42052         * lib/sys_socket.in.h (accept4): New declaration.
42053         * lib/accept4.c: New file.
42054         * m4/accept4.m4: New file.
42055         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42056         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42057         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42058         HAVE_ACCEPT4.
42059         * modules/accept4: New file.
42060         * doc/glibc-functions/accept4.texi: Mention the new module.
42061
42062 2009-08-24  Jim Meyering  <meyering@redhat.com>
42063
42064         progname: also set global program_invocation_name, when possible
42065         Before this change, a libtool-enabled program that calls glibc's
42066         error function would report the program name as
42067         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42068         * modules/progname (configure.ac): Check for a declaration of
42069         program_invocation_name.
42070         * lib/progname.c:  Include <errno.h>.
42071         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42072         Set program_invocation_name.
42073
42074 2009-08-23  Bruno Haible  <bruno@clisp.org>
42075
42076         * lib/dup3.c: Include <string.h>.
42077
42078 2009-08-23  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42081         * lib/pipe2.c (pipe2): Likewise.
42082         Suggested by Eric Blake.
42083
42084 2009-08-23  Bruno Haible  <bruno@clisp.org>
42085
42086         Tolerate declared but missing dup3 syscall.
42087         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42088         * lib/unistd.in.h (dup3): If the function is already present,
42089         override it.
42090         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42091         * modules/dup3 (Makefile.am): Compile dup3.c always.
42092         Reported by Paolo Bonzini.
42093
42094 2009-08-23  Bruno Haible  <bruno@clisp.org>
42095
42096         Tolerate declared but missing pipe2 syscall.
42097         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42098         available.
42099         * lib/unistd.in.h (pipe2): If the function is already present,
42100         override it.
42101         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42102         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42103         Reported by Paolo Bonzini.
42104
42105 2009-08-23  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/pipe2.c (pipe2): Move #ifs inside function.
42108
42109 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42110
42111         quotearg: document limitations of quote_these_too
42112         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42113         those limitations are created.
42114         * lib/quotearg.h (set_char_quoting): Document that digits and
42115         letters that are special after backslash are not permitted.
42116         (quotearg_char): Cross-reference set_char_quoting documentation.
42117
42118 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42119
42120         quotearg: implement custom_quoting_style
42121         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42122         right_quote fields.
42123         (set_custom_quoting): New public function.
42124         (quotearg_buffer_restyled): Add left_quote and right_quote
42125         arguments, handle them very much like locale quoting, and update
42126         all uses.
42127         (quotearg_n_custom): New public function.
42128         (quotearg_n_custom_mem): New public function.
42129         (quotearg_custom): New public function.
42130         (quotearg_custom_mem): New public function.
42131         * lib/quotearg.h: Prototype and document new public functions.
42132         (enum quoting_style): For escape_quoting_style and
42133         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42134         ignored even though they're otherwise like c_quoting_style.
42135         Add custom_quoting_style member and document with comparison to
42136         clocale_quoting_style.
42137         * tests/test-quotearg.c (custom_quotes): New array.
42138         (custom_results): New array.
42139         (main): Extend to test custom quoting.
42140
42141 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42142
42143         quotearg: fix right quote escaping when it's in quote_these_too
42144         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42145         quote, be sure to prepend only one backslash.
42146         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42147         (main): Test it.
42148
42149 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42150
42151         quotearg-tests: test escaping of embedded locale quotes
42152         * tests/test-quotearg.c (struct result_strings): Add member for
42153         new input.
42154         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42155         (inputs): Add new input.
42156         (results_g): Add expected results.
42157         (flag_results): Likewise.
42158         (locale_results): Likewise.
42159         (compare_strings): Check those.
42160
42161 2009-08-23  Bruno Haible  <bruno@clisp.org>
42162
42163         Tests for module 'dup3'.
42164         * modules/dup3-tests: New file.
42165         * tests/test-dup3.c: New file.
42166
42167         New module 'dup3'.
42168         * lib/unistd.in.h (dup3): New declaration.
42169         * lib/dup3.c: New file.
42170         * m4/dup3.m4: New file.
42171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42172         HAVE_DUP3.
42173         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42174         * modules/dup3: New file.
42175         * doc/glibc-functions/dup3.texi: Mention the new module.
42176
42177 2009-08-23  Bruno Haible  <bruno@clisp.org>
42178
42179         Tweak the dup2 test.
42180         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42181         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42182         the test file is still empty. Fix argument order of lseek.
42183
42184 2009-08-23  Bruno Haible  <bruno@clisp.org>
42185
42186         Avoid test link errors when the modules getopt-gnu, gettext are used.
42187         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42189
42190 2009-08-23  Bruno Haible  <bruno@clisp.org>
42191
42192         Fix getdtablesize() on mingw.
42193         * lib/getdtablesize.c (getdtablesize): Implement differently.
42194         * lib/unistd.in.h (getdtablesize): Improve comment.
42195
42196 2009-08-23  Bruno Haible  <bruno@clisp.org>
42197
42198         New module 'mkostemp'.
42199         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42200         * lib/stdlib.in.h (mksotemp): New declaration.
42201         * lib/mkostemp.c: New file, from glibc with modifications.
42202         * lib/tempname.h (GT_FILE): Remove outdated comment.
42203         (gen_tempname): Add flags argument.
42204         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42205         (__GT_FILE): Map to 1.
42206         (small_open, large_open): Remove macros.
42207         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42208         * lib/mkstemp.c (mkstemp): Update.
42209         * lib/mkdtemp.c (mkdtemp): Likewise.
42210         * m4/mkostemp.m4: New file.
42211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42212         HAVE_MKOSTEMP.
42213         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42214         HAVE_MKOSTEMP.
42215         * modules/mkostemp: New file, based on modules/mkstemp.
42216         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42217         * NEWS: Mention the change.
42218
42219 2009-08-23  Bruno Haible  <bruno@clisp.org>
42220
42221         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42222         Reported by Eric Blake.
42223
42224 2009-08-23  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42227         Reported by Eric Blake.
42228
42229 2009-08-23  Bruno Haible  <bruno@clisp.org>
42230
42231         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42232         * modules/pipe2 (Depends-on): Likewise.
42233
42234 2009-08-23  Eric Blake  <ebb9@byu.net>
42235
42236         fcntl-h: add O_TTY_INIT support
42237         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42238         * tests/test-fcntl-h.c (o): Test it.
42239         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42240
42241         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42242         * modules/fcntl: Move <fcntl.h> header replacement...
42243         * modules/fcntl-h: ...to new name, so as not to collide with
42244         like-named function.
42245         * tests/test-fcntl.c: Rename...
42246         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42247         * modules/fcntl-tests: Rename...
42248         * modules/fcntl-h-tests: ...to this.  Update test file name.
42249         * modules/chdir-long (Depends-on): Update clients.
42250         * modules/chdir-safer (Depends-on): Likewise.
42251         * modules/fcntl-safer (Depends-on): Likewise.
42252         * modules/fts (Depends-on): Likewise.
42253         * modules/mkancesdirs (Depends-on): Likewise.
42254         * modules/mkdir-p (Depends-on): Likewise.
42255         * modules/open (Depends-on): Likewise.
42256         * modules/savewd (Depends-on): Likewise.
42257         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42258         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42259
42260 2009-08-22  Bruno Haible  <bruno@clisp.org>
42261
42262         * modules/binary-io (License): Relicense under LGPL.
42263         * modules/pipe2 (License): Likewise.
42264
42265 2009-08-22  Bruno Haible  <bruno@clisp.org>
42266
42267         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42268         return value.
42269         * lib/pipe-filter-gi.c (filter_init): Likewise.
42270         Reported by Eric Blake.
42271
42272 2009-08-22  Bruno Haible  <bruno@clisp.org>
42273
42274         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42275         * modules/pipe (Depends-on): Add pipe2.
42276
42277 2009-08-22  Bruno Haible  <bruno@clisp.org>
42278
42279         Tests for module 'pipe2'.
42280         * modules/pipe2-tests: New file.
42281         * tests/test-pipe2.c: New file.
42282
42283         New module 'pipe2'.
42284         * lib/unistd.in.h (pipe2): New declaration.
42285         * lib/pipe2.c: New file.
42286         * m4/pipe2.m4: New file.
42287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42288         HAVE_PIPE2.
42289         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42290         * modules/pipe2: New file.
42291         * doc/glibc-functions/pipe2.texi: Mention the new module.
42292
42293 2009-08-22  Bruno Haible  <bruno@clisp.org>
42294
42295         Reference some new glibc functions.
42296         * doc/glibc-functions/accept4.texi: New file.
42297         * doc/glibc-functions/dup3.texi: New file.
42298         * doc/glibc-functions/mkostemp.texi: New file.
42299         * doc/glibc-functions/pipe2.texi: New file.
42300         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42301         (Glibc sys/socket.h): Refer to accept4.
42302         (Glibc unistd.h): Refer to dup3, pipe2.
42303         Reported by Eric Blake.
42304
42305 2009-08-22  Jim Meyering  <meyering@redhat.com>
42306             Bruno Haible  <bruno@clisp.org>
42307
42308         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42309         This makes it so packages using automake-1.11's silent-rules option
42310         can print e.g., a single "GEN    configmake.h" line, rather than
42311         the 30+ statements that perform the job.  If you want to see the
42312         actual commands, you can still run "make V=1".
42313         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42314         so that make output is abbreviated when those variables are defined
42315         appropriately.
42316         * modules/argz: Likewise.
42317         * modules/arpa_inet: Likewise.
42318         * modules/byteswap: Likewise.
42319         * modules/configmake: Likewise.
42320         * modules/dirent: Likewise.
42321         * modules/errno: Likewise.
42322         * modules/fcntl: Likewise.
42323         * modules/float: Likewise.
42324         * modules/fnmatch: Likewise.
42325         * modules/getopt-posix: Likewise.
42326         * modules/glob: Likewise.
42327         * modules/iconv_open: Likewise.
42328         * modules/inttypes: Likewise.
42329         * modules/localcharset: Likewise.
42330         * modules/locale: Likewise.
42331         * modules/math: Likewise.
42332         * modules/netdb: Likewise.
42333         * modules/netinet_in: Likewise.
42334         * modules/poll: Likewise.
42335         * modules/posix_spawnp-tests: Likewise.
42336         * modules/sched: Likewise.
42337         * modules/search: Likewise.
42338         * modules/selinux-h: Likewise.
42339         * modules/signal: Likewise.
42340         * modules/spawn: Likewise.
42341         * modules/stdarg: Likewise.
42342         * modules/stdbool: Likewise.
42343         * modules/stddef: Likewise.
42344         * modules/stdint: Likewise.
42345         * modules/stdio: Likewise.
42346         * modules/stdlib: Likewise.
42347         * modules/string: Likewise.
42348         * modules/strings: Likewise.
42349         * modules/sys_file: Likewise.
42350         * modules/sys_ioctl: Likewise.
42351         * modules/sys_select: Likewise.
42352         * modules/sys_socket: Likewise.
42353         * modules/sys_stat: Likewise.
42354         * modules/sys_time: Likewise.
42355         * modules/sys_times: Likewise.
42356         * modules/sys_utsname: Likewise.
42357         * modules/sys_wait: Likewise.
42358         * modules/sysexits: Likewise.
42359         * modules/time: Likewise.
42360         * modules/unistd: Likewise.
42361         * modules/wchar: Likewise.
42362         * modules/wctype: Likewise.
42363
42364 2009-08-22  Jim Meyering  <meyering@redhat.com>
42365
42366         announce-gen: detect write failure
42367         * build-aux/announce-gen: Add Coda at end.
42368         Remove equivalent-but-more-verbose block at top.
42369
42370 2009-08-19  Akim Demaille  <demaille@gostai.com>
42371
42372         bootstrap: --help to stdout.
42373         * bootstrap (usage): Don't send --help to stderr.
42374         Use a here doc instead of a long string.
42375
42376 2009-08-21  Eric Blake  <ebb9@byu.net>
42377
42378         test-popen-safer: split from test-popen
42379         * tests/test-popen.c (main): Move...
42380         * tests/test-popen.h: ...into new file.
42381         * tests/test-popen-safer2.c: New file.
42382         * modules/popen-tests (Files): Add test-popen.h.
42383         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42384         Suggested by Bruno Haible.
42385
42386         test-fcntl-safer: split from test-open
42387         * tests/test-open.c (main): Move...
42388         * tests/test-open.h: ...into new file.
42389         * tests/test-fcntl-safer.c: New file.
42390         * modules/open-tests (Files): Add test-open.h.
42391         * modules/fcntl-safer-tests: New file.
42392         Suggested by Bruno Haible.
42393
42394         test-fopen-safer: split from test-fopen
42395         * tests/test-fopen.c (main): Move...
42396         * tests/test-fopen.h: ...into new file.
42397         * tests/test-fopen-safer.c: New file.
42398         * modules/fopen-tests (Files): Add test-fopen.h.
42399         * modules/fopen-safer-tests: New file.
42400         Suggested by Bruno Haible.
42401
42402 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42403
42404         popen-safer: test O_CLOEXEC at run-time.
42405         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42406
42407 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42408
42409         fcntl: move more flags to the header
42410         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42411         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42412         * lib/fcntl.in.h: Do both things here.
42413
42414 2009-08-21  Jim Meyering  <meyering@redhat.com>
42415
42416         consistently remove $@-t before redirecting to it
42417         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42418         * modules/alloca-opt: Likewise.
42419         * modules/byteswap: Likewise.
42420         * modules/fnmatch: Likewise.
42421         * modules/getopt-posix: Likewise.
42422         * modules/glob: Likewise.
42423         * modules/poll: Likewise.
42424         * modules/posix_spawnp-tests: Likewise.
42425         * modules/sys_socket: Likewise.
42426         * modules/sysexits: Likewise.
42427
42428 2009-08-21  Eric Blake  <ebb9@byu.net>
42429
42430         popen: simplify access to original popen
42431         * lib/popen.c (rpl_popen): No need to worry about popen being a
42432         macro.
42433         Reported by Bruno Haible.
42434
42435 2009-08-20  Eric Blake  <ebb9@byu.net>
42436
42437         build: avoid some compiler warnings
42438         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42439         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42440         type.
42441         (new_exclude_segment, excluded_file_pattern_p)
42442         (excluded_file_name_p): Reduce scope.
42443         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42444         old-style declaration.
42445
42446 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42447
42448         * tests/test-exclude1.sh: Handle Windows EOL.
42449         * tests/test-exclude2.sh: Likewise.
42450         * tests/test-exclude3.sh: Likewise.
42451         * tests/test-exclude4.sh: Likewise.
42452         * tests/test-exclude5.sh: Likewise.
42453         * tests/test-exclude6.sh: Likewise.
42454         * tests/test-exclude7.sh: Likewise.
42455
42456 2009-08-19  Akim Demaille  <demaille@gostai.com>
42457
42458         bootstrap: find sha1sum when named gsha1sum.
42459         * bootstrap (find_tool): New.
42460         ($SHA1SUM): New.
42461         Use it.
42462
42463 2009-08-20  Jim Meyering  <meyering@redhat.com>
42464
42465         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42466         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42467         expression that converts "." in a file name to "\." in the resulting
42468         regexp.  Start with a dummy statement, so that prior shell variable
42469         definitions are expanded portably.  Reported by Simon Josefsson.
42470
42471 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42472
42473         Fix polling for writeability of a screen buffer.
42474         * lib/poll.c: Distinguish input and screen buffers for the
42475         Win32 implementation.
42476         * lib/select.c: Likewise.
42477
42478 2009-08-19  Eric Blake  <ebb9@byu.net>
42479
42480         popen-safer: prevent popen from clobbering std descriptors
42481         * modules/popen-safer: New file.
42482         * lib/popen-safer.c: Likewise.
42483         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42484         * lib/stdio--.h (popen): Provide override.
42485         * lib/stdio-safer.h (popen_safer): Provide declaration.
42486         * tests/test-popen.c (includes): Partially test this.
42487         * modules/popen-safer-tests: New file, for more tests.
42488         * tests/test-popen-safer.c: Likewise.
42489         * MODULES.html.sh (file stream based Input/Output): Mention it.
42490
42491         tests: test some of the *-safer modules
42492         * modules/fopen-safer (Depends-on): Add fopen.
42493         * modules/fcntl-safer (Depends-on): Add fcntl.
42494         * modules/stdlib-safer (Depends-on): Add stdlib.
42495         (configure.ac): Set indicator.
42496         * modules/unistd-safer (configure.ac): Likewise.
42497         * modules/tmpfile-safer (configure.ac): Likewise.
42498         (Depends-on): Add tmpfile.
42499         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42500         active.
42501         * tests/test-fopen.c (includes): Test safer versions when they are
42502         in use.
42503         * tests/test-open.c (includes): Likewise.
42504
42505         popen: fix cygwin 1.5 bug when stdin closed
42506         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42507         * modules/popen: New file.
42508         * modules/popen-tests: Likewise.
42509         * tests/test-popen.c: Likewise.
42510         * m4/popen.m4: Likewise.
42511         * lib/popen.c: Likewise.
42512         * lib/stdio.in.h (popen): New declaration.
42513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42514         * modules/stdio (Makefile.am): Likewise.
42515         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42516
42517 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42518
42519         maint.mk: give full control over update-copyright exclusions
42520         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42521         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42522         (update-copyright): Don't force inclusion of top-level
42523         ChangeLog.  Don't force exclusion of all COPYING files, but make
42524         them the default exclusion instead.
42525
42526 2009-08-16  Bruno Haible  <bruno@clisp.org>
42527
42528         Fix test failures on Solaris 10.
42529         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42530         tests when Solaris iconv() is used.
42531         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42532         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42533         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42534         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42535         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42536
42537 2009-08-16  Bruno Haible  <bruno@clisp.org>
42538
42539         Fix test failures on Solaris 10.
42540         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42541         'tr' program and pass it as first argument.
42542         * tests/test-pipe-filter-gi1.sh: Likewise.
42543         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42544         program as first argument.
42545         * tests/test-pipe-filter-gi1.c (main): Likewise.
42546
42547 2009-08-16  Eric Blake  <ebb9@byu.net>
42548
42549         fpurge: fix previous commits
42550         * modules/fpurge (Makefile.am): Make replacement conditional,
42551         partially reverting 2007-04-29 change; missed in previous
42552         attempt.
42553         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42554         is missing.
42555
42556 2009-08-16  Bruno Haible  <bruno@clisp.org>
42557
42558         Clarify fpurge's effect on the file position.
42559         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42560         * tests/test-fpurge.c (main): Make a second pass for checking the file
42561         position.
42562
42563 2009-08-16  Bruno Haible  <bruno@clisp.org>
42564
42565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42566         declaration of fpurge is missing.
42567         * tests/test-fpurge.c (main): Check that the file has not more contents
42568         than expected. Close the file before removing it.
42569
42570 2009-08-15  Eric Blake  <ebb9@byu.net>
42571
42572         fpurge: don't wrap working cygwin implementation
42573         * lib/fpurge.c (fpurge): Fix comment typo.
42574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42575         1.7 to avoid replacement.
42576         * tests/test-fpurge.c (main): Enhance test.
42577
42578 2009-08-15  Eric Blake  <ebb9@byu.net>
42579         and Jim Meyering  <meyering@redhat.com>
42580
42581         test-update-copyright: skip if perl is insufficient
42582         * tests/test-update-copyright.sh: Failure to run maintainer tool
42583         should not cause testsuite failure on cygwin 1.5.
42584
42585 2009-08-14  Eric Blake  <ebb9@byu.net>
42586
42587         doc: mention more functions added in cygwin 1.7.0
42588         * doc/posix-headers/limits.texi (limits.h): Update for recent
42589         cygwin additions.
42590         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42591         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42592         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42593         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42594         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42595
42596 2009-08-14  Eric Blake  <ebb9@byu.net>
42597
42598         maint.mk: simplify update-copyright rule
42599         * top/maint.mk (update-copyright-local): Delete, and document how
42600         to do it in cfg.mk instead.
42601         (update-copyright-exclude-regexp): Delete, and document how to do
42602         it in .x-update-copyright instead.
42603         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42604         exclude ChangeLog.
42605
42606 2009-08-14  Bruno Haible  <bruno@clisp.org>
42607
42608         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42609
42610 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42611
42612         maint.mk: support update-copyright-env
42613         * top/maint.mk (update-copyright-env): Define place-holder.
42614         (update-copyright): Expand $(update-copyright-env) before
42615         invoking update-copyright.
42616
42617 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42618
42619         update-copyright: implement forced reformatting
42620         * build-aux/update-copyright: Implement and document
42621         UPDATE_COPYRIGHT_FORCE.
42622         * tests/test-update-copyright.sh: Test it.
42623
42624 2009-08-14  Eric Blake  <ebb9@byu.net>
42625         and Bruno Haible  <bruno@clisp.org>
42626
42627         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42628         * tests/test-locale.c: Revert previous patch related to NULL.
42629         * tests/test-stdio.c: Likewise.
42630         * tests/test-stdlib.c: Likewise.
42631         * tests/test-string.c: Likewise.
42632         * tests/test-unistd.c: Likewise.
42633         * modules/time-tests (Depends-on): Add verify.
42634         * modules/wchar-tests (Depends-on): Likewise.
42635         * tests/test-time.c: Test for NULL compliance.
42636         * tests/test-wchar.c: Likewise.
42637         * modules/locale (Depends-on): Add stddef.
42638         * modules/stdio (Depends-on): Likewise.
42639         * modules/stdlib (Depends-on): Likewise.
42640         * modules/string (Depends-on): Likewise.
42641         * modules/time (Depends-on): Likewise.
42642         * modules/unistd (Depends-on): Likewise.
42643         * modules/wchar (Depends-on): Likewise.
42644         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42645         * lib/stdlib.in.h (includes): Likewise.
42646         * lib/string.in.h (includes): Likewise.
42647         * lib/time.in.h (includes): Likewise.
42648         * lib/unistd.in.h (includes): Likewise.
42649         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42650         replaced.
42651         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42652         * m4/stddef_h.m4: New file.
42653         * modules/stddef: Likewise.
42654         * lib/stddef.in.h: Likewise.
42655         * modules/stddef-tests: Likewise.
42656         * tests/test-stddef.c: Likewise.
42657         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42658         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42659         * doc/posix-headers/locale.texi (locale.h): Likewise.
42660         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42661         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42662         * doc/posix-headers/string.texi (string.h): Likewise.
42663         * doc/posix-headers/time.texi (time.h): Likewise.
42664         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42665         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42666
42667 2009-08-14  Eric Blake  <ebb9@byu.net>
42668
42669         doc: improve git diff of texinfo files
42670         * .gitattributes: Add rule for *.texi files, with hint on how to
42671         use it.
42672         Copied from m4, and based on a report by Bruno Haible.
42673
42674 2009-08-14  Bruno Haible  <bruno@clisp.org>
42675
42676         Disable multithread support by default on Cygwin 1.5.x for real.
42677         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42678
42679 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42680
42681         update-copyright: much ado about intervals
42682         * build-aux/update-copyright: Implement and document
42683         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42684         of copyright year intervals.
42685         Also, document UPDATE_COPYRIGHT_YEAR.
42686         * tests/test-update-copyright.sh: Test it.
42687
42688         update-copyright: convert 2-digit to 4-digit years
42689         * build-aux/update-copyright: Implement and document.
42690         * tests/test-update-copyright.sh: Update.
42691
42692 2009-08-14  Jim Meyering  <meyering@redhat.com>
42693
42694         test-exclude: avoid coreutils "make check" failure
42695         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42696         just as in test-argmatch.c.
42697
42698 2009-08-13  Eric Blake  <ebb9@byu.net>
42699
42700         test-dup2: fix bad assumption
42701         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42702         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42703
42704         test-version-etc: fix CRLF portability issue
42705         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42706         recognize \r.
42707         * tests/test-argp-version-etc-1.sh: Likewise.
42708
42709         getopt: update client modules
42710         * modules/argp (Depends-on): Use getopt-gnu.
42711         * modules/git-merge-changelog (Depends-on): Likewise.
42712         * modules/long-options (Depends-on): Likewise.
42713         * modules/xstrtol (Depends-on): Likewise.
42714
42715 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42716
42717         * tests/test-version-etc.sh: Don't fail on different
42718         project/version.  Don't fail on CRLF differences.  Rewrite to use
42719         multiple -e instead of multiple sed forks, suggested by Eric Blake
42720         <ebb9@byu.net>.
42721         * tests/test-argp-version-etc-1.sh: Likewise.
42722
42723 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42724
42725         * tests/test-version-etc.sh: Don't fail on different
42726         project/version.
42727
42728 2009-08-12  Bruno Haible  <bruno@clisp.org>
42729
42730         Tests for modules 'getopt-posix', 'getopt-gnu'.
42731         * modules/getopt-posix-tests: New file.
42732         * tests/test-getopt.c: New file.
42733         * tests/test-getopt.h: New file.
42734         * tests/test-getopt_long.h: New file.
42735
42736         New modules 'getopt-posix', 'getopt-gnu'.
42737         * modules/getopt-gnu: New file, renamed from modules/getopt.
42738         * modules/getopt-posix: New file.
42739         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42740         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42741         (gl_GETOPT): Remove macro.
42742         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42743         Disable the test against BSD systems that declare optreset. Test
42744         against mingw bug. Test against lack of support of optional arguments
42745         on many platforms.
42746         * doc/glibc-headers/getopt.texi: Update module name and list of
42747         relevant platforms.
42748         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42749         'getopt-gnu' and more portability problems.
42750         * NEWS: Mention the changes.
42751
42752 2009-08-12  Bruno Haible  <bruno@clisp.org>
42753
42754         Ensure that optarg etc. get declared by <unistd.h>.
42755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42756         AC_USE_SYSTEM_EXTENSIONS.
42757         * modules/getopt (Depends-on): Add 'extensions'.
42758
42759 2009-08-12  Bruno Haible  <bruno@clisp.org>
42760
42761         Avoid test link errors.
42762         * modules/pipe-filter-ii-tests (Makefile.am): Define
42763         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42764         * modules/pipe-filter-gi-tests (Makefile.am): Define
42765         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42767
42768 2009-08-12  Bruno Haible  <bruno@clisp.org>
42769
42770         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42771         gl_GETOPT_SUBSTITUTE before.
42772         (gl_GETOPT): Use it.
42773         * m4/argp.m4 (gl_ARGP): Update.
42774         Reported by Sergey Poznyakoff.
42775
42776         * m4/getopt.m4: Reorder macros.
42777         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42778         (gl_GETOPT_SUBSTITUTE): Remove macro.
42779
42780 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42781
42782         Minor improvement in gitlog-to-changelog
42783
42784         * build-aux/gitlog-to-changelog: New option `--format' makes
42785         output format string configurable.
42786
42787 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42788
42789         Optimize exclude: use hash tables for non-wildcard patterns.
42790
42791         * lib/exclude.c: Include hash.h and mbuiter.h
42792         (struct exclude_pattern, exclude_segment): New data types.
42793         (struct exclude): Rewrite.
42794         (fnmatch_pattern_has_wildcards): New function.
42795         (new_exclude_segment, free_exclude_segment): New functions.
42796         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42797         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42798         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42799         * modules/exclude: Depend on hash and mbuiter.
42800
42801         * modules/exclude-tests: New file.
42802         * tests/test-exclude.c: New file.
42803         * tests/test-exclude1.sh: New file.
42804         * tests/test-exclude2.sh: New file.
42805         * tests/test-exclude3.sh: New file.
42806         * tests/test-exclude4.sh: New file.
42807         * tests/test-exclude5.sh: New file.
42808         * tests/test-exclude6.sh: New file.
42809         * tests/test-exclude7.sh: New file.
42810
42811 2009-08-12  Bruno Haible  <bruno@clisp.org>
42812
42813         Ensure that getopt() gets declared by <unistd.h>.
42814         * lib/unistd.in.h: Conditionally include getopt.h.
42815         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42816         Set GNULIB_UNISTD_H_GETOPT.
42817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42818         GNULIB_UNISTD_H_GETOPT.
42819         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42820
42821 2009-08-12  Bruno Haible  <bruno@clisp.org>
42822
42823         Clarify logic.
42824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42825         gl_replace_getopt instead of GETOPT_H.
42826
42827 2009-08-12  Bruno Haible  <bruno@clisp.org>
42828
42829         * m4/getopt.m4: Add comments.
42830
42831 2009-08-12  Bruno Haible  <bruno@clisp.org>
42832
42833         Disable multithread support by default on Cygwin 1.5.x.
42834         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42835         set gl_use_threads=no if not specified otherwise.
42836
42837 2009-08-11  Bruno Haible  <bruno@clisp.org>
42838
42839         Avoid compilation error on NetBSD 5.0.
42840         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42841         * tests/test-stdio.c: Likewise.
42842         * tests/test-stdlib.c: Likewise.
42843         * tests/test-string.c: Likewise.
42844         * tests/test-unistd.c: Likewise.
42845         Reported by Greg Troxel <gdt@ir.bbn.com>
42846         at <https://savannah.gnu.org/support/?106973>.
42847
42848 2009-08-11  Bruno Haible  <bruno@clisp.org>
42849
42850         * modules/dup2-tests (Depends-on): Remove close.
42851
42852         Undo 2009-07-19 commit.
42853         * modules/acl-tests (Depends-on): Remove close.
42854         * modules/binary-io-tests (Depends-on): Likewise.
42855         * modules/closein-tests (Depends-on): Likewise.
42856         * modules/flock-tests (Depends-on): Likewise.
42857         * modules/fsync-tests (Depends-on): Likewise.
42858         * modules/lseek-tests (Depends-on): Likewise.
42859         * modules/pipe-tests (Depends-on): Likewise.
42860         * modules/posix_spawn-tests (Depends-on): Likewise.
42861         * modules/posix_spawnp-tests (Depends-on): Likewise.
42862         * modules/stat-time-tests (Depends-on): Likewise.
42863         * modules/yesno-tests (Depends-on): Likewise.
42864
42865 2009-08-10  Bruno Haible  <bruno@clisp.org>
42866
42867         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42868
42869 2009-08-10  Bruno Haible  <bruno@clisp.org>
42870
42871         Fix a gcc warning.
42872         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42873
42874 2009-08-10  Bruno Haible  <bruno@clisp.org>
42875
42876         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42877         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42878         not only the first time.
42879         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42880         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42881         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42882         is 1, not only the the first time.
42883
42884 2009-08-10  Bruno Haible  <bruno@clisp.org>
42885
42886         Make it possible to use module 'gethostname' without module 'close'.
42887         * lib/unistd.in.h (close): Evoke a link error only if
42888         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42890         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42891         * modules/unistd (Makefile.am): Substitute
42892         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42893         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42894         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42896         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42897         * modules/sys_ioctl (Makefile.am): Substitute
42898         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42899         * modules/socket (configure.ac): On native Windows, set
42900         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42901         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42902         Reported by Sam Steingold <sds@gnu.org>.
42903
42904 2009-08-10  Bruno Haible  <bruno@clisp.org>
42905
42906         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42907         * modules/ioctl (configure.ac): Likewise.
42908
42909 2009-08-10  Bruno Haible  <bruno@clisp.org>
42910
42911         Avoid collision between gnulib wrapper and libintl wrapper.
42912         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42913         already defined in intl/printf.c.
42914         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42915         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42916
42917 2009-08-09  Bruno Haible  <bruno@clisp.org>
42918
42919         Make <sys/select.h> really self-contained, also on Solaris 10.
42920         * lib/sys_select.in.h: Include <string.h>.
42921         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42922         Solaris 10 problem.
42923         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42924         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42925         Reported by Jim Meyering.
42926
42927 2009-08-09  Bruno Haible  <bruno@clisp.org>
42928
42929         Avoid warnings from 'aclocal' that are due to a use of macro name
42930         AM_XGETTEXT_OPTION that is not defined in automake.
42931         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42932         automake.
42933         * modules/error (configure.ac): Likewise.
42934         * modules/propername (configure.ac): Likewise.
42935         * modules/vasprintf (configure.ac): Likewise.
42936         * modules/verror (configure.ac): Likewise.
42937         * modules/xprintf (configure.ac): Likewise.
42938         * modules/xvasprintf (configure.ac): Likewise.
42939
42940 2009-08-08  Bruno Haible  <bruno@clisp.org>
42941
42942         Avoid compilation error in C++ mode.
42943         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42944         Reported by Sam Steingold <sds@gnu.org>.
42945
42946 2009-08-08  Bruno Haible  <bruno@clisp.org>
42947
42948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42949         for the various Unix platforms.
42950         * doc/posix-headers/limits.texi: Update platforms list regarding
42951         HOST_NAME_MAX.
42952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42953
42954 2009-08-07  Jim Meyering  <meyering@redhat.com>
42955
42956         selinux-at: fix typo in a comment
42957         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42958         Spotted by Paolo Bonzini.
42959
42960         selinux-at: remove redundant m4 code, add documentation
42961         * modules/selinux-at (configure.ac): Remove redundant code.
42962         LIB_SELINUX is already set via the dependent module, selinux-h.
42963         (Include): Add quotes around selinux-at.h.
42964         * lib/selinux-at.h: Add documentation.
42965         Reported by Bruno Haible in
42966         http://marc.info/?l=gnulib-bug&m=124958988300749
42967
42968 2009-08-07  Bruno Haible  <bruno@clisp.org>
42969
42970         Avoid link error on MacOS X 10.3 and 10.4.
42971         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42972         on non-ELF systems.
42973         * lib/argp-pv.c (argp_program_version): Likewise.
42974         Reported by Simon Josefsson.
42975
42976 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42977
42978         * tests/test-version-etc.sh: Use $EXEEXT.
42979
42980 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42981
42982         update-copyright: update documentation to point to maint.mk
42983         * build-aux/update-copyright: Here.
42984
42985 2009-08-06  Jim Meyering  <meyering@redhat.com>
42986
42987         maint.mk: support update-copyright-local
42988         * top/maint.mk (update-copyright-local): Define place-holder.
42989         (update-copyright): Depend on $(update-copyright-local).
42990
42991 2009-08-06  Jim Meyering  <meyering@redhat.com>
42992
42993         selinux-at: new module
42994         Initially written for coreutils, this module will soon be
42995         used by findutils, too.
42996         * MODULES.html.sh [Misc]: Add selinux-at.
42997         * lib/selinux-at.h: New file, from coreutils.
42998         * lib/selinux-at.c: Likewise.
42999         * modules/selinux-at: Likewise.
43000         (License): Change from LGPL to GPL, since it depends
43001         on the GPL'd openat module.
43002
43003         doc: update README
43004         * README: Remove references to cogito.
43005         Remove cvs-repo-updating instructions from 2007.
43006         Don't imply that CVS is better if you have limited disk space.
43007
43008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43009
43010         update-copyright: support C-style comments
43011         * build-aux/update-copyright: Implement and document.
43012         * tests/test-update-copyright.sh: Test.
43013
43014 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43015
43016         update-copyright: support omitted "(C)"
43017         * build-aux/update-copyright: Implement and document.  Also,
43018         allow variable whitespace before "(C)".
43019         * tests/test-update-copyright.sh: Test.
43020
43021 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43022
43023         update-copyright: don't trip on non-FSF copyright statements
43024         * build-aux/update-copyright: Fix so that the first correctly
43025         formatted FSF copyright statement is recognized no matter what
43026         appears before it.  Update documentation.
43027         * tests/test-update-copyright.sh: Test that.
43028
43029 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43030
43031         update-copyright: clean up code a little
43032         * build-aux/update-copyright: Append "_re" to the name of any
43033         variable holding a regular expression.
43034         Replace "old" and "new" with "stmt" in variable names.
43035         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43036         handled correctly.
43037         Format code more consistently.
43038
43039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43040
43041         update-copyright-tests: improve portability
43042         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43043         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43044
43045 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43046
43047         update-copyright: support @copyright{} and &copy;
43048         * build-aux/update-copyright: Implement and document.
43049         * tests/test-update-copyright.sh: Test.
43050
43051 2009-08-04  Jim Meyering  <meyering@redhat.com>
43052
43053         update-copyright-tests: correctly test EOL=\r\n handling
43054         * tests/test-update-copyright.sh: Put \r at the end of some lines
43055         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43056
43057         maint.mk: make update-copyright exclusion list more configurable
43058         * top/maint.mk (update-copyright): Default to excluding COPYING,
43059         but allow an override, in case someone does want to update that file.
43060
43061         maint.mk: don't update copyright date in COPYING
43062         * top/maint.mk (update-copyright): Exclude COPYING.
43063
43064         maint.mk: add a copyright-updating rule
43065         * top/maint.mk (update-copyright): New rule.
43066         Derived from coreutils/Makefile.am.
43067
43068         update-copyright: rename some variables
43069         * build-aux/update-copyright: Rename a few variables for clarity.
43070         Tweak syntax.  List Joel E. Denny as coauthor.
43071
43072 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43073
43074         update-copyright: fix bug for 2-digit last year and add tests
43075         * build-aux/update-copyright: Fix bug.
43076         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43077         specified.
43078         * modules/update-copyright-tests: New
43079         * tests/test-update-copyright.sh: New.
43080
43081 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43082
43083         update-copyright: handle leading tabs in line prefix
43084         * build-aux/update-copyright: Count leading tabs as 8 spaces
43085         when computing margin.  This helps with the formatting of
43086         ChangeLogs, for example.
43087         Fix documentation a little.
43088
43089 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43090
43091         update-copyright: support EOL=\r\n
43092         * build-aux/update-copyright: Implement that.
43093
43094 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43095
43096         update-copyright: automatically format copyright statements
43097         * build-aux/update-copyright: Implement that.
43098         Also, be a little more predictable and safer by always failing
43099         when the full copyright format is not perfectly recognized as an
43100         unbroken whole.  Discussed at
43101         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43102         Rewrite documentation.
43103
43104 2009-08-03  Bruno Haible  <bruno@clisp.org>
43105
43106         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43107
43108 2009-08-02  Bruno Haible  <bruno@clisp.org>
43109
43110         Tests for module 'uname'.
43111         * modules/uname-tests: New file.
43112         * tests/test-uname.c: New file.
43113
43114         New module 'uname'.
43115         * lib/uname.c: New file.
43116         * m4/uname.m4: New file.
43117         * modules/uname: New file.
43118         * doc/posix-functions/uname.texi: Mention the new module.
43119
43120 2009-08-02  Bruno Haible  <bruno@clisp.org>
43121
43122         Tests for module 'sys_utsname'.
43123         * modules/sys_utsname-tests: New file.
43124         * tests/test-sys_utsname.c: New file.
43125
43126         New module 'sys_utsname'.
43127         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43128         * m4/sys_utsname_h.m4: New file.
43129         * modules/sys_utsname: New file.
43130         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43131
43132 2009-08-02  Bruno Haible  <bruno@clisp.org>
43133
43134         Implicitly initialize the sockets library.
43135         * lib/gethostname.c: Include sockets.h.
43136         (rpl_gethostname): Invoke gl_sockets_startup.
43137         * lib/socket.c: Include sockets.h.
43138         (rpl_socket): Invoke gl_sockets_startup.
43139         * modules/gethostname (Depends-on): Add sockets.
43140         * modules/socket (Depends-on): Likewise.
43141         * tests/test-poll.c: Don't include sockets.h.
43142         (main): Don't invoke gl_sockets_startup.
43143         * tests/test-select.c: Don't include sockets.h.
43144         (main): Don't invoke gl_sockets_startup.
43145
43146 2009-08-02  Bruno Haible  <bruno@clisp.org>
43147
43148         Allow multiple calls to gl_sockets_startup.
43149         * lib/sockets.c (initialized_sockets_version): New variable.
43150         (gl_sockets_startup): Do nothing if already called for this or a higher
43151         version.
43152         (gl_sockets_cleanup): Reset initialized_sockets_version.
43153
43154 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43155
43156         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43157         different project/version.
43158
43159 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43160             Bruno Haible  <bruno@clisp.org>
43161
43162         Tests for module 'pipe-filter-gi'.
43163         * modules/pipe-filter-gi-tests: New file.
43164         * tests/test-pipe-filter-gi1.sh: New file.
43165         * tests/test-pipe-filter-gi1.c: New file.
43166         * tests/test-pipe-filter-gi2.sh: New file.
43167         * tests/test-pipe-filter-gi2-main.c: New file.
43168         * tests/test-pipe-filter-gi2-child.c: New file.
43169
43170         New module 'pipe-filter-gi'.
43171         * lib/pipe-filter-gi.c: New file.
43172         * modules/pipe-filter-gi: New file.
43173
43174 2009-08-02  Bruno Haible  <bruno@clisp.org>
43175             Paolo Bonzini  <bonzini@gnu.org>
43176
43177         Tests for module 'pipe-filter-ii'.
43178         * modules/pipe-filter-ii-tests: New file.
43179         * tests/test-pipe-filter-ii1.sh: New file.
43180         * tests/test-pipe-filter-ii1.c: New file.
43181         * tests/test-pipe-filter-ii2.sh: New file.
43182         * tests/test-pipe-filter-ii2-main.c: New file.
43183         * tests/test-pipe-filter-ii2-child.c: New file.
43184
43185         New module 'pipe-filter-ii'.
43186         * lib/pipe-filter.h: New file.
43187         * lib/pipe-filter-ii.c: New file.
43188         * lib/pipe-filter-aux.h: New file.
43189         * modules/pipe-filter-ii: New file.
43190
43191 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43192
43193         * lib/gc-libgcrypt.c: Change copyright to FSF.
43194         * lib/gc-gnulib.c: Likewise.
43195
43196 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43197
43198         * lib/gethostname.c: Include limits.h.
43199
43200 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43201             Bruno Haible  <bruno@clisp.org>
43202
43203         Ensure HOST_NAME_MAX as part of the gethostname module.
43204         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43205         define also HOST_NAME_MAX.
43206         * tests/test-gethostname.c: Include <limits.h>.
43207         (main): Check also HOST_NAME_MAX.
43208         * doc/posix-headers/limits.texi: Document the mingw problem.
43209
43210 2009-08-02  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43213         Add comments.
43214
43215 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43216
43217         * lib/gethostname.c: Add Windows wrapper.
43218         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43219         * modules/gethostname: Depend on sys_socket & errno, for also
43220         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43221         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43222
43223 2009-07-31  Jim Meyering  <meyering@redhat.com>
43224
43225         getloadavg: fix symbol name in comment
43226         * lib/getloadavg.c: Correct a typo I introduced when adding
43227         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43228         Matt Kraai spotted the problem.
43229
43230 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43231
43232         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43233         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43234         code also if ! defined N_NAME_POINTER.
43235         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43236         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43237         but the n_name member is a 12-byte array.
43238
43239 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43240
43241         update-copyright: generalize comment handling
43242         * build-aux/update-copyright: Handle copyright statements
43243         within more comment styles.
43244         Document usage.
43245         Report any file with an external copyright holder or parse failure.
43246
43247 2009-07-29  Jim Meyering  <meyering@redhat.com>
43248
43249         mktime: correct setting of REPLACE_MKTIME
43250         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43251
43252         update-copyright: new module
43253         * modules/update-copyright: New file.
43254         * build-aux/update-copyright: New file.
43255         * MODULES.html.sh (maint+release support): Add update-copyright.
43256
43257 2009-07-27  Bruno Haible  <bruno@clisp.org>
43258
43259         Fix compilation error when <ctime> is used and mktime is replaced.
43260         * lib/time.in.h (mktime): New declaration.
43261         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43262         REPLACE_MKTIME instead of defining mktime in config.h.
43263         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43264         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43265         Reported by Ross McFarland <rwmcfa1@neces.com>.
43266
43267 2009-07-27  Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43270         Reported by Matt Kraai <mkraai@beckman.com>.
43271
43272 2009-07-25  Jim Meyering  <meyering@redhat.com>
43273
43274         maint.mk: avoid warnings about missing files
43275         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43276         diagnostic when .prev-version does not exist.
43277         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43278         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43279         nonexistent cfg.mk.
43280         Suggestions from Simon Josefsson.
43281
43282 2009-07-25  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43285         defined as macros. Needed on QNX 6.4.1.
43286         Reported by Matt Kraai <mkraai@beckman.com>.
43287
43288 2009-07-23  Jim Meyering  <meyering@redhat.com>
43289
43290         maint.mk: invoke "make dist" with a working value of XZ_OPT
43291         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43292
43293 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43294
43295         Make fseeko.c compile on QNX.
43296         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43297
43298 2009-07-22  Peter Simons  <simons@cryp.to>
43299
43300         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43301         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43302         * lib/md4.h: Likewise.
43303         * lib/md5.h: Likewise.
43304         * lib/sha1.h: Likewise.
43305         * lib/sha256.h: Likewise.
43306         * lib/sha512.h: Likewise.
43307
43308         tests-sha1: don't assign literal string to 'char *' variable
43309         * tests/test-sha1.c (main): Declare locals with "const" to match
43310         attributes of the right hand side.
43311
43312 2009-07-21  Eric Blake  <ebb9@byu.net>
43313
43314         dup2: fix more mingw problems
43315         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43316         fd to itself.
43317         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43318         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43319         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43320         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43321         care of mingw bugs.
43322
43323 2009-07-21  Jim Meyering  <meyering@redhat.com>
43324
43325         vc-list-files: avoid failure when /bin/sh is dash
43326         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43327         On some Debian based systems, /bin/sh is a symlink to dash, and running
43328         this command would omit the "/" following each 'tests' prefix:
43329           dash -x build-aux/vc-list-files -C . tests
43330         That is because bash and dash work differently:
43331           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43332           bash ok
43333           dash odd
43334
43335 2009-07-21  Eric Blake  <ebb9@byu.net>
43336
43337         dup2-tests: test previous patch
43338         * modules/dup2-tests: New file.
43339         * tests/test-dup2.c: Likewise.
43340         * tests/test-open.c (main): Avoid unspecified behavior.
43341         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43342         test.
43343
43344         dup2: work around mingw and cygwin 1.5 bug
43345         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43347         * modules/unistd (Makefile.am): Substitute it.
43348         * lib/unistd.in.h (dup2): Declare the replacement.
43349         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43350         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43351         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43352         * modules/execute (Depends-on): Add dup2.
43353         * modules/fseterr (Depends-on): Likewise.
43354         * modules/pipe (Depends-on): Likewise.
43355         * modules/posix_spawn-internal (Depends-on): Likewise.
43356
43357 2009-07-21  Bruno Haible  <bruno@clisp.org>
43358
43359         * modules/.gitattributes: New file.
43360
43361 2009-07-20  Bruno Haible  <bruno@clisp.org>
43362
43363         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43364         (main): Use it.
43365
43366 2009-07-20  Eric Blake  <ebb9@byu.net>
43367
43368         test-pipe: make a bit more robust.
43369         * tests/test-pipe.c (myerr): Allow error messages regardless of
43370         what we do to stderr.
43371         (test_pipe): Rearrange to avoid deadlock.
43372         (child_main): Try a larger read, to ensure we avoided deadlock.
43373         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43374         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43375         if misused.
43376
43377 2009-07-19  Jim Meyering  <meyering@redhat.com>
43378
43379         fts: avoid false-positive cycle-detection
43380         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43381         for each new command line argument.
43382
43383 2009-07-19  Bruno Haible  <bruno@clisp.org>
43384
43385         Fix build error on mingw with the modules sys_select and unistd.
43386         * modules/acl-tests (Depends-on): Add close.
43387         * modules/binary-io-tests (Depends-on): Likewise.
43388         * modules/closein-tests (Depends-on): Likewise.
43389         * modules/flock-tests (Depends-on): Likewise.
43390         * modules/fsync-tests (Depends-on): Likewise.
43391         * modules/lseek-tests (Depends-on): Likewise.
43392         * modules/pipe-tests (Depends-on): Likewise.
43393         * modules/posix_spawn-tests (Depends-on): Likewise.
43394         * modules/posix_spawnp-tests (Depends-on): Likewise.
43395         * modules/stat-time-tests (Depends-on): Likewise.
43396         * modules/yesno-tests (Depends-on): Likewise.
43397
43398 2009-07-19  Bruno Haible  <bruno@clisp.org>
43399
43400         Unify conditionals.
43401         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43402         macros, not at the compiler macros.
43403         * lib/pipe.c: Likewise.
43404         * lib/execute.c: Likewise.
43405         * lib/spawni.c: Likewise.
43406
43407 2009-07-19  Bruno Haible  <bruno@clisp.org>
43408
43409         Fix handling of closed stdin/stdout/stderr on mingw.
43410         * lib/w32spawn.h: Include unistd.h.
43411         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43412         file descriptor with O_NOINHERIT flag.
43413         (fd_safer_noinherit): New function, based on fd-safer.c.
43414         (dup_safer_noinherit): New function, based on dup-safer.c.
43415         (undup_safer_noinherit): New function.
43416         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43417         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43418         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43419         instead of fd_safer.
43420         * tests/test-pipe.c: Include <windows.h>.
43421         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43422         result.
43423
43424         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43425         from main.
43426         (test_pipe): Pass an extra argument for disambiguation.
43427         (main): Invoke parent_main or child_main.
43428
43429         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43430         consistently.
43431
43432 2009-07-18  Eric Blake  <ebb9@byu.net>
43433
43434         test-pipe: fix mingw build
43435         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43436
43437 2009-07-18  Bruno Haible  <bruno@clisp.org>
43438
43439         * modules/pipe-tests (Makefile.am): Fix typo.
43440
43441 2009-07-18  Eric Blake  <ebb9@byu.net>
43442
43443         error: fix mingw build
43444         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43445         Reported by Bruno Haible.
43446
43447         error: avoid undefined use of stdout
43448         * lib/error.c (error, error_at_line): Check that fd 1 is open
43449         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43450         is handling faults and the close_stdout module wants to report the
43451         detection of closed stdout as an error.
43452
43453 2009-07-17  Eric Blake  <ebb9@byu.net>
43454
43455         pipe: be robust in face of closed fds
43456         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43457         should cause child to misbehave.
43458         * modules/pipe-tests: New module.
43459         * tests/test-pipe.c: New file.
43460         * tests/test-pipe.sh: New file.
43461         Reported by Akim Demaille.
43462
43463 2009-07-14  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43466         Reported by anonymous kc.
43467
43468 2009-07-07  Jim Meyering  <meyering@redhat.com>
43469
43470         maint.mk: don't look for translatable strings in *.m4 or *.mk
43471         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43472         when searching for translatable strings.
43473
43474 2009-07-05  Jim Meyering  <meyering@redhat.com>
43475
43476         remove superfluous parentheses in STREQ definition
43477         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43478         * lib/getugroups.c (STREQ): Likewise.
43479         * lib/fnmatch.c (STREQ): Likewise.
43480         Spotted by Bruno Haible.
43481
43482 2009-07-04  Jim Meyering  <meyering@redhat.com>
43483
43484         argv-iter: new module
43485         * MODULES.html.sh: Add argv-iter.
43486         * lib/argv-iter.c, lib/argv-iter.h: New files.
43487         * modules/argv-iter: New file.
43488         * modules/argv-iter-tests: New file.
43489         * tests/test-argv-iter.c: Test it.
43490
43491 2009-07-04  Bruno Haible  <bruno@clisp.org>
43492
43493         Fix assertion.
43494         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43495         contains more exact copies of a given entry than file2, leave the extra
43496         copies unpaired rather than aborting.
43497         Reported by Eric Blake.
43498
43499 2009-07-02  Bruno Haible  <bruno@clisp.org>
43500
43501         Speedup git-merge-changelog for git cherry-pick.
43502         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43503         (entries_mapping_get): New function, extracted from compute_mapping.
43504         (entries_mapping_reverse_get): New function.
43505         (compute_mapping): Add a 'full' argument. Return the result in a
43506         'struct entries_mapping'.
43507         (main): Update. Access the mappings through entries_mapping_get.
43508         Reported by Eric Blake.
43509
43510 2009-07-02  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43513         best_i.
43514
43515 2009-07-02  Bruno Haible  <bruno@clisp.org>
43516
43517         Speed up approximate search for matching ChangeLog entries.
43518         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43519         argument. Call fstrcmp_bounded instead of fstrcmp.
43520         (compute_mapping, try_split_merged_entry, main): Update callers.
43521
43522 2009-07-02  Bruno Haible  <bruno@clisp.org>
43523
43524         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43525
43526 2009-06-30  Bruno Haible  <bruno@clisp.org>
43527
43528         Reduce the number of uc_is_cased calls.
43529         * lib/unicase.h (casing_suffix_context_t): Add
43530         'first_char_except_ignorable' field.
43531         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43532         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43533         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43534         Update initializer.
43535         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43536         case-ignorable characters.
43537         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43538         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43539         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43540         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43541         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43542
43543 2009-06-30  Bruno Haible  <bruno@clisp.org>
43544
43545         Tests for module 'unicase/ignorable'.
43546         * modules/unicase/ignorable-tests: New file.
43547         * tests/unicase/test-ignorable.c: New file, generated by
43548         gen-uni-tables.
43549
43550         Tests for module 'unicase/cased'.
43551         * modules/unicase/cased-tests: New file.
43552         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43553         * tests/unicase/test-predicate-part1.h: New file, derived from
43554         tests/unictype/test-predicate-part1.h.
43555         * tests/unicase/test-predicate-part2.h: New file, same as
43556         tests/unictype/test-predicate-part2.h.
43557
43558         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43559         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43560         (output_casing_properties): New function.
43561         (main): Call it.
43562         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43563         * lib/unicase/cased.c: Include unictype/bitmap.h.
43564         (uc_is_cased): Define through a bitmap lookup.
43565         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43566         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43567         (uc_is_case_ignorable): Define through a bitmap lookup.
43568         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43569         lib/unictype/bitmap.h.
43570         (Depends-on): Add inline. Clean up.
43571         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43572         lib/unictype/bitmap.h.
43573         (Depends-on): Add inline. Clean up.
43574         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43575         recognition.
43576         * tests/unicase/test-u16-tolower.c (main): Likewise.
43577         * tests/unicase/test-u32-tolower.c (main): Likewise.
43578
43579 2009-06-30  Bruno Haible  <bruno@clisp.org>
43580
43581         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43582         * lib/unicase/u16-casemap.c: Likewise.
43583         * lib/unicase/u32-casemap.c: Likewise.
43584
43585 2009-06-29  Bruno Haible  <bruno@clisp.org>
43586
43587         Define u32_casefold as a wrapper around u32_ct_casefold.
43588         * lib/unicase/u32-casefold.c: Update.
43589         * modules/unicase/u32-casefold (Depends-on): Add
43590         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43591         unicase/empty-suffix-context. Clean up.
43592
43593         Define u16_casefold as a wrapper around u16_ct_casefold.
43594         * lib/unicase/u16-casefold.c: Update.
43595         * modules/unicase/u16-casefold (Depends-on): Add
43596         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43597         unicase/empty-suffix-context. Clean up.
43598
43599         Define u8_casefold as a wrapper around u8_ct_casefold.
43600         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43601         * lib/unicase/u8-casefold.c: Update.
43602         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43603         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43604
43605         Define u32_totitle as a wrapper around u32_ct_totitle.
43606         * lib/unicase/u32-totitle.c: Update.
43607         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43608         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43609
43610         Define u16_totitle as a wrapper around u16_ct_totitle.
43611         * lib/unicase/u16-totitle.c: Update.
43612         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43613         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43614
43615         Define u8_totitle as a wrapper around u8_ct_totitle.
43616         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43617         functions.
43618         (FUNC): Delegate to U_CT_TOTITLE.
43619         * lib/unicase/u8-totitle.c: Update.
43620         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43621         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43622
43623         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43624         invocation.
43625         * modules/unicase/u32-tolower (Depends-on): Add
43626         unicase/empty-prefix-context, unicase/empty-suffix-context.
43627
43628         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43629         invocation.
43630         * modules/unicase/u16-tolower (Depends-on): Add
43631         unicase/empty-prefix-context, unicase/empty-suffix-context.
43632
43633         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43634         * modules/unicase/u8-tolower (Depends-on): Add
43635         unicase/empty-prefix-context, unicase/empty-suffix-context.
43636
43637         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43638         invocation.
43639         * modules/unicase/u32-toupper (Depends-on): Add
43640         unicase/empty-prefix-context, unicase/empty-suffix-context.
43641
43642         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43643         invocation.
43644         * modules/unicase/u16-toupper (Depends-on): Add
43645         unicase/empty-prefix-context, unicase/empty-suffix-context.
43646
43647         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43648         * modules/unicase/u8-toupper (Depends-on): Add
43649         unicase/empty-prefix-context, unicase/empty-suffix-context.
43650
43651         New module 'unicase/u32-ct-casefold'.
43652         * lib/unicase/u32-ct-casefold.c: New file.
43653         * modules/unicase/u32-ct-casefold: New file.
43654
43655         New module 'unicase/u16-ct-casefold'.
43656         * lib/unicase/u16-ct-casefold.c: New file.
43657         * modules/unicase/u16-ct-casefold: New file.
43658
43659         New module 'unicase/u8-ct-casefold'.
43660         * lib/unicase/u8-ct-casefold.c: New file.
43661         * lib/unicase/u-ct-casefold.h: New file, derived from
43662         lib/unicase/u-casefold.h.
43663         * modules/unicase/u8-ct-casefold: New file.
43664
43665         New module 'unicase/u32-ct-totitle'.
43666         * lib/unicase/u32-ct-totitle.c: New file.
43667         * modules/unicase/u32-ct-totitle: New file.
43668
43669         New module 'unicase/u16-ct-totitle'.
43670         * lib/unicase/u16-ct-totitle.c: New file.
43671         * modules/unicase/u16-ct-totitle: New file.
43672
43673         New module 'unicase/u8-ct-totitle'.
43674         * lib/unicase/u8-ct-totitle.c: New file.
43675         * lib/unicase/u-ct-totitle.h: New file, derived from
43676         lib/unicase/u-totitle.h.
43677         * modules/unicase/u8-ct-totitle: New file.
43678
43679         New module 'unicase/u32-ct-tolower'.
43680         * lib/unicase/u32-ct-tolower.c: New file.
43681         * modules/unicase/u32-ct-tolower: New file.
43682
43683         New module 'unicase/u16-ct-tolower'.
43684         * lib/unicase/u16-ct-tolower.c: New file.
43685         * modules/unicase/u16-ct-tolower: New file.
43686
43687         New module 'unicase/u8-ct-tolower'.
43688         * lib/unicase/u8-ct-tolower.c: New file.
43689         * modules/unicase/u8-ct-tolower: New file.
43690
43691         New module 'unicase/u32-ct-toupper'.
43692         * lib/unicase/u32-ct-toupper.c: New file.
43693         * modules/unicase/u32-ct-toupper: New file.
43694
43695         New module 'unicase/u16-ct-toupper'.
43696         * lib/unicase/u16-ct-toupper.c: New file.
43697         * modules/unicase/u16-ct-toupper: New file.
43698
43699         New module 'unicase/u8-ct-toupper'.
43700         * lib/unicase/u8-ct-toupper.c: New file.
43701         * modules/unicase/u8-ct-toupper: New file.
43702
43703         Add context arguments to u*_casemap functions.
43704         * lib/unicase/unicasemap.h: Include unicase.h.
43705         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43706         suffix_context arguments.
43707         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43708         functions.
43709         (FUNC): Add prefix_context and suffix_context arguments. Use
43710         uc_is_cased and uc_is_case_ignorable.
43711         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43712         * lib/unicase/u16-casemap.c: Likewise.
43713         * lib/unicase/u32-casemap.c: Likewise.
43714         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43715         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43716         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43717         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43718         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43719         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43720
43721         New module 'unicase/u32-suffix-context'.
43722         * lib/unicase/u32-suffix-context.c: New file.
43723         * modules/unicase/u32-suffix-context: New file.
43724
43725         New module 'unicase/u16-suffix-context'.
43726         * lib/unicase/u16-suffix-context.c: New file.
43727         * modules/unicase/u16-suffix-context: New file.
43728
43729         New module 'unicase/u8-suffix-context'.
43730         * lib/unicase/u8-suffix-context.c: New file.
43731         * lib/unicase/u-suffix-context.h: New file.
43732         * modules/unicase/u8-suffix-context: New file.
43733
43734         New module 'unicase/empty-suffix-context'.
43735         * lib/unicase/empty-suffix-context.c: New file.
43736         * modules/unicase/empty-suffix-context: New file.
43737
43738         New module 'unicase/u32-prefix-context'.
43739         * lib/unicase/u32-prefix-context.c: New file.
43740         * modules/unicase/u32-prefix-context: New file.
43741
43742         New module 'unicase/u16-prefix-context'.
43743         * lib/unicase/u16-prefix-context.c: New file.
43744         * modules/unicase/u16-prefix-context: New file.
43745
43746         New module 'unicase/u8-prefix-context'.
43747         * lib/unicase/u8-prefix-context.c: New file.
43748         * lib/unicase/u-prefix-context.h: New file.
43749         * lib/unicase/context.h: New file.
43750         * modules/unicase/u8-prefix-context: New file.
43751
43752         New module 'unicase/empty-prefix-context'.
43753         * lib/unicase/empty-prefix-context.c: New file.
43754         * modules/unicase/empty-prefix-context: New file.
43755
43756         New module 'unicase/ignorable'.
43757         * lib/unicase/ignorable.c: New file.
43758         * modules/unicase/ignorable: New file.
43759
43760         New module 'unicase/cased'.
43761         * lib/unicase/caseprop.h: New file.
43762         * lib/unicase/cased.c: New file.
43763         * modules/unicase/cased: New file.
43764
43765         New functions for case mapping of substrings.
43766         * lib/unicase.h (casing_prefix_context_t): New type.
43767         (unicase_empty_prefix_context): New variable.
43768         (u8_casing_prefix_context, u16_casing_prefix_context,
43769         u32_casing_prefix_context, u8_casing_prefixes_context,
43770         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43771         declarations.
43772         (casing_suffix_context_t): New type.
43773         (unicase_empty_suffix_context): New variable.
43774         (u8_casing_suffix_context, u16_casing_suffix_context,
43775         u32_casing_suffix_context, u8_casing_suffixes_context,
43776         u16_casing_suffixes_context, u32_casing_suffixes_context,
43777         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43778         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43779         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43780         declarations.
43781
43782 2009-06-28  Jim Meyering  <meyering@redhat.com>
43783
43784         boostrap: indent only with spaces
43785         * build-aux/bootstrap: Indent only with spaces, never TABs.
43786
43787         bootstrap: split long lines
43788         * build-aux/bootstrap: Keep line length < 80.
43789
43790         bootstrap: sync from coreutils
43791         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43792         just as autoreconf does.  Verify a list of prerequisite
43793         package-name,version-number pairs if defined in bootstrap.conf.
43794         Refer to README-prereq, if prerequisites are not satisfied.
43795
43796 2009-06-27  Eric Blake  <ebb9@byu.net>
43797
43798         tests: add test for bogus NULL definition
43799         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43800         * tests/test-stdlib.c: Likewise.
43801         * tests/test-string.c: Likewise.
43802         * tests/test-locale.c: Likewise.
43803         * tests/test-unistd.c: Likewise.
43804         * modules/stdio-tests (Depends-on): Add verify.
43805         * modules/stdlib-tests (Depends-on): Likewise.
43806         * modules/string-tests (Depends-on): Likewise.
43807         * modules/locale-tests (Depends-on): Likewise.
43808         * modules/unistd-tests (Depends-on): Likewise.
43809
43810 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43811
43812         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43813         self-explaining comment.
43814         * m4/selinux-selinux-h: Update serial.
43815         (gl_LIBSELINUX): New macro, adding a warning for missing development
43816         packages to code extracted from...
43817         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43818         Add warning for missing development packages here, too.
43819
43820 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43821
43822         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43823
43824 2009-06-25  Eric Blake  <ebb9@byu.net>
43825
43826         version-etc: fix regression
43827         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43828         gcc.
43829         (version_etc): Use it, to catch bugs with trailing NULL.
43830         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43831         (version_etc_va): Fix logic bug.
43832         * modules/version-etc-tests: Add test.
43833         * tests/test-version-etc.c: New file.
43834         * tests/test-version-etc.sh: Likewise.
43835
43836 2009-06-25  Sam Steingold  <sds@gnu.org>
43837
43838         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43839         mbtowc declaration.
43840
43841 2009-06-25  Eric Blake  <ebb9@byu.net>
43842
43843         fpurge: migrate into <stdio.h>
43844         * lib/fpurge.h: Delete...
43845         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43846         * lib/fpurge.c (fpurge): Change declaring header.
43847         * modules/fpurge (Files): Drop deleted file.
43848         (Depends-on): Add stdio.
43849         (configure.ac): Set witness.
43850         * modules/stdio (Makefile.am): Support fpurge macros.
43851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43852         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43853         * lib/fflush.c: Update client.
43854         * tests/test-fpurge.c: Likewise.
43855         * NEWS: Mention the change.
43856
43857 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43858
43859         * lib/argp-version-etc.c (program_authors): Add const
43860         qualifier.
43861         * lib/version-etc.c: Fix typos in the comments.
43862         * modules/argp-version-etc: Depends on version-etc.
43863
43864 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43865
43866         argp-version-etc: new module.
43867
43868         * lib/argp-version-etc.c: New file.
43869         * lib/argp-version-etc.h: New file.
43870         * modules/argp-version-etc: New file.
43871         * modules/argp-version-etc-tests: New file.
43872         * tests/test-argp-version-etc.c: New test.
43873         * tests/test-argp-version-etc-1.sh: New test.
43874
43875 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43876
43877         Provide additional interfaces and documentation for version-etc
43878         module.
43879
43880         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43881         interfaces.
43882         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43883         prototypes.
43884
43885 2009-06-24  Bruno Haible  <bruno@clisp.org>
43886
43887         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43888         HAVE_LIB${NAME} macro.
43889         Reported by Sam Steingold <sds@gnu.org>.
43890
43891 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43892
43893         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43894         needed.
43895
43896 2009-06-21  Bruno Haible  <bruno@clisp.org>
43897
43898         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43899         work.
43900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43901         together with LIB${NAME}, LTLIB${NAME}.
43902         Reported by Sam Steingold <sds@gnu.org>.
43903
43904 2009-06-20  Jim Meyering  <meyering@redhat.com>
43905
43906         tests: make sc_require_test_exit_idiom more generic
43907         * top/maint.mk (Exit_witness_file): New overridable variable.
43908         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43909         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43910
43911 2009-06-19  Jim Meyering  <meyering@redhat.com>
43912
43913         hash: reverse order of src/dst parameters in an internal interface
43914         * lib/hash.c (transfer_entries): Reverse order of parameters to
43915         put DST before SRC.  Adjust callers.
43916
43917         tests: test-hash: avoid wholesale duplication
43918         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43919         Instead, use a loop and add a single conditional.
43920
43921         tests: test-hash: allow seed selection via a command line argument
43922         * tests/test-hash.c (get_seed): New function.
43923         (main): Use it.
43924
43925 2009-06-19  Eric Blake  <ebb9@byu.net>
43926
43927         hash: avoid memory leak on allocation failure
43928         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43929         failure.  Factor repeated algorithm...
43930         (transfer_entries): ...into new helper routine.
43931         (hash_delete): React to hash_rehash return value.
43932
43933         hash: reduce memory pressure in hash_rehash no-op case
43934         * lib/hash.c (next_prime): Avoid overflow.
43935         (hash_initialize): Factor bucket size computation...
43936         (compute_bucket_size): ...into new helper function.
43937         (hash_rehash): Use new function and open coding to reduce memory
43938         pressure, and avoid a memory leak in USE_OBSTACK code.
43939         Reported by Jim Meyering.
43940
43941 2009-06-18  Eric Blake  <ebb9@byu.net>
43942
43943         hash: make rotation more obvious
43944         * modules/hash (Depends-on): Add bitrotate and stdint.
43945         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43946         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43947         (SIZE_MAX): Rely on headers for definition.
43948         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43949         (raw_hasher): Use rotr_sz.
43950         Suggested by Jim Meyering.
43951
43952         hash: fix memory leak in last patch
43953         * lib/hash.c (hash_rehash): Avoid memory leak.
43954
43955         hash: avoid no-op rehashing
43956         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43957
43958         hash: provide default callback functions
43959         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43960         (hash_initialize): Use them as defaults.
43961         * tests/test-hash.c (main): Test this.
43962
43963         hash: minor optimization
43964         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43965         when possible.
43966         (hash_initialize): Document this promise.
43967         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43968         * tests/test-hash.c (hash_compare_strings): Test this.
43969
43970 2009-06-18  Bruno Haible  <bruno@clisp.org>
43971
43972         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43973         going to be replaced anyway.
43974
43975 2009-06-18  Bruno Haible  <bruno@clisp.org>
43976
43977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43978         in one place.
43979         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43980         be replaced anyway.
43981
43982 2009-06-18  Eric Blake  <ebb9@byu.net>
43983
43984         hash: check for resize before insertion
43985         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43986         threshold before insertion, so that a pathological hash_rehash
43987         that fills every bucket can still trigger another rehash.
43988
43989 2009-06-18  Jim Meyering  <meyering@redhat.com>
43990
43991         hash-tests: add a loop around the small tests
43992         * tests/test-hash.c (main): Repeat small tests with selected
43993         small initial table sizes.
43994
43995 2009-06-17  Eric Blake  <ebb9@byu.net>
43996
43997         hash: minor cleanups
43998         * lib/hash.h (hash_entry): Make opaque, by moving...
43999         * lib/hash.c (hash_entry): ...here.
44000         (hash_insert): Clarify restrictions on what can be inserted.
44001         (hash_get_next): Clarify when it is safe to remove an element
44002         during traversal.
44003         (check_tuning): Skip verification when tuning is known safe.
44004         (hash_initialize): Clarify restrictions on tuning.
44005
44006 2009-06-17  Jim Meyering  <jim@meyering.net>
44007         and Eric Blake  <ebb9@byu.net>
44008
44009         hash-tests: new module
44010         * modules/hash-tests: New file.
44011         * tests/test-hash.c: New file.
44012
44013 2009-06-17  Eric Blake  <ebb9@byu.net>
44014
44015         strstr-simple: document new module
44016         * MODULES.html.sh: Document new module.
44017
44018         strstr, strcasestr: replace on platforms with broken memchr
44019         * modules/strstr: Split into...
44020         * modules/strstr-simple: ...new module that does not care about
44021         performance, but does care about glibc bug.
44022         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44023         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44024         if platform memchr is broken, per Debian bug 521737.
44025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44026         memchr.
44027         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44028         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44029         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44030         * modules/mountlist (Depends-on): Add strstr-simple.
44031         * modules/gen-uni-tables (Depends-on): Likewise.
44032         * modules/argz (Depends-on): Add strstr.
44033
44034 2009-06-17  Bruno Haible  <bruno@clisp.org>
44035
44036         * modules/posix_spawn-internal (Depends-on): Add errno.
44037
44038 2009-06-17  Bruno Haible  <bruno@clisp.org>
44039
44040         Define missing ESTALE on Interix 3.5.
44041         * lib/errno.in.h (ESTALE): Assign a value if missing.
44042         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44043         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44044         missing.
44045         * doc/posix-headers/errno.texi: Mention the Interix bug.
44046         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44047
44048 2009-06-15  Eric Blake  <ebb9@byu.net>
44049
44050         memchr, memchr2: add valgrind exception
44051         * lib/memchr.valgrind: New file.
44052         * lib/memchr2.valgrind: New file.
44053         * modules/memchr (Files): Distribute valgrind file.
44054         * modules/memchr2 (Files): Likewise.
44055
44056         docs: memchr is no longer obsolete
44057         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44058         * lib/string.in.h (memchr): Simplify logic.
44059
44060 2009-06-14  Jim Meyering  <meyering@redhat.com>
44061
44062         link-follow: fix the "checking..." message to not mention trailing slash
44063         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44064         never considered trailing slashes.
44065
44066 2009-06-14  Bruno Haible  <bruno@clisp.org>
44067
44068         * m4/memchr.m4: Mention also the bug on IA-64.
44069         * doc/posix-functions/memchr.texi: Likewise.
44070
44071 2009-06-12  Eric Blake  <ebb9@byu.net>
44072
44073         memchr: detect broken x86_64 and alpha implementations
44074         * modules/memchr-tests (Depends-on): Move mmap detection...
44075         * modules/memchr (Depends-on): ...here.
44076         (configure.ac): Set indicator.
44077         * lib/string.in.h (memchr): Declare replacement.
44078         * modules/string (Makefile.am): Trigger replacement.
44079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44081         bugs.
44082         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44083         * modules/getpagesize (License): Relax license.
44084
44085 2009-06-11  Bruno Haible  <bruno@clisp.org>
44086
44087         * lib/idpriv.h: Add more references.
44088
44089 2009-06-08  Bruno Haible  <bruno@clisp.org>
44090
44091         Tests for module 'idpriv-droptemp'.
44092         * modules/idpriv-droptemp-tests: New file.
44093         * tests/test-idpriv-droptemp.sh: New file.
44094         * tests/test-idpriv-droptemp.su.sh: New file.
44095         * tests/test-idpriv-droptemp.c: New file.
44096
44097         New module 'idpriv-droptemp'.
44098         * lib/idpriv-droptemp.c: New file.
44099         * modules/idpriv-droptemp: New file.
44100
44101 2009-06-08  Bruno Haible  <bruno@clisp.org>
44102
44103         Tests for module 'idpriv-drop'.
44104         * modules/idpriv-drop-tests: New file.
44105         * tests/test-idpriv-drop.sh: New file.
44106         * tests/test-idpriv-drop.su.sh: New file.
44107         * tests/test-idpriv-drop.c: New file.
44108
44109         New module 'idpriv-drop'.
44110         * lib/idpriv.h: New file.
44111         * lib-idpriv-drop.c: New file.
44112         * m4/idpriv.m4: New file.
44113         * modules/idpriv-drop: New file.
44114
44115 2009-06-08  Bruno Haible  <bruno@clisp.org>
44116
44117         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44118         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44119         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44120         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44121         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44122         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44123         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44124
44125 2009-06-08  Eric Blake  <ebb9@byu.net>
44126
44127         test-strstr: use memory fence, when possible
44128         * tests/test-strstr.c (main): Use memory fence, in order to be
44129         more likely to trigger Debian bug 521737.
44130         * modules/strstr-tests (Files): Pull in additional files.
44131
44132         memchr: no longer obsolete, for wider field testing
44133         * modules/memchr (Status, Notice): Delete, this module is no
44134         longer obsolete.
44135         * modules/vasnprintf (Depends-on): Add memchr.
44136
44137 2009-06-07  Jim Meyering  <meyering@redhat.com>
44138
44139         hash: declare some functions with the warn_unused_result attribute
44140         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44141
44142 2009-06-07  Bruno Haible  <bruno@clisp.org>
44143
44144         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44145         Reported by Eric Blake.
44146
44147 2009-06-06  Eric Blake  <ebb9@byu.net>
44148
44149         test-alignof: fix typo with long double
44150         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44151         compiler error.
44152
44153 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44154
44155         Escape non-texinfo { and }s.
44156         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44157         markup error.
44158
44159 2009-06-04  Jim Meyering  <meyering@redhat.com>
44160
44161         gitlog-to-changelog: don't infloop on an empty commit log
44162         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44163         Reported by Boris Petersen <transacid@centerim.org>.
44164
44165 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44166
44167         version-etc: extend for packagers
44168         Add three new configure options, intended for packagers:
44169           --with-packager="packager name"
44170           --with-packager-version="packager-specific version"
44171           --with-packager-bug-reports="packager bug reporting"
44172         An example with coreutils:
44173           $ ./configure \
44174             --with-packager=Gentoo \
44175             --with-packager-bug-report=http://bugs.gentoo.org/ \
44176             --with-packager-version="patchset 1.6"
44177           $ ./src/ls --version | head -n2
44178           ls (GNU coreutils) 7.1-dirty
44179           Packaged by Gentoo (patchset 1.6)
44180         Note that the bug reporting info via --help doesn't show up because
44181         coreutils uses its own custom emit_bug_reporting_address() implementation
44182         in src/system.h.  If it didn't, it'd look like:
44183           $ ./src/ls --help | tail -n4
44184           Report bugs to <bug-coreutils@gnu.org>.
44185           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44186           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44187           General help using GNU software: <http://www.gnu.org/gethelp/>.
44188         * lib/version-etc.c: Print new information, if provided.
44189         * m4/version-etc.m4: New file.
44190         * modules/version-etc (Files): Add m4/version-etc.m4.
44191         (configure.ac): Add gl_VERSION_ETC.
44192
44193 2009-05-31  Bruno Haible  <bruno@clisp.org>
44194
44195         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44196         and 'int64_t'.
44197         * modules/alignof-tests (Dependencies): Add stdint.
44198         Reported by Eric Blake.
44199
44200 2009-05-31  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44203         restriction due to compiler bugs.
44204         Reported by Eric Blake.
44205
44206 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44207             Bruno Haible  <bruno@clisp.org>
44208
44209         Fix test-alignof failure.
44210         * lib/alignof.h (alignof_slot): New macro.
44211         (alignof_type): New macro, with the same semantics as the previous
44212         'alignof'.
44213         (alignof): Alias to alignof_slot.
44214         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44215         check that the results are usable as constant expressions.
44216
44217 2009-05-31  Bruno Haible  <bruno@clisp.org>
44218
44219         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44220         * tests/test-memchr.c (main): Check that memchr does not read past the
44221         first occurrence of the byte.
44222         * tests/test-strstr.c (main): Update comment.
44223         Suggested by Eric Blake.
44224
44225 2009-05-30  Bruno Haible  <bruno@clisp.org>
44226
44227         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44228         detail how to use dumpbin.
44229         Reported by David Byron <dbyron@dbyron.com>.
44230
44231 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44232
44233         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44234
44235 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44236
44237         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44238
44239 2009-05-28  Bruno Haible  <bruno@clisp.org>
44240
44241         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44242         build-aux/ files.
44243
44244 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44245
44246         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44247
44248 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44249
44250         * gnulib-tool (sed_transform_main_lib_file)
44251         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44252         regexps.
44253
44254 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44255
44256         * tests/test-strstr.c: Add another self-test.
44257         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44258         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44259
44260 2009-05-23  Bruno Haible  <bruno@clisp.org>
44261
44262         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44263         change.
44264
44265 2009-05-21  Bruno Haible  <bruno@clisp.org>
44266
44267         Simplify use of mode_t varargs.
44268         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44269         uses 'mode_t' or 'int'.
44270         * lib/openat.c (openat): Likewise.
44271         * lib/open-safer.c (open_safer): Likewise.
44272         * m4/mode_t.m4: New file.
44273         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44274         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44275         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44276         * modules/open (Files): Add m4/mode_t.m4.
44277         * modules/openat (Files): Likewise.
44278         * modules/fcntl-safer (Files): Likewise.
44279         Suggested by Eric Blake.
44280
44281 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44282
44283         * doc/glibc-functions/fallocate.texi: New file.
44284         * doc/gnulib.texi: Include it.
44285
44286 2009-05-21  Eric Blake  <ebb9@byu.net>
44287             Bruno Haible  <bruno@clisp.org>
44288
44289         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44290         invocations.
44291         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44292
44293 2009-05-21  Eric Blake  <ebb9@byu.net>
44294             Bruno Haible  <bruno@clisp.org>
44295
44296         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44297         include_next. Fix of 2008-11-20 commit.
44298         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44299         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44300         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44301         NEXT_MATH_H.
44302         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44303         instead of NEXT_MATH_H.
44304
44305 2009-05-21  Bruno Haible  <bruno@clisp.org>
44306
44307         Avoid redefinition warnings for SIZE_MAX.
44308         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44309         Reported by Simon Josefsson.
44310
44311 2009-05-21  Bruno Haible  <bruno@clisp.org>
44312
44313         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44314         AC_CACHE_VAL.
44315
44316 2009-05-20  Bruno Haible  <bruno@clisp.org>
44317
44318         Make zeroptr.h work on mingw.
44319         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44320         mprotect.
44321         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44322         * modules/memchr2-tests (configure.ac): Likewise.
44323         * modules/memcmp-tests (configure.ac): Likewise.
44324         * modules/memmem-tests (configure.ac): Likewise.
44325         * modules/memrchr-tests (configure.ac): Likewise.
44326         Reported by Simon Josefsson.
44327
44328 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44329
44330         * tests/test-glob.c: Include string.h for strcmp prototype.
44331
44332 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44333
44334         * modules/getdelim (Depends-on): Add explicit stdint, although it
44335         was implicitly already pulled in via realloc-posix.
44336         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44337
44338 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44339
44340         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44341         G. Christensen" <tgc@jupiterrise.com>.
44342         * m4/sys_socket_h.m4: Check for sa_family_t.
44343         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44344         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44345         * tests/test-sys_socket.c: Check that sa_family_t works.
44346
44347 2009-05-18  Eric Blake  <ebb9@byu.net>
44348
44349         maint.mk: allow gnulib_dir in VPATH build
44350         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44351
44352 2009-05-15  Jim Meyering  <meyering@redhat.com>
44353
44354         maint.mk: Give gnulib_dir a default definition.
44355         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44356         Thus, most packages no longer need to specify this variable in cfg.mk
44357
44358 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44359
44360         rename.m4: fix typos that would make non-mingw cross-configure fail
44361         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44362
44363 2009-05-13  Eric Blake  <ebb9@byu.net>
44364
44365         mmap-anon: avoid out-of-order autoconf expansion
44366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44367         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44368         * modules/memchr-tests (Depends-on): Add extensions.
44369         * modules/memchr2-tests (Depends-on): Add extensions.
44370         * modules/memcmp-tests (Depends-on): Add extensions.
44371         * modules/memmem-tests (Depends-on): Add extensions.
44372         * modules/memrchr-tests (Depends-on): Add extensions.
44373
44374 2009-05-13  Bruno Haible  <bruno@clisp.org>
44375
44376         Make some tests ISO C 99 compliant.
44377         * tests/zerosize-ptr.h: New file.
44378         * tests/test-memchr.c: Include zerosize-ptr.h.
44379         (main): Use a zero-size object pointer instead of NULL.
44380         * tests/test-memchr2.c: Include zerosize-ptr.h.
44381         (main): Use a zero-size object pointer instead of NULL.
44382         * tests/test-memcmp.c: Include zerosize-ptr.h.
44383         (main): Use a zero-size object pointer instead of NULL.
44384         * tests/test-memmem.c: Include zerosize-ptr.h.
44385         (main): Use a zero-size object pointer instead of NULL.
44386         * tests/test-memrchr.c: Include zerosize-ptr.h.
44387         (main): Use a zero-size object pointer instead of NULL.
44388         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44389         m4/mmap-anon.m4.
44390         (Depends-on): Add getpagesize.
44391         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44392         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44393         m4/mmap-anon.m4.
44394         (Depends-on): Add getpagesize.
44395         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44396         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44397         m4/mmap-anon.m4.
44398         (Depends-on): Add getpagesize.
44399         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44400         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44401         m4/mmap-anon.m4.
44402         (Depends-on): Add getpagesize.
44403         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44404         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44405         m4/mmap-anon.m4.
44406         (Depends-on): Add getpagesize.
44407         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44408
44409 2009-05-12  Bruno Haible  <bruno@clisp.org>
44410
44411         Tests for module 'alignof'.
44412         * modules/alignof-tests: New file.
44413         * tests/test-alignof.c: New file.
44414
44415 2009-05-12  Bruno Haible  <bruno@clisp.org>
44416
44417         Fix alignof macro.
44418         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44419         vendor compilers that are always correct.
44420
44421 2009-05-12  Bruno Haible  <bruno@clisp.org>
44422
44423         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44425         not whether its fully works.
44426
44427 2009-05-12  Bruno Haible  <bruno@clisp.org>
44428
44429         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44430
44431 2009-05-12  Jim Meyering  <meyering@redhat.com>
44432
44433         * top/maint.mk: Adjust backslash alignment.
44434
44435 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44436
44437         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44438
44439 2009-05-11  Eric Blake  <ebb9@byu.net>
44440
44441         argp: avoid undefined behavior
44442         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44443         macros.
44444
44445 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44446
44447         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44448         user.name to prevent git commit from complaining.
44449
44450 2009-05-10  Bruno Haible  <bruno@clisp.org>
44451
44452         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44453         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44454         it rewrites every file name only once.
44455         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44456
44457 2009-05-08  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44460         instead of 'max'.
44461
44462 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44463
44464         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44465         sockaddr_storage test.
44466
44467 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44468
44469         * modules/sys_socket (Makefile.am): Substitute
44470         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44471         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44472         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44473         * tests/test-sys_socket.c: Check sockaddr_storage.
44474
44475 2009-05-08  Bruno Haible  <bruno@clisp.org>
44476
44477         New module 'alignof'.
44478         * lib/alignof.h: New file.
44479         * modules/alignof: New file.
44480
44481 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44482             Bruno Haible  <bruno@clisp.org>
44483
44484         Fix test-file-has-acl on FreeBSD.
44485         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44486         mask is implicitly added.
44487         * tests/test-file-has-acl.c: Include <signal.h>.
44488         (main): Terminate the test after 5 seconds.
44489         * modules/acl-tests (configure.ac): Check for alarm function.
44490
44491 2009-05-04  Bruno Haible  <bruno@clisp.org>
44492
44493         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44494         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44495         * modules/errno (configure.ac): Drop AC_REQUIRE.
44496         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44497         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44498
44499 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44500
44501         * modules/glob-tests: New module.
44502         * tests/test-glob.c: Add.
44503
44504 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44505
44506         * modules/fnmatch-tests: New module.
44507         * tests/test-fnmatch.c: Add.
44508
44509 2009-05-04  Eric Blake  <ebb9@byu.net>
44510
44511         maint: make the new no-submodule-changes rule VPATH-safe
44512         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44513
44514 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44515             Bruno Haible  <bruno@clisp.org>
44516
44517         acl: Fix infinite loop on FreeBSD.
44518         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44519         of return value from acl_get_entry.
44520         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44521         Likewise.
44522
44523 2009-05-03  Bruno Haible  <bruno@clisp.org>
44524
44525         * lib/acl-internal.h (acl_entries): Clarify return value.
44526         * lib/acl_entries.c (acl_entries): Likewise.
44527
44528 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44529
44530         Bug fix in acl module.
44531         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44532
44533 2009-05-03  Bruno Haible  <bruno@clisp.org>
44534
44535         Create gperf-generated file in the source dir, not in the build dir.
44536         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44537         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44538         * modules/unicase/locale-language (unicase/locale-languages.h):
44539         Likewise.
44540         * modules/unicase/special-casing (unicase/special-casing-table.h):
44541         Likewise.
44542         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44543         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44544         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44545         Reported by Ralf Wildenhues.
44546
44547 2009-05-03  Bruno Haible  <bruno@clisp.org>
44548
44549         * modules/fnmatch (Description, configure.ac): Taken from
44550         fnmatch-posix.
44551         * modules/fnmatch-posix: Turn into a symbolic reference to the
44552         'fnmatch' module, and deprecate.
44553         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44554
44555 2009-05-03  Bruno Haible  <bruno@clisp.org>
44556
44557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44558         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44559         Reported by Ralf Wildenhues.
44560
44561 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44562
44563         * m4/fnmatch.m4: Fix fnmatch re-define.
44564
44565 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44566
44567         priv-set: new module and tests; adapt write-any-file
44568         * lib/priv-set.c: New file.
44569         * lib/priv-set.h: New file.
44570         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44571         * lib/write-any-file.c: Simplify by using priv-set module.
44572         * m4/priv-set.m4: New file.
44573         * modules/priv-set: New file.
44574         * modules/unlinkdir: Add dependency on priv-set module.
44575         * modules/write-any-file: Likewise.
44576
44577         Tests for module 'priv-set'.
44578         * modules/priv-set-tests: New file.
44579         * tests/test-priv-set.c: New file.
44580
44581 2009-05-03  Jim Meyering  <meyering@redhat.com>
44582             Bruno Haible  <bruno@clisp.org>
44583
44584         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44585         use the converted UTF-8 variant of the name instead.
44586
44587 2009-05-03  Jim Meyering  <meyering@redhat.com>
44588
44589         tests: tighten some getdate tests
44590         * tests/test-getdate.c (main): Tighten tests: require equality,
44591         not just greater than.  Set TZ envvar to UTC0.
44592
44593 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44594
44595         getdate: correctly interpret "next monday" when run on a Monday
44596         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44597         that e.g., "next tues" (when run on a tuesday) results in a date
44598         that is one week in the future, and not today's date.
44599         I.e., add a week when the wday is the same as the current one.
44600         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44601         and earlier by Martin Bernreuther and Jan Minář.
44602         * tests/test-getdate.c (main): Check that "next DAY" is always in
44603         the future and that "last DAY" is always in the past.
44604
44605 2009-05-02  Jim Meyering  <meyering@redhat.com>
44606
44607         build: ensure that a release build fails when a submodule is unclean
44608         * top/maint.mk (no-submodule-changes): New rule.
44609         (alpha beta major): Depend on it.
44610
44611 2009-05-02  Bruno Haible  <bruno@clisp.org>
44612
44613         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44614         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44615         shell variable gl_fnmatch_required to detect which variant is
44616         requested.
44617         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44618         gl_FUNC_FNMATCH_POSIX.
44619         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44620         exclude fnmatch-posix.
44621
44622 2009-05-02  Bruno Haible  <bruno@clisp.org>
44623
44624         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44625         * modules/mbsrtowcs (License): Change to LGPLv2+.
44626         * modules/strnlen1 (License): Likewise.
44627         Reported by Simon Josefsson.
44628
44629 2009-05-02  Bruno Haible  <bruno@clisp.org>
44630
44631         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44632         "cross".
44633         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44634         gnulib-tool was called with option --source-base=lib.
44635
44636 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44637
44638         Use automake *-local hooks without commands, for extensibility.
44639         * modules/localcharset (Makefile.am): Rename install-exec-local
44640         rule to install-exec-localcharset, and make it a prerequisite of
44641         install-exec-local.  Likewise, rename the uninstall-local rule to
44642         uninstall-localcharset, and make it a prerequisite of the former.
44643
44644 2009-05-01  Bruno Haible  <bruno@clisp.org>
44645
44646         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44647         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44648         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44650         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44651         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44652         m4/locale-zh.m4, m4/codeset.m4.
44653
44654         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44655         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44656         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44657         m4/locale-zh.m4.
44658
44659         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44660         REPLACE_WCRTOMB if mbstate_t must be replaced.
44661         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44662         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44663
44664 2009-05-01  Bruno Haible  <bruno@clisp.org>
44665
44666         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44667         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44668         dngettext, dcngettext, textdomain, bindtextdomain,
44669         bind_textdomain_codeset): Undefine before redefining.
44670
44671 2009-04-30  Bruno Haible  <bruno@clisp.org>
44672
44673         Fix bug introduced on 2009-04-25.
44674         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44675         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44676         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44677         is defined.
44678         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44679         is defined.
44680         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44681         is defined.
44682         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44683
44684 2009-04-28  Bruno Haible  <bruno@clisp.org>
44685
44686         Comment tweaks.
44687         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44688         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44689         * lib/unicase.h (u*_casexfrm): Likewise.
44690         Reported by Paolo Bonzini.
44691
44692 2009-04-28  Bruno Haible  <bruno@clisp.org>
44693
44694         Fix a compilation error.
44695         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44696         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44697         Reported by Jim Meyering.
44698
44699 2009-04-27  Bruno Haible  <bruno@clisp.org>
44700
44701         New module 'libunistring'.
44702         * modules/libunistring: New file.
44703         * m4/libunistring.m4: New file.
44704         * MODULES.html.sh (Unicode string functions): Add it.
44705
44706 2009-04-27  Eric Blake  <ebb9@byu.net>
44707
44708         maint.mk: allow package-specific header to provide <config.h>
44709         * top/maint.mk (sc_require_config_h): New variable.
44710         (sc_require_config_h, sc_require_config_h_first): Use it.
44711
44712 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44713
44714         * top/maint.mk (sc_avoid_if_before_free): Except
44715         useless-if-before-free script.
44716
44717 2009-04-27  Eric Blake  <ebb9@byu.net>
44718
44719         maintainer-makefile: depend on all required helper scripts
44720         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44721         useless-if-before-free.
44722         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44723         version, rather than assuming gnulib checkout is available.
44724         Reported by Simen Josefsson.
44725
44726 2009-04-26  Bruno Haible  <bruno@clisp.org>
44727
44728         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44729         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44730         "../" or "..".
44731
44732 2009-04-26  Bruno Haible  <bruno@clisp.org>
44733
44734         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44735         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44736         AC_LIB_HAVE_LINKFLAGS.
44737
44738 2009-04-26  Bruno Haible  <bruno@clisp.org>
44739
44740         Simplify calling convention of u*_conv_from_encoding.
44741         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44742         u32_conv_from_encoding): Expect a resultbuf argument and return the
44743         result directly as a pointer.
44744         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44745         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44746         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44747         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44748         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44749         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44750         Update.
44751         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44752         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44753         * lib/vasnprintf.c (VASNPRINTF): Update.
44754         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44755         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44756         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44757         * NEWS: Mention the change.
44758
44759 2009-04-26  Bruno Haible  <bruno@clisp.org>
44760
44761         Simplify calling convention of u*_conv_to_encoding.
44762         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44763         u32_conv_to_encoding): Expect a resultbuf argument and return the
44764         result directly as a pointer.
44765         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44766         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44767         freeing scaled_offsets if mem_iconveha failed.
44768         * lib/unicase/u-casexfrm.h (FUNC): Update.
44769         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44770         * lib/vasnprintf.c (VASNPRINTF): Update.
44771         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44772         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44773         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44774         * NEWS: Mention the change.
44775
44776 2009-04-26  Bruno Haible  <bruno@clisp.org>
44777
44778         Avoid test failures on AIX and OSF/1.
44779         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44780         malloc(0).
44781         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44782         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44783         Likewise.
44784         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44785         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44786         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44787         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44788         * doc/posix-functions/malloc.texi: Document the portability problem
44789         related to malloc(0).
44790
44791 2009-04-26  Bruno Haible  <bruno@clisp.org>
44792
44793         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44794         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44795         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44796
44797 2009-04-25  Bruno Haible  <bruno@clisp.org>
44798
44799         Avoid link error when creating a namespace clean library.
44800         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44801         as macro with arguments if already defined as an alias.
44802         * lib/signbitf.c (gl_signbitf): Don't undefine.
44803         * lib/signbitd.c (gl_signbitd): Don't undefine.
44804         * lib/signbitl.c (gl_signbitl): Don't undefine.
44805
44806 2009-04-25  Jim Meyering  <meyering@redhat.com>
44807
44808         vc-list-files: fix another quoting bug
44809         * build-aux/vc-list-files: Avoid sed backslash expansion
44810         of pathological directory names.
44811
44812 2009-04-25  Eric Blake  <ebb9@byu.net>
44813
44814         vc-list-files: fix shell quoting error
44815         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44816         timestamp.
44817
44818 2009-04-25  Jim Meyering  <meyering@redhat.com>
44819
44820         vc-list-files: restore lost functionality with subdir argument
44821         * build-aux/vc-list-files: When given a non-"." sub-directory
44822         argument, substitute the $dir/ prefix back onto each resulting name.
44823         Otherwise, coreutils' root_tests check would fail.
44824
44825 2009-04-24  Eric Blake  <ebb9@byu.net>
44826
44827         vc-list-files: ignore git symlinks
44828         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44829         than ls-files, to ignore git symlinks.
44830
44831         maint.mk: import improvements from m4
44832         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44833         (move_if_change): Delete unused macro.
44834         (news-date-check, vc-diff-check): Support VPATH builds.
44835         (announcement): Likewise.  Split --bootstrap-tools list...
44836         (boostrap-tools): ...into separate list, which can be overridden
44837         in cfg.mk.
44838         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44839         requiring dependency on useless-if-before-free module.
44840         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44841         Support VPATH builds.
44842
44843 2009-04-24  Jim Meyering  <meyering@redhat.com>
44844
44845         maint.mk: remove coreutils-specific rules and variables
44846         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44847         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44848         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44849
44850         maint.mk: remove obsolete rule
44851         * top/maint.mk (rel-check): Remove rule.
44852         (WGET, WGETFLAGS): Remove now-unused variables.
44853
44854 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44855
44856         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44857         consistency.
44858
44859         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44860         '$(PATH_SEPARATOR)' instead of ':'.
44861
44862 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44863
44864         * lib/getopt1.c (main): Use 'const' for static array.
44865
44866 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44867
44868         * top/maint.mk: Sync with coreutils.
44869         * NEWS: Explain incompatibilities.
44870
44871 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44872             Bruno Haible  <bruno@clisp.org>
44873
44874         Fix cross-compilation results.
44875         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44876         statement, as third argument of AC_TRY_RUN.
44877         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44878         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44879         Likewise.
44880         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44881         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44882         Likewise.
44883         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44884         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44885         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44886
44887 2009-04-20  Bruno Haible  <bruno@clisp.org>
44888
44889         Avoid test failure on mingw.
44890         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44891
44892 2009-04-20  Bruno Haible  <bruno@clisp.org>
44893
44894         Avoid compilation error on mingw.
44895         * modules/localename-tests (Depends-on): Add locale.
44896
44897 2009-04-19  Bruno Haible  <bruno@clisp.org>
44898
44899         Support for building a shared library on Windows platforms.
44900         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44901         (main): Test the presence of UNINORM_NFC here.
44902         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44903         (main): Test the presence of UNINORM_NFD here.
44904         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44905         (main): Test the presence of UNINORM_NFKC here.
44906         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44907         (main): Test the presence of UNINORM_NFKD here.
44908
44909 2009-04-19  Bruno Haible  <bruno@clisp.org>
44910
44911         Avoid a compiler warning.
44912         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44913         Change type of variable 'sequence'.
44914
44915 2009-04-19  Bruno Haible  <bruno@clisp.org>
44916
44917         * modules/configmake (Makefile.am): When the contents of configmake.h
44918         does not change, arrange to preserve its modification time.
44919
44920 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44921
44922         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44923         gettext domain.
44924
44925 2009-04-16  Jim Meyering  <meyering@redhat.com>
44926
44927         useless-if-before-free: improve conversion code
44928         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44929         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44930
44931 2009-04-14  Bruno Haible  <bruno@clisp.org>
44932
44933         * modules/fcntl (Depends-on): Add extensions.
44934         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44935
44936 2009-04-12  Ben Pfaff  <blp@gnu.org>
44937
44938         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44939         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44940
44941 2009-03-20  Ben Pfaff  <blp@gnu.org>
44942
44943         Make rename replace existing destinations on Windows.
44944         * m4/rename.m4: Add test for Mingw.
44945         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44946         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44947         * doc/posix-functions/rename.texi: Document.
44948
44949 2009-04-10  Bruno Haible  <bruno@clisp.org>
44950
44951         New include file "iconveh.h".
44952         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44953         * lib/striconveh.h: Include it.
44954         (enum iconv_ilseq_handler): Remove definition.
44955         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44956         striconveh.h.
44957         * lib/striconveha.c: Include striconveh.h.
44958         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44959         * modules/striconveh (Files): Add lib/iconveh.h.
44960         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44961         lib/striconveh.h.
44962
44963 2009-04-10  Bruno Haible  <bruno@clisp.org>
44964
44965         * lib/uniconv.h: Update comment.
44966
44967 2009-04-10  Bruno Haible  <bruno@clisp.org>
44968
44969         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44970         always.
44971         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44972         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44973         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44974         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44975         "unistring-notinline.h", so that the function gets defined always.
44976         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44977         * lib/unistr/u8-uctomb.c: Likewise.
44978         * lib/unistr/u16-mbtouc.c: Likewise.
44979         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44980         * lib/unistr/u16-uctomb.c: Likewise.
44981         * lib/unistr/u32-mbtouc.c: Likewise.
44982         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44983         * lib/unistr/u32-uctomb.c: Likewise.
44984
44985 2009-04-10  Bruno Haible  <bruno@clisp.org>
44986
44987         Mark 'utime' obsolete.
44988         * modules/utime (Status, Notice): New sections.
44989         Suggested by Jim Meyering.
44990
44991         Fix cross-compile guess for utime test.
44992         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44993         autoconf.
44994         * doc/posix-functions/utime.texi: Give more precisions.
44995         Reported by Jan <ipif@ymail.com>.
44996
44997 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44998
44999         filevercmp: correct today's change
45000         * lib/filevercmp.c: Also handle coreutils' test inputs.
45001         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45002
45003         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45004         for reporting it.
45005         * lib/filevercmp.c: Special handle for "", "." and "..".
45006         * tests/test-filevercmp.c: Enlarge the set suite.
45007
45008 2009-04-07  Jim Meyering  <meyering@redhat.com>
45009
45010         useless-if-before-free: show how to remove braced useless free, too
45011         * build-aux/useless-if-before-free: still only in a comment, though.
45012
45013 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45014
45015         maint.mk: import changes to syntax-check macros from coreutils
45016         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45017         Use them in the relevant macros.
45018
45019 2009-04-06  Bruno Haible  <bruno@clisp.org>
45020
45021         Fix unportable use of bit-fields.
45022         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45023         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45024         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45025
45026 2009-04-06  Bruno Haible  <bruno@clisp.org>
45027
45028         Avoid test failures on AIX and OSF/1.
45029         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45030         that malloc(0) = NULL.
45031         * tests/unicase/test-u8-tolower.c (check): Likewise.
45032         * tests/unicase/test-u8-totitle.c (check): Likewise.
45033         * tests/unicase/test-u8-toupper.c (check): Likewise.
45034         * tests/unicase/test-u16-casefold.c (check): Likewise.
45035         * tests/unicase/test-u16-tolower.c (check): Likewise.
45036         * tests/unicase/test-u16-totitle.c (check): Likewise.
45037         * tests/unicase/test-u16-toupper.c (check): Likewise.
45038         * tests/unicase/test-u32-casefold.c (check): Likewise.
45039         * tests/unicase/test-u32-tolower.c (check): Likewise.
45040         * tests/unicase/test-u32-totitle.c (check): Likewise.
45041         * tests/unicase/test-u32-toupper.c (check): Likewise.
45042         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45043         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45044         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45045         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45046         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45047         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45048         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45049         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45050         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45051         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45052         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45053         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45054
45055 2009-04-05  Bruno Haible  <bruno@clisp.org>
45056
45057         Work around an autoconf limitation.
45058         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45059         comment line if it would be longer than 3 KB.
45060
45061 2009-04-05  Bruno Haible  <bruno@clisp.org>
45062
45063         Avoid test failure with libiconv-1.13.
45064         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45065         of the expected test results.
45066
45067 2009-04-05  Bruno Haible  <bruno@clisp.org>
45068
45069         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45070         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45071         that it should be installed.
45072
45073 2009-04-05  Bruno Haible  <bruno@clisp.org>
45074
45075         * gnulib-tool: New option --copy-file.
45076         (func_usage): Document it.
45077         (func_dest_tmpfilename): Moved out of func_import.
45078         (func_add_file, func_update_file): New functions, extracted from
45079         func_import.
45080         (func_import): Update.
45081
45082 2009-04-05  Karl Berry  <karl@gnu.org>
45083
45084         * README: prominently mention gnulib-tool.
45085         Rearrange sections so getting the code is near the top.
45086
45087 2009-04-05  Bruno Haible  <bruno@clisp.org>
45088
45089         * lib/unicase.h: Mention u*_cmp2.
45090         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45091         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45092         * lib/unicase/ulc-casecmp.c: Likewise.
45093         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45094         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45095         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45096         unistr/u8-cmp.
45097         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45098         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45099         unistr/u16-cmp.
45100         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45101         unistr/u32-cmp.
45102
45103         * lib/uninorm.h: Mention u*_cmp2.
45104         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45105         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45106         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45107         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45108         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45109         unistr/u8-cmp.
45110         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45111         unistr/u16-cmp.
45112         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45113         unistr/u32-cmp.
45114
45115         New module 'unistr/u32-cmp2'.
45116         * lib/unistr/u32-cmp2.c: New file.
45117         * modules/unistr/u32-cmp2: New file.
45118
45119         New module 'unistr/u16-cmp2'.
45120         * lib/unistr/u16-cmp2.c: New file.
45121         * modules/unistr/u16-cmp2: New file.
45122
45123         New module 'unistr/u8-cmp2'.
45124         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45125         * lib/unistr/u8-cmp2.c: New file.
45126         * lib/unistr/u-cmp2.h: New file.
45127         * modules/unistr/u8-cmp2: New file.
45128
45129 2009-04-05  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/unictype.h (uc_property_is_valid): New macro.
45132         * tests/unictype/test-pr_byname.c (main): Use it.
45133
45134         * lib/unistr.h: Doc fixes.
45135         * lib/uniconv.h: Doc fixes.
45136         * lib/unictype.h: Doc fixes.
45137
45138 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45139
45140         Port coreutils 7.2 to Solaris 8.
45141
45142         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45143         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45144         for Solaris 8.  This is a bit of a hack, as it means it's the
45145         caller's responsibility to add -lnsl if needed, but most likely it
45146         won't be needed since only getaddrinfo uses this and getaddrinfo
45147         isn't needed on Solaris 8.
45148
45149         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45150         problem to Solaris 8 encountered with coreutils 7.2, which
45151         resulted in a message "fnmatch.c:292: warning: passing argument 4
45152         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45153         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45154
45155 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45156
45157         * m4/ld-version-script.m4: Add FIXME comment.
45158
45159 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45160
45161         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45162         SOVERSION variable.
45163
45164 2009-04-02  Bruno Haible  <bruno@clisp.org>
45165
45166         * Makefile (info, html, dvi, pdf): Combine the rules.
45167         Suggested by Jim Meyering.
45168
45169 2009-04-01  Bruno Haible  <bruno@clisp.org>
45170
45171         * Makefile (info, html, dvi, pdf): New targets.
45172         Reported by Reuben Thomas <rrt@sc3d.org>.
45173
45174 2009-04-01  Bruno Haible  <bruno@clisp.org>
45175
45176         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45177         can be put into PATH.
45178         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45179
45180 2009-04-01  Bruno Haible  <bruno@clisp.org>
45181
45182         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45183
45184 2009-04-01  Bruno Haible  <bruno@clisp.org>
45185
45186         Rename module 'visibility'.
45187         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45188         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45189         * doc/gnulib.texi: Update.
45190         * MODULES.html.sh (Misc): Update.
45191         * NEWS: Mention the change.
45192
45193 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45194
45195         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45196         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45197         Eric Blake <ebb9@byu.net> for review.
45198         * MODULES.html.sh: Add lib-msvc-compat.
45199         * doc/gnulib.texi: Link to new section.
45200         * m4/ld-output-def.m4: New file.
45201         * doc/ld-output-def.texi: New file.
45202
45203 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45204
45205         Rename ld-version-script to lib-symbol-versions.  Suggested by
45206         Bruno Haible <bruno@clisp.org>.
45207         * modules/ld-version-script: Renamed to lib-symbol-versions.
45208         * doc/ld-version-script.texi: Fix module name.
45209         * MODULES.html.sh: Add lib-symbol-versions.
45210
45211 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45212
45213         * modules/u64-tests: New file.
45214         * tests/test-u64.c: New file.
45215
45216 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45217
45218         * MODULES.html.sh: Mention u64.
45219         * modules/u64: New module.
45220         * modules/crypto/sha512: Depend on u64 module instead of providing
45221         u64.h.
45222
45223 2009-03-27  Eric Blake  <ebb9@byu.net>
45224
45225         test-strerror: make debugging EAI_SYSTEM easier
45226         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45227         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45228         failure was EAI_SYSTEM.
45229
45230 2009-03-25  Bruno Haible  <bruno@clisp.org>
45231
45232         Fix a problem with --enable-relocatable on Solaris 7.
45233         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45234         since 2008-02-24.
45235
45236 2009-03-25  Eric Blake  <ebb9@byu.net>
45237
45238         test-sockets: avoid gcc warning
45239         * tests/test-sockets.c (main): Silence compiler warning.
45240
45241 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45242
45243         New modules nproc, pthread, contributed by Glen Lenker.
45244
45245         * MODULES.html.sh: Add pthread, nproc.
45246         * lib/nproc.c: New file.
45247         * lib/nproc.h: New file.
45248         * lib/pthread.in.h: New file.
45249         * m4/pthread.m4: New file.
45250         * modules/nproc: New file.
45251         * modules/pthread: New file.
45252
45253 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45254
45255         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45256         New variable.
45257
45258 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45259
45260         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45261         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45262         * tests/test-filevercmp.c: Add tests for backup suffixes.
45263
45264 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45265
45266         * modules/stdlib (Depends-on): Add stdint, needed when defining
45267         struct random_data on, for example, HP-UX 10.20.  Reported by
45268         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45269
45270 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45271
45272         * lib/readline.c (readline): Call fflush on stdout after printing
45273         prompt.
45274
45275 2009-03-20  Bruno Haible  <bruno@clisp.org>
45276
45277         Remove dependency from 'close' module to -lws2_32 on native Windows.
45278         * lib/close-hook.h: New file.
45279         * lib/close-hook.c: New file.
45280         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45281         w32sock.h.
45282         (_gl_close_fd_maybe_socket): Remove function.
45283         (rpl_close): Invoke execute_all_close_hooks instead of
45284         _gl_close_fd_maybe_socket.
45285         * lib/sockets.c: Include close-hook.h, w32sock.h.
45286         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45287         (close_sockets_hook): New variable.
45288         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45289         (gl_sockets_cleanup): Unregister it.
45290         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45291         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45292         * modules/close-hook: New file.
45293         * modules/close (Files): Remove lib/w32sock.h.
45294         (Depends-on): Add close-hook.
45295         (Link): Remove section.
45296         * modules/sockets (Files): Add lib/w32sock.h.
45297         (Depends-on): Add close-hook.
45298         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45299         invocation.
45300         * NEWS: Mention that LIB_CLOSE is gone.
45301
45302 2009-03-23  Eric Blake  <ebb9@byu.net>
45303
45304         signal-tests: test previous patch
45305         * tests/test-signal.c: New file.
45306         * modules/signal-tests: Likewise.
45307
45308         signal.h: always support 'volatile sig_atomic_t'
45309         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45310         (gl_SIGNAL_H_DEFAULTS): Add a default.
45311         * modules/signal (Makefile.am): Substitute if needed.
45312         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45313         users can blindly add volatile.
45314         * doc/posix-headers/signal.texi (signal.h): Document it.
45315         Reported by Matthew Woehlke.
45316
45317 2009-03-23  Jim Meyering  <meyering@redhat.com>
45318
45319         pathmax: PATH_MAX: use pathconf only when available
45320         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45321         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45322         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45323         This avoids a link failure in a PSP cross-compilation environment
45324         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45325
45326         * lib/vasnprintf.c (divide): Fix typo in comment.
45327
45328 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45329
45330         * gnulib-tool (func_filter_filelist): Fix comment.
45331
45332 2009-03-20  Bruno Haible  <bruno@clisp.org>
45333
45334         Make sockets.h self-contained.
45335         * lib/sockets.c: Include sockets.h first.
45336         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45337
45338 2009-03-19  Eric Blake  <ebb9@byu.net>
45339
45340         doc: mention more functions added in cygwin 1.7.0
45341         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45342         addition.
45343         * doc/posix-functions/log2f.texi: Likewise.
45344
45345 2009-03-19  Jim Meyering  <meyering@redhat.com>
45346
45347         fsusage: avoid syntax error due to statement-before-declaration
45348         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45349         after all declarations.  Reported by Matthew Woehlke in
45350         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45351
45352 2009-03-18  Eric Blake  <ebb9@byu.net>
45353
45354         build-aux/compile: sync from automake
45355         * build-aux/compile: New file, from automake.
45356         * config/srclist.txt: Mention build-aux/compile.
45357
45358 2009-03-17  Bruno Haible  <bruno@clisp.org>
45359
45360         * lib/git-merge-changelog.c: Fix typo in comment.
45361         Reported by Reuben Thomas <rrt@sc3d.org>.
45362
45363 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45364
45365         * m4/regex.m4: update and improve help for
45366         --without-included-regex.
45367
45368 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45369
45370         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45371         failure on missing include files.
45372
45373 2009-03-17  Eric Blake  <ebb9@byu.net>
45374
45375         doc: mention more functions added in cygwin 1.7.0
45376         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45377         addition.
45378         * doc/posix-functions/fwscanf.texi: Likewise.
45379         * doc/posix-functions/swprintf.texi: Likewise.
45380         * doc/posix-functions/swscanf.texi: Likewise.
45381         * doc/posix-functions/vfwprintf.texi: Likewise.
45382         * doc/posix-functions/vfwscanf.texi: Likewise.
45383         * doc/posix-functions/vswprintf.texi: Likewise.
45384         * doc/posix-functions/vswscanf.texi: Likewise.
45385         * doc/posix-functions/vwprintf.texi: Likewise.
45386         * doc/posix-functions/vwscanf.texi: Likewise.
45387         * doc/posix-functions/wcscasecmp.texi: Likewise.
45388         * doc/posix-functions/wcsdup.texi: Likewise.
45389         * doc/posix-functions/wcsftime.texi: Likewise.
45390         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45391         * doc/posix-functions/wprintf.texi: Likewise.
45392         * doc/posix-functions/wscanf.texi: Likewise.
45393         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45394
45395 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45396
45397         maint.mk: really add $(AM_MAKEFLAGS)
45398         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45399         was inadvertently omitted in the last commit.
45400         Spotted by Bruno Haible.
45401
45402         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45403         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45404         $(AM_MAKEFLAGS)' rather than plain `make'.
45405
45406         gnulib-tool: execute $MAKE not make
45407         * gnulib-tool: Default $MAKE to 'make'.
45408         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45409         than make.  Initialize $MAKE in the do-autobuild script.
45410
45411         gnulib-tool: use $MAKE not make in generated files
45412         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45413         make, in generated files.  Initialize $MAKE in the do-autobuild
45414         script.
45415
45416         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45417
45418         GNUmakefile: disable parallelism only for multiple, recursive targets
45419         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45420         additions in the Makefile.
45421         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45422         by Automake.
45423         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45424         are listed on the command line and at least one of them is
45425         listed in $(ALL_RECURSIVE_TARGETS).
45426
45427 2009-03-14  Bruno Haible  <bruno@clisp.org>
45428
45429         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45430         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45431         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45432         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45433         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45434         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45435         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45436         unistr/u8-uctomb.
45437         * modules/unistr/u8-strchr (Depends-on): Likewise.
45438         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45439         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45440         unistr/u16-uctomb.
45441         * modules/unistr/u16-strchr (Depends-on): Likewise.
45442         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45443
45444 2009-03-12  Bruno Haible  <bruno@clisp.org>
45445
45446         Work around select() bug on Interix 3.5.
45447         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45448         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45449         * m4/select.m4: New file.
45450         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45451         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45452         * modules/select (Files): Add m4/select.m4.
45453         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45454         * modules/nanosleep (Depends-on): Add select.
45455         * modules/poll (Depends-on): Likewise.
45456         * doc/posix-functions/select.texi: Mention the Interix bug.
45457         Reported by Markus Duft <mduft@gentoo.org>.
45458
45459         * lib/select.c: Renamed from lib/winsock-select.c.
45460         * modules/select (Files): Add lib/select.c, remove
45461         lib/winsock-select.c.
45462         (configure.ac): Update.
45463
45464 2009-03-12  Jim Meyering  <meyering@redhat.com>
45465
45466         avoid gcc warnings about unused macro definitions
45467         * lib/readtokens.c (STREQ): Remove unused definition.
45468         * lib/xmalloc.c (SIZE_MAX): Likewise.
45469         * lib/openat-die.c (N_): Likewise.
45470         * lib/mountlist.c (SIZE_MAX): Remove definition.
45471         Instead, include <stdint.h>.
45472         * lib/readutmp.c: Likewise.
45473         * modules/readutmp (Depends-on): Add stdint.
45474         * modules/mountlist (Depends-on): Add stdint.
45475         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45476
45477 2009-03-10  Bruno Haible  <bruno@clisp.org>
45478
45479         Tests for module 'mbmemcasecoll'.
45480         * modules/mbmemcasecoll-tests: New file.
45481         * tests/test-mbmemcasecoll1.sh: New file.
45482         * tests/test-mbmemcasecoll2.sh: New file.
45483         * tests/test-mbmemcasecoll3.sh: New file.
45484         * tests/test-mbmemcasecoll.c: New file.
45485
45486         New module 'mbmemcasecoll'.
45487         * lib/mbmemcasecoll.h: New file.
45488         * lib/mbmemcasecoll.c: New file.
45489         * modules/mbmemcasecoll: New file.
45490
45491         * tests/test-mbmemcasecmp.h: New file, extracted from
45492         tests/test-mbmemcasecmp.c.
45493         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45494         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45495         (main): Update.
45496         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45497
45498 2009-03-09  Bruno Haible  <bruno@clisp.org>
45499
45500         Tests for module 'mbmemcasecmp'.
45501         * modules/mbmemcasecmp-tests: New file.
45502         * tests/test-mbmemcasecmp1.sh: New file.
45503         * tests/test-mbmemcasecmp2.sh: New file.
45504         * tests/test-mbmemcasecmp3.sh: New file.
45505         * tests/test-mbmemcasecmp.c: New file.
45506
45507         New module 'mbmemcasecmp'.
45508         * lib/mbmemcasecmp.h: New file.
45509         * lib/mbmemcasecmp.c: New file.
45510         * modules/mbmemcasecmp: New file.
45511
45512 2009-03-09  Bruno Haible  <bruno@clisp.org>
45513
45514         Tests for module 'unicase/ulc-casecoll'.
45515         * modules/unicase/ulc-casecoll-tests: New file.
45516         * tests/unicase/test-ulc-casecoll1.sh: New file.
45517         * tests/unicase/test-ulc-casecoll2.sh: New file.
45518         * tests/unicase/test-ulc-casecoll.c: New file.
45519
45520         New module 'unicase/ulc-casecoll'.
45521         * lib/unicase.h (ulc_casecoll): New declaration.
45522         * lib/unicase/ulc-casecoll.c: New file.
45523         * modules/unicase/ulc-casecoll: New file.
45524
45525         New module 'unicase/ulc-casexfrm'.
45526         * lib/unicase.h (ulc_casexfrm): New declaration.
45527         * lib/unicase/ulc-casexfrm.c: New file.
45528         * modules/unicase/ulc-casexfrm: New file.
45529
45530 2009-03-09  Bruno Haible  <bruno@clisp.org>
45531
45532         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45533         invocations.
45534
45535         * m4/mbscasecmp.m4: Remove file.
45536         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45537         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45538
45539         * m4/mbscasestr.m4: Remove file.
45540         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45541         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45542
45543         * m4/mbschr.m4: Remove file.
45544         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45545         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45546
45547         * m4/mbscspn.m4: Remove file.
45548         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45549         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45550
45551         * m4/mbslen.m4: Remove file.
45552         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45553         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45554
45555         * m4/mbsncasecmp.m4: Remove file.
45556         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45557         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45558
45559         * m4/mbsnlen.m4: Remove file.
45560         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45561         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45562
45563         * m4/mbspbrk.m4: Remove file.
45564         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45565         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45566
45567         * m4/mbspcasecmp.m4: Remove file.
45568         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45569         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45570
45571         * m4/mbsrchr.m4: Remove file.
45572         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45573         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45574
45575         * m4/mbssep.m4: Remove file.
45576         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45577         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45578
45579         * m4/mbsspn.m4: Remove file.
45580         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45581         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45582
45583         * m4/mbsstr.m4: Remove file.
45584         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45585         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45586
45587         * m4/mbstok_r.m4: Remove file.
45588         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45589         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45590
45591         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45592
45593         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45594         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45595
45596         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45597
45598 2009-03-08  Bruno Haible  <bruno@clisp.org>
45599
45600         Tests for module 'unicase/ulc-casecmp'.
45601         * modules/unicase/ulc-casecmp-tests: New file.
45602         * tests/unicase/test-ulc-casecmp1.sh: New file.
45603         * tests/unicase/test-ulc-casecmp2.sh: New file.
45604         * tests/unicase/test-ulc-casecmp.c: New file.
45605
45606         New module 'unicase/ulc-casecmp'.
45607         * lib/unicase.h (ulc_casecmp): New declaration.
45608         * lib/unicase/ulc-casecmp.c: New file.
45609         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45610         'const SRC_UNIT *'.
45611         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45612         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45613         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45614         * modules/unicase/ulc-casecmp: New file.
45615
45616         Tests for module 'unicase/u32-is-cased'.
45617         * modules/unicase/u32-is-cased-tests: New file.
45618         * tests/unicase/test-u32-is-cased.c: New file.
45619
45620         Tests for module 'unicase/u16-is-cased'.
45621         * modules/unicase/u16-is-cased-tests: New file.
45622         * tests/unicase/test-u16-is-cased.c: New file.
45623
45624         Tests for module 'unicase/u8-is-cased'.
45625         * modules/unicase/u8-is-cased-tests: New file.
45626         * tests/unicase/test-u8-is-cased.c: New file.
45627         * tests/unicase/test-is-cased.h: New file.
45628
45629         New module 'unicase/u32-is-cased'.
45630         * lib/unicase/u32-is-cased.c: New file.
45631         * modules/unicase/u32-is-cased: New file.
45632
45633         New module 'unicase/u16-is-cased'.
45634         * lib/unicase/u16-is-cased.c: New file.
45635         * modules/unicase/u16-is-cased: New file.
45636
45637         New module 'unicase/u8-is-cased'.
45638         * lib/unicase/u8-is-cased.c: New file.
45639         * lib/unicase/u-is-cased.h: New file.
45640         * modules/unicase/u8-is-cased: New file.
45641
45642         Tests for module 'unicase/u32-is-casefolded'.
45643         * modules/unicase/u32-is-casefolded-tests: New file.
45644         * tests/unicase/test-u32-is-casefolded.c: New file.
45645
45646         Tests for module 'unicase/u16-is-casefolded'.
45647         * modules/unicase/u16-is-casefolded-tests: New file.
45648         * tests/unicase/test-u16-is-casefolded.c: New file.
45649
45650         Tests for module 'unicase/u8-is-casefolded'.
45651         * modules/unicase/u8-is-casefolded-tests: New file.
45652         * tests/unicase/test-u8-is-casefolded.c: New file.
45653         * tests/unicase/test-is-casefolded.h: New file.
45654
45655         New module 'unicase/u32-is-casefolded'.
45656         * lib/unicase/u32-is-casefolded.c: New file.
45657         * modules/unicase/u32-is-casefolded: New file.
45658
45659         New module 'unicase/u16-is-casefolded'.
45660         * lib/unicase/u16-is-casefolded.c: New file.
45661         * modules/unicase/u16-is-casefolded: New file.
45662
45663         New module 'unicase/u8-is-casefolded'.
45664         * lib/unicase/u8-is-casefolded.c: New file.
45665         * modules/unicase/u8-is-casefolded: New file.
45666
45667         Tests for module 'unicase/u32-is-titlecase'.
45668         * modules/unicase/u32-is-titlecase-tests: New file.
45669         * tests/unicase/test-u32-is-titlecase.c: New file.
45670
45671         Tests for module 'unicase/u16-is-titlecase'.
45672         * modules/unicase/u16-is-titlecase-tests: New file.
45673         * tests/unicase/test-u16-is-titlecase.c: New file.
45674
45675         Tests for module 'unicase/u8-is-titlecase'.
45676         * modules/unicase/u8-is-titlecase-tests: New file.
45677         * tests/unicase/test-u8-is-titlecase.c: New file.
45678         * tests/unicase/test-is-titlecase.h: New file.
45679
45680         New module 'unicase/u32-is-titlecase'.
45681         * lib/unicase/u32-is-titlecase.c: New file.
45682         * modules/unicase/u32-is-titlecase: New file.
45683
45684         New module 'unicase/u16-is-titlecase'.
45685         * lib/unicase/u16-is-titlecase.c: New file.
45686         * modules/unicase/u16-is-titlecase: New file.
45687
45688         New module 'unicase/u8-is-titlecase'.
45689         * lib/unicase/u8-is-titlecase.c: New file.
45690         * modules/unicase/u8-is-titlecase: New file.
45691
45692         Tests for module 'unicase/u32-is-lowercase'.
45693         * modules/unicase/u32-is-lowercase-tests: New file.
45694         * tests/unicase/test-u32-is-lowercase.c: New file.
45695
45696         Tests for module 'unicase/u16-is-lowercase'.
45697         * modules/unicase/u16-is-lowercase-tests: New file.
45698         * tests/unicase/test-u16-is-lowercase.c: New file.
45699
45700         Tests for module 'unicase/u8-is-lowercase'.
45701         * modules/unicase/u8-is-lowercase-tests: New file.
45702         * tests/unicase/test-u8-is-lowercase.c: New file.
45703         * tests/unicase/test-is-lowercase.h: New file.
45704
45705         New module 'unicase/u32-is-lowercase'.
45706         * lib/unicase/u32-is-lowercase.c: New file.
45707         * modules/unicase/u32-is-lowercase: New file.
45708
45709         New module 'unicase/u16-is-lowercase'.
45710         * lib/unicase/u16-is-lowercase.c: New file.
45711         * modules/unicase/u16-is-lowercase: New file.
45712
45713         New module 'unicase/u8-is-lowercase'.
45714         * lib/unicase/u8-is-lowercase.c: New file.
45715         * modules/unicase/u8-is-lowercase: New file.
45716
45717         Tests for module 'unicase/u32-is-uppercase'.
45718         * modules/unicase/u32-is-uppercase-tests: New file.
45719         * tests/unicase/test-u32-is-uppercase.c: New file.
45720
45721         Tests for module 'unicase/u16-is-uppercase'.
45722         * modules/unicase/u16-is-uppercase-tests: New file.
45723         * tests/unicase/test-u16-is-uppercase.c: New file.
45724
45725         Tests for module 'unicase/u8-is-uppercase'.
45726         * modules/unicase/u8-is-uppercase-tests: New file.
45727         * tests/unicase/test-u8-is-uppercase.c: New file.
45728         * tests/unicase/test-is-uppercase.h: New file.
45729
45730         New module 'unicase/u32-is-uppercase'.
45731         * lib/unicase/u32-is-uppercase.c: New file.
45732         * modules/unicase/u32-is-uppercase: New file.
45733
45734         New module 'unicase/u16-is-uppercase'.
45735         * lib/unicase/u16-is-uppercase.c: New file.
45736         * modules/unicase/u16-is-uppercase: New file.
45737
45738         New module 'unicase/u8-is-uppercase'.
45739         * lib/unicase/u8-is-uppercase.c: New file.
45740         * modules/unicase/u8-is-uppercase: New file.
45741
45742         New module 'unicase/u32-is-invariant'.
45743         * lib/unicase/u32-is-invariant.c: New file.
45744         * modules/unicase/u32-is-invariant: New file.
45745
45746         New module 'unicase/u16-is-invariant'.
45747         * lib/unicase/u16-is-invariant.c: New file.
45748         * modules/unicase/u16-is-invariant: New file.
45749
45750         New module 'unicase/u8-is-invariant'.
45751         * lib/unicase/u8-is-invariant.c: New file.
45752         * lib/unicase/invariant.h: New file.
45753         * lib/unicase/u-is-invariant.h: New file.
45754         * modules/unicase/u8-is-invariant: New file.
45755
45756         Tests for module 'unicase/u32-casecoll'.
45757         * modules/unicase/u32-casecoll-tests: New file.
45758         * tests/unicase/test-u32-casecoll.c: New file.
45759
45760         Tests for module 'unicase/u16-casecoll'.
45761         * modules/unicase/u16-casecoll-tests: New file.
45762         * tests/unicase/test-u16-casecoll.c: New file.
45763
45764         Tests for module 'unicase/u8-casecoll'.
45765         * modules/unicase/u8-casecoll-tests: New file.
45766         * tests/unicase/test-u8-casecoll.c: New file.
45767
45768         New module 'unicase/u32-casecoll'.
45769         * lib/unicase/u32-casecoll.c: New file.
45770         * modules/unicase/u32-casecoll: New file.
45771
45772         New module 'unicase/u16-casecoll'.
45773         * lib/unicase/u16-casecoll.c: New file.
45774         * modules/unicase/u16-casecoll: New file.
45775
45776         New module 'unicase/u8-casecoll'.
45777         * lib/unicase/u8-casecoll.c: New file.
45778         * lib/unicase/u-casecoll.h: New file.
45779         * modules/unicase/u8-casecoll: New file.
45780
45781         New module 'unicase/u32-casexfrm'.
45782         * lib/unicase/u32-casexfrm.c: New file.
45783         * modules/unicase/u32-casexfrm: New file.
45784
45785         New module 'unicase/u16-casexfrm'.
45786         * lib/unicase/u16-casexfrm.c: New file.
45787         * modules/unicase/u16-casexfrm: New file.
45788
45789         New module 'unicase/u8-casexfrm'.
45790         * lib/unicase/u8-casexfrm.c: New file.
45791         * lib/unicase/u-casexfrm.h: New file.
45792         * modules/unicase/u8-casexfrm: New file.
45793
45794         Tests for module 'unicase/u32-casecmp'.
45795         * modules/unicase/u32-casecmp-tests: New file.
45796         * tests/unicase/test-u32-casecmp.c: New file.
45797
45798         Tests for module 'unicase/u16-casecmp'.
45799         * modules/unicase/u16-casecmp-tests: New file.
45800         * tests/unicase/test-u16-casecmp.c: New file.
45801
45802         Tests for module 'unicase/u8-casecmp'.
45803         * modules/unicase/u8-casecmp-tests: New file.
45804         * tests/unicase/test-u8-casecmp.c: New file.
45805         * tests/unicase/test-casecmp.h: New file.
45806
45807         New module 'unicase/u32-casecmp'.
45808         * lib/unicase/u32-casecmp.c: New file.
45809         * modules/unicase/u32-casecmp: New file.
45810
45811         New module 'unicase/u16-casecmp'.
45812         * lib/unicase/u16-casecmp.c: New file.
45813         * modules/unicase/u16-casecmp: New file.
45814
45815         New module 'unicase/u8-casecmp'.
45816         * lib/unicase/u8-casecmp.c: New file.
45817         * lib/unicase/u-casecmp.h: New file.
45818         * modules/unicase/u8-casecmp: New file.
45819
45820         Tests for module 'unicase/u32-casefold'.
45821         * modules/unicase/u32-casefold-tests: New file.
45822         * tests/unicase/test-u32-casefold.c: New file.
45823
45824         Tests for module 'unicase/u16-casefold'.
45825         * modules/unicase/u16-casefold-tests: New file.
45826         * tests/unicase/test-u16-casefold.c: New file.
45827
45828         Tests for module 'unicase/u8-casefold'.
45829         * modules/unicase/u8-casefold-tests: New file.
45830         * tests/unicase/test-u8-casefold.c: New file.
45831
45832         New module 'unicase/u32-casefold'.
45833         * lib/unicase/u32-casefold.c: New file.
45834         * modules/unicase/u32-casefold: New file.
45835
45836         New module 'unicase/u16-casefold'.
45837         * lib/unicase/u16-casefold.c: New file.
45838         * modules/unicase/u16-casefold: New file.
45839
45840         New module 'unicase/u8-casefold'.
45841         * lib/unicase/u8-casefold.c: New file.
45842         * lib/unicase/u-casefold.h: New file.
45843         * modules/unicase/u8-casefold: New file.
45844
45845         New module 'unicase/tocasefold'.
45846         * lib/unicase/casefold.h: New file.
45847         * lib/unicase/tocasefold.c: New file.
45848         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45849         * modules/unicase/tocasefold: New file.
45850
45851         Tests for module 'unicase/u32-totitle'.
45852         * modules/unicase/u32-totitle-tests: New file.
45853         * tests/unicase/test-u32-totitle.c: New file.
45854
45855         Tests for module 'unicase/u16-totitle'.
45856         * modules/unicase/u16-totitle-tests: New file.
45857         * tests/unicase/test-u16-totitle.c: New file.
45858
45859         Tests for module 'unicase/u8-totitle'.
45860         * modules/unicase/u8-totitle-tests: New file.
45861         * tests/unicase/test-u8-totitle.c: New file.
45862
45863         New module 'unicase/u32-totitle'.
45864         * lib/unicase/u32-totitle.c: New file.
45865         * modules/unicase/u32-totitle: New file.
45866
45867         New module 'unicase/u16-totitle'.
45868         * lib/unicase/u16-totitle.c: New file.
45869         * modules/unicase/u16-totitle: New file.
45870
45871         New module 'unicase/u8-totitle'.
45872         * lib/unicase/u8-totitle.c: New file.
45873         * lib/unicase/u-totitle.h: New file.
45874         * modules/unicase/u8-totitle: New file.
45875
45876         Tests for module 'unicase/u32-tolower'.
45877         * modules/unicase/u32-tolower-tests: New file.
45878         * tests/unicase/test-u32-tolower.c: New file.
45879
45880         Tests for module 'unicase/u16-tolower'.
45881         * modules/unicase/u16-tolower-tests: New file.
45882         * tests/unicase/test-u16-tolower.c: New file.
45883
45884         Tests for module 'unicase/u8-tolower'.
45885         * modules/unicase/u8-tolower-tests: New file.
45886         * tests/unicase/test-u8-tolower.c: New file.
45887
45888         New module 'unicase/u32-tolower'.
45889         * lib/unicase/u32-tolower.c: New file.
45890         * modules/unicase/u32-tolower: New file.
45891
45892         New module 'unicase/u16-tolower'.
45893         * lib/unicase/u16-tolower.c: New file.
45894         * modules/unicase/u16-tolower: New file.
45895
45896         New module 'unicase/u8-tolower'.
45897         * lib/unicase/u8-tolower.c: New file.
45898         * modules/unicase/u8-tolower: New file.
45899
45900         Tests for module 'unicase/u32-toupper'.
45901         * modules/unicase/u32-toupper-tests: New file.
45902         * tests/unicase/test-u32-toupper.c: New file.
45903
45904         Tests for module 'unicase/u16-toupper'.
45905         * modules/unicase/u16-toupper-tests: New file.
45906         * tests/unicase/test-u16-toupper.c: New file.
45907
45908         Tests for module 'unicase/u8-toupper'.
45909         * modules/unicase/u8-toupper-tests: New file.
45910         * tests/unicase/test-u8-toupper.c: New file.
45911
45912         New module 'unicase/u32-toupper'.
45913         * lib/unicase/u32-toupper.c: New file.
45914         * modules/unicase/u32-toupper: New file.
45915
45916         New module 'unicase/u16-toupper'.
45917         * lib/unicase/u16-toupper.c: New file.
45918         * modules/unicase/u16-toupper: New file.
45919
45920         New module 'unicase/u8-toupper'.
45921         * lib/unicase/u8-toupper.c: New file.
45922         * modules/unicase/u8-toupper: New file.
45923
45924         New module 'unicase/u32-casemap'.
45925         * lib/unicase/u32-casemap.c: New file.
45926         * modules/unicase/u32-casemap: New file.
45927
45928         New module 'unicase/u16-casemap'.
45929         * lib/unicase/u16-casemap.c: New file.
45930         * modules/unicase/u16-casemap: New file.
45931
45932         New module 'unicase/u8-casemap'.
45933         * lib/unicase/unicasemap.h: New file.
45934         * lib/unicase/u8-casemap.c: New file.
45935         * lib/unicase/u-casemap.h: New file.
45936         * modules/unicase/u8-casemap: New file.
45937
45938         New module 'unicase/special-casing'.
45939         * lib/unicase/special-casing.h: New file.
45940         * lib/unicase/special-casing.c: New file.
45941         * lib/unicase/special-casing-table.gperf: New file, generated by
45942         gen-uni-tables.c.
45943         * modules/unicase/special-casing: New file.
45944
45945         Tests for module 'unicase/locale-language'.
45946         * modules/unicase/locale-language-tests: New file.
45947         * tests/unicase/test-locale-language.sh: New file.
45948         * tests/unicase/test-locale-language.c: New file.
45949
45950         New module 'unicase/locale-language'.
45951         * lib/unicase/locale-language.c: New file.
45952         * lib/unicase/locale-languages.gperf: New file.
45953         * modules/unicase/locale-language: New file.
45954
45955         Generate more tables for case conversion and case folding.
45956         * lib/gen-uni-tables.c (SCC_*): New enum items.
45957         (struct special_casing_rule): New type.
45958         (casing_rules, num_casing_rules, allocated_casing_rules): New
45959         variables.
45960         (add_casing_rule, fill_casing_rules): New functions.
45961         (struct casefold_rule): New type.
45962         (casefolding_rules, num_casefolding_rules,
45963         allocated_casefolding_rules): New variables.
45964         (fill_casefolding_rules): New function.
45965         (unicode_casefold): New variable.
45966         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45967         sort_casing_rules, output_casing_rules): New functions.
45968         (main): Accept to more arguments: SpecialCasing.txt and
45969         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45970         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45971         Output mapping for casefolding.
45972
45973         * lib/unicase.h: Include stdbool.h, uninorm.h.
45974         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45975         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45976         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45977         arguments.
45978         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45979         resultp arguments.
45980         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45981         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45982         resultp arguments.
45983         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45984         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45985         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45986         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45987         declarations.
45988         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45989
45990 2009-03-08  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45993         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45994         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45995         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45996
45997 2009-03-07  Bruno Haible  <bruno@clisp.org>
45998
45999         Adjust u*_normcmp, u*_normcoll API.
46000         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46001         u16_normcoll, u32_normcoll): Change failure conventions.
46002         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46003         errno and return -1.
46004         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46005
46006 2009-03-07  Bruno Haible  <bruno@clisp.org>
46007
46008         Tests for module 'uninorm/u32-normcoll'.
46009         * modules/uninorm/u32-normcoll-tests: New file.
46010         * tests/uninorm/test-u32-normcoll.c: New file.
46011
46012         Tests for module 'uninorm/u16-normcoll'.
46013         * modules/uninorm/u16-normcoll-tests: New file.
46014         * tests/uninorm/test-u16-normcoll.c: New file.
46015
46016         Tests for module 'uninorm/u8-normcoll'.
46017         * modules/uninorm/u8-normcoll-tests: New file.
46018         * tests/uninorm/test-u8-normcoll.c: New file.
46019
46020 2009-03-07  Bruno Haible  <bruno@clisp.org>
46021
46022         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46023         tests/uninorm/test-u32-normcmp.c.
46024         * tests/uninorm/test-u32-normcmp.c: Include it.
46025         (test_nonascii): New function, extracted from main. Add some more
46026         tests.
46027         (main): Invoke test_ascii and test_nonascii.
46028         * modules/uninorm/u32-normcmp-tests (Files): Add
46029         tests/uninorm/test-u32-normcmp.h.
46030         (Depends-on): Remove uninorm/u32-normcmp.
46031
46032         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46033         tests/uninorm/test-u16-normcmp.c.
46034         * tests/uninorm/test-u16-normcmp.c: Include it.
46035         (test_nonascii): New function, extracted from main. Add some more
46036         tests.
46037         (main): Invoke test_ascii and test_nonascii.
46038         * modules/uninorm/u16-normcmp-tests (Files): Add
46039         tests/uninorm/test-u16-normcmp.h.
46040         (Depends-on): Remove uninorm/u16-normcmp.
46041
46042         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46043         tests/uninorm/test-u8-normcmp.c.
46044         * tests/uninorm/test-u8-normcmp.c: Include it.
46045         (test_nonascii): New function, extracted from main. Add some more
46046         tests.
46047         (main): Invoke test_ascii and test_nonascii.
46048         * modules/uninorm/u8-normcmp-tests (Files): Add
46049         tests/uninorm/test-u8-normcmp.h.
46050         (Depends-on): Remove uninorm/u8-normcmp.
46051
46052 2009-03-07  Bruno Haible  <bruno@clisp.org>
46053
46054         New module 'uninorm/u32-normcoll'.
46055         * lib/uninorm/u32-normcoll.c: New file.
46056         * modules/uninorm/u32-normcoll: New file.
46057
46058         New module 'uninorm/u16-normcoll'.
46059         * lib/uninorm/u16-normcoll.c: New file.
46060         * modules/uninorm/u16-normcoll: New file.
46061
46062         New module 'uninorm/u8-normcoll'.
46063         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46064         declarations.
46065         * lib/uninorm/u8-normcoll.c: New file.
46066         * lib/uninorm/u-normcoll.h: New file.
46067         * modules/uninorm/u8-normcoll: New file.
46068
46069         New module 'uninorm/u32-normxfrm'.
46070         * lib/uninorm/u32-normxfrm.c: New file.
46071         * modules/uninorm/u32-normxfrm: New file.
46072
46073         New module 'uninorm/u16-normxfrm'.
46074         * lib/uninorm/u16-normxfrm.c: New file.
46075         * modules/uninorm/u16-normxfrm: New file.
46076
46077         New module 'uninorm/u8-normxfrm'.
46078         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46079         declarations.
46080         * lib/uninorm/u8-normxfrm.c: New file.
46081         * lib/uninorm/u-normxfrm.h: New file.
46082         * modules/uninorm/u8-normxfrm: New file.
46083
46084 2009-03-07  Bruno Haible  <bruno@clisp.org>
46085
46086         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46087         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46088         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46089
46090 2009-03-07  Bruno Haible  <bruno@clisp.org>
46091
46092         New module 'memxfrm'.
46093         * lib/memxfrm.h: New file.
46094         * lib/memxfrm.c: New file.
46095         * modules/memxfrm: New file.
46096
46097 2009-03-07  Bruno Haible  <bruno@clisp.org>
46098
46099         New module 'memcmp2'.
46100         * lib/memcmp2.h: New file.
46101         * lib/memcmp2.c: New file.
46102         * modules/memcmp2: New file.
46103
46104 2009-03-07  Bruno Haible  <bruno@clisp.org>
46105
46106         Tests for module 'uninorm/decomposing-form'.
46107         * modules/uninorm/decomposing-form-tests: New file.
46108         * tests/uninorm/test-decomposing-form.c: New file.
46109
46110         New module 'uninorm/decomposing-form'.
46111         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46112         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46113         Add 'decomposing_variant' field.
46114         * lib/uninorm/decomposing-form.c: New file.
46115         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46116         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46117         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46118         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46119         * modules/uninorm/decomposing-form: New file.
46120         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46121         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46122
46123 2009-03-07  Bruno Haible  <bruno@clisp.org>
46124
46125         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46126         strings.
46127
46128 2009-03-06  Bruno Haible  <bruno@clisp.org>
46129
46130         Tests for module 'uninorm/u32-normcmp'.
46131         * tests/uninorm/test-u32-normcmp.c: New file.
46132         * modules/uninorm/u32-normcmp-tests: New file.
46133
46134         Tests for module 'uninorm/u16-normcmp'.
46135         * tests/uninorm/test-u16-normcmp.c: New file.
46136         * modules/uninorm/u16-normcmp-tests: New file.
46137
46138         Tests for module 'uninorm/u8-normcmp'.
46139         * tests/uninorm/test-u8-normcmp.c: New file.
46140         * modules/uninorm/u8-normcmp-tests: New file.
46141
46142         New module 'uninorm/u32-normcmp'.
46143         * lib/uninorm/u32-normcmp.c: New file.
46144         * modules/uninorm/u32-normcmp: New file.
46145
46146         New module 'uninorm/u16-normcmp'.
46147         * lib/uninorm/u16-normcmp.c: New file.
46148         * modules/uninorm/u16-normcmp: New file.
46149
46150         New module 'uninorm/u8-normcmp'.
46151         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46152         declarations.
46153         * lib/uninorm/u8-normcmp.c: New file.
46154         * lib/uninorm/u-normcmp.h: New file.
46155         * modules/uninorm/u8-normcmp: New file.
46156
46157 2009-03-06  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46160         Reported by Eric Blake.
46161
46162 2009-03-06  Eric Blake  <ebb9@byu.net>
46163             Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46166         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46167         condition.
46168         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46169         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46170         condition.
46171         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46172
46173 2009-03-06  Eric Blake  <ebb9@byu.net>
46174
46175         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46176         to avoid compiler warnings.
46177         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46178
46179 2009-03-05  Bruno Haible  <bruno@clisp.org>
46180
46181         * tests/test-ftell.c (main): Disable test beyond end of file on
46182         FreeMiNT.
46183         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46184
46185 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46186
46187         * lib/filevercmp.c: Move hidden files up in ordering.
46188         * tests/test-filevercmp.c: Add tests for hidden files.
46189
46190 2009-03-04  Bruno Haible  <bruno@clisp.org>
46191
46192         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46193         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46194         AM_CFLAGS.
46195         Reported by Simon Josefsson.
46196
46197 2009-03-03  Bruno Haible  <bruno@clisp.org>
46198
46199         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46200         Reported by Simon Josefsson.
46201
46202         * doc/ld-version-script.texi: Update node reference.
46203
46204 2009-03-03  Bruno Haible  <bruno@clisp.org>
46205
46206         * modules/visibility (License): Change to 'unlimited'.
46207         Suggested by Simon Josefsson.
46208
46209 2009-03-03  Jim Meyering  <meyering@redhat.com>
46210
46211         unlinkdir: cannot_unlink_dir may modify process state
46212         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46213         it's neither thread-safe nor appropriate for use in a library.
46214
46215 2009-03-03  Eric Blake  <ebb9@byu.net>
46216
46217         test-closein: silence test under Darwin
46218         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46219         care if it dies from EPIPE or EBADF.
46220
46221 2009-03-03  Bruno Haible  <bruno@clisp.org>
46222
46223         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46224         earlier.
46225         * doc/visibility.texi: Fix @node and @section.
46226
46227 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46228
46229         * doc/gnulib.texi: Link to sections for ld version script and
46230         visibility.
46231         * doc/visibility.texi: Add @node and @section.
46232         * modules/ld-version-script: New module.
46233         * m4/ld-version-script.m4: New file.
46234         * doc/ld-version-script.texi: New file.
46235
46236 2009-03-02  David Lutterkort  <lutter@redhat.com>
46237
46238         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46240
46241 2009-03-02  Bruno Haible  <bruno@clisp.org>
46242
46243         * doc/visibility.texi: Mention libtool's -export-symbols option.
46244
46245 2009-03-02  Jim Meyering  <meyering@redhat.com>
46246
46247         announce-gen: new option: --no-print-checksums
46248         * build-aux/announce-gen (usage): Describe it.
46249         (print_checksums): Print a newline here, not in the [*] footnote.
46250         (main): Honor it.
46251
46252 2009-03-01  Bruno Haible  <bruno@clisp.org>
46253
46254         Use socklen_t in the native Windows replacements prototypes.
46255         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46256         instead of 'int'.
46257         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46258         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46259         * modules/getsockopt (Depends-on): Add socklen.
46260         * modules/setsockopt (Depends-on): Add socklen.
46261
46262 2009-03-01  Bruno Haible  <bruno@clisp.org>
46263
46264         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46265         least 4.2.
46266
46267 2009-03-01  Eric Blake  <ebb9@byu.net>
46268             Bruno Haible  <bruno@clisp.org>
46269
46270         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46271         error messages.
46272         * lib/wait-process.c (wait_subprocess): Omit error message about
46273         deadly signal sent to the child of termsigp != NULL.
46274
46275 2009-03-01  Eric Blake  <ebb9@byu.net>
46276
46277         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46278
46279 2009-03-01  Bruno Haible  <bruno@clisp.org>
46280
46281         Avoid a gcc warning.
46282         * tests/test-sched.c (b): Make global.
46283         Reported by Eric Blake.
46284
46285 2009-01-19  Martin Lambers  <marlam@marlam.de>
46286
46287         Provide POSIX semantics for socket timeout options on W32.
46288         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46289         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46290         * modules/setsockopt: Depend on sys_time module for struct timeval.
46291         * modules/getsockopt: Depend on sys_time module for struct timeval.
46292
46293 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46294
46295         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46296         __USE_GNU, for consistency with netdb.in.h.
46297         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46298
46299 2009-03-01  Bruno Haible  <bruno@clisp.org>
46300
46301         More support for FreeMiNT.
46302         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46303         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46304
46305 2009-03-01  Bruno Haible  <bruno@clisp.org>
46306
46307         More support for FreeMiNT.
46308         * lib/fpurge.c (fpurge): Correct last commit.
46309         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46310
46311 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46312
46313         Fix unportable awk script in vc-list-files.
46314         * build-aux/vc-list-files: In the replacement awk script, use
46315         substr with a second argument of 1, not zero.
46316         Report by Simon Josefsson.
46317
46318 2009-02-28  Bruno Haible  <bruno@clisp.org>
46319
46320         More support for FreeMiNT.
46321         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46322         to FreeMiNT today.
46323         * lib/fwriting.c (fwriting): Likewise.
46324         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46325
46326 2009-02-28  Bruno Haible  <bruno@clisp.org>
46327
46328         * tests/test-freadseek.c (main): Disable test beyond end of file on
46329         FreeMiNT.
46330         * tests/test-ftello.c (main): Likewise.
46331         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46332
46333 2009-02-28  Bruno Haible  <bruno@clisp.org>
46334
46335         Add tentative support for FreeMiNT.
46336         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46337         * lib/fpurge.c (fpurge): Likewise.
46338         * lib/freadable.c (freadable): Likewise.
46339         * lib/freading.c (freading): Likewise.
46340         * lib/freadptr.c (freadptr): Likewise.
46341         * lib/freadseek.c (freadptrinc): Likewise.
46342         * lib/fseeko.c (rpl_fseeko): Likewise.
46343         * lib/fseterr.c (fseterr): Likewise.
46344         * lib/fwritable.c (fwritable): Likewise.
46345         * lib/fwriting.c (fwriting): Likewise.
46346         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46347         Hourihane.
46348         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46349
46350 2009-02-28  Bruno Haible  <bruno@clisp.org>
46351
46352         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46353         SIGCHLD.
46354         Reported by Jim Meyering.
46355
46356 2009-02-28  Bruno Haible  <bruno@clisp.org>
46357
46358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46359         Mention the results of these tests on various platforms.
46360         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46361         order.
46362         * doc/posix-functions/printf.texi: Likewise.
46363         * doc/posix-functions/snprintf.texi: Likewise.
46364         * doc/posix-functions/sprintf.texi: Likewise.
46365         * doc/posix-functions/vfprintf.texi: Likewise.
46366         * doc/posix-functions/vprintf.texi: Likewise.
46367         * doc/posix-functions/vsnprintf.texi: Likewise.
46368         * doc/posix-functions/vsprintf.texi: Likewise.
46369         * doc/glibc-functions/obstack_printf.texi: Likewise.
46370         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46371
46372 2009-02-28  Bruno Haible  <bruno@clisp.org>
46373
46374         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46375         Reported by Loïc Minier <lool@dooz.org>.
46376
46377 2009-02-27  Bruno Haible  <bruno@clisp.org>
46378
46379         * gnulib-tool (func_import): Make the sed expression used to create the
46380         sed script for updating the .gitignore file POSIX compliant.
46381         Reported by Eric Blake.
46382
46383 2009-02-27  Bruno Haible  <bruno@clisp.org>
46384
46385         * gnulib-tool (sed): Don't alias as "sed --posix".
46386         Reported by Eric Blake.
46387
46388 2009-02-27  Bruno Haible  <bruno@clisp.org>
46389
46390         Avoid test link errors.
46391         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46392         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46393         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46394         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46395         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46396
46397 2009-02-27  Bruno Haible  <bruno@clisp.org>
46398
46399         Avoid spurious "(cached)" in configure output.
46400         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46401         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46402         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46403         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46405         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46406         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46407         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46408         Reported by Eric Blake.
46409
46410 2009-02-27  Eric Blake  <ebb9@byu.net>
46411
46412         printf: fix regression in previous patch
46413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46414
46415 2009-02-27  Bruno Haible  <bruno@clisp.org>
46416
46417         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46418         value.
46419         * lib/stdint.in.h: Likewise.
46420         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46421
46422 2009-02-27  Eric Blake  <ebb9@byu.net>
46423
46424         doc: mention more functions added in cygwin 1.7.0
46425         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46426         addition.
46427         * doc/posix-functions/open_wmemstream.texi: Likewise.
46428         * doc/posix-functions/wcsnlen.texi: Likewise.
46429         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46430         * doc/posix-functions/wcstod.texi: Likewise.
46431         * doc/posix-functions/wcstof.texi: Likewise.
46432         * doc/posix-functions/wcstoimax.texi: Likewise.
46433         * doc/posix-functions/wcstok.texi: Likewise.
46434         * doc/posix-functions/wcstoumax.texi: Likewise.
46435
46436         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46438         * doc/posix-functions/fprintf.texi: Update.
46439         * doc/posix-functions/printf.texi: Update.
46440         * doc/posix-functions/snprintf.texi: Update.
46441         * doc/posix-functions/sprintf.texi: Update.
46442         * doc/posix-functions/vfprintf.texi: Update.
46443         * doc/posix-functions/vprintf.texi: Update.
46444         * doc/posix-functions/vsnprintf.texi: Update.
46445         * doc/posix-functions/vsprintf.texi: Update.
46446         * doc/glibc-functions/obstack_printf.texi: Update.
46447         * doc/glibc-functions/obstack_vprintf.texi: Update.
46448
46449 2009-02-26  Eric Blake  <ebb9@byu.net>
46450
46451         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46452         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46453         compilation bug by using runtime conversion.
46454         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46455         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46456         * modules/ceill-tests (Files): Use nan.h.
46457         * modules/floorl-tests (Files): Likewise.
46458         * modules/frexpl-tests (Files): Likewise.
46459         * modules/isnanl-tests (Files): Likewise.
46460         * modules/ldexpl-tests (Files): Likewise.
46461         * modules/roundl-tests (Files): Likewise.
46462         * modules/truncl-tests (Files): Likewise.
46463         * tests/test-ceill.c (main): Use a working NaN.
46464         * tests/test-floorl.c (main): Likewise.
46465         * tests/test-frexpl.c (main): Likewise.
46466         * tests/test-isnan.c (test_long_double): Likewise.
46467         * tests/test-isnanl.h (main): Likewise.
46468         * tests/test-ldexpl.h (main): Likewise.
46469         * tests/test-roundl.h (main): Likewise.
46470         * tests/test-truncl.h (main): Likewise.
46471         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46472
46473 2009-02-26  Eric Blake  <ebb9@byu.net>
46474             Bruno Haible  <bruno@clisp.org>
46475
46476         Work around a *printf bug with %ls on Solaris.
46477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46478         precision is specified, sprintf stops converting the wide string
46479         argument when the number of bytes that have been produced by this
46480         conversion equals or exceeds the precision.
46481         * doc/posix-functions/fprintf.texi: Update.
46482         * doc/posix-functions/printf.texi: Update.
46483         * doc/posix-functions/snprintf.texi: Update.
46484         * doc/posix-functions/sprintf.texi: Update.
46485         * doc/posix-functions/vfprintf.texi: Update.
46486         * doc/posix-functions/vprintf.texi: Update.
46487         * doc/posix-functions/vsnprintf.texi: Update.
46488         * doc/posix-functions/vsprintf.texi: Update.
46489         * doc/glibc-functions/obstack_printf.texi: Update.
46490         * doc/glibc-functions/obstack_vprintf.texi: Update.
46491
46492 2009-02-26  Eric Blake  <ebb9@byu.net>
46493
46494         stdlib: favor compiler check of random.h
46495         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46496         to avoid an ObjC random.h installed by Swarm.
46497
46498 2009-02-26  Bruno Haible  <bruno@clisp.org>
46499
46500         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46501         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46502         Reported by Gary V. Vaughan <gary@gnu.org>.
46503
46504 2009-02-26  Bruno Haible  <bruno@clisp.org>
46505
46506         Fix *printf behaviour regarding the %ls directive.
46507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46508         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46509         NEED_PRINTF_DIRECTIVE_LS.
46510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46511         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46513         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46514         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46515         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46516         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46521         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46525         * doc/posix-functions/fprintf.texi: Update.
46526         * doc/posix-functions/printf.texi: Update.
46527         * doc/posix-functions/snprintf.texi: Update.
46528         * doc/posix-functions/sprintf.texi: Update.
46529         * doc/posix-functions/vfprintf.texi: Update.
46530         * doc/posix-functions/vprintf.texi: Update.
46531         * doc/posix-functions/vsnprintf.texi: Update.
46532         * doc/posix-functions/vsprintf.texi: Update.
46533         * doc/glibc-functions/obstack_printf.texi: Update.
46534         * doc/glibc-functions/obstack_vprintf.texi: Update.
46535         Reported by Eric Blake.
46536
46537 2009-02-25  Bruno Haible  <bruno@clisp.org>
46538
46539         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46540         with known value.
46541         Reported by Gary V. Vaughan <gary@gnu.org>.
46542
46543 2009-02-25  Bruno Haible  <bruno@clisp.org>
46544
46545         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46546         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46547         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46548         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46549         Reported by Gary V. Vaughan <gary@gnu.org>.
46550
46551 2009-02-25  Bruno Haible  <bruno@clisp.org>
46552
46553         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46554         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46555         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46556         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46557         Reported by Gary V. Vaughan <gary@gnu.org>.
46558
46559 2009-02-25  Eric Blake  <ebb9@byu.net>
46560
46561         tests: skip fseek/ftell tests if ungetc is broken
46562         * m4/ungetc.m4: New file.
46563         * modules/fseek-tests: Split test, so ungetc dependency is
46564         separate from rest of test.
46565         * modules/fseeko-tests: Likewise.
46566         * modules/ftell-tests: Likewise.
46567         * modules/ftello-tests: Likewise.
46568         * tests/test-fseek.c (main): Isolate ungetc dependency.
46569         * tests/test-fseeko.c (main): Likewise.
46570         * tests/test-ftell.c (main): Likewise.
46571         * tests/test-ftello.c (main): Likewise.
46572         * tests/test-fseek2.sh: New file.
46573         * tests/test-fseeko2.sh: Likewise.
46574         * tests/test-ftell2.sh: Likewise.
46575         * tests/test-ftello2.sh: Likewise.
46576
46577 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46578
46579         test-getaddrinfo: fix usage of skip return code 77
46580         * tests/test-gettaddrinfo.c: Return skip code 77 only
46581         for first occurance of skip (4x77 is not 77)
46582
46583 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46584
46585         strtod: avoid C99 decl-after-statement
46586         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46587
46588 2009-02-24  Eric Blake  <ebb9@byu.net>
46589
46590         strtod: detect HP-UX 11.31 bug
46591         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46592         Reported by Gary V. Vaughan.
46593
46594 2009-02-23  Bruno Haible  <bruno@clisp.org>
46595
46596         Fix invalid read past end of memory block.
46597         * lib/vasnprintf.c (DCHAR_SET): Define.
46598         (local_wcslen): Define only when needed.
46599         (local_strnlen, local_wcsnlen): New functions.
46600         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46601         directives that involve a conversion ourselves.
46602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46603         wcsnlen, mbrtowc, wcrtomb.
46604         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46605         * tests/test-vasprintf-posix.c (test_function): Likewise.
46606         * tests/test-snprintf-posix.h (test_function): Likewise.
46607         * tests/test-sprintf-posix.h (test_function): Likewise.
46608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46609
46610 2009-02-22  Bruno Haible  <bruno@clisp.org>
46611
46612         Implement new clarified decomposition of Hangul syllables.
46613         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46614         of type LTV, return only a pairwise decomposition.
46615         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46616         Likewise.
46617         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46618         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46619         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46620
46621 2009-02-22  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46624         zero-length results and shrink excess allocated memory.
46625         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46626         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46627         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46628         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46629         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46630         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46631         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46632         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46633         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46634         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46635         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46636         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46637
46638 2009-02-21  Bruno Haible  <bruno@clisp.org>
46639
46640         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46641         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46642         spaces after a period. Put a space between a macro name and its
46643         argument list. Trivial rewordings.
46644         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46645         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46646         (main): Return 0 explicitly.
46647
46648 2009-02-21  Bruno Haible  <bruno@clisp.org>
46649
46650         Tests for module 'uninorm/filter'.
46651         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46652         * modules/uninorm/filter-tests: New file.
46653
46654         New module 'uninorm/filter'.
46655         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46656         uninorm_filter_flush, uninorm_filter_free): New declarations.
46657         * lib/uninorm/uninorm-filter.c: New file.
46658         * modules/uninorm/filter: New file.
46659
46660 2009-02-21  Bruno Haible  <bruno@clisp.org>
46661
46662         Tests for module 'uninorm/nfkc'.
46663         * tests/uninorm/test-nfkc.c: New file.
46664         * tests/uninorm/test-u8-nfkc.c: New file.
46665         * tests/uninorm/test-u16-nfkc.c: New file.
46666         * tests/uninorm/test-u32-nfkc.c: New file.
46667         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46668         * tests/uninorm/test-u32-nfkc-big.c: New file.
46669         * modules/uninorm/nfkc-tests: New file.
46670
46671         New module 'uninorm/nfkc'.
46672         * lib/uninorm/nfkc.c: New file.
46673         * modules/uninorm/nfkc: New file.
46674
46675         Tests for module 'uninorm/nfkd'.
46676         * tests/uninorm/test-nfkd.c: New file.
46677         * tests/uninorm/test-u8-nfkd.c: New file.
46678         * tests/uninorm/test-u16-nfkd.c: New file.
46679         * tests/uninorm/test-u32-nfkd.c: New file.
46680         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46681         * tests/uninorm/test-u32-nfkd-big.c: New file.
46682         * modules/uninorm/nfkd-tests: New file.
46683
46684         New module 'uninorm/nfkd'.
46685         * lib/uninorm/nfkd.c: New file.
46686         * modules/uninorm/nfkd: New file.
46687
46688         Tests for module 'uninorm/nfc'.
46689         * tests/uninorm/test-nfc.c: New file.
46690         * tests/uninorm/test-u8-nfc.c: New file.
46691         * tests/uninorm/test-u16-nfc.c: New file.
46692         * tests/uninorm/test-u32-nfc.c: New file.
46693         * tests/uninorm/test-u32-nfc-big.sh: New file.
46694         * tests/uninorm/test-u32-nfc-big.c: New file.
46695         * modules/uninorm/nfc-tests: New file.
46696
46697         New module 'uninorm/nfc'.
46698         * lib/uninorm/nfc.c: New file.
46699         * modules/uninorm/nfc: New file.
46700
46701         Tests for module 'uninorm/nfd'.
46702         * tests/uninorm/test-nfd.c: New file.
46703         * tests/uninorm/test-u8-nfd.c: New file.
46704         * tests/uninorm/test-u16-nfd.c: New file.
46705         * tests/uninorm/test-u32-nfd.c: New file.
46706         * tests/uninorm/test-u32-nfd-big.sh: New file.
46707         * tests/uninorm/test-u32-nfd-big.c: New file.
46708         * tests/uninorm/test-u32-normalize-big.h: New file.
46709         * tests/uninorm/test-u32-normalize-big.c: New file.
46710         * tests/uninorm/NormalizationTest.txt: New file, created from
46711         Unicode 5.1.0 NormalizationTest.txt.
46712         * modules/uninorm/nfd-tests: New file.
46713
46714         New module 'uninorm/nfd'.
46715         * lib/uninorm/nfd.c: New file.
46716         * modules/uninorm/nfd: New file.
46717
46718         New module 'uninorm/u32-normalize'.
46719         * lib/uninorm/u32-normalize.c: New file.
46720         * modules/uninorm/u32-normalize: New file.
46721
46722         New module 'uninorm/u16-normalize'.
46723         * lib/uninorm/u16-normalize.c: New file.
46724         * modules/uninorm/u16-normalize: New file.
46725
46726         New module 'uninorm/u8-normalize'.
46727         * lib/uninorm/u8-normalize.c: New file.
46728         * lib/uninorm/normalize-internal.h: New file.
46729         * lib/uninorm/u-normalize-internal.h: New file.
46730         * modules/uninorm/u8-normalize: New file.
46731
46732         New module 'uninorm/decompose-internal'.
46733         * lib/uninorm/decompose-internal.c: New file.
46734         * modules/uninorm/decompose-internal: New file.
46735
46736         Tests for module 'uninorm/composition'.
46737         * tests/uninorm/test-composition.c: New file.
46738         * modules/uninorm/composition-tests: New file.
46739
46740         New module 'uninorm/composition'.
46741         * lib/uninorm/composition.c: New file.
46742         * lib/uninorm/composition-table.gperf: New file, generated by
46743         gen-uni-tables.
46744         * modules/uninorm/composition: New file.
46745
46746         Tests for module 'uninorm/compat-decomposition'.
46747         * tests/uninorm/test-compat-decomposition.c: New file.
46748         * modules/uninorm/compat-decomposition-tests: New file.
46749
46750         New module 'uninorm/compat-decomposition'.
46751         * lib/uninorm/decompose-internal.h: New file.
46752         * lib/uninorm/compat-decomposition.c: New file.
46753         * modules/uninorm/compat-decomposition: New file.
46754
46755         Tests for module 'uninorm/canonical-decomposition'.
46756         * tests/uninorm/test-canonical-decomposition.c: New file.
46757         * modules/uninorm/canonical-decomposition-tests: New file.
46758
46759         New module 'uninorm/canonical-decomposition'.
46760         * lib/uninorm/canonical-decomposition.c: New file.
46761         * modules/uninorm/canonical-decomposition: New file.
46762
46763         Tests for module 'uninorm/decomposition'.
46764         * tests/uninorm/test-decomposition.c: New file.
46765         * modules/uninorm/decomposition-tests: New file.
46766
46767         New module 'uninorm/decomposition'.
46768         * lib/uninorm/decomposition.c: New file.
46769         * modules/uninorm/decomposition: New file.
46770
46771         New module 'uninorm/decomposition-table'.
46772         * lib/uninorm/decomposition-table.h: New file.
46773         * lib/uninorm/decomposition-table.c: New file.
46774         * lib/uninorm/decomposition-table1.h: New file, generated by
46775         gen-uni-tables.
46776         * lib/uninorm/decomposition-table2.h: New file, generated by
46777         gen-uni-tables.
46778         * modules/uninorm/decomposition-table: New file.
46779
46780         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46781         (UC_DECOMP_*): New enumeration items.
46782         (get_decomposition): New function.
46783         (struct decomp_table): New type.
46784         (output_decomposition, output_decomposition_tables): New functions.
46785         (unicode_composition_exclusions): New variable.
46786         (fill_composition_exclusions, debug_output_composition_tables): New
46787         functions.
46788         (main): Accept one more argument. Invoke fill_composition_exclusions.
46789         Output decomposition and composition tables.
46790
46791         New module 'uninorm/base'.
46792         * lib/uninorm.h: New file.
46793         * lib/unictype.h: Update comment.
46794         * modules/uninorm/base: New file.
46795
46796 2009-02-21  David Lutterkort  <lutter@redhat.com>
46797
46798         Tests for module 'safe-alloc'.
46799         * tests/test-safe-alloc.c: New file.
46800         * modules/safe-alloc-tests: New file.
46801
46802         New module 'safe-alloc'.
46803         * lib/safe-alloc.h: New file.
46804         * lib/safe-alloc.c: New file.
46805         * m4/safe-alloc.m4: New file.
46806         * modules/safe-alloc: New file.
46807         * doc/safe-alloc.texi: New file.
46808         * doc/gnulib.texi: Include it.
46809         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46810         safe-alloc.
46811
46812 2009-02-18  Bruno Haible  <bruno@clisp.org>
46813
46814         Fix link error on non-glibc systems.
46815         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46816         variable.
46817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46818
46819 2009-02-18  Jim Meyering  <meyering@redhat.com>
46820
46821         fts: avoid used-uninitialized error due to recent change
46822         * lib/fts.c (fts_read): Guard uses of the new member,
46823         parent->fts_n_dirs_remaining, since it's not relevant for
46824         the parent of a directory specified on the command-line.
46825
46826 2009-02-17  James Youngman  <jay@gnu.org>
46827             Bruno Haible  <bruno@clisp.org>
46828
46829         * m4/include_next.m4: Reformulate comment.
46830
46831 2009-02-16  Jim Meyering  <meyering@redhat.com>
46832
46833         fts: add #if guards so that the fts_lgpl module still builds
46834         * lib/fts.c: Guard just-added hash-table-using parts with
46835         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46836         Reported by Simon Josefsson.
46837
46838 2009-02-15  Bruno Haible  <bruno@clisp.org>
46839
46840         * modules/array-mergesort-tests: New file.
46841         * tests/test-array-mergesort.c: New file.
46842
46843         New module 'array-mergesort'.
46844         * modules/array-mergesort: New file.
46845         * lib/array-mergesort.h: New file.
46846
46847 2009-02-15  Bruno Haible  <bruno@clisp.org>
46848
46849         Fix 2009-02-07 commit.
46850         * lib/gen-uni-tables.c (output_predicate, output_category,
46851         output_combclass, output_bidi_category, output_decimal_digit,
46852         output_digit, output_numeric, output_mirror, output_scripts,
46853         output_ident_category, output_simple_mapping): Fix format directives.
46854         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46855
46856 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46857
46858         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46859         fixes are available from IBM.
46860
46861 2009-02-13  Jim Meyering  <meyering@redhat.com>
46862
46863         fts: arrange not to stat non-directories in more cases
46864         This makes GNU find (when it doesn't need to stat each file)
46865         *much* more efficient at traversing reiserfs file systems.
46866         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46867         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46868         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46869         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46870         (leaf_optimization_applies): New function.
46871         (LCO_hash, LCO_compare): New helper functions.
46872         (link_count_optimize_ok): New function.
46873         (fts_stat): Initialize new member (if dir).
46874         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46875         we've just stat'ed a directory.  Skip the stat call when possible.
46876         ---
46877         Note this AFS-related exchange:
46878         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46879         and note find's pioctl call in find/fstype.c.
46880         But that is necessary only if you want to enable the
46881         optimization for AFS, and for now, I don't.
46882
46883         fts: move a function definition "up" (no semantic change)
46884         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46885         "up" to precede upcoming use of a related function.
46886
46887 2009-02-11  Jim Meyering  <meyering@redhat.com>
46888
46889         fts: correct internal computation of nlinks (optimization-related)
46890         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46891         whether the current entry is a directory, so don't test it.
46892
46893 2009-02-10  Bruno Haible  <bruno@clisp.org>
46894
46895         Tests for module 'uniwbrk/ulc-wordbreaks'.
46896         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46897         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46898         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46899
46900         Tests for module 'uniwbrk/u32-wordbreaks'.
46901         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46902         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46903
46904         Tests for module 'uniwbrk/u16-wordbreaks'.
46905         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46906         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46907
46908         Tests for module 'uniwbrk/u8-wordbreaks'.
46909         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46910         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46911
46912 2009-02-10  Bruno Haible  <bruno@clisp.org>
46913
46914         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46915         property.
46916         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46917         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46918         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46919
46920 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46921
46922         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46923         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46924
46925 2009-02-10  Bruno Haible  <bruno@clisp.org>
46926
46927         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46928         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46929         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46930         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46931         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46932         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46933
46934 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46935
46936         * lib/sockets.h (gl_fd_to_handle): New function.
46937
46938         * tests/test-sockets.c: Call gl_fd_to_handle.
46939
46940 2009-02-09  Bruno Haible  <bruno@clisp.org>
46941
46942         * doc/havelib.texi: Document the conventions on bi-arch systems.
46943
46944 2009-02-08  Bruno Haible  <bruno@clisp.org>
46945
46946         Document the AC_LIB_LINKFLAGS macro.
46947         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46948         * doc/gnulib.texi: Include it.
46949
46950 2009-02-08  Bruno Haible  <bruno@clisp.org>
46951
46952         Fix wrong order of sections, compared to TOC.
46953         * doc/gnulib.texi: Include relocatable-maint.texi after the
46954         "Regular expressions" node, not before.
46955
46956 2009-02-08  Bruno Haible  <bruno@clisp.org>
46957
46958         Tests for module 'unicase/totitle'.
46959         * modules/unicase/totitle-tests: New file.
46960
46961         Tests for module 'unicase/tolower'.
46962         * modules/unicase/tolower-tests: New file.
46963
46964         Tests for module 'unicase/toupper'.
46965         * modules/unicase/toupper-tests: New file.
46966         * tests/unicase/test-mapping-part1.h: New file.
46967         * tests/unicase/test-mapping-part2.h: New file.
46968
46969         New module 'unicase/totitle'.
46970         * modules/unicase/totitle: New file.
46971         * lib/unicase/totitle.c: New file.
46972
46973         New module 'unicase/tolower'.
46974         * modules/unicase/tolower: New file.
46975         * lib/unicase/tolower.c: New file.
46976
46977         New module 'unicase/toupper'.
46978         * modules/unicase/toupper: New file.
46979         * lib/unicase/toupper.c: New file.
46980         * lib/unicase/simple-mapping.h: New file.
46981
46982         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46983         (mapping_table): New structure.
46984         (output_simple_mapping): New function.
46985         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46986         * modules/gen-uni-tables (Description): Update.
46987         * lib/unicase/toupper.h: New file, automatically generated by
46988         gen-uni-tables.
46989         * lib/unicase/tolower.h: New file, automatically generated by
46990         gen-uni-tables.
46991         * lib/unicase/totitle.h: New file, automatically generated by
46992         gen-uni-tables.
46993         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46994         gen-uni-tables.
46995         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46996         gen-uni-tables.
46997         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46998         gen-uni-tables.
46999
47000         New module 'unicase/base'.
47001         * modules/unicase/base: New file.
47002         * lib/unicase.h: New file.
47003
47004 2009-02-08  Bruno Haible  <bruno@clisp.org>
47005
47006         New module 'uniwbrk/ulc-wordbreaks'.
47007         * modules/uniwbrk/ulc-wordbreaks: New file.
47008         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47009
47010         New module 'uniwbrk/u32-wordbreaks'.
47011         * modules/uniwbrk/u32-wordbreaks: New file.
47012         * lib/uniwbrk/u32-wordbreaks.c: New file.
47013
47014         New module 'uniwbrk/u16-wordbreaks'.
47015         * modules/uniwbrk/u16-wordbreaks: New file.
47016         * lib/uniwbrk/u16-wordbreaks.c: New file.
47017
47018         New module 'uniwbrk/u8-wordbreaks'.
47019         * modules/uniwbrk/u8-wordbreaks: New file.
47020         * lib/uniwbrk/u8-wordbreaks.c: New file.
47021         * lib/uniwbrk/u-wordbreaks.h: New file.
47022
47023         New module 'uniwbrk/table'.
47024         * modules/uniwbrk/table: New file.
47025         * lib/uniwbrk/wbrktable.h: New file.
47026         * lib/uniwbrk/wbrktable.c: New file.
47027
47028         New module 'uniwbrk/wordbreak-property'.
47029         * modules/uniwbrk/wordbreak-property: New file.
47030         * lib/uniwbrk/wordbreak-property.c: New file.
47031
47032         * lib/gen-uni-tables.c (WBP_*): New enum items.
47033         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47034         (unicode_org_wbp): New variable.
47035         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47036         New functions.
47037         (wbp_table): New structure.
47038         (output_wbp, output_wbrk_tables): New functions.
47039         (main): Accept additional argument. Invoke fill_org_wbp,
47040         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47041         output_wbrk_tables.
47042         * modules/gen-uni-tables (Description): Update.
47043         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47044         gen-uni-tables.
47045
47046         New module 'uniwbrk/base'.
47047         * modules/uniwbrk/base: New file.
47048         * lib/uniwbrk.h: New file.
47049
47050 2009-02-08  Bruno Haible  <bruno@clisp.org>
47051
47052         Update to Unicode 5.1.0.
47053         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47054         U+2185..U+2188.
47055         (is_property_default_ignorable_code_point): Don't include characters
47056         of category Cc or Cs and not-a-characters.
47057         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47058         U+0D79, U+109E, U+109F, U+A60C.
47059         * lib/unictype/bidi_of.h: Regenerated.
47060         * lib/unictype/blocks.h: Regenerated.
47061         * lib/unictype/categ_C.h: Regenerated.
47062         * lib/unictype/categ_Cf.h: Regenerated.
47063         * lib/unictype/categ_Cn.h: Regenerated.
47064         * lib/unictype/categ_L.h: Regenerated.
47065         * lib/unictype/categ_Ll.h: Regenerated.
47066         * lib/unictype/categ_Lm.h: Regenerated.
47067         * lib/unictype/categ_Lo.h: Regenerated.
47068         * lib/unictype/categ_Lu.h: Regenerated.
47069         * lib/unictype/categ_M.h: Regenerated.
47070         * lib/unictype/categ_Mc.h: Regenerated.
47071         * lib/unictype/categ_Me.h: Regenerated.
47072         * lib/unictype/categ_Mn.h: Regenerated.
47073         * lib/unictype/categ_N.h: Regenerated.
47074         * lib/unictype/categ_Nd.h: Regenerated.
47075         * lib/unictype/categ_Nl.h: Regenerated.
47076         * lib/unictype/categ_No.h: Regenerated.
47077         * lib/unictype/categ_P.h: Regenerated.
47078         * lib/unictype/categ_Pd.h: Regenerated.
47079         * lib/unictype/categ_Pe.h: Regenerated.
47080         * lib/unictype/categ_Pf.h: Regenerated.
47081         * lib/unictype/categ_Pi.h: Regenerated.
47082         * lib/unictype/categ_Po.h: Regenerated.
47083         * lib/unictype/categ_Ps.h: Regenerated.
47084         * lib/unictype/categ_S.h: Regenerated.
47085         * lib/unictype/categ_Sk.h: Regenerated.
47086         * lib/unictype/categ_Sm.h: Regenerated.
47087         * lib/unictype/categ_So.h: Regenerated.
47088         * lib/unictype/categ_of.h: Regenerated.
47089         * lib/unictype/combining.h: Regenerated.
47090         * lib/unictype/ctype_alnum.h: Regenerated.
47091         * lib/unictype/ctype_alpha.h: Regenerated.
47092         * lib/unictype/ctype_graph.h: Regenerated.
47093         * lib/unictype/ctype_lower.h: Regenerated.
47094         * lib/unictype/ctype_print.h: Regenerated.
47095         * lib/unictype/ctype_punct.h: Regenerated.
47096         * lib/unictype/ctype_upper.h: Regenerated.
47097         * lib/unictype/decdigit.h: Regenerated.
47098         * lib/unictype/digit.h: Regenerated.
47099         * lib/unictype/mirror.h: Regenerated.
47100         * lib/unictype/numeric.h: Regenerated.
47101         * lib/unictype/pr_alphabetic.h: Regenerated.
47102         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47103         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47104         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47105         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47106         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47107         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47108         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47109         * lib/unictype/pr_combining.h: Regenerated.
47110         * lib/unictype/pr_dash.h: Regenerated.
47111         * lib/unictype/pr_decimal_digit.h: Regenerated.
47112         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47113         * lib/unictype/pr_deprecated.h: Regenerated.
47114         * lib/unictype/pr_diacritic.h: Regenerated.
47115         * lib/unictype/pr_extender.h: Regenerated.
47116         * lib/unictype/pr_format_control.h: Regenerated.
47117         * lib/unictype/pr_grapheme_base.h: Regenerated.
47118         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47119         * lib/unictype/pr_grapheme_link.h: Regenerated.
47120         * lib/unictype/pr_id_continue.h: Regenerated.
47121         * lib/unictype/pr_id_start.h: Regenerated.
47122         * lib/unictype/pr_ideographic.h: Regenerated.
47123         * lib/unictype/pr_ignorable_control.h: Regenerated.
47124         * lib/unictype/pr_lowercase.h: Regenerated.
47125         * lib/unictype/pr_math.h: Regenerated.
47126         * lib/unictype/pr_numeric.h: Regenerated.
47127         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47128         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47129         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47130         * lib/unictype/pr_other_id_continue.h: Regenerated.
47131         * lib/unictype/pr_other_lowercase.h: Regenerated.
47132         * lib/unictype/pr_other_math.h: Regenerated.
47133         * lib/unictype/pr_punctuation.h: Regenerated.
47134         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47135         * lib/unictype/pr_soft_dotted.h: Regenerated.
47136         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47137         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47138         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47139         * lib/unictype/pr_uppercase.h: Regenerated.
47140         * lib/unictype/pr_xid_continue.h: Regenerated.
47141         * lib/unictype/pr_xid_start.h: Regenerated.
47142         * lib/unictype/pr_zero_width.h: Regenerated.
47143         * lib/unictype/scripts.h: Regenerated.
47144         * lib/unictype/scripts_byname.gperf: Regenerated.
47145         * lib/unictype/sy_java_ident.h: Regenerated.
47146         * lib/unilbrk/lbrkprop1.h: Regenerated.
47147         * lib/unilbrk/lbrkprop2.h: Regenerated.
47148         * tests/unictype/test-categ_C.c: Regenerated.
47149         * tests/unictype/test-categ_Cf.c: Regenerated.
47150         * tests/unictype/test-categ_Cn.c: Regenerated.
47151         * tests/unictype/test-categ_L.c: Regenerated.
47152         * tests/unictype/test-categ_Ll.c: Regenerated.
47153         * tests/unictype/test-categ_Lm.c: Regenerated.
47154         * tests/unictype/test-categ_Lo.c: Regenerated.
47155         * tests/unictype/test-categ_Lu.c: Regenerated.
47156         * tests/unictype/test-categ_M.c: Regenerated.
47157         * tests/unictype/test-categ_Mc.c: Regenerated.
47158         * tests/unictype/test-categ_Me.c: Regenerated.
47159         * tests/unictype/test-categ_Mn.c: Regenerated.
47160         * tests/unictype/test-categ_N.c: Regenerated.
47161         * tests/unictype/test-categ_Nd.c: Regenerated.
47162         * tests/unictype/test-categ_Nl.c: Regenerated.
47163         * tests/unictype/test-categ_No.c: Regenerated.
47164         * tests/unictype/test-categ_P.c: Regenerated.
47165         * tests/unictype/test-categ_Pd.c: Regenerated.
47166         * tests/unictype/test-categ_Pe.c: Regenerated.
47167         * tests/unictype/test-categ_Pf.c: Regenerated.
47168         * tests/unictype/test-categ_Pi.c: Regenerated.
47169         * tests/unictype/test-categ_Po.c: Regenerated.
47170         * tests/unictype/test-categ_Ps.c: Regenerated.
47171         * tests/unictype/test-categ_S.c: Regenerated.
47172         * tests/unictype/test-categ_Sk.c: Regenerated.
47173         * tests/unictype/test-categ_Sm.c: Regenerated.
47174         * tests/unictype/test-categ_So.c: Regenerated.
47175         * tests/unictype/test-ctype_alnum.c: Regenerated.
47176         * tests/unictype/test-ctype_alpha.c: Regenerated.
47177         * tests/unictype/test-ctype_graph.c: Regenerated.
47178         * tests/unictype/test-ctype_lower.c: Regenerated.
47179         * tests/unictype/test-ctype_print.c: Regenerated.
47180         * tests/unictype/test-ctype_punct.c: Regenerated.
47181         * tests/unictype/test-ctype_upper.c: Regenerated.
47182         * tests/unictype/test-decdigit.h: Regenerated.
47183         * tests/unictype/test-digit.h: Regenerated.
47184         * tests/unictype/test-numeric.h: Regenerated.
47185         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47186         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47187         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47188         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47189         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47190         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47192         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47193         * tests/unictype/test-pr_combining.c: Regenerated.
47194         * tests/unictype/test-pr_dash.c: Regenerated.
47195         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47196         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47197         * tests/unictype/test-pr_deprecated.c: Regenerated.
47198         * tests/unictype/test-pr_diacritic.c: Regenerated.
47199         * tests/unictype/test-pr_extender.c: Regenerated.
47200         * tests/unictype/test-pr_format_control.c: Regenerated.
47201         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47202         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47203         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47204         * tests/unictype/test-pr_id_continue.c: Regenerated.
47205         * tests/unictype/test-pr_id_start.c: Regenerated.
47206         * tests/unictype/test-pr_ideographic.c: Regenerated.
47207         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47208         * tests/unictype/test-pr_lowercase.c: Regenerated.
47209         * tests/unictype/test-pr_math.c: Regenerated.
47210         * tests/unictype/test-pr_numeric.c: Regenerated.
47211         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47212         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47213         Regenerated.
47214         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47215         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47216         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47217         * tests/unictype/test-pr_other_math.c: Regenerated.
47218         * tests/unictype/test-pr_punctuation.c: Regenerated.
47219         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47220         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47221         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47222         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47223         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47224         * tests/unictype/test-pr_uppercase.c: Regenerated.
47225         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47226         * tests/unictype/test-pr_xid_start.c: Regenerated.
47227         * tests/unictype/test-pr_zero_width.c: Regenerated.
47228
47229         Update to Unicode 5.1.0.
47230         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47231         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47232         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47233         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47234         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47235         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47236         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47237         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47238         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47239         (nonspacing_table_ind): Update.
47240         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47241
47242         Update to Unicode 5.1.0.
47243         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47244         code transform.
47245         * lib/uniname/uniname.c (unicode_character_name,
47246         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47247         * lib/uniname/uninames.h: Regenerated.
47248         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47249
47250 2009-02-07  Bruno Haible  <bruno@clisp.org>
47251
47252         Merge gen-ctype and gen-lbrk into a single program.
47253         * lib/gen-uni-tables.c: New file, incorporating
47254         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47255         Add directory prefixes to the names of the generated files.
47256         * lib/unictype/gen-ctype.c: Remove file.
47257         * lib/unilbrk/gen-lbrk.c: Remove file.
47258         * modules/gen-uni-tables: New file.
47259         * modules/unictype/gen-ctype: Remove file.
47260         * modules/unilbrk/gen-lbrk: Remove file.
47261
47262 2009-02-07  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47265
47266         New module 'unistr/u32-strcoll'.
47267         * modules/unistr/u32-strcoll: New file.
47268         * lib/unistr/u32-strcoll.c: New file.
47269
47270         New module 'unistr/u16-strcoll'.
47271         * modules/unistr/u16-strcoll: New file.
47272         * lib/unistr/u16-strcoll.c: New file.
47273
47274         New module 'unistr/u8-strcoll'.
47275         * modules/unistr/u8-strcoll: New file.
47276         * lib/unistr/u8-strcoll.c: New file.
47277         * lib/unistr/u-strcoll.h: New file.
47278
47279 2009-02-07  Bruno Haible  <bruno@clisp.org>
47280
47281         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47282         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47283         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47284         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47285         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47286         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47287
47288 2009-02-07  Bruno Haible  <bruno@clisp.org>
47289
47290         Make 64-bit clean.
47291         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47292         output_combclass, output_bidi_category, output_decimal_digit,
47293         output_digit, output_numeric, output_mirror, output_scripts,
47294         output_ident_category): Use proper width specifier in format strings.
47295
47296 2009-02-07  Bruno Haible  <bruno@clisp.org>
47297
47298         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47299         failure behaviour.
47300
47301 2009-02-07  Jim Meyering  <meyering@redhat.com>
47302
47303         regex: avoid compilation failure with upcoming gcc-4.4
47304         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47305         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47306         "... error: integer overflow in preprocessor expression".
47307
47308 2009-02-05  Ben Pfaff  <blp@gnu.org>
47309
47310         Fix link errors on Windows when close module is used.
47311         * modules/close: Add $(LIB_CLOSE) to Link section.
47312         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47313         $(LIB_CLOSE) on Windows.
47314
47315 2009-02-05  Jim Meyering  <meyering@redhat.com>
47316
47317         still avoid unused-parameter warnings, but do it cleanly
47318         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47319         (get_fs_usage): Cast to void instead.
47320         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47321         (dev_from_mount_options, read_file_system_list): Cast to void.
47322         Prompted by Bruno Haible.
47323
47324 2009-02-04  Jim Meyering  <meyering@redhat.com>
47325
47326         fsusage.c: correct copyright year
47327         * lib/fsusage.c: Reflect year in which the change is pushed into
47328
47329         avoid misc. warnings
47330         * lib/fsusage.c (UNUSED_PARAM): Define.
47331         (get_fs_usage): Mark parameter "disk" as unused.
47332         * lib/getugroups.c (getgrent): Use "void" in prototype.
47333         * lib/mountlist.c: Mark unused parameters.
47334         (read_file_system_list): Declare a local with "const".
47335         * lib/nanosleep.c (getnow): Declare static.
47336         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47337
47338         dirfd: set errno upon failure
47339         * lib/dirfd.c: Include <errno.h>.
47340         Set errno to ENOTSUP when returning -1.
47341         * modules/dirfd (Depends-on): Add errno.
47342         Suggested by John Kodis <kodis@comcast.net>.
47343
47344 2009-02-01  Bruno Haible  <bruno@clisp.org>
47345
47346         Don't assume sizeof (long) >= sizeof (void *).
47347         * lib/memcmp.c: Include stdint.h.
47348         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47349         srcp2 to 'const byte *'.
47350         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47351         types to uintptr_t.
47352         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47353         * modules/memcmp (Depends-on): Add stdint.
47354         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47355
47356 2009-01-30  Eric Blake  <ebb9@byu.net>
47357
47358         fix more require-before-expand issues
47359         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47360         expand, AC_PROG_AWK.
47361         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47362
47363 2009-01-28  Eric Blake  <ebb9@byu.net>
47364
47365         version-etc: use consistent URL formatting
47366         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47367         Improve formatting.  Use fputs for string without %.
47368
47369 2009-01-28  Jim Meyering  <meyering@redhat.com>
47370
47371         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47372         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47373         "underquoted definition of NAME" from autoconf-2.59.
47374
47375 2009-01-28  Bruno Haible  <bruno@clisp.org>
47376
47377         * doc/gnulib.texi: Add "Obsolete modules" to index.
47378
47379 2009-01-28  Jim Meyering  <meyering@redhat.com>
47380
47381         useless-if-before-free: recognize more variants
47382         * build-aux/useless-if-before-free: Also recognize e.g.,
47383         if (NULL != p) free (p);
47384
47385 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47386
47387         test-getaddrinfo: skip (don't fail) this test when there's no network
47388         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47389         on the presumption that it means you lack network access.
47390
47391 2009-01-26  Jim Meyering  <meyering@redhat.com>
47392
47393         fflush: avoid warnings on modern systems
47394         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47395         pos and result, into scopes where they're used.
47396
47397 2009-01-26  Eric Blake  <ebb9@byu.net>
47398
47399         Silence warning reintroduced by recent extensions patch.
47400         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47401         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47402         autoconf.
47403
47404         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47405         * m4/00gnulib.m4: New file.
47406         * gnulib-tool (func_get_filelist): Always use it.
47407         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47408         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47409
47410 2009-01-25  Bruno Haible  <bruno@clisp.org>
47411
47412         Make test-quotearg work on MacOS X and AIX.
47413         * tests/test-quotearg.sh: New file.
47414         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47415         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47416         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47417         include <libintl.h>.
47418         (fake_locale): Remove variable.
47419         (gettext, dgettext, dcgettext): Remove functions.
47420         (main): Instead of setting a fake locale, set a real locale. Call
47421         textdomain and bindtextdomain.
47422         * modules/quotearg-tests (Files): Add the new files.
47423         (Depends-on): Add gettext, setenv, unsetenv.
47424         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47425         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47426         Augment TESTS_ENVIRONMENT.
47427
47428 2009-01-25  Bruno Haible  <bruno@clisp.org>
47429
47430         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47431         fr_FR.ISO8859-1 locale on MacOS X.
47432         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47433         ja_JP.eucJP locale on MacOS X.
47434         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47435         zh_CN.GB18030 locale on MacOS X.
47436
47437 2009-01-25  Bruno Haible  <bruno@clisp.org>
47438
47439         Avoid link errors on MacOS X 10.3.
47440         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47441         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47442
47443 2009-01-25  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47446         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47447         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47448         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47449         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47450         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47451         posix_spawnattr_init, posix_spawnattr_setsigmask,
47452         posix_spawnattr_setflags, posix_spawnattr_destroy.
47453
47454         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47455         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47456         * modules/execute (Files): Remove m4/posix_spawn.m4.
47457         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47458         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47459         posix_spawnattr_init, posix_spawnattr_setsigmask,
47460         posix_spawnattr_setflags, posix_spawnattr_destroy.
47461
47462 2009-01-25  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/glthread/threadlib.c: Include <stdlib.h>.
47465
47466 2009-01-25  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/glthread/threadlib.c (dummy): New declaration.
47469
47470 2009-01-25  Bruno Haible  <bruno@clisp.org>
47471
47472         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47473         multibyte characters also for the GB18030 encoding. Don't crash when
47474         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47475
47476 2009-01-25  Bruno Haible  <bruno@clisp.org>
47477
47478         Avoid redefining 'struct random_data' on OSF/1 5.1.
47479         * lib/stdlib.in.h: Include <random.h> if it exists.
47480         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47481         HAVE_RANDOM_H. Include <random.h> when testing whether
47482         'struct random_data' exists.
47483         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47484
47485 2009-01-25  Bruno Haible  <bruno@clisp.org>
47486
47487         Don't install charset.alias on MacOS X >= 10.3.
47488         * lib/localcharset.c (DARWIN7): New macro.
47489         (get_charset_aliases): Hardcode the result for Darwin7.
47490         * modules/localcharset (install-exec-local): Don't install
47491         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47492
47493 2009-01-25  Bruno Haible  <bruno@clisp.org>
47494
47495         Don't install charset.alias on mingw and Cygwin.
47496         * modules/localcharset (install-exec-local): Don't install
47497         charset.alias on mingw and Cygwin, if the file does not yet exist.
47498         The result for these platforms is hardcoded in localcharset.c.
47499
47500 2009-01-25  Bruno Haible  <bruno@clisp.org>
47501
47502         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47504         before requiring AC_USE_SYSTEM_EXTENSIONS.
47505
47506 2009-01-25  Jim Meyering  <meyering@redhat.com>
47507
47508         c-strtod: avoid warnings
47509         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47510         "assignment discards qualifiers from pointer target type" warnings.
47511
47512 2009-01-24  Bruno Haible  <bruno@clisp.org>
47513
47514         Add support for non-UTF-8 locales on MacOS X.
47515         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47516         canonical encodings. For Darwin 7 and newer, don't map traditional
47517         encodings to UTF-8.
47518         Reported by Vincent Lefevre <vincent@vinc17.org>
47519         at <http://savannah.gnu.org/bugs/?25235>.
47520
47521 2009-01-24  Bruno Haible  <bruno@clisp.org>
47522
47523         * doc/gnulib.texi (Obsolete modules): New section.
47524         Reported by Mike Frysinger <vapier@gentoo.org>.
47525
47526 2009-01-24  Bruno Haible  <bruno@clisp.org>
47527
47528         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47529         (%.dvi): New rule.
47530
47531 2009-01-24  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47534         Reported by Eric Blake.
47535
47536 2009-01-24  Bruno Haible  <bruno@clisp.org>
47537
47538         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47539         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47540         Reported by Gary V. Vaughan <gary@gnu.org>.
47541
47542 2009-01-24  Bruno Haible  <bruno@clisp.org>
47543
47544         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47545
47546 2009-01-23  Bruno Haible  <bruno@clisp.org>
47547
47548         Make c-strtod, c-strtold usable in libraries.
47549         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47550         (C_STRTOD): Call strdup instead of xstrdup.
47551         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47552         * modules/c-strtold (Depends-on): Likewise.
47553         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47554         * NEWS: Mention the change.
47555         Reported by Michael Gold <mgold@ncf.ca>.
47556
47557 2009-01-23  Jim Meyering  <meyering@redhat.com>
47558
47559         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47560         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47561         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47562
47563 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47564
47565         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47566         GNU CoreUtils.
47567         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47568         * modules/version-etc (Description): Update.
47569
47570 2009-01-22  Bruno Haible  <bruno@clisp.org>
47571
47572         Cache the C locale object.
47573         * lib/c-strtod.c (c_locale_cache): New variable.
47574         (c_locale): New function.
47575         (C_STRTOD): Use it, and don't call freelocale.
47576         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47577         Suggested by Paolo Bonzini.
47578
47579 2009-01-21  Bruno Haible  <bruno@clisp.org>
47580
47581         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47582         conditions other than overflow.
47583
47584 2009-01-21  Bruno Haible  <bruno@clisp.org>
47585
47586         * lib/c-strtod.c: Include errno.h.
47587         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47588         value from STRTOD_L and STRTOD.
47589
47590 2009-01-21  Bruno Haible  <bruno@clisp.org>
47591         and Jim Meyering  <meyering@redhat.com>
47592
47593         nanosleep: skip configure test (fail it) for apple universal builds
47594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47595         universal builds, assume that nanosleep does not work.
47596         * modules/nanosleep (Depends-on): Add multiarch.
47597
47598         mktime: skip configure test (fail it) for apple universal builds
47599         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47600         universal builds, assume that mktime does not work.
47601         * modules/mktime (Depends-on): Add multiarch.
47602
47603 2009-01-21  Eric Blake  <ebb9@byu.net>
47604
47605         multiarch: avoid expand-before-require warning
47606         * modules/multiarch (configure.ac): Require, rather than expand,
47607         gl_MULTIARCH.
47608         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47609         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47610         enforce that all clients require it.  Partial reversion of
47611         2008-12-29 patch.
47612
47613         error: avoid expand-before-require warning
47614         * modules/errno (configure.ac): Require, rather than expand,
47615         gl_HEADER_ERRNO_H.
47616         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47617         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47618         enforce that all clients require it.
47619
47620         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47621         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47622         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47623         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47624
47625 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47626
47627         Revert:
47628         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47629
47630         regex: do not depend on obsolete modules.
47631         * modules/regex: Remove memcmp and memmove.
47632
47633 2009-01-20  Bruno Haible  <bruno@clisp.org>
47634
47635         Make the 'link' module link on Windows NT 4.
47636         * lib/link.c (_WIN32_WINNT): Don't define.
47637         (CreateHardLinkFuncType): New type.
47638         (CreateHardLinkFunc, initialized): New variables.
47639         (initialize): New function.
47640         (link): Invoke CreateHardLink indirectly through the function pointer.
47641
47642 2009-01-20  Bruno Haible  <bruno@clisp.org>
47643
47644         Fix compilation failure on mingw.
47645         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47646
47647 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47648
47649         * doc/c-strtod.texi: Mention a couple of restrictions.
47650
47651 2009-01-20  Jim Meyering  <meyering@redhat.com>
47652
47653         gettimeofday: move more declarations out of functions
47654         * lib/gettimeofday.c: Move extern declarations of tzset and
47655         gmtime out of containing functions.  Prompted by Bruno Haible.
47656
47657 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47658
47659         regex: do not depend on obsolete modules.
47660         * modules/regex: Remove memcmp and memmove.
47661
47662 2009-01-19  Bruno Haible  <bruno@clisp.org>
47663
47664         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47665         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47666         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47667         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47668         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47669
47670 2009-01-19  Bruno Haible  <bruno@clisp.org>
47671
47672         * tests/test-link.c: Include <errno.h>.
47673         (main): Exit with code 77 when a hard link cannot be created due to
47674         the file system.
47675         * tests/test-link.sh: Skip test when a hard link cannot be created due
47676         to the file system.
47677         Suggested by Eric Blake.
47678
47679 2009-01-19  Martin Lambers  <marlam@marlam.de>
47680
47681         * modules/link-tests: New file.
47682         * tests/test-link.sh: New file.
47683         * tests/test-link.c: New file.
47684
47685 2009-01-19  Eric Blake  <ebb9@byu.net>
47686
47687         doc: mention another function added in cygwin 1.7.0
47688         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47689         Another new function in cygwin 1.7.
47690
47691 2009-01-19  Bruno Haible  <bruno@clisp.org>
47692
47693         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47694         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47695         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47696         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47697         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47698         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47700         * m4/md4.m4 (gl_MD4): Likewise.
47701         * m4/md5.m4 (gl_MD5): Likewise.
47702         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47703         * m4/sha1.m4 (gl_SHA1): Likewise.
47704         * m4/sha256.m4 (gl_SHA256): Likewise.
47705         * m4/sha512.m4 (gl_SHA512): Likewise.
47706
47707 2009-01-19  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/uniname/uniname-tests (Depends-on): Add progname.
47710         * tests/uniname/test-uninames.c: Include progname.h.
47711         (main): Call set_program_name.
47712
47713         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47714         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47715         (main): Call set_program_name.
47716
47717         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47718         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47719         (main): Call set_program_name.
47720
47721         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47722         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47723         (main): Call set_program_name.
47724
47725         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47726         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47727         (main): Call set_program_name.
47728
47729         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47730         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47731         (main): Call set_program_name.
47732
47733         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47734         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47735         (main): Call set_program_name.
47736
47737         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47738         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47739         (main): Call set_program_name.
47740
47741         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47742         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47743         (main): Call set_program_name.
47744
47745 2009-01-19  Eric Blake  <ebb9@byu.net>
47746
47747         test-unistd: test previous patch
47748         * tests/test-unistd.c: Test *_FILENO macros.
47749
47750         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47751         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47752         Guarantee a definition.
47753         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47754         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47755         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47756         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47757         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47758         Likewise.
47759         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47760         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47761         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47762         Likewise.
47763         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47764         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47765         (STDERR_FILENO): Likewise.
47766         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47767         (STDERR_FILENO): Likewise.
47768         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47769         (STDERR_FILENO): Likewise.
47770         Reported by Elbert Pol.
47771
47772 2009-01-19  Eric Blake  <ebb9@byu.net>
47773
47774         doc: mention more functions added in cygwin 1.7.0
47775         * doc/posix-functions/abort.texi (abort): Update wording related
47776         to cygwin.
47777         * doc/posix-functions/daylight.texi (daylight): Likewise.
47778         * doc/posix-functions/optarg.texi (optarg): Likewise.
47779         * doc/posix-functions/optarg.texi (opterr): Likewise.
47780         * doc/posix-functions/optarg.texi (optind): Likewise.
47781         * doc/posix-functions/optarg.texi (optopt): Likewise.
47782         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47783         worked in 1.5.x, and was withdrawn in 1.7.
47784         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47785         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47786         cygwin versions.
47787         * doc/posix-functions/perror.texi (perror): Likewise.
47788         * doc/posix-functions/printf.texi (printf): Likewise.
47789         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47790         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47791         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47792         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47793         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47794         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47795         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47796         Likewise.
47797         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47798         Likewise.
47799         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47800         this function.
47801         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47802         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47803         Likewise.
47804         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47805         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47806         * doc/posix-functions/confstr.texi (confstr): Likewise.
47807         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47808         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47809         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47810         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47811         * doc/posix-functions/fputws.texi (fputws): Likewise.
47812         * doc/posix-functions/fwide.texi (fwide): Likewise.
47813         * doc/posix-functions/getwc.texi (getwc): Likewise.
47814         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47815         * doc/posix-functions/putwc.texi (putwc): Likewise.
47816         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47817         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47818         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47819         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47820         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47821         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47822         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47823         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47824         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47825         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47826         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47827
47828 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47829
47830         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47831         * lib/ioctl.c: Include <sys/ioctl.h>.
47832
47833 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47834
47835         * modules/getdate-tests (Depends-on): Add progname.
47836         * tests/test-getdate.c: Use progname module, to avoid link errors
47837         on non-glibc systems.
47838
47839 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47840
47841         * modules/filenamecat-tests (Depends-on): Add progname.
47842         * modules/fstrcmp-tests (Depends-on): Likewise.
47843
47844         * tests/test-filenamecat.c: Use progname module, to avoid link
47845         errors on non-glibc systems.
47846         * tests/test-fstrcmp.c: Likewise.
47847
47848 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47849
47850         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47851         * lib/gettimeofday.c: Move extern declaration out of function.
47852
47853 2009-01-18  Bruno Haible  <bruno@clisp.org>
47854
47855         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47856         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47857         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47858
47859 2009-01-18  Bruno Haible  <bruno@clisp.org>
47860
47861         * lib/strftime.c (MEMPCPY): Remove unused macro.
47862         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47863
47864 2009-01-18  Martin Lambers  <marlam@marlam.de>
47865
47866         New module 'link'.
47867         * lib/unistd.in.h (link): New declaration.
47868         * lib/link.c: New file.
47869         * m4/link.m4: New file.
47870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47871         HAVE_LINK.
47872         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47873         * modules/link: New file.
47874         * doc/posix-functions/link.texi: Mention the new module.
47875
47876 2009-01-18  Bruno Haible  <bruno@clisp.org>
47877
47878         * tests/test-avltree_list.c (main): Call set_program_name.
47879         * tests/test-avltree_oset.c (main): Likewise.
47880         * tests/test-obstack-printf.c: Include progname.h.
47881         (main): Call set_program_name.
47882         * tests/test-quotearg.c: Include progname.h.
47883         (main): Call set_program_name.
47884         * tests/test-xmemdup0.c: Include progname.h.
47885         (main): Call set_program_name.
47886
47887 2009-01-18  Bruno Haible  <bruno@clisp.org>
47888
47889         New module 'alphasort'.
47890         * lib/dirent.in.h (alphasort): New declaration.
47891         * lib/alphasort.c: New file, from glibc with modifications.
47892         * m4/alphasort.m4: New file.
47893         * modules/alphasort: New file.
47894         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47895         HAVE_ALPHASORT.
47896         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47897         HAVE_ALPHASORT.
47898         * doc/posix-functions/alphasort.texi: Mention the new module and the
47899         portability problems.
47900
47901 2009-01-18  Bruno Haible  <bruno@clisp.org>
47902
47903         New module 'scandir'.
47904         * lib/dirent.in.h (scandir): New declaration.
47905         * lib/scandir.c: New file, from glibc with modifications.
47906         * m4/scandir.m4: New file.
47907         * modules/scandir: New file.
47908         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47909         HAVE_SCANDIR.
47910         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47911         HAVE_SCANDIR.
47912         * doc/posix-functions/scandir.texi: Mention the new module and the
47913         portability problems.
47914
47915 2009-01-17  Bruno Haible  <bruno@clisp.org>
47916
47917         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47918         Update documentation.
47919         (func_remove_suffix): Escape all dots in the suffix. Update
47920         documentation.
47921         (func_filter_filelist): Update documentation.
47922         Reported by Ralf Wildenhues.
47923
47924 2009-01-17  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/dprintf-posix-tests: New file.
47927         * tests/test-dprintf-posix.sh: New file.
47928         * tests/test-dprintf-posix.c: New file.
47929
47930         New modules 'dprintf', 'dprintf-posix'.
47931         * lib/stdio.in.h (dprintf): New declaration.
47932         * lib/dprintf.c: New file.
47933         * m4/dprintf.m4: New file.
47934         * m4/dprintf-posix.m4: New file.
47935         * modules/dprintf: New file.
47936         * modules/dprintf-posix: New file.
47937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47938         HAVE_DPRINTF, REPLACE_DPRINTF.
47939         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47940         HAVE_DPRINTF, REPLACE_DPRINTF.
47941         * doc/posix-functions/dprintf.texi: Mention the new modules.
47942
47943 2009-01-17  Bruno Haible  <bruno@clisp.org>
47944
47945         * modules/vdprintf-posix-tests: New file.
47946         * tests/test-vdprintf-posix.sh: New file.
47947         * tests/test-vdprintf-posix.c: New file.
47948
47949         New modules 'vdprintf', 'vdprintf-posix'.
47950         * lib/stdio.in.h (vdprintf): New declaration.
47951         * lib/vdprintf.c: New file.
47952         * m4/vdprintf.m4: New file.
47953         * m4/vdprintf-posix.m4: New file.
47954         * modules/vdprintf: New file.
47955         * modules/vdprintf-posix: New file.
47956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47957         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47958         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47959         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47960         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47961
47962 2009-01-17  Bruno Haible  <bruno@clisp.org>
47963
47964         Fix replacement of fopen on mingw.
47965         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47966         mingw.
47967
47968 2009-01-17  Bruno Haible  <bruno@clisp.org>
47969
47970         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47971         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47972
47973 2009-01-17  Bruno Haible  <bruno@clisp.org>
47974
47975         Avoid test-fflush2.sh failure on mingw.
47976         * tests/test-fflush2.c: Include binary-io.h.
47977         (main): Put standard input into binary mode.
47978         * modules/fflush-tests (Depends-on): Add binary-io.
47979
47980 2009-01-17  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/wchar.in.h: In another particular situation, include only the
47983         system's <wchar.h> file.
47984         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47985         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47986         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47987
47988 2009-01-17  Bruno Haible  <bruno@clisp.org>
47989
47990         Support for stripping executables in --enable-relocatable.
47991         * build-aux/install-reloc: Expect one more argument, or an environment
47992         variable RELOC_STRIP_PROG. If set, strip the destination program and
47993         its wrapper.
47994         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47995         RELOC_STRIP_PROG.
47996         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47997         to set RELOCATABLE_STRIP.
47998         * NEWS: Mention the new Makefile requirement.
47999
48000 2009-01-17  Bruno Haible  <bruno@clisp.org>
48001
48002         * build-aux/install-reloc: Remove debugging information left over by
48003         C compiler on MacOS X.
48004
48005 2009-01-17  Bruno Haible  <bruno@clisp.org>
48006
48007         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48008         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48009         _NSGetExecutablePath.
48010
48011 2009-01-16  Jim Meyering  <meyering@redhat.com>
48012
48013         strerror: avoid warnings about discarding "const"
48014         * lib/strerror.c (rpl_strerror): Instead of returning a const
48015         string from each and every "case", use a variable, and add a single
48016         cast after the switch.
48017
48018 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48019
48020         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48021
48022 2009-01-16  Bruno Haible  <bruno@clisp.org>
48023
48024         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48025         array initializer syntax that also works in C++ mode.
48026         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48027
48028 2009-01-16  Jim Meyering  <meyering@redhat.com>
48029
48030         poll: suppress a warning
48031         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48032         to ignore "...unsigned expression < 0 is always false" warnings.
48033
48034 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48035
48036         poll: remove declarations of unused variables
48037         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48038         sockbuf and optlen.
48039
48040 2009-01-15  Bruno Haible  <bruno@clisp.org>
48041
48042         Make fflush-after-ungetc POSIX compliant on BSD systems.
48043         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48044         (clear_ungetc_buffer): Implement also for other systems.
48045         (rpl_fflush): On glibc systems, invoke
48046         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48047         clear_ungetc_buffer after fetching the stream's position, not before.
48048
48049 2009-01-15  Bruno Haible  <bruno@clisp.org>
48050
48051         Make fflush-after-ungetc POSIX compliant on glibc systems.
48052         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48053         after ungetc.
48054         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48055         (rpl_fflush): On glibc systems, simply call the system's fflush
48056         function after clearing the ungetc buffer.
48057         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48058         Instead, lseek only to the end of file, then use the system's fseeko
48059         for the rest. On glibc systems, reset the EOF indicator bit.
48060
48061 2009-01-15  Jim Meyering  <meyering@redhat.com>
48062
48063         openmp.m4: revert quote-adding change, for portability to older autoconf
48064         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48065         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48066         Simon Josefsson noticed the problem when using autoconf-2.61.
48067
48068 2009-01-15  Bruno Haible  <bruno@clisp.org>
48069
48070         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48071         * tests/test-fflush2.c (ASSERT): Always fail.
48072         (main): Add two tests for fflush() after ungetc(), taking into account
48073         the Austin Group's clarification.
48074         Suggested by Eric Blake.
48075
48076 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48077
48078         mktime.m4: remove K&R-style function prototypes
48079         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48080         for the Sun C++ compiler.
48081
48082 2009-01-14  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48085         while including <wchar.h>.
48086         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48087         the system's <wchar.h> file.
48088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48089
48090 2009-01-14  Bruno Haible  <bruno@clisp.org>
48091
48092         * m4/csharp.m4: Don't mention gettext on the serial number line.
48093         * m4/csharpexec.m4: Likewise.
48094         * m4/eaccess.m4: Likewise.
48095         * m4/javaexec.m4: Likewise.
48096         * m4/sig_atomic_t.m4: Likewise.
48097         * m4/tmpdir.m4: Likewise.
48098         * m4/intldir.m4: Bump gettext version.
48099         * m4/lib-ld.m4: Likewise.
48100
48101 2009-01-14  Bruno Haible  <bruno@clisp.org>
48102
48103         * lib/progname.c (set_program_name): Add more comments.
48104         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48105
48106 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48107
48108         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48109         were sys/stat.h does not define it.
48110
48111 2009-01-14  Jim Meyering  <meyering@redhat.com>
48112
48113         many *.m4 files: improve m4 quoting
48114         99% of this change was performed by running the following commands:
48115         git ls-files | grep '\.m4$' | xargs perl -pi \
48116           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48117           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48118           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48119           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48120         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48121         The remainder were to add Copyright dates, increment serial numbers,
48122         undo some changes in comments, exclude m4/intl.m4, and add quotes
48123         around the "1" in ",1" where the unusual spacing prohibited the
48124         above regexps from doing the job.  For more details, see
48125         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48126         * m4/acl.m4: Modified.
48127         * m4/afs.m4: Likewise.
48128         * m4/alloca.m4: Likewise.
48129         * m4/argp.m4: Likewise.
48130         * m4/argz.m4: Likewise.
48131         * m4/atexit.m4: Likewise.
48132         * m4/bison-i18n.m4: Likewise.
48133         * m4/bison.m4: Likewise.
48134         * m4/byteswap.m4: Likewise.
48135         * m4/c-stack.m4: Likewise.
48136         * m4/c-strtod.m4: Likewise.
48137         * m4/calloc.m4: Likewise.
48138         * m4/canonicalize-lgpl.m4: Likewise.
48139         * m4/chown.m4: Likewise.
48140         * m4/clock_time.m4: Likewise.
48141         * m4/codeset.m4: Likewise.
48142         * m4/copy-file.m4: Likewise.
48143         * m4/csharp.m4: Likewise.
48144         * m4/csharpcomp.m4: Likewise.
48145         * m4/csharpexec.m4: Likewise.
48146         * m4/d-ino.m4: Likewise.
48147         * m4/d-type.m4: Likewise.
48148         * m4/dirfd.m4: Likewise.
48149         * m4/double-slash-root.m4: Likewise.
48150         * m4/eaccess.m4: Likewise.
48151         * m4/eealloc.m4: Likewise.
48152         * m4/environ.m4: Likewise.
48153         * m4/errno_h.m4: Likewise.
48154         * m4/euidaccess.m4: Likewise.
48155         * m4/execute.m4: Likewise.
48156         * m4/fatal-signal.m4: Likewise.
48157         * m4/fchdir.m4: Likewise.
48158         * m4/fcntl_h.m4: Likewise.
48159         * m4/fileblocks.m4: Likewise.
48160         * m4/filenamecat.m4: Likewise.
48161         * m4/findprog.m4: Likewise.
48162         * m4/flexmember.m4: Likewise.
48163         * m4/fnmatch.m4: Likewise.
48164         * m4/fopen.m4: Likewise.
48165         * m4/fpending.m4: Likewise.
48166         * m4/fprintf-posix.m4: Likewise.
48167         * m4/free.m4: Likewise.
48168         * m4/frexp.m4: Likewise.
48169         * m4/frexpl.m4: Likewise.
48170         * m4/fsusage.m4: Likewise.
48171         * m4/ftruncate.m4: Likewise.
48172         * m4/gc-camellia.m4: Likewise.
48173         * m4/gc-random.m4: Likewise.
48174         * m4/gc.m4: Likewise.
48175         * m4/getaddrinfo.m4: Likewise.
48176         * m4/getcwd-abort-bug.m4: Likewise.
48177         * m4/getcwd-path-max.m4: Likewise.
48178         * m4/getdate.m4: Likewise.
48179         * m4/getdomainname.m4: Likewise.
48180         * m4/getgroups.m4: Likewise.
48181         * m4/gethostname.m4: Likewise.
48182         * m4/gethrxtime.m4: Likewise.
48183         * m4/getline.m4: Likewise.
48184         * m4/getloadavg.m4: Likewise.
48185         * m4/getndelim2.m4: Likewise.
48186         * m4/getpass.m4: Likewise.
48187         * m4/gettext.m4: Likewise.
48188         * m4/gettime.m4: Likewise.
48189         * m4/gettimeofday.m4: Likewise.
48190         * m4/gnulib-common.m4: Likewise.
48191         * m4/group-member.m4: Likewise.
48192         * m4/host-os.m4: Likewise.
48193         * m4/iconv.m4: Likewise.
48194         * m4/iconv_open.m4: Likewise.
48195         * m4/inet_ntop.m4: Likewise.
48196         * m4/inet_pton.m4: Likewise.
48197         * m4/inline.m4: Likewise.
48198         * m4/intldir.m4: Likewise.
48199         * m4/intlmacosx.m4: Likewise.
48200         * m4/intmax.m4: Likewise.
48201         * m4/intmax_t.m4: Likewise.
48202         * m4/inttypes.m4: Likewise.
48203         * m4/inttypes_h.m4: Likewise.
48204         * m4/inttypes-pri.m4: Likewise.
48205         * m4/isapipe.m4: Likewise.
48206         * m4/isnand.m4: Likewise.
48207         * m4/isnanf.m4: Likewise.
48208         * m4/isnanl.m4: Likewise.
48209         * m4/javacomp.m4: Likewise.
48210         * m4/javaexec.m4: Likewise.
48211         * m4/jm-winsz1.m4: Likewise.
48212         * m4/jm-winsz2.m4: Likewise.
48213         * m4/lchown.m4: Likewise.
48214         * m4/lcmessage.m4: Likewise.
48215         * m4/ldexpl.m4: Likewise.
48216         * m4/lib-ld.m4: Likewise.
48217         * m4/lib-link.m4: Likewise.
48218         * m4/libsigsegv.m4: Likewise.
48219         * m4/link-follow.m4: Likewise.
48220         * m4/localcharset.m4: Likewise.
48221         * m4/locale-fr.m4: Likewise.
48222         * m4/locale-ja.m4: Likewise.
48223         * m4/locale-tr.m4: Likewise.
48224         * m4/locale-zh.m4: Likewise.
48225         * m4/lock.m4: Likewise.
48226         * m4/longlong.m4: Likewise.
48227         * m4/ls-mntd-fs.m4: Likewise.
48228         * m4/lstat.m4: Likewise.
48229         * m4/malloc.m4: Likewise.
48230         * m4/mathl.m4: Likewise.
48231         * m4/mbrtowc.m4: Likewise.
48232         * m4/mbstate_t.m4: Likewise.
48233         * m4/mbswidth.m4: Likewise.
48234         * m4/memchr.m4: Likewise.
48235         * m4/memcmp.m4: Likewise.
48236         * m4/memcpy.m4: Likewise.
48237         * m4/memmem.m4: Likewise.
48238         * m4/memmove.m4: Likewise.
48239         * m4/mempcpy.m4: Likewise.
48240         * m4/memrchr.m4: Likewise.
48241         * m4/memset.m4: Likewise.
48242         * m4/minmax.m4: Likewise.
48243         * m4/mkdir-slash.m4: Likewise.
48244         * m4/mkdtemp.m4: Likewise.
48245         * m4/mktime.m4: Likewise.
48246         * m4/mmap-anon.m4: Likewise.
48247         * m4/mountlist.m4: Likewise.
48248         * m4/nanosleep.m4: Likewise.
48249         * m4/nls.m4: Likewise.
48250         * m4/nocrash.m4: Likewise.
48251         * m4/open.m4: Likewise.
48252         * m4/openat.m4: Likewise.
48253         * m4/openmp.m4: Likewise.
48254         * m4/pathmax.m4: Likewise.
48255         * m4/perl.m4: Likewise.
48256         * m4/physmem.m4: Likewise.
48257         * m4/pipe.m4: Likewise.
48258         * m4/po.m4: Likewise.
48259         * m4/poll.m4: Likewise.
48260         * m4/posixtm.m4: Likewise.
48261         * m4/posixver.m4: Likewise.
48262         * m4/printf-frexp.m4: Likewise.
48263         * m4/printf-frexpl.m4: Likewise.
48264         * m4/printf-posix.m4: Likewise.
48265         * m4/printf-posix-rpl.m4: Likewise.
48266         * m4/printf.m4: Likewise.
48267         * m4/progtest.m4: Likewise.
48268         * m4/putenv.m4: Likewise.
48269         * m4/readline.m4: Likewise.
48270         * m4/readlink.m4: Likewise.
48271         * m4/readutmp.m4: Likewise.
48272         * m4/realloc.m4: Likewise.
48273         * m4/regex.m4: Likewise.
48274         * m4/relocatable.m4: Likewise.
48275         * m4/relocatable-lib.m4: Likewise.
48276         * m4/rename-dest-slash.m4: Likewise.
48277         * m4/rename.m4: Likewise.
48278         * m4/rmdir-errno.m4: Likewise.
48279         * m4/rmdir.m4: Likewise.
48280         * m4/roundf.m4: Likewise.
48281         * m4/roundl.m4: Likewise.
48282         * m4/rpmatch.m4: Likewise.
48283         * m4/save-cwd.m4: Likewise.
48284         * m4/selinux-selinux-h.m4: Likewise.
48285         * m4/setenv.m4: Likewise.
48286         * m4/settime.m4: Likewise.
48287         * m4/sig2str.m4: Likewise.
48288         * m4/sig_atomic_t.m4: Likewise.
48289         * m4/signalblocking.m4: Likewise.
48290         * m4/signbit.m4: Likewise.
48291         * m4/sigpipe.m4: Likewise.
48292         * m4/sockets.m4: Likewise.
48293         * m4/sockpfaf.m4: Likewise.
48294         * m4/st_dm_mode.m4: Likewise.
48295         * m4/stat-time.m4: Likewise.
48296         * m4/stdbool.m4: Likewise.
48297         * m4/stdint.m4: Likewise.
48298         * m4/stdint_h.m4: Likewise.
48299         * m4/stpcpy.m4: Likewise.
48300         * m4/stpncpy.m4: Likewise.
48301         * m4/strcase.m4: Likewise.
48302         * m4/strchrnul.m4: Likewise.
48303         * m4/strcspn.m4: Likewise.
48304         * m4/strdup.m4: Likewise.
48305         * m4/strftime.m4: Likewise.
48306         * m4/strndup.m4: Likewise.
48307         * m4/strnlen.m4: Likewise.
48308         * m4/strpbrk.m4: Likewise.
48309         * m4/strptime.m4: Likewise.
48310         * m4/strsep.m4: Likewise.
48311         * m4/strtod.m4: Likewise.
48312         * m4/strtoimax.m4: Likewise.
48313         * m4/strtok_r.m4: Likewise.
48314         * m4/strtol.m4: Likewise.
48315         * m4/strtoll.m4: Likewise.
48316         * m4/strtoul.m4: Likewise.
48317         * m4/strtoull.m4: Likewise.
48318         * m4/strtoumax.m4: Likewise.
48319         * m4/strverscmp.m4: Likewise.
48320         * m4/threadlib.m4: Likewise.
48321         * m4/timegm.m4: Likewise.
48322         * m4/tm_gmtoff.m4: Likewise.
48323         * m4/tmpdir.m4: Likewise.
48324         * m4/tmpfile.m4: Likewise.
48325         * m4/tzset.m4: Likewise.
48326         * m4/uintmax_t.m4: Likewise.
48327         * m4/unlinkdir.m4: Likewise.
48328         * m4/unlocked-io.m4: Likewise.
48329         * m4/uptime.m4: Likewise.
48330         * m4/userspec.m4: Likewise.
48331         * m4/utimbuf.m4: Likewise.
48332         * m4/utime.m4: Likewise.
48333         * m4/utimes-null.m4: Likewise.
48334         * m4/utimes.m4: Likewise.
48335         * m4/vararrays.m4: Likewise.
48336         * m4/vasnprintf.m4: Likewise.
48337         * m4/vfprintf-posix.m4: Likewise.
48338         * m4/vprintf-posix.m4: Likewise.
48339         * m4/wait-process.m4: Likewise.
48340         * m4/wchar_t.m4: Likewise.
48341         * m4/wint_t.m4: Likewise.
48342         * m4/write-any-file.m4: Likewise.
48343         * m4/yield.m4: Likewise.
48344
48345 2009-01-13  Bruno Haible  <bruno@clisp.org>
48346
48347         Avoid test-copy-file.sh failures when ACL support insufficient.
48348         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48349         TESTS_ENVIRONMENT.
48350         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48351         Reported by Jim Meyering.
48352
48353 2009-01-13  Bruno Haible  <bruno@clisp.org>
48354
48355         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48356         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48357         * modules/unistdio/u8-printf-parse (Files): Likewise.
48358         * modules/unistdio/u32-printf-parse (Files): Likewise.
48359         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48360
48361 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48362
48363         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48364         and m4/inttypes_h.m4 too.
48365
48366 2009-01-12  Eric Blake  <ebb9@byu.net>
48367
48368         tests: IRIX 6.2 cc can't compile -0.0 into .data
48369         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48370         rather than at compile-time.
48371         * tests/test-floorl.c (minus_zero): Likewise.
48372         * tests/test-frexpl.c (minus_zero): Likewise.
48373         * tests/test-isnan.c (minus_zerol): Likewise.
48374         * tests/test-isnanl.h (minus_zero): Likewise.
48375         * tests/test-ldexpl.c (minus_zero): Likewise.
48376         * tests/test-roundl.c (minus_zero): Likewise.
48377         * tests/test-signbit.c (minus_zerol): Likewise.
48378         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48379         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48380         * tests/test-truncl.c (minus_zero): Likewise.
48381         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48382         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48383         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48384
48385 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48386
48387         regex: fix glibc bug 9697
48388         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48389         handling.
48390
48391 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48392
48393         regex: fix glibc bug 697
48394         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48395         being NULL also if there are no backreferences.
48396
48397 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48398
48399         regex: merge glibc changes
48400         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48401         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48402         re_string_skip_chars, re_string_reconstruct): Likewise.
48403         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48404
48405 2009-01-07  Jim Meyering  <meyering@redhat.com>
48406
48407         poll: filter through cppi
48408         * lib/poll.c: Indent cpp directives to reflect nesting.
48409
48410 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48411
48412         poll: don't return uninitialized
48413         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48414
48415 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48416
48417         avoid compile failure on AIX 6.1
48418         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48419         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48420
48421 2009-01-04  Jim Meyering  <meyering@redhat.com>
48422
48423         remove duplicate inclusion of <stdio.h>
48424         * tests/test-fprintf-posix.c: Likewise.
48425         * tests/test-printf-posix.c: Likewise.
48426         * tests/test-snprintf-posix.c: Likewise.
48427         * tests/test-sprintf-posix.c: Likewise.
48428         * tests/test-vasprintf-posix.c: Likewise.
48429         * tests/test-vfprintf-posix.c: Likewise.
48430         * tests/test-vprintf-posix.c: Likewise.
48431         * tests/test-vsnprintf-posix.c: Likewise.
48432         * tests/test-vsprintf-posix.c: Likewise.
48433
48434 2009-01-03  Jim Meyering  <meyering@redhat.com>
48435
48436         gnulib-tool: fix sed-based filtering
48437         * gnulib-tool (func_filter_filelist): Remove extra backslash
48438         in sed_fff_filter definition.
48439
48440 2009-01-02  Jim Meyering  <meyering@redhat.com>
48441
48442         strftime: avoid compilation failure on Solaris 2.6
48443         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48444         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48445         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48446         be available.  Reported by Tom G. Christensen.  Details in
48447         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48448
48449 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48450             Bruno Haible  <bruno@clisp.org>
48451
48452         Speed up gnulib-tool by doing more string processing through shell
48453         built-ins.
48454         * gnulib-tool (fast_func_append): New variable.
48455         (func_remove_prefix, func_remove_suffix): New functions.
48456         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48457         (func_filter_filelist): New function.
48458         (func_get_dependencies): Use func_remove_suffix instead of sed.
48459         (func_get_automake_snippet): Use func_filter_filelist instead of a
48460         subshell and sed invocation.
48461
48462 2009-01-01  Bruno Haible  <bruno@clisp.org>
48463
48464         Fix a security bug.
48465         * gnulib-tool (func_import, import, update): Don't allow the characters
48466         '"', '$', '`', '\' in macro arguments that become part of commands that
48467         are evaluated.
48468
48469 2009-01-01  Bruno Haible  <bruno@clisp.org>
48470
48471         * gnulib-tool (func_reset_sigpipe): Add more comments.
48472
48473 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48474
48475         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48476         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48477         already know the answer.
48478
48479 2009-01-01  Jim Meyering  <meyering@redhat.com>
48480
48481         * lib/version-etc.c (version_etc_va): Update copyright year.
48482
48483 2008-12-30  Bruno Haible  <bruno@clisp.org>
48484
48485         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48486         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48487         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48488
48489 2008-12-29  Eric Blake  <ebb9@byu.net>
48490
48491         multiarch: avoid autoconf AC_REQUIRE bug
48492         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48493         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48494         2.63 and older.
48495         Reported by Bruno Haible, and analyzed in
48496         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48497
48498 2008-12-29  Bruno Haible  <bruno@clisp.org>
48499
48500         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48501         files in subdirectories correctly.
48502         Reported by Ralf Wildenhues.
48503
48504 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48505
48506         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48507         rather than 'join FILE -', for Solaris join.
48508
48509 2008-12-29  Bruno Haible  <bruno@clisp.org>
48510
48511         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48512         quoting.
48513         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48514         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48515         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48516         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48517         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48518         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48519         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48520         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48521         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48522         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48523         * m4/nls.m4 (AM_NLS): Likewise.
48524         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48525         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48526         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48527         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48528         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48529         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48530         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48531         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48532         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48533         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48534         * m4/xsize.m4 (gl_XSIZE): Likewise.
48535         Suggested by Jim Meyering.
48536
48537 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48538
48539         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48540         * lib/parse-duration.c: use a switch instead of cascading if's.
48541
48542 2008-12-29  Eric Blake  <ebb9@byu.net>
48543
48544         wchar.h: supply WEOF on Irix 5.3
48545         * lib/wchar.in.h (wint_t): Also supply WEOF.
48546         * lib/wctype.in.h (wint_t): Likewise.
48547         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48548         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48549         Reported by Tom G. Christensen.
48550
48551 2008-12-26  Bruno Haible  <bruno@clisp.org>
48552
48553         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48554         i486, i586, i686.
48555
48556 2008-12-26  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48559
48560 2008-12-26  Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48563         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48564         not __STDC_CONSTANT_MACROS.
48565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48566
48567 2008-12-25  Bruno Haible  <bruno@clisp.org>
48568
48569         Add support for universal builds to vasnprintf.
48570         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48571         universal builds, guess no.
48572         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48573         * modules/vasprintf-posix (Depends-on): Likewise.
48574         * modules/fprintf-posix (Depends-on): Likewise.
48575         * modules/vfprintf-posix (Depends-on): Likewise.
48576         * modules/snprintf-posix (Depends-on): Likewise.
48577         * modules/vsnprintf-posix (Depends-on): Likewise.
48578         * modules/sprintf-posix (Depends-on): Likewise.
48579         * modules/vsprintf-posix (Depends-on): Likewise.
48580         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48581         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48582         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48583         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48584         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48585         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48586         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48587
48588         Add support for universal builds to <inttypes.h>.
48589         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48590         _SCNu64_PREFIX): In Apple
48591         universal builds, define directly, using _LP64.
48592         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48593         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48594         * modules/inttypes (Depends-on): Add multiarch.
48595         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48596
48597         Add support for universal builds to <stdint.h>.
48598         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48599         universal builds, define directly, using _LP64.
48600         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48601         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48602         and size_t.
48603         * modules/stdint (Depends-on): Add multiarch.
48604         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48605
48606         New module 'multiarch'.
48607         * modules/multiarch: New file.
48608         * m4/multiarch.m4: New file.
48609
48610 2008-12-25  Bruno Haible  <bruno@clisp.org>
48611
48612         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48613
48614 2008-12-25  Bruno Haible  <bruno@clisp.org>
48615
48616         * modules/btowc (License): Relicense under LGPLv2+.
48617         * modules/mbsinit (License): Likewise.
48618         * modules/mbrtowc (License): Likewise.
48619         * modules/wcrtomb (License): Likewise.
48620         * modules/streq (License): Likewise.
48621         Reported by David Lutterkort <lutter@redhat.com>.
48622
48623 2008-12-23  Bruno Haible  <bruno@clisp.org>
48624
48625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48626
48627 2008-12-23  Bruno Haible  <bruno@clisp.org>
48628
48629         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48630         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48631         GETADDRINFO_LIB, not in LIBS.
48632         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48633         * modules/canon-host (Link): Likewise.
48634         * NEWS: Mention the change.
48635         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48636         GETADDRINFO_LIB.
48637
48638 2008-12-22  Bruno Haible  <bruno@clisp.org>
48639
48640         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48641         * doc/posix-functions/iswalpha_l.texi: Likewise.
48642         * doc/posix-functions/iswblank_l.texi: Likewise.
48643         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48644         * doc/posix-functions/iswctype_l.texi: Likewise.
48645         * doc/posix-functions/iswdigit_l.texi: Likewise.
48646         * doc/posix-functions/iswgraph_l.texi: Likewise.
48647         * doc/posix-functions/iswlower_l.texi: Likewise.
48648         * doc/posix-functions/iswprint_l.texi: Likewise.
48649         * doc/posix-functions/iswpunct_l.texi: Likewise.
48650         * doc/posix-functions/iswspace_l.texi: Likewise.
48651         * doc/posix-functions/iswupper_l.texi: Likewise.
48652         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48653         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48654         * doc/posix-functions/open_wmemstream.texi: Likewise.
48655         * doc/posix-functions/swscanf.texi: Likewise.
48656         * doc/posix-functions/towctrans_l.texi: Likewise.
48657         * doc/posix-functions/towlower.texi: Likewise.
48658         * doc/posix-functions/towlower_l.texi: Likewise.
48659         * doc/posix-functions/towupper.texi: Likewise.
48660         * doc/posix-functions/towupper_l.texi: Likewise.
48661         * doc/posix-functions/vfwprintf.texi: Likewise.
48662         * doc/posix-functions/vfwscanf.texi: Likewise.
48663         * doc/posix-functions/vswscanf.texi: Likewise.
48664         * doc/posix-functions/vwprintf.texi: Likewise.
48665         * doc/posix-functions/vwscanf.texi: Likewise.
48666         * doc/posix-functions/wcpcpy.texi: Likewise.
48667         * doc/posix-functions/wcpncpy.texi: Likewise.
48668         * doc/posix-functions/wcscasecmp.texi: Likewise.
48669         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48670         * doc/posix-functions/wcscoll_l.texi: Likewise.
48671         * doc/posix-functions/wcsdup.texi: Likewise.
48672         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48673         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48674         * doc/posix-functions/wcsnlen.texi: Likewise.
48675         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48676         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48677         * doc/posix-functions/wctrans_l.texi: Likewise.
48678         * doc/posix-functions/wctype_l.texi: Likewise.
48679         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48680         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48681         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48682         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48683         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48684         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48685         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48686         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48687         * doc/glibc-functions/wcschrnul.texi: Likewise.
48688         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48689         * doc/glibc-functions/wcstod_l.texi: Likewise.
48690         * doc/glibc-functions/wcstof_l.texi: Likewise.
48691         * doc/glibc-functions/wcstol_l.texi: Likewise.
48692         * doc/glibc-functions/wcstold_l.texi: Likewise.
48693         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48694         * doc/glibc-functions/wcstoq.texi: Likewise.
48695         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48696         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48697         * doc/glibc-functions/wcstouq.texi: Likewise.
48698         * doc/glibc-functions/wmempcpy.texi: Likewise.
48699
48700 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48701             Eric Blake  <ebb9@byu.net>
48702             Paolo Bonzini  <bonzini@gnu.org>
48703             Bruno Haible  <bruno@clisp.org>
48704
48705         Make c-stack work on Haiku.
48706         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48707         (c_stack_action): Use SA_ONSTACK flag.
48708
48709 2008-12-22  Bruno Haible  <bruno@clisp.org>
48710
48711         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48712
48713 2008-12-22  Bruno Haible  <bruno@clisp.org>
48714
48715         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48716         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48717         being overridden.
48718         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48719         New macros.
48720         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48722         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48723         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48724
48725 2008-12-22  Bruno Haible  <bruno@clisp.org>
48726
48727         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48728         from test code.
48729
48730 2008-12-22  Eric Blake  <ebb9@byu.net>
48731
48732         Avoid gcc warnings on cygwin.
48733         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48734         Avoid unused variable.
48735         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48736         Likewise.
48737
48738 2008-12-22  Bruno Haible  <bruno@clisp.org>
48739
48740         Remove HAVE_MBRTOWC conditionals.
48741         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48742         (mbscasecmp): Assume mbrtowc function.
48743         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48744         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48745         * lib/mbschr.c: Include mbuiter.h unconditionally.
48746         (mbschr): Assume mbrtowc function.
48747         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48748         (mbscspn): Assume mbrtowc function.
48749         * lib/mbslen.c: Include mbuiter.h unconditionally.
48750         (mbslen): Assume mbrtowc function.
48751         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48752         (mbsncasecmp): Assume mbrtowc function.
48753         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48754         (mbsnlen): Assume mbrtowc function.
48755         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48756         (mbspbrk): Assume mbrtowc function.
48757         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48758         (mbspcasecmp): Assume mbrtowc function.
48759         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48760         (mbsrchr): Assume mbrtowc function.
48761         * lib/mbssep.c: Include mbuiter.h unconditionally.
48762         (mbssep): Assume mbrtowc function.
48763         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48764         (mbsspn): Assume mbrtowc function.
48765         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48766         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48767         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48768         (mbstok_r): Assume mbrtowc function.
48769         * lib/propername.c: Include mbuiter.h unconditionally.
48770         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48771         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48772         (trim2): Assume mbrtowc function.
48773         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48774         (mbsnwidth): Assume mbrtowc function.
48775         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48776         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48777         fallback definitions.
48778         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48779
48780 2008-12-22  Bruno Haible  <bruno@clisp.org>
48781
48782         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48783
48784 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48785
48786         * modules/regex: Request emulations for the mb*/wc* functions we need.
48787         * m4/regex.m4: Don't look for those functions here.
48788         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48789
48790 2008-12-22  Bruno Haible  <bruno@clisp.org>
48791
48792         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48793
48794 2008-12-21  Bruno Haible  <bruno@clisp.org>
48795
48796         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48797         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48798         (Include): Remove conditionalization.
48799         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48800         (Include): Remove conditionalization.
48801         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48802         (Include): Remove conditionalization.
48803         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48804         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48805         * NEWS: Mention the change.
48806         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48807         via Sergey Poznyakoff <gray@gnu.org.ua>.
48808
48809 2008-12-21  Bruno Haible  <bruno@clisp.org>
48810
48811         * MODULES.html.sh (Extended multibyte and wide character utilities
48812         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48813         wcrtomb, wcsrtombs.
48814         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48815         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48816         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48817         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48818
48819 2008-12-21  Bruno Haible  <bruno@clisp.org>
48820
48821         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48822
48823 2008-12-21  Bruno Haible  <bruno@clisp.org>
48824
48825         * modules/wcsnrtombs-tests: New file.
48826         * tests/test-wcsnrtombs1.sh: New file.
48827         * tests/test-wcsnrtombs2.sh: New file.
48828         * tests/test-wcsnrtombs3.sh: New file.
48829         * tests/test-wcsnrtombs4.sh: New file.
48830         * tests/test-wcsnrtombs.c: New file.
48831
48832         New module 'wcsnrtombs'.
48833         * lib/wchar.in.h (wcsnrtombs): New declaration.
48834         * lib/wcsnrtombs.c: New file.
48835         * lib/wcsrtombs-state.c: New file.
48836         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48837         (internal_state): Remove variable.
48838         * m4/wcsnrtombs.m4: New file.
48839         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48840         compilation units.
48841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48842         HAVE_WCSNRTOMBS.
48843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48844         HAVE_WCSNRTOMBS.
48845         * modules/wcsnrtombs: New file.
48846         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48847         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48848
48849 2008-12-21  Bruno Haible  <bruno@clisp.org>
48850
48851         * modules/wcsrtombs-tests: New file.
48852         * tests/test-wcsrtombs1.sh: New file.
48853         * tests/test-wcsrtombs2.sh: New file.
48854         * tests/test-wcsrtombs3.sh: New file.
48855         * tests/test-wcsrtombs4.sh: New file.
48856         * tests/test-wcsrtombs.c: New file.
48857
48858         New module 'wcsrtombs'.
48859         * lib/wchar.in.h (wcsrtombs): New declaration.
48860         * lib/wcsrtombs.c: New file.
48861         * m4/wcsrtombs.m4: New file.
48862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48863         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48865         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48866         * modules/wcsrtombs: New file.
48867         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48868         bugs.
48869
48870 2008-12-21  Bruno Haible  <bruno@clisp.org>
48871
48872         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48873         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48875         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48876         if not correct.
48877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48878         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48879         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48880         m4/locale-zh.m4, m4/codeset.m4.
48881         * doc/posix-functions/wcrtomb.texi: Document the bug.
48882
48883 2008-12-21  Bruno Haible  <bruno@clisp.org>
48884
48885         Work around a btowc() bug on IRIX 6.5.
48886         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48887         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48888         REPLACE_WTOBC if not.
48889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48890         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48891         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48892
48893 2008-12-21  Bruno Haible  <bruno@clisp.org>
48894
48895         * modules/wcrtomb-tests: New file.
48896         * tests/test-wcrtomb.sh: New file.
48897         * tests/test-wcrtomb.c: New file.
48898
48899         New module 'wcrtomb'.
48900         * lib/wchar.in.h (wcrtomb): New declaration.
48901         * lib/wcrtomb.c: New file.
48902         * m4/wcrtomb.m4: New file.
48903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48904         HAVE_WCRTOMB.
48905         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48906         HAVE_WCRTOMB.
48907         * modules/wcrtomb: New file.
48908         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48909
48910 2008-12-21  Bruno Haible  <bruno@clisp.org>
48911
48912         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48913         * modules/mbsrtowcs (Files): Likewise.
48914         * modules/wctob (Files): Likewise.
48915         * modules/c-strcase-tests (Files): Likewise.
48916         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48917         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48918         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48919         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48920         * modules/vasnprintf-posix-tests (Files): Likewise.
48921
48922 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48923
48924         gitlog-to-changelog: pass all command-line arguments to git-log
48925         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48926         it is sometimes convenient to filter the commits in various ways.
48927         gitlog-to-changelog only allows --since to specify a start date,
48928         but git-log itself supports many other filtering mechanisms.
48929         At the moment, I want to filter by branch name.  Rather than
48930         adding a --branch option to gitlog-to-changelog, it seems more
48931         flexible to simply pass all options directly to git-log and let
48932         git do the work.  Notice that this effectively makes --since a
48933         redundant option for gitlog-to-changelog, but removing it would
48934         require current usage to change since calls would then require
48935         an additional '--'.
48936
48937 2008-12-21  Bruno Haible  <bruno@clisp.org>
48938
48939         * modules/mbsnrtowcs-tests: New file.
48940         * tests/test-mbsnrtowcs1.sh: New file.
48941         * tests/test-mbsnrtowcs2.sh: New file.
48942         * tests/test-mbsnrtowcs3.sh: New file.
48943         * tests/test-mbsnrtowcs4.sh: New file.
48944         * tests/test-mbsnrtowcs.c: New file.
48945
48946         New module 'mbsnrtowcs'.
48947         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48948         * lib/mbsnrtowcs.c: New file.
48949         * lib/mbsrtowcs-state.c: New file.
48950         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48951         (internal_state): Remove variable.
48952         * m4/mbsnrtowcs.m4: New file.
48953         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48954         compilation units.
48955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48956         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48957         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48958         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48959         * modules/mbsnrtowcs: New file.
48960         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48961         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48962         portability problem.
48963
48964 2008-12-21  Bruno Haible  <bruno@clisp.org>
48965
48966         Work around mbsrtowcs bug.
48967         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48968         (gl_FUNC_MBSRTOWCS): Invoke it.
48969         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48970         m4/locale-zh.m4.
48971         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48972
48973 2008-12-21  Bruno Haible  <bruno@clisp.org>
48974
48975         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48976
48977 2008-12-21  Bruno Haible  <bruno@clisp.org>
48978
48979         Update doc for AIX.
48980         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48981         16-bit wchar_t type.
48982         * doc/posix-functions/btowc.texi: Likewise.
48983         * doc/posix-functions/fgetwc.texi: Likewise.
48984         * doc/posix-functions/fgetws.texi: Likewise.
48985         * doc/posix-functions/fputwc.texi: Likewise.
48986         * doc/posix-functions/fputws.texi: Likewise.
48987         * doc/posix-functions/fwide.texi: Likewise.
48988         * doc/posix-functions/fwprintf.texi: Likewise.
48989         * doc/posix-functions/fwscanf.texi: Likewise.
48990         * doc/posix-functions/getwchar.texi: Likewise.
48991         * doc/posix-functions/getwc.texi: Likewise.
48992         * doc/posix-functions/iswalnum.texi: Likewise.
48993         * doc/posix-functions/iswalpha.texi: Likewise.
48994         * doc/posix-functions/iswblank.texi: Likewise.
48995         * doc/posix-functions/iswcntrl.texi: Likewise.
48996         * doc/posix-functions/iswctype.texi: Likewise.
48997         * doc/posix-functions/iswdigit.texi: Likewise.
48998         * doc/posix-functions/iswgraph.texi: Likewise.
48999         * doc/posix-functions/iswlower.texi: Likewise.
49000         * doc/posix-functions/iswprint.texi: Likewise.
49001         * doc/posix-functions/iswpunct.texi: Likewise.
49002         * doc/posix-functions/iswspace.texi: Likewise.
49003         * doc/posix-functions/iswupper.texi: Likewise.
49004         * doc/posix-functions/iswxdigit.texi: Likewise.
49005         * doc/posix-functions/mbrtowc.texi: Likewise.
49006         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49007         * doc/posix-functions/mbstowcs.texi: Likewise.
49008         * doc/posix-functions/mbtowc.texi: Likewise.
49009         * doc/posix-functions/putwchar.texi: Likewise.
49010         * doc/posix-functions/putwc.texi: Likewise.
49011         * doc/posix-functions/swprintf.texi: Likewise.
49012         * doc/posix-functions/tolower.texi: Likewise.
49013         * doc/posix-functions/toupper.texi: Likewise.
49014         * doc/posix-functions/towctrans.texi: Likewise.
49015         * doc/posix-functions/ungetwc.texi: Likewise.
49016         * doc/posix-functions/vswprintf.texi: Likewise.
49017         * doc/posix-functions/wcrtomb.texi: Likewise.
49018         * doc/posix-functions/wcscat.texi: Likewise.
49019         * doc/posix-functions/wcschr.texi: Likewise.
49020         * doc/posix-functions/wcscmp.texi: Likewise.
49021         * doc/posix-functions/wcscoll.texi: Likewise.
49022         * doc/posix-functions/wcscpy.texi: Likewise.
49023         * doc/posix-functions/wcscspn.texi: Likewise.
49024         * doc/posix-functions/wcsftime.texi: Likewise.
49025         * doc/posix-functions/wcslen.texi: Likewise.
49026         * doc/posix-functions/wcsncat.texi: Likewise.
49027         * doc/posix-functions/wcsncmp.texi: Likewise.
49028         * doc/posix-functions/wcsncpy.texi: Likewise.
49029         * doc/posix-functions/wcspbrk.texi: Likewise.
49030         * doc/posix-functions/wcsrchr.texi: Likewise.
49031         * doc/posix-functions/wcsrtombs.texi: Likewise.
49032         * doc/posix-functions/wcsspn.texi: Likewise.
49033         * doc/posix-functions/wcsstr.texi: Likewise.
49034         * doc/posix-functions/wcstod.texi: Likewise.
49035         * doc/posix-functions/wcstof.texi: Likewise.
49036         * doc/posix-functions/wcstoimax.texi: Likewise.
49037         * doc/posix-functions/wcstok.texi: Likewise.
49038         * doc/posix-functions/wcstold.texi: Likewise.
49039         * doc/posix-functions/wcstoll.texi: Likewise.
49040         * doc/posix-functions/wcstol.texi: Likewise.
49041         * doc/posix-functions/wcstombs.texi: Likewise.
49042         * doc/posix-functions/wcstoull.texi: Likewise.
49043         * doc/posix-functions/wcstoul.texi: Likewise.
49044         * doc/posix-functions/wcstoumax.texi: Likewise.
49045         * doc/posix-functions/wcswidth.texi: Likewise.
49046         * doc/posix-functions/wcsxfrm.texi: Likewise.
49047         * doc/posix-functions/wctob.texi: Likewise.
49048         * doc/posix-functions/wctomb.texi: Likewise.
49049         * doc/posix-functions/wctrans.texi: Likewise.
49050         * doc/posix-functions/wctype.texi: Likewise.
49051         * doc/posix-functions/wcwidth.texi: Likewise.
49052         * doc/posix-functions/wmemchr.texi: Likewise.
49053         * doc/posix-functions/wmemcmp.texi: Likewise.
49054         * doc/posix-functions/wmemcpy.texi: Likewise.
49055         * doc/posix-functions/wmemmove.texi: Likewise.
49056         * doc/posix-functions/wmemset.texi: Likewise.
49057         * doc/posix-functions/wprintf.texi: Likewise.
49058         * doc/posix-functions/wscanf.texi: Likewise.
49059
49060 2008-12-21  Bruno Haible  <bruno@clisp.org>
49061
49062         Update doc for HP-UX 11.11.
49063         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49064         in HP-UX version 11.00, not in all versions of HP-UX 11.
49065         * doc/posix-functions/fwide.texi: Likewise.
49066         * doc/posix-functions/fwprintf.texi: Likewise.
49067         * doc/posix-functions/fwscanf.texi: Likewise.
49068         * doc/posix-functions/inet_ntop.texi: Likewise.
49069         * doc/posix-functions/inet_pton.texi: Likewise.
49070         * doc/posix-functions/mbrlen.texi: Likewise.
49071         * doc/posix-functions/mbrtowc.texi: Likewise.
49072         * doc/posix-functions/mbsinit.texi: Likewise.
49073         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49074         * doc/posix-functions/swprintf.texi: Likewise.
49075         * doc/posix-functions/swscanf.texi: Likewise.
49076         * doc/posix-functions/towctrans.texi: Likewise.
49077         * doc/posix-functions/vfwprintf.texi: Likewise.
49078         * doc/posix-functions/vswprintf.texi: Likewise.
49079         * doc/posix-functions/vwprintf.texi: Likewise.
49080         * doc/posix-functions/wcrtomb.texi: Likewise.
49081         * doc/posix-functions/wcsrtombs.texi: Likewise.
49082         * doc/posix-functions/wcsstr.texi: Likewise.
49083         * doc/posix-functions/wctob.texi: Likewise.
49084         * doc/posix-functions/wctrans.texi: Likewise.
49085         * doc/posix-functions/wmemchr.texi: Likewise.
49086         * doc/posix-functions/wmemcmp.texi: Likewise.
49087         * doc/posix-functions/wmemcpy.texi: Likewise.
49088         * doc/posix-functions/wmemmove.texi: Likewise.
49089         * doc/posix-functions/wmemset.texi: Likewise.
49090         * doc/posix-functions/wprintf.texi: Likewise.
49091         * doc/posix-functions/wscanf.texi: Likewise.
49092
49093 2008-12-21  Bruno Haible  <bruno@clisp.org>
49094
49095         Work around a portability problem.
49096         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49097         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49098
49099 2008-12-20  Bruno Haible  <bruno@clisp.org>
49100
49101         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49102         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49103         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49105         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49106
49107         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49108         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49109         set.
49110         (GNULIB_defined_mbstate_t): New macro.
49111         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49112         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49113         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49114         reuses the system's mbrtowc function but works around the bugs.
49115         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49116         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49117         macros.
49118         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49119         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49120         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49121         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49122         REPLACE_MBSINIT if mbsinit needs to be overridden.
49123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49124         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49125         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49126         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49127         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49128         m4/locale-zh.m4.
49129         (Depends): Add mbsinit.
49130         * modules/mbsinit (Depends): Add mbrtowc.
49131         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49132
49133 2008-12-20  Bruno Haible  <bruno@clisp.org>
49134
49135         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49136         so that there are no conversion errors on AIX.
49137         * tests/test-mbsrtowcs.c (main): LIkewise.
49138
49139 2008-12-20  Bruno Haible  <bruno@clisp.org>
49140
49141         Work around wctob bug on Solaris <= 9.
49142         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49143         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49145         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49146         * modules/wctob (Files): Add m4/locale-fr.m4.
49147         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49148
49149 2008-12-20  Bruno Haible  <bruno@clisp.org>
49150
49151         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49152         /dev/null.
49153         * tests/test-select-in.sh: Likewise.
49154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49155
49156 2008-12-20  Bruno Haible  <bruno@clisp.org>
49157
49158         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49159         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49160         Cygwin 1.5.x.
49161
49162 2008-12-20  Bruno Haible  <bruno@clisp.org>
49163
49164         Ensure mbstate_t is defined on HP-UX 11.11.
49165         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49166         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49167         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49168         AC_USE_SYSTEM_EXTENSIONS.
49169         * modules/fnmatch (Depends-on): Add extensions.
49170         * modules/mbrlen (Depends-on): Likewise.
49171         * modules/mbrtowc (Depends-on): Likewise.
49172         * modules/mbsinit (Depends-on): Likewise.
49173         * modules/mbsrtowcs (Depends-on): Likewise.
49174         * modules/mbswidth (Depends-on): Likewise.
49175         * modules/quotearg (Depends-on): Likewise.
49176         * modules/strftime (Depends-on): Likewise.
49177
49178 2008-12-20  Bruno Haible  <bruno@clisp.org>
49179
49180         Ensure wctob is declared on IRIX 6.5.
49181         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49182         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49183         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49185         of HAVE_WCTOB.
49186         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49187         HAVE_WCTOB.
49188         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49189
49190 2008-12-19  Bruno Haible  <bruno@clisp.org>
49191
49192         * modules/mbsrtowcs-tests: New file.
49193         * tests/test-mbsrtowcs1.sh: New file.
49194         * tests/test-mbsrtowcs2.sh: New file.
49195         * tests/test-mbsrtowcs3.sh: New file.
49196         * tests/test-mbsrtowcs4.sh: New file.
49197         * tests/test-mbsrtowcs.c: New file.
49198
49199         New module 'mbsrtowcs'.
49200         * lib/wchar.in.h (mbsrtowcs): New declaration.
49201         * lib/mbsrtowcs.c: New file.
49202         * m4/mbsrtowcs.m4: New file.
49203         * modules/mbsrtowcs: New file.
49204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49205         HAVE_MBSRTOWCS.
49206         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49207         HAVE_MBSRTOWCS.
49208         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49209
49210 2008-12-19  Bruno Haible  <bruno@clisp.org>
49211
49212         New module 'mbrlen'.
49213         * lib/wchar.in.h (mbrlen): New declaration.
49214         * lib/mbrlen.c: New file.
49215         * m4/mbrlen.m4: New file.
49216         * modules/mbrlen: New file.
49217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49218         HAVE_MBRLEN.
49219         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49220         HAVE_MBRLEN.
49221         * doc/posix-functions/mbrlen.texi: Document the new module.
49222
49223 2008-12-19  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49226         * modules/mbrtowc (Depends-on): Add verify.
49227         Suggested by Paul Eggert.
49228
49229 2008-12-18  Bruno Haible  <bruno@clisp.org>
49230
49231         * modules/mbsinit-tests: New file.
49232         * tests/test-mbsinit.sh: New file.
49233         * tests/test-mbsinit.c: New file.
49234
49235 2008-12-18  Bruno Haible  <bruno@clisp.org>
49236
49237         * modules/mbrtowc-tests: New file.
49238         * tests/test-mbrtowc1.sh: New file.
49239         * tests/test-mbrtowc2.sh: New file.
49240         * tests/test-mbrtowc3.sh: New file.
49241         * tests/test-mbrtowc4.sh: New file.
49242         * tests/test-mbrtowc.c: New file.
49243
49244         New module 'mbrtowc'.
49245         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49246         mbsinit and mbrtowc.
49247         (mbrtowc): New declaration.
49248         * lib/mbrtowc.c: New file.
49249         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49250         * modules/mbrtowc: New file.
49251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49252         HAVE_MBRTOWC.
49253         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49254         HAVE_MBRTOWC.
49255         * doc/posix-functions/mbrtowc.texi: Document the new module.
49256
49257 2008-12-18  Bruno Haible  <bruno@clisp.org>
49258
49259         New module 'wctob'.
49260         * lib/wchar.in.h (wctob): New declaration.
49261         * lib/wctob.c: New file.
49262         * m4/wctob.m4: New file.
49263         * modules/wctob: New file.
49264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49265         HAVE_WCTOB.
49266         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49267         * doc/posix-functions/wctob.texi: Document the new module.
49268
49269 2008-12-18  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49272         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49273
49274 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49275
49276         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49277         G. Christensen" <tgc@jupiterrise.com>.
49278
49279         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49280         G. Christensen" <tgc@jupiterrise.com>.
49281
49282         * lib/flock.c: Need to include string.h.  Reported by "Tom
49283         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49284         <ebb9@byu.net>.
49285
49286 2008-12-18  Bruno Haible  <bruno@clisp.org>
49287
49288         * m4/locale-ja.m4: New file, from GNU gettext.
49289
49290 2008-12-17  Bruno Haible  <bruno@clisp.org>
49291
49292         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49293         Suggested by Eric Blake.
49294
49295 2008-12-17  Bruno Haible  <bruno@clisp.org>
49296
49297         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49298
49299 2008-12-17  Bruno Haible  <bruno@clisp.org>
49300
49301         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49302         * modules/mbsinit (Depends-on): Add verify.
49303         Suggested by Paul Eggert.
49304
49305 2008-12-17  Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49308         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49309         gl_FUNC_MBRTOWC.
49310         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49311         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49312         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49313         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49314         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49315         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49316         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49317         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49318         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49319         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49320         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49321         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49322         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49323         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49324         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49325         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49326         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49327         * modules/trim (configure.ac): Likewise.
49328
49329 2008-12-17  Bruno Haible  <bruno@clisp.org>
49330
49331         * modules/btowc-tests: New file.
49332         * tests/test-btowc1.sh: New file.
49333         * tests/test-btowc2.sh: New file.
49334         * tests/test-btowc.c: New file.
49335
49336         New module 'btowc'.
49337         * lib/wchar.in.h (btowc): New declaration.
49338         * lib/btowc.c: New file.
49339         * m4/btowc.m4: New file.
49340         * modules/btowc: New file.
49341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49342         HAVE_BTOWC.
49343         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49344         * doc/posix-functions/btowc.texi: Document the new module.
49345
49346 2008-12-17  Bruno Haible  <bruno@clisp.org>
49347
49348         New module 'mbsinit'.
49349         * lib/wchar.in.h (mbsinit): New declaration.
49350         * lib/mbsinit.c: New file.
49351         * m4/mbsinit.m4: New file.
49352         * modules/mbsinit: New file.
49353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49354         HAVE_MBSINIT.
49355         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49356         HAVE_MBSINIT.
49357         * doc/posix-functions/mbsinit.texi: Document the new module.
49358
49359 2008-12-16  Bruno Haible  <bruno@clisp.org>
49360
49361         * lib/unistd.in.h: Add comment.
49362         * tests/test-environ.c: Don't include <stdlib.h>.
49363
49364 2008-12-16  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/parse-duration.h (parse_duration): Document return value
49367         convention.
49368         * lib/parse-duration.c: Include specification header first. Add
49369         comments.
49370         (_): Remove macro.
49371         (parse_year_month_day, parse_hour_minute_second): Move side effects
49372         outside of strchr call.
49373         (parse_non_iso8601): Move side effects outside of isspace call.
49374         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49375         call.
49376
49377 2008-12-16  Bruno Haible  <bruno@clisp.org>
49378
49379         * tests/test-parse-duration.sh: Produce no output when the test
49380         succeeds.
49381
49382 2008-12-16  Bruno Haible  <bruno@clisp.org>
49383
49384         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49385         expressions.
49386
49387 2008-12-15  Bruno Haible  <bruno@clisp.org>
49388
49389         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49390         * doc/glibc-functions/flistxattr.texi: Likewise.
49391         * doc/glibc-functions/fopencookie.texi: Likewise.
49392         * doc/glibc-functions/fremovexattr.texi: Likewise.
49393         * doc/glibc-functions/fsetxattr.texi: Likewise.
49394         * doc/glibc-functions/getxattr.texi: Likewise.
49395         * doc/glibc-functions/lgetxattr.texi: Likewise.
49396         * doc/glibc-functions/listxattr.texi: Likewise.
49397         * doc/glibc-functions/llistxattr.texi: Likewise.
49398         * doc/glibc-functions/lremovexattr.texi: Likewise.
49399         * doc/glibc-functions/lsetxattr.texi: Likewise.
49400         * doc/glibc-functions/removexattr.texi: Likewise.
49401         * doc/glibc-functions/setxattr.texi: Likewise.
49402         * doc/posix-functions/open_memstream.texi: Likewise.
49403
49404 2008-12-15  Eric Blake  <ebb9@byu.net>
49405
49406         Update doc for cygwin 1.7.
49407         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49408         functions.
49409         * doc/posix-functions/fchmodat.texi: Likewise.
49410         * doc/posix-functions/fchownat.texi: Likewise.
49411         * doc/posix-functions/fdopendir.texi: Likewise.
49412         * doc/posix-functions/fmemopen.texi: Likewise.
49413         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49414         * doc/posix-functions/fstatat.texi: Likewise.
49415         * doc/posix-functions/futimens.texi: Likewise.
49416         * doc/posix-functions/gai_strerror.texi: Likewise.
49417         * doc/posix-functions/getaddrinfo.texi: Likewise.
49418         * doc/posix-functions/getnameinfo.texi: Likewise.
49419         * doc/posix-functions/if_freenameindex.texi: Likewise.
49420         * doc/posix-functions/if_indextoname.texi: Likewise.
49421         * doc/posix-functions/if_nameindex.texi: Likewise.
49422         * doc/posix-functions/if_nametoindex.texi: Likewise.
49423         * doc/posix-functions/insque.texi: Likewise.
49424         * doc/posix-functions/linkat.texi: Likewise.
49425         * doc/posix-functions/llrint.texi: Likewise.
49426         * doc/posix-functions/llrintf.texi: Likewise.
49427         * doc/posix-functions/llrintl.texi: Likewise.
49428         * doc/posix-functions/lockf.texi: Likewise.
49429         * doc/posix-functions/lrintl.texi: Likewise.
49430         * doc/posix-functions/mkdirat.texi: Likewise.
49431         * doc/posix-functions/mkfifoat.texi: Likewise.
49432         * doc/posix-functions/mknodat.texi: Likewise.
49433         * doc/posix-functions/mq_close.texi: Likewise.
49434         * doc/posix-functions/mq_getattr.texi: Likewise.
49435         * doc/posix-functions/mq_notify.texi: Likewise.
49436         * doc/posix-functions/mq_open.texi: Likewise.
49437         * doc/posix-functions/mq_receive.texi: Likewise.
49438         * doc/posix-functions/mq_send.texi: Likewise.
49439         * doc/posix-functions/mq_setattr.texi: Likewise.
49440         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49441         * doc/posix-functions/mq_timedsend.texi: Likewise.
49442         * doc/posix-functions/mq_unlink.texi: Likewise.
49443         * doc/posix-functions/open_memstream.texi: Likewise.
49444         * doc/posix-functions/openat.texi: Likewise.
49445         * doc/posix-functions/posix_fadvise.texi: Likewise.
49446         * doc/posix-functions/posix_fallocate.texi: Likewise.
49447         * doc/posix-functions/posix_madvise.texi: Likewise.
49448         * doc/posix-functions/posix_memalign.texi: Likewise.
49449         * doc/posix-functions/posix_openpt.texi: Likewise.
49450         * doc/posix-functions/readlinkat.texi: Likewise.
49451         * doc/posix-functions/remque.texi: Likewise.
49452         * doc/posix-functions/renameat.texi: Likewise.
49453         * doc/posix-functions/rintl.texi: Likewise.
49454         * doc/posix-functions/sem_unlink.texi: Likewise.
49455         * doc/posix-functions/shm_open.texi: Likewise.
49456         * doc/posix-functions/shm_unlink.texi: Likewise.
49457         * doc/posix-functions/signgam.texi: Likewise.
49458         * doc/posix-functions/sigset.texi: Likewise.
49459         * doc/posix-functions/stpcpy.texi: Likewise.
49460         * doc/posix-functions/stpncpy.texi: Likewise.
49461         * doc/posix-functions/strerror.texi: Likewise.
49462         * doc/posix-functions/strtod.texi: Likewise.
49463         * doc/posix-functions/symlinkat.texi: Likewise.
49464         * doc/posix-functions/unlinkat.texi: Likewise.
49465         * doc/posix-functions/utimensat.texi: Likewise.
49466         * doc/glibc-functions/bindresvport.texi: Likewise.
49467         * doc/glibc-functions/dn_expand.texi: Likewise.
49468         * doc/glibc-functions/exp10.texi: Likewise.
49469         * doc/glibc-functions/exp10f.texi: Likewise.
49470         * doc/glibc-functions/fgetxattr.texi: Likewise.
49471         * doc/glibc-functions/flistxattr.texi: Likewise.
49472         * doc/glibc-functions/fopencookie.texi: Likewise.
49473         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49474         * doc/glibc-functions/fremovexattr.texi: Likewise.
49475         * doc/glibc-functions/fsetxattr.texi: Likewise.
49476         * doc/glibc-functions/getifaddrs.texi: Likewise.
49477         * doc/glibc-functions/getxattr.texi: Likewise.
49478         * doc/glibc-functions/lgetxattr.texi: Likewise.
49479         * doc/glibc-functions/listxattr.texi: Likewise.
49480         * doc/glibc-functions/llistxattr.texi: Likewise.
49481         * doc/glibc-functions/lremovexattr.texi: Likewise.
49482         * doc/glibc-functions/lsetxattr.texi: Likewise.
49483         * doc/glibc-functions/pow10.texi: Likewise.
49484         * doc/glibc-functions/pow10f.texi: Likewise.
49485         * doc/glibc-functions/rcmd_af.texi: Likewise.
49486         * doc/glibc-functions/removexattr.texi: Likewise.
49487         * doc/glibc-functions/res_init.texi: Likewise.
49488         * doc/glibc-functions/res_mkquery.texi: Likewise.
49489         * doc/glibc-functions/res_query.texi: Likewise.
49490         * doc/glibc-functions/res_querydomain.texi: Likewise.
49491         * doc/glibc-functions/res_send.texi: Likewise.
49492         * doc/glibc-functions/rresvport_af.texi: Likewise.
49493         * doc/glibc-functions/setxattr.texi: Likewise.
49494         * doc/glibc-functions/strcasestr.texi: Likewise.
49495
49496 2008-12-15  Bruno Haible  <bruno@clisp.org>
49497
49498         Fix compilation error on OSF/1 4.0.
49499         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49500         <sys/time.h>, simply delegate to the system header.
49501         Reported by Daniel Richard G. <oss@teragram.com>.
49502
49503 2008-12-15  Bruno Haible  <bruno@clisp.org>
49504
49505         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49506         * doc/posix-functions/fchmodat.texi: Likewise.
49507         * doc/posix-functions/fchownat.texi: Likewise.
49508         * doc/posix-functions/fdopendir.texi: Likewise.
49509         * doc/posix-functions/fstatat.texi: Likewise.
49510         * doc/posix-functions/mkdirat.texi: Likewise.
49511         * doc/posix-functions/unlinkat.texi: Likewise.
49512
49513 2008-12-14  Bruno Haible  <bruno@clisp.org>
49514
49515         Update doc for POSIX:2008.
49516         * doc/posix-functions/faccessat.texi: New file.
49517         * doc/posix-functions/fchmodat.texi: New file.
49518         * doc/posix-functions/fchownat.texi: New file.
49519         * doc/posix-functions/fdopendir.texi: New file.
49520         * doc/posix-functions/fstatat.texi: New file.
49521         * doc/posix-functions/futimens.texi: New file.
49522         * doc/posix-functions/linkat.texi: New file.
49523         * doc/posix-functions/mkdirat.texi: New file.
49524         * doc/posix-functions/mkfifoat.texi: New file.
49525         * doc/posix-functions/mknodat.texi: New file.
49526         * doc/posix-functions/open_wmemstream.texi: New file.
49527         * doc/posix-functions/openat.texi: New file.
49528         * doc/posix-functions/psiginfo.texi: New file.
49529         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49530         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49531         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49532         * doc/posix-functions/readlinkat.texi: New file.
49533         * doc/posix-functions/renameat.texi: New file.
49534         * doc/posix-functions/strerror_l.texi: New file.
49535         * doc/posix-functions/symlinkat.texi: New file.
49536         * doc/posix-functions/unlinkat.texi: New file.
49537         * doc/posix-functions/utimensat.texi: New file.
49538         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49539
49540 2008-12-14  Bruno Haible  <bruno@clisp.org>
49541
49542         Update doc for POSIX:2008.
49543         * doc/posix-functions/alphasort.texi: Renamed from
49544         doc/glibc-functions/alphasort.texi.
49545         * doc/posix-functions/dirfd.texi: Renamed from
49546         doc/glibc-functions/dirfd.texi.
49547         * doc/posix-functions/dprintf.texi: Renamed from
49548         doc/glibc-functions/dprintf.texi.
49549         * doc/posix-functions/duplocale.texi: Renamed from
49550         doc/glibc-functions/duplocale.texi.
49551         * doc/posix-functions/fexecve.texi: Renamed from
49552         doc/glibc-functions/fexecve.texi.
49553         * doc/posix-functions/fmemopen.texi: Renamed from
49554         doc/glibc-functions/fmemopen.texi.
49555         * doc/posix-functions/freelocale.texi: Renamed from
49556         doc/glibc-functions/freelocale.texi.
49557         * doc/posix-functions/getdate_err.texi: Renamed from
49558         doc/glibc-functions/getdate_err.texi.
49559         * doc/posix-functions/isalnum_l.texi: Renamed from
49560         doc/glibc-functions/isalnum_l.texi.
49561         * doc/posix-functions/isalpha_l.texi: Renamed from
49562         doc/glibc-functions/isalpha_l.texi.
49563         * doc/posix-functions/isblank_l.texi: Renamed from
49564         doc/glibc-functions/isblank_l.texi.
49565         * doc/posix-functions/iscntrl_l.texi: Renamed from
49566         doc/glibc-functions/iscntrl_l.texi.
49567         * doc/posix-functions/isdigit_l.texi: Renamed from
49568         doc/glibc-functions/isdigit_l.texi.
49569         * doc/posix-functions/isgraph_l.texi: Renamed from
49570         doc/glibc-functions/isgraph_l.texi.
49571         * doc/posix-functions/islower_l.texi: Renamed from
49572         doc/glibc-functions/islower_l.texi.
49573         * doc/posix-functions/isprint_l.texi: Renamed from
49574         doc/glibc-functions/isprint_l.texi.
49575         * doc/posix-functions/ispunct_l.texi: Renamed from
49576         doc/glibc-functions/ispunct_l.texi.
49577         * doc/posix-functions/isspace_l.texi: Renamed from
49578         doc/glibc-functions/isspace_l.texi.
49579         * doc/posix-functions/isupper_l.texi: Renamed from
49580         doc/glibc-functions/isupper_l.texi.
49581         * doc/posix-functions/iswalnum_l.texi: Renamed from
49582         doc/glibc-functions/iswalnum_l.texi.
49583         * doc/posix-functions/iswalpha_l.texi: Renamed from
49584         doc/glibc-functions/iswalpha_l.texi.
49585         * doc/posix-functions/iswblank_l.texi: Renamed from
49586         doc/glibc-functions/iswblank_l.texi.
49587         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49588         doc/glibc-functions/iswcntrl_l.texi.
49589         * doc/posix-functions/iswctype_l.texi: Renamed from
49590         doc/glibc-functions/iswctype_l.texi.
49591         * doc/posix-functions/iswdigit_l.texi: Renamed from
49592         doc/glibc-functions/iswdigit_l.texi.
49593         * doc/posix-functions/iswgraph_l.texi: Renamed from
49594         doc/glibc-functions/iswgraph_l.texi.
49595         * doc/posix-functions/iswlower_l.texi: Renamed from
49596         doc/glibc-functions/iswlower_l.texi.
49597         * doc/posix-functions/iswprint_l.texi: Renamed from
49598         doc/glibc-functions/iswprint_l.texi.
49599         * doc/posix-functions/iswpunct_l.texi: Renamed from
49600         doc/glibc-functions/iswpunct_l.texi.
49601         * doc/posix-functions/iswspace_l.texi: Renamed from
49602         doc/glibc-functions/iswspace_l.texi.
49603         * doc/posix-functions/iswupper_l.texi: Renamed from
49604         doc/glibc-functions/iswupper_l.texi.
49605         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49606         doc/glibc-functions/iswxdigit_l.texi.
49607         * doc/posix-functions/isxdigit_l.texi: Renamed from
49608         doc/glibc-functions/isxdigit_l.texi.
49609         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49610         doc/glibc-functions/mbsnrtowcs.texi.
49611         * doc/posix-functions/mkdtemp.texi: Renamed from
49612         doc/glibc-functions/mkdtemp.texi.
49613         * doc/posix-functions/newlocale.texi: Renamed from
49614         doc/glibc-functions/newlocale.texi.
49615         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49616         doc/glibc-functions/nl_langinfo_l.texi.
49617         * doc/posix-functions/open_memstream.texi: Renamed from
49618         doc/glibc-functions/open_memstream.texi.
49619         * doc/posix-functions/opterr.texi: Renamed from
49620         doc/glibc-functions/opterr.texi.
49621         * doc/posix-functions/optind.texi: Renamed from
49622         doc/glibc-functions/optind.texi.
49623         * doc/posix-functions/optopt.texi: Renamed from
49624         doc/glibc-functions/optopt.texi.
49625         * doc/posix-functions/psignal.texi: Renamed from
49626         doc/glibc-functions/psignal.texi.
49627         * doc/posix-functions/scandir.texi: Renamed from
49628         doc/glibc-functions/scandir.texi.
49629         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49630         doc/glibc-functions/sched_get_priority_min.texi.
49631         * doc/posix-functions/signgam.texi: Renamed from
49632         doc/glibc-functions/signgam.texi.
49633         * doc/posix-functions/stpcpy.texi: Renamed from
49634         doc/glibc-functions/stpcpy.texi.
49635         * doc/posix-functions/stpncpy.texi: Renamed from
49636         doc/glibc-functions/stpncpy.texi.
49637         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49638         doc/glibc-functions/strcasecmp_l.texi.
49639         * doc/posix-functions/strcoll_l.texi: Renamed from
49640         doc/glibc-functions/strcoll_l.texi.
49641         * doc/posix-functions/strfmon_l.texi: Renamed from
49642         doc/glibc-functions/strfmon_l.texi.
49643         * doc/posix-functions/strftime_l.texi: Renamed from
49644         doc/glibc-functions/strftime_l.texi.
49645         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49646         doc/glibc-functions/strncasecmp_l.texi.
49647         * doc/posix-functions/strndup.texi: Renamed from
49648         doc/glibc-functions/strndup.texi.
49649         * doc/posix-functions/strnlen.texi: Renamed from
49650         doc/glibc-functions/strnlen.texi.
49651         * doc/posix-functions/strsignal.texi: Renamed from
49652         doc/glibc-functions/strsignal.texi.
49653         * doc/posix-functions/strxfrm_l.texi: Renamed from
49654         doc/glibc-functions/strxfrm_l.texi.
49655         * doc/posix-functions/timer_gettime.texi: Renamed from
49656         doc/glibc-functions/timer_gettime.texi.
49657         * doc/posix-functions/tolower_l.texi: Renamed from
49658         doc/glibc-functions/tolower_l.texi.
49659         * doc/posix-functions/toupper_l.texi: Renamed from
49660         doc/glibc-functions/toupper_l.texi.
49661         * doc/posix-functions/towctrans_l.texi: Renamed from
49662         doc/glibc-functions/towctrans_l.texi.
49663         * doc/posix-functions/towlower_l.texi: Renamed from
49664         doc/glibc-functions/towlower_l.texi.
49665         * doc/posix-functions/towupper_l.texi: Renamed from
49666         doc/glibc-functions/towupper_l.texi.
49667         * doc/posix-functions/uselocale.texi: Renamed from
49668         doc/glibc-functions/uselocale.texi.
49669         * doc/posix-functions/vdprintf.texi: Renamed from
49670         doc/glibc-functions/vdprintf.texi.
49671         * doc/posix-functions/wcpcpy.texi:
49672         Renamed from doc/glibc-functions/wcpcpy.texi.
49673         * doc/posix-functions/wcpncpy.texi: Renamed from
49674         doc/glibc-functions/wcpncpy.texi.
49675         * doc/posix-functions/wcscasecmp.texi: Renamed from
49676         doc/glibc-functions/wcscasecmp.texi.
49677         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49678         doc/glibc-functions/wcscasecmp_l.texi.
49679         * doc/posix-functions/wcscoll_l.texi: Renamed from
49680         doc/glibc-functions/wcscoll_l.texi.
49681         * doc/posix-functions/wcsdup.texi: Renamed from
49682         doc/glibc-functions/wcsdup.texi.
49683         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49684         doc/glibc-functions/wcsncasecmp.texi.
49685         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49686         doc/glibc-functions/wcsncasecmp_l.texi.
49687         * doc/posix-functions/wcsnlen.texi: Renamed from
49688         doc/glibc-functions/wcsnlen.texi.
49689         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49690         doc/glibc-functions/wcsnrtombs.texi.
49691         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49692         doc/glibc-functions/wcsxfrm_l.texi.
49693         * doc/posix-functions/wctrans_l.texi: Renamed from
49694         doc/glibc-functions/wctrans_l.texi.
49695         * doc/posix-functions/wctype_l.texi: Renamed from
49696         doc/glibc-functions/wctype_l.texi.
49697         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49698         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49699         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49700         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49701         these subsections.
49702         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49703         Remove sections.
49704
49705 2008-12-14  Bruno Haible  <bruno@clisp.org>
49706
49707         Update doc for POSIX:2008.
49708         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49709
49710 2008-12-14  Bruno Haible  <bruno@clisp.org>
49711
49712         Update doc for POSIX:2008.
49713         * doc/pastposix-functions/bcmp.texi: Renamed from
49714         doc/posix-functions/bcmp.texi.
49715         * doc/pastposix-functions/bcopy.texi: Renamed from
49716         doc/posix-functions/bcopy.texi.
49717         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49718         doc/posix-functions/bsd_signal.texi.
49719         * doc/pastposix-functions/bzero.texi: Renamed from
49720         doc/posix-functions/bzero.texi.
49721         * doc/pastposix-functions/ecvt.texi: Renamed from
49722         doc/posix-functions/ecvt.texi.
49723         * doc/pastposix-functions/fcvt.texi: Renamed from
49724         doc/posix-functions/fcvt.texi.
49725         * doc/pastposix-functions/ftime.texi: Renamed from
49726         doc/posix-functions/ftime.texi.
49727         * doc/pastposix-functions/gcvt.texi: Renamed from
49728         doc/posix-functions/gcvt.texi.
49729         * doc/pastposix-functions/getcontext.texi: Renamed from
49730         doc/posix-functions/getcontext.texi.
49731         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49732         doc/posix-functions/gethostbyaddr.texi.
49733         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49734         doc/posix-functions/gethostbyname.texi.
49735         * doc/pastposix-functions/getwd.texi: Renamed from
49736         doc/posix-functions/getwd.texi.
49737         * doc/pastposix-functions/h_errno.texi: Renamed from
49738         doc/posix-functions/h_errno.texi.
49739         * doc/pastposix-functions/index.texi: Renamed from
49740         doc/posix-functions/index.texi.
49741         * doc/pastposix-functions/makecontext.texi: Renamed from
49742         doc/posix-functions/makecontext.texi.
49743         * doc/pastposix-functions/mktemp.texi: Renamed from
49744         doc/posix-functions/mktemp.texi.
49745         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49746         doc/posix-functions/pthread_attr_getstackaddr.texi.
49747         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49748         doc/posix-functions/pthread_attr_setstackaddr.texi.
49749         * doc/pastposix-functions/rindex.texi: Renamed from
49750         doc/posix-functions/rindex.texi.
49751         * doc/pastposix-functions/scalb.texi: Renamed from
49752         doc/posix-functions/scalb.texi.
49753         * doc/pastposix-functions/setcontext.texi: Renamed from
49754         doc/posix-functions/setcontext.texi.
49755         * doc/pastposix-functions/swapcontext.texi: Renamed from
49756         doc/posix-functions/swapcontext.texi.
49757         * doc/pastposix-functions/ualarm.texi: Renamed from
49758         doc/posix-functions/ualarm.texi.
49759         * doc/pastposix-functions/usleep.texi: Renamed from
49760         doc/posix-functions/usleep.texi.
49761         * doc/pastposix-functions/vfork.texi: Renamed from
49762         doc/posix-functions/vfork.texi.
49763         * doc/pastposix-functions/wcswcs.texi: Renamed from
49764         doc/posix-functions/wcswcs.texi.
49765         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49766         (Function Substitutes): Update.
49767
49768 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49769
49770         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49771         m4/strerror.m4.
49772
49773 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49774             Bruno Haible  <bruno@clisp.org>
49775
49776         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49777
49778 2008-12-13  Bruno Haible  <bruno@clisp.org>
49779
49780         * modules/strtoull (Depends-on): Remove unistd.
49781
49782 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49783
49784         * modules/strtoull (Depends-on): Add stdlib.
49785
49786 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49787
49788         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49789
49790 2008-12-10  Jim Meyering  <meyering@redhat.com>
49791
49792         gl_ASSERT: don't say assertions are disabled when they're not
49793         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49794         "checking whether to enable assertions... no", when they are in
49795         fact enabled.  This is solely a bug in the output of configure.
49796         In spite of saying "no", NDEBUG was not defined in that case.
49797         Also, as noted by Eric Blake, leave assertions enabled upon
49798         --enable-assert=INVALID.
49799
49800 2008-12-10  Bruno Haible  <bruno@clisp.org>
49801
49802         Change MODULES.html to refer to POSIX:2008 where possible.
49803         * MODULES.html.sh (POSIX2008_URL): New variable.
49804         (posix_headers): Remove sys/timeb, ucontext.
49805         (posix2001_headers): New variable.
49806         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49807         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49808         index, makecontext, mktemp, pthread_attr_getstackaddr,
49809         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49810         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49811         (posix2001_functions): New variable.
49812         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49813         otherwise.
49814
49815 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49816
49817         add missing include to parse-duration.c
49818         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49819         * modules/parse-duration (Depends-on): Add xalloc.
49820
49821         fix sed script reading maint.mk
49822         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49823         (syntax-check-rules): Use it.
49824
49825 2008-12-09  Bruno Haible  <bruno@clisp.org>
49826
49827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49828         MacOS X 10.4/PowerPC.
49829         Reported by Simon Josefsson.
49830
49831 2008-12-08  Jim Meyering  <meyering@redhat.com>
49832
49833         work around mingw's lack of some S_IF definitions
49834         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49835         Reported by Simon Josefsson.
49836
49837 2008-12-08  Bruno Haible  <bruno@clisp.org>
49838
49839         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49840         applied to variables. Needed on MacOS X 10.4/PowerPC.
49841         Reported by Simon Josefsson.
49842
49843 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49844         and Eric Blake  <ebb9@byu.net>
49845
49846         assert: honor --enable-assert
49847         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49848         order to honor --enable-assert, rather than treating it as a
49849         synonym for --disable-assert.
49850
49851 2008-12-08  Jim Meyering  <meyering@redhat.com>
49852
49853         * lib/posixtm.c: Remove now-useless declaration of mktime.
49854
49855         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49856
49857 2008-12-07  Bruno Haible  <bruno@clisp.org>
49858
49859         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49860         test_once): Mark functions as static.
49861         * tests/test-tls.c (test_tls): Likewise.
49862
49863 2008-12-07  Bruno Haible  <bruno@clisp.org>
49864
49865         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49866         iconv_register_autodetect.
49867
49868 2008-12-07  Jim Meyering  <meyering@redhat.com>
49869
49870         posixtm.c: avoid a warning
49871         * lib/posixtm.c (posixtime): Don't initialize tm0.
49872         It's no longer needed to placate gcc4's -Wuninitialized,
49873         and the attempt to placate would elicit a new warning.
49874
49875         unicodeio.c: mark unused parameters
49876         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49877         (fallback_failure_callback): Likewise.
49878
49879 2008-12-07  Bruno Haible  <bruno@clisp.org>
49880
49881         * gnulib-tool (func_create_testdir): When building the tests
49882         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49883         Reported by Simon Josefsson.
49884
49885 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49886
49887         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49888
49889 2008-12-06  Bruno Haible  <bruno@clisp.org>
49890
49891         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49892         Suggested by Eric Blake.
49893
49894 2008-12-06  Bruno Haible  <bruno@clisp.org>
49895
49896         Fix a c-stack test failure on MacOS X.
49897         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49898         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49899         handler for SIGBUS as well.
49900         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49901         install a signal handler for SIGBUS as well.
49902         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49903
49904 2008-12-06  Bruno Haible  <bruno@clisp.org>
49905
49906         Advocacy documentation.
49907         * doc/gnulib-intro.texi (Benefits): New section.
49908         * doc/gnulib.texi: Update.
49909
49910 2008-12-06  Bruno Haible  <bruno@clisp.org>
49911
49912         Document the 'manywarnings' module.
49913         * doc/manywarnings.texi: New file.
49914         * doc/gnulib.texi: Include it.
49915
49916 2008-12-05  Eric Blake  <ebb9@byu.net>
49917
49918         tests: silence some gcc warnings
49919         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49920         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49921         type mismatches.
49922
49923 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49924             Bruno Haible  <bruno@clisp.org>
49925
49926         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49927
49928 2008-11-29  Jim Meyering  <meyering@redhat.com>
49929
49930         unicodeio.c: mark unused parameters
49931         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49932         (fallback_failure_callback): Likewise.
49933
49934         fts: fix a thinko
49935         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49936         (set_stat_type): Return S_IF*-valued "type" directly.
49937         Prompted by James Youngman's spotting a related bug.
49938         Confirmed by further testing through find.
49939
49940         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49941         * lib/fts.c (D_TYPE): Define.
49942         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49943         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49944         (s_ifmt_shift_bits): New function.
49945         (set_stat_type): New function.
49946         (fts_build): When not calling fts_stat, call set_stat_type
49947         to propagate dirent.d_type info to fts_read caller.
49948         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49949         fts_statp->st_mode type information may be valid.
49950
49951 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49952
49953         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49954         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49955         <sds@gnu.org>.
49956
49957 2008-11-20  Bruno Haible  <bruno@clisp.org>
49958
49959         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49960         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49961         INCLUDE_NEXT.
49962         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49963         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49964         * modules/math (Makefile.am): Substitute
49965         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49966         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49967
49968 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49969             Bruno Haible  <bruno@clisp.org>
49970
49971         * lib/stdint.in.h: Define all type macros so that their expansion is
49972         a single typedef'ed token. Fixes a compilation failure in Boost which
49973         does "using ::int8_t;".
49974
49975 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49976
49977         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49978         gl_MANYWARN_ALL_GCC.
49979         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49980         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49981         * modules/manywarnings: New file.
49982         * MODULES.html.sh: Mention manywarnings module.
49983
49984 2008-11-18  Bruno Haible  <bruno@clisp.org>
49985
49986         * doc/gnulib-tool.texi (Unit tests): New section.
49987
49988 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49989
49990         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49991         paths like 'lib/po/foo.po'.
49992
49993 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49994
49995         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49996         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49997
49998 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49999
50000         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50001         parameter works.
50002
50003 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50004
50005         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50006
50007 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50008
50009         * modules/parse-duration-tests: New file.
50010         * tests/test-parse-duration.sh: New file.
50011         * tests/test-parse-duration.c: New file.
50012
50013         New module 'parse-duration'.
50014         * lib/parse-duration.h: New file.
50015         * lib/parse-duration.c: New file.
50016         * modules/parse-duration: New file.
50017
50018 2008-11-17  Bruno Haible  <bruno@clisp.org>
50019
50020         * tests/test-select-out.sh: Comment out the first pipe test.
50021         Reported by Simon Josefsson.
50022
50023 2008-11-17  Bruno Haible  <bruno@clisp.org>
50024
50025         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50026         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50027         gl_HOSTENT.
50028
50029 2008-11-17  Bruno Haible  <bruno@clisp.org>
50030
50031         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50032         -lnetwork and -lnet. Needed for Haiku and BeOS.
50033
50034 2008-11-16  Bruno Haible  <bruno@clisp.org>
50035
50036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50037
50038 2008-11-16  Bruno Haible  <bruno@clisp.org>
50039
50040         Avoid test failure on Haiku.
50041         * tests/test-fsync.c: Include <errno.h>.
50042         (main): Don't require that fsync (0) fails.
50043
50044 2008-11-15  Bruno Haible  <bruno@clisp.org>
50045
50046         New module 'hostent'.
50047         * modules/hostent: New file.
50048         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50049
50050 2008-11-15  Bruno Haible  <bruno@clisp.org>
50051
50052         New module 'servent'.
50053         * modules/servent: New file.
50054         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50055
50056 2008-11-15  Bruno Haible  <bruno@clisp.org>
50057
50058         Avoid generating same test program with two different rules.
50059         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50060         test-frexp to test-frexp-nolibm.
50061         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50062         test-frexpl to test-frexpl-nolibm.
50063
50064 2008-11-15  Bruno Haible  <bruno@clisp.org>
50065
50066         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50067         $(FREXPL_LIBM).
50068
50069 2008-11-15  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/netdb.in.h: Activate the definitions also when the system's
50072         <netdb.h> has 'struct addrinfo'.
50073         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50074         EAI_OVERFLOW or AI_NUMERICSERV.
50075         * doc/posix-headers/netdb.texi: Document the problem.
50076
50077 2008-11-15  Bruno Haible  <bruno@clisp.org>
50078
50079         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50080
50081         Make the 'sched' module work on platforms where <sched.h> exists but
50082         is incomplete (such as Haiku).
50083         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50084         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50085         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50086         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50087         HAVE_STRUCT_SCHED_PARAM.
50088         * modules/sched (Depends-on): Add include_next.
50089         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50090         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50091         * doc/posix-headers/sched.texi: Document the issue.
50092
50093 2008-11-13  Jim Meyering  <meyering@redhat.com>
50094
50095         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50096         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50097         test would fail due to the difference in the Report bugs to ...
50098         line.  The expected address is empty, "<>", while the actual
50099         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50100
50101 2008-11-12  Bruno Haible  <bruno@clisp.org>
50102
50103         lstat: don't compile lstat.c on systems lacking lstat
50104         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50105         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50106         Reported by Daniel P. Berrange via Jim Meyering.
50107
50108 2008-11-12  Jim Meyering  <meyering@redhat.com>
50109
50110         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50111
50112 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50113
50114         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50115         instead.
50116
50117 2008-11-12  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/unicodeio.c: Include unistr.h.
50120         (utf8_wctomb): Remove function.
50121         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50122
50123 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50124
50125         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50126         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50127         <bruno@clisp.org>.
50128         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50129
50130 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50131
50132         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50133         * doc/gnulib.texi: Add section for warnings.
50134
50135 2008-11-11  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/sockets.h: Add a comment.
50138
50139 2008-11-11  Karl Berry  <karl@gnu.org>
50140
50141         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50142
50143 2008-11-11  Eric Blake  <ebb9@byu.net>
50144
50145         fdl.texi: avoid git symlinks
50146         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50147
50148 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50149
50150         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50151
50152 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50153
50154         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50155         (gl_WARN_ADD): Substitute $2 if literal.
50156
50157 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50158
50159         * m4/warning.m4: Remove.
50160
50161 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50162
50163         * m4/warnings.m4: Almost complete rewrite. :-)
50164
50165 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50166
50167         * modules/warnings: New module.
50168         * m4/warnings.m4: New file.
50169         * MODULES.html.sh: Mention warnings module.
50170         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50171         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50172
50173 2008-11-10  Eric Blake  <ebb9@byu.net>
50174
50175         fdl.texi: make a symlink to the latest version
50176         * doc/standards.texi: Revert today's earlier change.
50177         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50178         * doc/fdl.texi: ...and replace this with a symlink to the newer
50179         fdl-1.3.texi.
50180
50181 2008-11-10  Bruno Haible  <bruno@clisp.org>
50182
50183         * tests/test-select-fd.c (main): Accept the result file name as fourth
50184         argument.
50185         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50186         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50187
50188 2008-11-10  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50191         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50192         as autoconf-substituted macros.
50193         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50195         gl_NETDB_H_DEFAULTS. Set these variables.
50196         * modules/netdb (Makefile.am): Substitute these variables.
50197
50198 2008-11-10  Eric Blake  <ebb9@byu.net>
50199
50200         standards.texi: include correct file for FDL 1.3
50201         * doc/standards.texi (GNU Free Documentation License): Change
50202         include file to pull in FDL 1.3, not 1.2.
50203
50204         fdl.texi: revert accidental change to license
50205         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50206
50207 2008-11-10  Bruno Haible  <bruno@clisp.org>
50208
50209         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50210         cross-compiling guesses also when the native compile gives no result.
50211
50212 2008-11-10  Bruno Haible  <bruno@clisp.org>
50213
50214         * lib/spawni.c (__spawni): Force variable into the stack.
50215
50216 2008-11-10  Bruno Haible  <bruno@clisp.org>
50217
50218         Add support for Haiku.
50219         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50220         glibc and BeOS, but also on Haiku.
50221         * lib/fpurge.c (fpurge): Likewise.
50222         * lib/freadable.c (freadable): Likewise.
50223         * lib/freadahead.c (freadahead): Likewise.
50224         * lib/freading.c (freading): Likewise.
50225         * lib/freadptr.c (freadptr): Likewise.
50226         * lib/freadseek.c (freadptrinc): Likewise.
50227         * lib/fseeko.c (rpl_fseeko): Likewise.
50228         * lib/fseterr.c (fseterr): Likewise.
50229         * lib/fwritable.c (fwritable): Likewise.
50230         * lib/fwriting.c (fwriting): Likewise.
50231         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50232
50233 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50234
50235         * lib/config.charset: Treat Haiku like BeOS.
50236
50237 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50238
50239         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50240         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50241
50242 2008-11-08  Bruno Haible  <bruno@clisp.org>
50243
50244         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50245         AC_CACHE_CHECK.
50246
50247 2008-11-08  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50250
50251 2008-11-08  Bruno Haible  <bruno@clisp.org>
50252
50253         * tests/test-select-fd.c: New file.
50254         * tests/test-select-in.sh: New file.
50255         * tests/test-select-out.sh: New file.
50256         * tests/test-select-stdin.c: New file.
50257         * modules/select-tests (Files): Add the new files.
50258         (Depends-on): Add gettimeofday.
50259         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50260         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50261         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50262
50263 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50264             Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50267
50268 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50269
50270         * build-aux/pmccabe2html: Added support for C++ source files.
50271
50272 2008-11-05  Ben Pfaff  <blp@gnu.org>
50273
50274         Fix lib/close.c build on Windows.
50275         * modules/close (Files): Add lib/w32sock.h.
50276
50277 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50278
50279         Accept Bison's NEWS format.
50280         * build-aux/announce-gen (print_news_deltas): Tweak
50281         $re_prefix.
50282
50283 2008-11-04  Bruno Haible  <bruno@clisp.org>
50284
50285         * modules/random_r (Maintainer): Add glibc.
50286
50287 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50288
50289         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50290         by karl@freefriends.org (Karl Berry).
50291         * doc/alloca.texi: Likewise.
50292         * doc/c-ctype.texi: Likewise.
50293         * doc/c-strcase.texi: Likewise.
50294         * doc/c-strcaseeq.texi: Likewise.
50295         * doc/c-strcasestr.texi: Likewise.
50296         * doc/c-strstr.texi: Likewise.
50297         * doc/c-strtod.texi: Likewise.
50298         * doc/c-strtold.texi: Likewise.
50299         * doc/ctime.texi: Likewise.
50300         * doc/error.texi: Likewise.
50301         * doc/fdl.texi: Likewise.
50302         * doc/gcd.texi: Likewise.
50303         * doc/getdate.texi: Likewise.
50304         * doc/gnulib-intro.texi: Likewise.
50305         * doc/gnulib-tool.texi: Likewise.
50306         * doc/gnulib.texi: Likewise.
50307         * doc/inet_ntoa.texi: Likewise.
50308         * doc/maintain.texi: Likewise.
50309         * doc/make-stds.texi: Likewise.
50310         * doc/quote.texi: Likewise.
50311         * doc/regexprops-generic.texi: Likewise.
50312         * doc/standards.texi: Likewise.
50313         * doc/verify.texi: Likewise.
50314         * doc/visibility.texi: Likewise.
50315         * doc/gnulib.texi (GNU Free Documentation License): Include
50316         fdl-1.3.texi instead of fdl.texi.
50317
50318 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50319
50320         * doc/fdl-1.3.texi: New file, from
50321         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50322         * modules/fdl-1.3: Add.
50323         * MODULES.html.sh: Add fdl-1.3.
50324
50325 2008-11-03  Bruno Haible  <bruno@clisp.org>
50326
50327         Make determination of absolute name of header file work with AIX xlc.
50328         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50329         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50330         preprocessing.
50331         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50332         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50333
50334 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50335
50336         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50337         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50338         <ludo@gnu.org>.
50339
50340 2008-11-02  Bruno Haible  <bruno@clisp.org>
50341
50342         Mark 'strpbrk' obsolete.
50343         * modules/strpbrk (Status, Notice): New sections.
50344         * modules/strtok_r (Depends-on): Add strpbrk.
50345
50346 2008-11-02  Bruno Haible  <bruno@clisp.org>
50347
50348         Mark 'strdup' obsolete.
50349         * modules/strdup (Status, Notice): New sections.
50350         * modules/findprog (Depends-on): Add strdup.
50351         * modules/getaddrinfo (Depends-on): Likewise.
50352         * modules/localename (Depends-on): Likewise.
50353         * modules/relocatable-lib (Depends-on): Likewise.
50354         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50355         * modules/relocatable-prog (Depends-on): Likewise.
50356         * modules/trim (Depends-on): Likewise.
50357         * modules/unictype/gen-ctype (Depends-on): Likewise.
50358         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50359
50360 2008-11-02  Bruno Haible  <bruno@clisp.org>
50361
50362         Mark 'strcspn' obsolete.
50363         * modules/strcspn (Status, Notice): New sections.
50364
50365 2008-11-02  Bruno Haible  <bruno@clisp.org>
50366
50367         Mark 'rmdir' obsolete.
50368         * modules/rmdir (Status, Notice): New sections.
50369         * modules/clean-temp (Depends-on): Add rmdir.
50370         * modules/openat (Depends-on): Likewise.
50371
50372 2008-11-02  Bruno Haible  <bruno@clisp.org>
50373
50374         Mark 'raise' obsolete.
50375         * modules/raise (Status, Notice): New sections.
50376         (Include): Specify <signal.h>.
50377         * modules/stdio (Depends-on): Add raise.
50378         * modules/write (Depends-on): Likewise.
50379
50380 2008-11-02  Bruno Haible  <bruno@clisp.org>
50381
50382         Mark 'memset' obsolete.
50383         * modules/memset (Status, Notice): New sections.
50384
50385 2008-11-02  Bruno Haible  <bruno@clisp.org>
50386
50387         Mark 'memmove' obsolete.
50388         * modules/memmove (Status, Notice): New sections.
50389         * modules/argp (Depends-on): Add memmove.
50390         * modules/argz (Depends-on): Likewise.
50391         * modules/canonicalize (Depends-on): Likewise.
50392         * modules/canonicalize-lgpl (Depends-on): Likewise.
50393         * modules/fts (Depends-on): Likewise.
50394         * modules/getcwd (Depends-on): Likewise.
50395         * modules/human (Depends-on): Likewise.
50396         * modules/regex (Depends-on): Likewise.
50397         * modules/striconveh (Depends-on): Likewise.
50398         * modules/trim (Depends-on): Likewise.
50399         * modules/unistr/u8-move (Depends-on): Likewise.
50400         * modules/unistr/u16-move (Depends-on): Likewise.
50401         * modules/unistr/u32-move (Depends-on): Likewise.
50402
50403 2008-11-02  Bruno Haible  <bruno@clisp.org>
50404
50405         Mark 'memcpy' obsolete.
50406         * modules/memcpy (Status, Notice): New sections.
50407
50408 2008-11-02  Bruno Haible  <bruno@clisp.org>
50409
50410         Mark 'memcmp' obsolete.
50411         * modules/memcmp (Status, Notice): New sections.
50412         * modules/argmatch (Depends-on): Add memchr.
50413         * modules/backupfile (Depends-on): Likewise.
50414         * modules/c-strcasestr (Depends-on): Likewise.
50415         * modules/crypto/des (Depends-on): Likewise.
50416         * modules/csharpcomp (Depends-on): Likewise.
50417         * modules/fnmatch (Depends-on): Likewise.
50418         * modules/git-merge-changelog (Depends-on): Likewise.
50419         * modules/isnand (Depends-on): Likewise.
50420         * modules/isnand-nolibm (Depends-on): Likewise.
50421         * modules/isnanf (Depends-on): Likewise.
50422         * modules/isnanf-nolibm (Depends-on): Likewise.
50423         * modules/isnanl (Depends-on): Likewise.
50424         * modules/isnanl-nolibm (Depends-on): Likewise.
50425         * modules/mbchar (Depends-on): Likewise.
50426         * modules/memcoll (Depends-on): Likewise.
50427         * modules/quotearg (Depends-on): Likewise.
50428         * modules/regex (Depends-on): Likewise.
50429         * modules/relocatable-prog (Depends-on): Likewise.
50430         * modules/same (Depends-on): Likewise.
50431         * modules/signbit (Depends-on): Likewise.
50432         * modules/strcasestr-simple (Depends-on): Likewise.
50433         * modules/unictype/gen-ctype (Depends-on): Likewise.
50434         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50435         * modules/uniname/uniname (Depends-on): Likewise.
50436         * modules/unistr/u8-cmp (Depends-on): Likewise.
50437
50438 2008-11-02  Bruno Haible  <bruno@clisp.org>
50439
50440         Mark 'memchr' obsolete.
50441         * modules/memchr (Status, Notice): New sections.
50442         * modules/argp (Depends-on): Add memchr.
50443         * modules/base64 (Depends-on): Likewise.
50444         * modules/c-strcasestr (Depends-on): Likewise.
50445         * modules/chdir-long (Depends-on): Likewise.
50446         * modules/fnmatch (Depends-on): Likewise.
50447         * modules/getsubopt (Depends-on): Likewise.
50448         * modules/git-merge-changelog (Depends-on): Likewise.
50449         * modules/glob (Depends-on): Likewise.
50450         * modules/strcasestr-simple (Depends-on): Likewise.
50451         * modules/strnlen (Depends-on): Likewise.
50452
50453 2008-11-02  Bruno Haible  <bruno@clisp.org>
50454
50455         Mark 'atexit' obsolete.
50456         * modules/atexit (Status, Notice): New sections.
50457         * modules/chdir-long (Depends-on): Add atexit.
50458         * modules/wait-process (Depends-on): Likewise.
50459
50460 2008-11-02  Bruno Haible  <bruno@clisp.org>
50461
50462         * gnulib-tool: New option --with-obsolete.
50463         (func_usage): Document it.
50464         (func_modules_transitive_closure): Drop obsolete dependencies if
50465         incobsolete is not true.
50466         (func_import): Read and save the incobsolete variable to the cache.
50467
50468 2008-11-02  Bruno Haible  <bruno@clisp.org>
50469
50470         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50471         * gnulib-tool: New option --extract-status.
50472         (func_usage): Document it.
50473         (sed_extract_prog): Recognize it.
50474         (func_get_status): New function.
50475
50476 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50477
50478         * modules/sockets (License): Change from LGPL to LGPLv2+.
50479
50480 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50481
50482         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50483
50484 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50485
50486         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50487         Mention times and sys_times.
50488         * modules/sys_times, modules/sys_times-tests: New modules.
50489         * modules/times, modules/times-tests: Likewise
50490         * m4/sys_times_h.m4: New file.
50491         * lib/sys_times.in.h: Likewise
50492         * lib/times.c: Likewise.
50493         * tests/test-sys_times.c: Likewise.
50494         * tests/test-times.c: Likewise.
50495         * doc/posix-headers/sys_times.texi: Update.
50496         * doc/posix-functions/times.texi: Update.
50497
50498 2008-10-28  Jim Meyering  <meyering@redhat.com>
50499
50500         * modules/tempname (Depends-on): Add lstat.
50501
50502         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50503
50504 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50505
50506         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50507         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50508         using idiom used elsewhere in gnulib.
50509
50510 2008-10-27  Jim Meyering  <meyering@redhat.com>
50511
50512         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50513
50514 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50515
50516         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50517         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50518         programs.
50519         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50520
50521 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50522
50523         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50524
50525 2008-10-27  Bruno Haible  <bruno@clisp.org>
50526
50527         * tests/test-lstat.c: Include <stdio.h>.
50528
50529 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50530
50531         * modules/lstat-tests: New module.
50532         * tests/test-lstat.c: New file.
50533
50534 2008-10-26  Jim Meyering  <meyering@redhat.com>
50535
50536         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50537
50538 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50539             Bruno Haible  <bruno@clisp.org>
50540
50541         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50542         * modules/configmake (Include): Add a note that the include must come
50543         after all system headers.
50544         * lib/javaversion.c: Include configmake.h after all other includes.
50545
50546 2008-10-26  Bruno Haible  <bruno@clisp.org>
50547
50548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50549         HAVE_STRUCT_RANDOM_DATA to 1.
50550         (gl_STDLIB_H): Simplify.
50551
50552 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50553
50554         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50555         substitute HAVE_STRUCT_RANDOM_DATA.
50556         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50557         random_data.
50558         * modules/stdlib (Makefile.am): Substitute
50559         HAVE_STRUCT_RANDOM_DATA.
50560
50561 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50562
50563         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50564         * doc/gnulib-intro.texi (Copyright): Likewise.
50565
50566 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50567
50568         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50569         findings.
50570
50571 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50572             Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/unistd.in.h: Include <winsock2.h>.
50575         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50576         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50577         Provide dummy declarations.
50578         (gethostname): Override.
50579         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50580         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50581         gl_PREREQ_SYS_H_WINSOCK2.
50582         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50583         * doc/posix-functions/gethostname.texi: More details.
50584
50585 2008-10-25  Bruno Haible  <bruno@clisp.org>
50586
50587         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50588         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50589         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50590
50591         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50592         here ...
50593         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50594         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50595         gl_UNISTD_H_DEFAULTS.
50596
50597 2008-10-25  Eric Blake  <ebb9@byu.net>
50598
50599         signbit: avoid spurious compiler failure
50600         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50601         declarations inside function.
50602
50603 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50604             Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50607         * modules/random_r (Depends-on): Add stdint.
50608
50609 2008-10-24  Bruno Haible  <bruno@clisp.org>
50610
50611         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50612         Eggert.
50613         * modules/strerror (License): Likewise.
50614
50615 2008-10-24  Jim Meyering  <meyering@redhat.com>
50616
50617         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50618         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50619
50620 2008-10-24  Eric Blake  <ebb9@byu.net>
50621
50622         getgroups: fix compilation when getgroups is available
50623         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50624         but with <config.h> override of getgroups disabled.
50625
50626 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50627
50628         * doc/gnulib.texi (Header files): Add note about C++ problems.
50629         Explained by Bruno Haible <bruno@clisp.org>.
50630
50631 2008-10-23  Bruno Haible  <bruno@clisp.org>
50632
50633         Define a dummy SA_NODEFER macro on Interix.
50634         * lib/signal.in.h (SA_NODEFER): Define fallback.
50635         Reported by Aleksey Cheusov <cheusov@tut.by> via
50636         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50637
50638 2008-10-23  Bruno Haible  <bruno@clisp.org>
50639
50640         * modules/freadahead (License): Change to LGPLv2+.
50641         Suggested by Simon Josefsson.
50642
50643 2008-10-23  Jim Meyering  <meyering@redhat.com>
50644
50645         random_r: new module
50646         * modules/random_r: New file.
50647         * m4/random_r.m4: New file.
50648         * lib/random_r.c: New file, from glibc.
50649         * modules/random_r-tests: New file.
50650         * tests/test-random_r.c: New file.
50651         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50652          Declare.
50653         (RAND_MAX): Define.
50654         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50655         * modules/stdlib: Substitute them, too.
50656         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50657         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50658         * doc/glibc-functions/random_r.texi: Likewise.
50659         * doc/glibc-functions/setstate_r.texi: Likewise.
50660         * doc/glibc-functions/srandom_r.texi: Likewise.
50661         * config/srclist.txt: Mention it.
50662
50663 2008-10-23  David Lutterkort  <lutter@redhat.com>
50664
50665         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50666         link requirement
50667
50668 2008-10-23  Jim Meyering  <meyering@redhat.com>
50669
50670         selinux-h: mark parameters of stub functions as intentionally unused
50671         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50672         * lib/se-context.in.h: Likewise.
50673
50674 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50675
50676         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50677
50678 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50679
50680         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50681
50682 2008-10-22  Eric Blake  <ebb9@byu.net>
50683
50684         glthread/thread: avoid compiler warning
50685         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50686         Add unreachable abort to silence compiler.
50687
50688 2008-10-22  Eric Blake  <ebb9@byu.net>
50689
50690         netdb: also supply struct addrinfo for cygwin 1.5.x
50691         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50692         older cygwin.
50693         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50694         cygwin.
50695         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50696
50697 2008-10-22  Bruno Haible  <bruno@clisp.org>
50698
50699         * users.txt: Update entry about pspp.
50700
50701 2008-10-21  Bruno Haible  <bruno@clisp.org>
50702
50703         Simplification.
50704         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50705         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50706
50707         Simplification.
50708         * lib/ioctl.c (ioctl): Don't undefine.
50709         * lib/socket.c (socket): Don't undefine.
50710
50711         Remove unused module indicator macros.
50712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50713         GNULIB_$1 as a C macro.
50714
50715         * doc/posix-functions/close.texi: Undo last change.
50716         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50717         Windows platforms.
50718
50719 2008-10-21  Bruno Haible  <bruno@clisp.org>
50720
50721         Add gethostname() declaration to <unistd.h>.
50722         * lib/unistd.in.h (gethostname): New declaration.
50723         * lib/gethostname.c: Include <unistd.h>.
50724         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50725         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50727         and HAVE_GETHOSTNAME.
50728         * modules/gethostname (Depends-on): Add unistd.
50729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50730         (Include): Specify <unistd.h>.
50731         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50732         HAVE_GETHOSTNAME.
50733         * tests/test-gethostname.c: Include <unistd.h> first.
50734
50735 2008-10-21  Bruno Haible  <bruno@clisp.org>
50736
50737         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50738         * modules/select-tests (Depends-on): Likewise.
50739         Reported by Simon Josefsson.
50740
50741 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50742
50743         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50744         * lib/accept.c: New file, based on winsock.c.
50745         * lib/bind.c: New file, based on winsock.c.
50746         * lib/connect.c: New file, based on winsock.c.
50747         * lib/getpeername.c: New file, based on winsock.c.
50748         * lib/getsockname.c: New file, based on winsock.c.
50749         * lib/getsockopt.c: New file, based on winsock.c.
50750         * lib/ioctl.c: New file, based on winsock.c.
50751         * lib/listen.c: New file, based on winsock.c.
50752         * lib/recv.c: New file, based on winsock.c.
50753         * lib/recvfrom.c: New file, based on winsock.c.
50754         * lib/send.c: New file, based on winsock.c.
50755         * lib/sendto.c: New file, based on winsock.c.
50756         * lib/setsockopt.c: New file, based on winsock.c.
50757         * lib/shutdown.c: New file, based on winsock.c.
50758         * lib/socket.c: New file, based on winsock.c.
50759         * lib/w32sock.h: New file, based on winsock.c.
50760         * lib/winsock.c: Remove file.
50761         * modules/accept: Likewise.
50762         * modules/bind: Likewise.
50763         * modules/connect: Likewise.
50764         * modules/getpeername: Likewise.
50765         * modules/getsockname: Likewise.
50766         * modules/getsockopt: Likewise.
50767         * modules/ioctl: Likewise.
50768         * modules/listen: Likewise.
50769         * modules/recv: Likewise.
50770         * modules/recvfrom: Likewise.
50771         * modules/send: Likewise.
50772         * modules/sendto: Likewise.
50773         * modules/setsockopt: Likewise.
50774         * modules/shutdown: Likewise.
50775         * modules/socket: Use socket.c instead of winsock.c.
50776         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50777         * doc/posix-functions/accept.texi: Doc fix.
50778         * doc/posix-functions/bind.texi: Doc fix.
50779         * doc/posix-functions/close.texi: Doc fix.
50780         * doc/posix-functions/connect.texi: Doc fix.
50781         * doc/posix-functions/getpeername.texi: Doc fix.
50782         * doc/posix-functions/getsockname.texi: Doc fix.
50783         * doc/posix-functions/getsockopt.texi: Doc fix.
50784         * doc/posix-functions/ioctl.texi: Doc fix.
50785         * doc/posix-functions/listen.texi: Doc fix.
50786         * doc/posix-functions/recv.texi: Doc fix.
50787         * doc/posix-functions/recvfrom.texi: Doc fix.
50788         * doc/posix-functions/send.texi: Doc fix.
50789         * doc/posix-functions/sendto.texi: Doc fix.
50790         * doc/posix-functions/setsockopt.texi: Doc fix.
50791         * doc/posix-functions/shutdown.texi: Doc fix.
50792         * doc/posix-functions/socket.texi: Doc fix.
50793
50794 2008-10-20  Bruno Haible  <bruno@clisp.org>
50795
50796         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50797         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50798         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50799         as an alias for SIGABRT.
50800         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50801         (sigaction): Map it to SIGABRT.
50802         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50803
50804 2008-10-20  Bruno Haible  <bruno@clisp.org>
50805
50806         * lib/fts.c: Don't include lstat.h.
50807         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50808
50809         Move the lstat() declaration to <sys/stat.h>.
50810         * lib/lstat.h: Remove file.
50811         * lib/sys_stat.in.h: Add special invocation convention.
50812         (lstat): New declaration.
50813         * lib/lstat.c (orig_lstat): New function.
50814         (rpl_lstat): Use orig_lstat instead of lstat.
50815         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50816         AC_C_INLINE. Set REPLACE_LSTAT.
50817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50818         and REPLACE_LSTAT.
50819         * modules/lstat (Files): Remove lib/lstat.h.
50820         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50821         (Include): Specify <sys/stat.h> instead of lstat.h.
50822         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50823         REPLACE_LSTAT.
50824         * NEWS: Mention the change.
50825
50826 2008-10-20  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/posix_spawn-tests: New file.
50829         * tests/test-posix_spawn3.c: New file.
50830
50831 2008-10-20  Bruno Haible  <bruno@clisp.org>
50832
50833         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50834         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50835         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50836         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50837         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50838
50839 2008-10-20  Bruno Haible  <bruno@clisp.org>
50840
50841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50842         of posix_spawn on AIX 5.3.
50843
50844 2008-10-20  Bruno Haible  <bruno@clisp.org>
50845
50846         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50847
50848 2008-10-20  Bruno Haible  <bruno@clisp.org>
50849
50850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50851         of AC_LANG_PROGRAM.
50852
50853 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50854
50855         * lib/netdb.in.h: Don't define GNU specific constants until they
50856         are supported or needed.  Reported by Bruno Haible
50857         <bruno@clisp.org>.
50858
50859 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50860
50861         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50862
50863 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50864
50865         * lib/getaddrinfo.h: Remove file.
50866         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50867         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50868         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50869         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50870         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50871         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50872         * tests/test-getaddrinfo.c: Likewise.
50873         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50874         * NEWS: Mention change.
50875
50876 2008-10-19  Bruno Haible  <bruno@clisp.org>
50877
50878         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50879
50880 2008-10-19  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/wait-process.c: Include simply <sys/wait.h>.
50883         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50884         WIFSTOPPED): Remove fallback definitions.
50885         * modules/wait-process (Depends-on): Add sys_wait.
50886
50887         New module 'sys_wait'.
50888         * modules/sys_wait: New file.
50889         * lib/sys_wait.in.h: New file, partially copied from
50890         lib/wait-process.c.
50891         * m4/sys_wait_h.m4: New file.
50892         * doc/posix-headers/sys_wait.texi: Mention the new module.
50893
50894 2008-10-19  Bruno Haible  <bruno@clisp.org>
50895
50896         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50897
50898 2008-10-19  Bruno Haible  <bruno@clisp.org>
50899
50900         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50901         * lib/wait-process.c (WAIT_T): Remove type.
50902         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50903         (wait_subprocess): Update.
50904
50905 2008-10-19  Bruno Haible  <bruno@clisp.org>
50906
50907         New module 'atoll'.
50908         * modules/atoll: New file.
50909         * lib/stdlib.in.h (atoll): New declaration.
50910         * lib/atoll.c: New file, from glibc with modifications.
50911         * m4/atoll.m4: New file.
50912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50913         HAVE_ATOLL.
50914         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50915         * doc/posix-functions/atoll.texi: Mention the new module.
50916
50917 2008-10-19  Bruno Haible  <bruno@clisp.org>
50918
50919         Add strtoull() declaration to <stdlib.h>.
50920         * lib/stdlib.in.h (strtoull): New declaration.
50921         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50922         Set HAVE_STRTOULL.
50923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50924         HAVE_STRTOULL.
50925         * modules/strtoull (Depends-on): Add stdlib.
50926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50927         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50928         HAVE_STRTOULL.
50929
50930 2008-10-19  Bruno Haible  <bruno@clisp.org>
50931
50932         Add strtoll() declaration to <stdlib.h>.
50933         * lib/stdlib.in.h (strtoll): New declaration.
50934         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50935         Set HAVE_STRTOLL.
50936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50937         HAVE_STRTOLL.
50938         * modules/strtoll (Depends-on): Add stdlib.
50939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50940         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50941
50942 2008-10-19  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/bcopy (Depends-on): Add strings.
50945         (Include): Specify <strings.h>.
50946
50947 2008-10-19  Bruno Haible  <bruno@clisp.org>
50948
50949         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50950
50951 2008-10-19  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50954         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50955         mingw.
50956
50957 2008-10-19  Bruno Haible  <bruno@clisp.org>
50958
50959         * lib/atanl.c: Don't include isnanl.h.
50960         * lib/cosl.c: Likewise.
50961         * lib/ldexpl.c: Likewise.
50962         * lib/logl.c: Likewise.
50963         * lib/sinl.c: Likewise.
50964         * lib/sqrtl.c: Likewise.
50965         * lib/tanl.c: Likewise.
50966
50967         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50968         * lib/isnanf.h: Remove file.
50969         * lib/isnand.h: Remove file.
50970         * lib/isnanl.h: Remove file.
50971         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50972         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50973         macros.
50974         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50975         HAVE_ISNANF, don't define it as a C macro.
50976         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50977         HAVE_ISNAND, don't define it as a C macro.
50978         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50979         HAVE_ISNANL, don't define it as a C macro.
50980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50981         HAVE_ISNAN[FDL].
50982         * modules/isnanf (Files): Remove lib/isnanf.h.
50983         (Depends-on): Add math.
50984         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50985         (Include): Specify <math.h> instead of isnanf.h.
50986         * modules/isnand (Files): Remove lib/isnand.h.
50987         (Depends-on): Add math.
50988         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50989         (Include): Specify <math.h> instead of isnand.h.
50990         * modules/isnanl (Files): Remove lib/isnanl.h.
50991         (Depends-on): Add math.
50992         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50993         (Include): Specify <math.h> instead of isnanl.h.
50994         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50995         HAVE_ISNAN[FDL].
50996         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50997         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50998         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50999         * NEWS: Mention the change.
51000
51001 2008-10-18  Bruno Haible  <bruno@clisp.org>
51002
51003         Add getusershell(), setusershell(), endusershell() declarations to
51004         <unistd.h>.
51005         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51006         declarations.
51007         * lib/getusershell.c: Include unistd.h.
51008         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51009         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51010         HAVE_GETUSERSHELL.
51011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51012         and HAVE_GETUSERSHELL.
51013         * modules/getusershell (Depends-on): Add unistd, extensions.
51014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51015         (Include): Specify <unistd.h>.
51016         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51017         HAVE_GETUSERSHELL.
51018
51019 2008-10-18  Bruno Haible  <bruno@clisp.org>
51020
51021         Add a getloadavg() declaration to <stdlib.h>.
51022         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51023         getloadavg declaration.
51024         (getloadavg): New declaration.
51025         * lib/getloadavg.c: Include <stdlib.h> first.
51026         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51027         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51028         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51030         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51031         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51033         (Include): Specify <stdlib.h>.
51034         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51035         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51036
51037 2008-10-18  Bruno Haible  <bruno@clisp.org>
51038
51039         * lib/dirchownmod.c: Don't include lchmod.h.
51040
51041         Move the lchmod() declaration to <sys/stat.h>.
51042         * lib/lchmod.h: Remove file.
51043         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51044         (lchmod): New declaration, moved here from lib/lchown.h.
51045         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51046         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51048         and HAVE_LCHMOD.
51049         * modules/lchmod (Files): Remove lib/lchmod.h.
51050         (Depends-on): Add sys_stat, extensions.
51051         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51052         (Include): Specify <sys/stat.h> instead of lchmod.h.
51053         * modules/sys_stat (Depends-on): Add link-warning.
51054         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51055         definition of GL_LINK_WARNING.
51056         * NEWS: Mention the change.
51057
51058 2008-10-18  Bruno Haible  <bruno@clisp.org>
51059
51060         * lib/fchdir.c: Don't include dirfd.h.
51061         * lib/fts.c: Likewise.
51062         * lib/getcwd.c: Likewise.
51063         * lib/glob.c: Likewise.
51064
51065         Move the dirfd() declaration to <dirent.h>.
51066         * lib/dirfd.h: Remove file.
51067         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51068         (dirfd): New declaration.
51069         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51070         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51071         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51072         HAVE_DECL_DIRFD.
51073         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51074         HAVE_DECL_DIRFD.
51075         * modules/dirfd (Files): Remove lib/dirfd.h.
51076         (Depends-on): Add dirent, extensions.
51077         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51078         (Include): Specify <dirent.h> instead of dirfd.h.
51079         * modules/dirent (Depends-on): Add link-warning.
51080         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51081         definition of GL_LINK_WARNING.
51082         * NEWS: Mention the change.
51083
51084 2008-10-18  Bruno Haible  <bruno@clisp.org>
51085
51086         Move the euidaccess() declaration to <unistd.h>.
51087         * lib/euidaccess.h: Remove file.
51088         * lib/unistd.in.h (euidaccess): New declaration.
51089         * lib/euidaccess.c: Don't include euidaccess.h.
51090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51091         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51093         and HAVE_EUIDACCESS.
51094         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51095         (Depends-on): Add unistd.
51096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51097         (Include): Specify <unistd.h> instead of euidaccess.h.
51098         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51099         HAVE_EUIDACCESS.
51100         * NEWS: Mention the change.
51101
51102 2008-10-18  Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51105
51106         Move the getdomainname() declaration to <unistd.h>.
51107         * lib/getdomainname.h: Remove file.
51108         * lib/unistd.in.h (getdomainname): New declaration.
51109         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51110         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51111         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51112         HAVE_GETDOMAINNAME.
51113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51114         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51115         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51116         (Depends-on): Add unistd, extensions.
51117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51118         (Includes): Specify <unistd.h> instead of getdomainname.h.
51119         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51120         HAVE_GETDOMAINNAME.
51121         * NEWS: Mention the change.
51122
51123 2008-10-18  Bruno Haible  <bruno@clisp.org>
51124
51125         * modules/dirent: New file.
51126         * m4/dirent_h.m4: New file.
51127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51128         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51129         * modules/fchdir (Files): Remove lib/dirent.in.h.
51130         (Depends-on): Add dirent.
51131         (Makefile.am): Move rules to modules/dirent.
51132         * doc/posix-headers/dirent.texi: Mention the new module.
51133
51134 2008-10-18  Bruno Haible  <bruno@clisp.org>
51135
51136         Avoid -Wunused-parameter warnings in public gnulib header files.
51137         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51138         macro.
51139         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51140
51141 2008-10-18  Bruno Haible  <bruno@clisp.org>
51142
51143         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51144         * doc/glibc-functions/error.texi: Mention the module 'error'.
51145         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51146         * doc/glibc-functions/getdomainname.texi: Mention the module
51147         'getdomainname'.
51148         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51149         * doc/glibc-functions/getpagesize.texi: Mention the module
51150         'getpagesize'.
51151         * doc/glibc-functions/getusershell.texi: Mention the module
51152         'getusershell'.
51153         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51154         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51155         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51156         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51157         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51158         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51159         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51160         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51161         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51162         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51163         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51164         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51165         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51166         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51167
51168 2008-10-17  Bruno Haible  <bruno@clisp.org>
51169
51170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51171         HP-UX and IRIX, use -0.0L.
51172         * tests/test-ceill.c (minus_zero): Likewise.
51173         * tests/test-floorl.c (minus_zero): Likewise.
51174         * tests/test-frexpl.c (minus_zero): Likewise.
51175         * tests/test-isnan.c (minus_zerol): Likewise.
51176         * tests/test-isnanl.h (minus_zero): Likewise.
51177         * tests/test-ldexpl.c (minus_zero): Likewise.
51178         * tests/test-roundl.c (minus_zero): Likewise.
51179         * tests/test-signbit.c (minus_zerol): Likewise.
51180         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51181         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51182         * tests/test-truncl.c (minus_zero): Likewise.
51183         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51184         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51185         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51186         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51187
51188 2008-10-17  Bruno Haible  <bruno@clisp.org>
51189
51190         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51191         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51192         that it gets activated only for gcc >= 3.0.
51193         * lib/dirent.in.h: Likewise.
51194         * lib/errno.in.h: Likewise.
51195         * lib/fcntl.in.h: Likewise.
51196         * lib/float.in.h: Likewise.
51197         * lib/iconv.in.h: Likewise.
51198         * lib/inttypes.in.h: Likewise.
51199         * lib/locale.in.h: Likewise.
51200         * lib/math.in.h: Likewise.
51201         * lib/netdb.in.h: Likewise.
51202         * lib/netinet_in.in.h: Likewise.
51203         * lib/search.in.h: Likewise.
51204         * lib/signal.in.h: Likewise.
51205         * lib/spawn.in.h: Likewise.
51206         * lib/stdarg.in.h: Likewise.
51207         * lib/stdint.in.h: Likewise.
51208         * lib/stdio.in.h: Likewise.
51209         * lib/stdlib.in.h: Likewise.
51210         * lib/string.in.h: Likewise.
51211         * lib/strings.in.h: Likewise.
51212         * lib/sys_file.in.h: Likewise.
51213         * lib/sys_ioctl.in.h: Likewise.
51214         * lib/sys_select.in.h: Likewise.
51215         * lib/sys_socket.in.h: Likewise.
51216         * lib/sys_stat.in.h: Likewise.
51217         * lib/sys_time.in.h: Likewise.
51218         * lib/sysexits.in.h: Likewise.
51219         * lib/time.in.h: Likewise.
51220         * lib/unistd.in.h: Likewise.
51221         * lib/wchar.in.h: Likewise.
51222         * lib/wctype.in.h: Likewise.
51223         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51224
51225 2008-10-17  Jim Meyering  <meyering@redhat.com>
51226
51227         ignore-value: don't depend on inline module
51228         * modules/ignore-value (Depends-on): Remove 'inline'.
51229         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51230         Suggestion from Bruno Haible.
51231
51232 2008-10-17  Bruno Haible  <bruno@clisp.org>
51233
51234         New implementation of condition variables for Win32.
51235         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51236         (gl_linked_waitqueue_t): New type.
51237         (gl_cond_t): Use it.
51238         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51239         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51240         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51241         (glthread_cond_init_func, glthread_cond_wait_func,
51242         glthread_cond_timedwait_func, glthread_cond_signal_func,
51243         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51244         Reimplemented on the basis of gl_linked_waitqueue_t.
51245         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51246         gl_waitqueue_t.
51247         (gl_rwlock_t): Update.
51248         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51249
51250 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51251
51252         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51253         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51254
51255 2008-10-17  Jim Meyering  <meyering@redhat.com>
51256
51257         ignore-value: new module
51258         * modules/ignore-value: New file.
51259         * lib/ignore-value.h: New file.
51260         * MODULES.html.sh (Compiler warning management): New section,
51261         just for this module.  More to come.
51262
51263 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51264
51265         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51266         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51267         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51268
51269 2008-10-16  Jim Meyering  <meyering@redhat.com>
51270
51271         openat-die.c: avoid 'no previous prototype' warning
51272         * lib/openat-die.c: Include "openat.h".
51273         Reported by Reuben Thomas <rrt@sc3d.org>.
51274
51275 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51276
51277         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51278         * lib/netdb.in.h: Fix typo.
51279         Reported by Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/netdb.in.h: Include sys/socket.h for platforms without
51282         netdb.h, to get structures like hostent on MinGW.
51283         * modules/netdb (Depends-on): Add sys_socket.
51284
51285 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51286
51287         * modules/netdb, modules/netdb-tests: New file.
51288         * m4/netdb_h.m4: New file.
51289         * lib/netdb.in.h: Add, currently just an empty file pending
51290         definitions.
51291         * tests/test-netdb.c: New file.
51292         * doc/posix-headers/netdb.texi: Mention that we replace it if
51293         needed.
51294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51295         netdb.
51296
51297 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51298
51299         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51300         with code.
51301
51302 2008-10-13  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/glthread/cond.c (glthread_cond_wait_func,
51305         glthread_cond_timedwait_func): Add a comment.
51306
51307 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51308
51309         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51310         * tests/test-select.c: Likewise,
51311
51312 2008-10-13  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/glthread/cond.c (glthread_cond_wait_func,
51315         glthread_cond_timedwait_func): Fix variable name.
51316         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51317
51318 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51319
51320         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51322         struct sockaddr.sa_len.
51323         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51324
51325 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51326
51327         * build-aux/pmccabe2html: Add css and css_url parameters.
51328
51329 2008-10-12  Bruno Haible  <bruno@clisp.org>
51330
51331         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51332         calling aclx_get.
51333         Reported by Rainer Tammer <tammer@tammer.net>.
51334
51335 2008-10-12  Bruno Haible  <bruno@clisp.org>
51336
51337         Use msvcrt aware primitives for creation/termination of Win32 threads.
51338         * lib/glthread/thread.c: Include <process.h>.
51339         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51340         (wrapper_func): Update signature.
51341         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51342
51343 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51344             Bruno Haible  <bruno@clisp.org>
51345
51346         Provide a Win32 implementation of the 'cond' module.
51347         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51348         * lib/glthread/cond.c (glthread_cond_init_func,
51349         glthread_cond_wait_func, glthread_cond_timedwait_func,
51350         glthread_cond_signal_func, glthread_cond_broadcast_func,
51351         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51352         * modules/cond (Dependencies): Add gettimeofday.
51353
51354 2008-10-11  Bruno Haible  <bruno@clisp.org>
51355
51356         Make sleep work on older versions of mingw.
51357         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51358         only whether it exists.
51359         * doc/posix-functions/sleep.texi: Mention the problem with older
51360         versions of mingw.
51361
51362 2008-10-11  Bruno Haible  <bruno@clisp.org>
51363
51364         New module 'shutdown'.
51365         * modules/shutdown: New file.
51366         * lib/sys_socket.in.h (shutdown): New declaration.
51367         * lib/winsock.c (shutdown): New function.
51368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51369         GNULIB_SHUTDOWN.
51370         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51371         * doc/posix-functions/shutdown.texi: Document the new module.
51372
51373 2008-10-11  Jim Meyering  <meyering@redhat.com>
51374
51375         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51376
51377 2008-10-11  Bruno Haible  <bruno@clisp.org>
51378
51379         New module 'fclose'.
51380         * modules/fclose: New file.
51381         * lib/stdio.in.h (fclose): New declaration.
51382         * lib/fclose.c: New file.
51383         * m4/fclose.m4: New file.
51384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51385         REPLACE_FCLOSE.
51386         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51387         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51388         REPLACE_FCLOSE.
51389         * modules/close (Depends-on): fclose.
51390         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51391
51392 2008-10-11  Bruno Haible  <bruno@clisp.org>
51393
51394         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51395         set errno and don't call _close.
51396
51397 2008-10-10  Bruno Haible  <bruno@clisp.org>
51398
51399         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51400         ACL, not afterwards. Fixes test failure on Cygwin.
51401
51402 2008-10-09  Ben Pfaff  <blp@gnu.org>
51403
51404         * build-aux/announce-gen: Fix gnulib version related part of usage
51405         message.  Die with a useful error message if no tarballs are
51406         found.
51407
51408 2008-10-10  Jim Meyering  <meyering@redhat.com>
51409
51410         bootstrap: use git's --depth=N option only if it's supported
51411         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51412         recognize the --depth option.  Reported by Pádraig Brady.
51413
51414 2008-10-09  Bruno Haible  <bruno@clisp.org>
51415
51416         New module 'ioctl'.
51417         * modules/ioctl: New file.
51418         * lib/sys_socket.in.h (ioctl): Remove declaration.
51419         * lib/winsock.c: Include <sys/ioctl.h>.
51420         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51421         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51422         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51423         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51424         * doc/posix-functions/ioctl.texi: Mention the new module.
51425
51426 2008-10-09  Bruno Haible  <bruno@clisp.org>
51427
51428         New module 'sys_ioctl'.
51429         * lib/sys_ioctl.in.h: New file.
51430         * m4/sys_ioctl_h.m4: New file.
51431         * modules/sys_ioctl: New file.
51432         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51433
51434 2008-10-09  Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51437         * lib/winsock.c: Include <stdarg.h>.
51438         (rpl_ioctl): Change to second argument 'int' and then varargs.
51439
51440 2008-10-09  Bruno Haible  <bruno@clisp.org>
51441
51442         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51443         when the sys_socket module is present and the system has <winsock2.h>.
51444
51445 2008-10-09  Bruno Haible  <bruno@clisp.org>
51446
51447         * doc/posix-functions/close.texi: Mention module 'close' instead of
51448         module 'sys_socket'.
51449
51450 2008-10-09  Bruno Haible  <bruno@clisp.org>
51451
51452         * doc/glibc-headers/sys_ioctl.texi: New file.
51453         * doc/gnulib.texi: Include it.
51454
51455 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51456             Bruno Haible  <bruno@clisp.org>
51457
51458         Combine the two replacements of 'close'.
51459         * lib/sys_socket.in.h (close): Define to a reminder to include
51460         <unistd.h>.
51461         (_gl_close_fd_maybe_socket): New declaration.
51462         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51463         * lib/winsock.c (close): Remove undefinition.
51464         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51465         needed for the gnulib module 'close'.
51466         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51467         define to an error symbol or to a warning, if suitable.
51468         * lib/close.c: Include <sys/socket.h>.
51469         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51470         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51471         UNISTD_H_HAVE_WINSOCK2_H.
51472         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51474         UNISTD_H_HAVE_WINSOCK2_H.
51475         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51476         (configure.ac): Set a module indicator.
51477         (Makefile.am): Substitute GNULIB_CLOSE.
51478         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51479         * modules/poll-tests (Depends-on): Add close.
51480         * modules/select-tests (Depends-on): Likewise.
51481
51482 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51483             Bruno Haible  <bruno@clisp.org>
51484
51485         New module 'close'.
51486         * modules/close: New file.
51487         * lib/unistd.in.h (close): Move declaration out of the
51488         FCHDIR_REPLACEMENT scope.
51489         (_gl_unregister_fd): New declaration.
51490         * lib/close.c: New file.
51491         * lib/fchdir.c (rpl_close): Remove function.
51492         * m4/close.m4: New file.
51493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51494         close.
51495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51496         REPLACE_CLOSE.
51497         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51498         REPLACE_CLOSE.
51499         * modules/fchdir (Depends-on): Add close.
51500
51501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51502             Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/fcntl.in.h (open): Simplify conditionals.
51505         (_gl_register_fd): New declaration.
51506         * lib/fchdir.c (rpl_open): Remove function.
51507         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51508         also.
51509         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51511         open.
51512
51513 2008-10-09  Jim Meyering  <meyering@redhat.com>
51514
51515         GNUmakefile: use the more name-space-friendly "_version"
51516         * top/GNUmakefile (_dummy): Update.
51517         (_version): Rename from "version".
51518
51519 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51520             Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51523         rpl_close.
51524         (_gl_register_fd): New function, extracted from rpl_open.
51525         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51526         (rpl_open, rpl_opendir): Use _gl_register_fd.
51527
51528 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51529
51530         Fix organization of 'open' replacement.
51531         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51532         (gl_FUNC_OPEN): Use it.
51533         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51534
51535 2008-10-08  Bruno Haible  <bruno@clisp.org>
51536
51537         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51538
51539 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51540
51541         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51542         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51543         listen).
51544
51545 2008-10-08  Eric Blake  <ebb9@byu.net>
51546
51547         GNUmakefile: add 'make version' target
51548         * top/GNUmakefile (_curr-ver): Split version update rules...
51549         (version): ...into a target.
51550
51551 2008-10-07  Bruno Haible  <bruno@clisp.org>
51552
51553         Use a more portable replacement expression for -0.0L.
51554         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51555         instead of -0.0L. Fix m4 quotation.
51556
51557         * tests/test-signbit.c: Include <float.h>.
51558         (minus_zero): New variable.
51559         (test_signbitl): Use minus_zero instead of -zero.
51560         * modules/signbit-tests (Depends-on): Add float.
51561
51562         * tests/test-ceill.c: Include <float.h>.
51563         (zero): Remove variable.
51564         (minus_zero): New variable.
51565         (main): Use minus_zero instead of -zero.
51566         * modules/ceill-tests (Depends-on): Add float.
51567
51568         * tests/test-floorl.c: Include <float.h>.
51569         (zero): Remove variable.
51570         (minus_zero): New variable.
51571         (main): Use minus_zero instead of -zero.
51572         * modules/floorl-tests (Depends-on): Add float.
51573
51574         * tests/test-roundl.c: Include <float.h>.
51575         (zero): Remove variable.
51576         (minus_zero): New variable.
51577         (main): Use minus_zero instead of -zero.
51578         * modules/roundl-tests (Depends-on): Add float.
51579
51580         * tests/test-truncl.c: Include <float.h>.
51581         (zero): Remove variable.
51582         (minus_zero): New variable.
51583         (main): Use minus_zero instead of -zero.
51584         * modules/truncl-tests (Depends-on): Add float.
51585
51586         * tests/test-frexpl.c (zero): Remove variable.
51587         (minus_zero): New variable.
51588         (main): Use minus_zero instead of -zero.
51589         * modules/frexpl-tests (Depends-on): Add float.
51590
51591         * tests/test-isnan.c (zerol): Remove variable.
51592         (minus_zerol): New variable.
51593         (test_long_double): Use minus_zerol instead of -zerol.
51594         * modules/isnan-tests (Depends-on): Add float.
51595
51596         * tests/test-isnanl.h (zero): Remove variable.
51597         (minus_zero): New variable.
51598         (main): Use minus_zero instead of -zero.
51599         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51600         * modules/isnanl-tests (Depends-on): Add float.
51601
51602         * tests/test-ldexpl.c (zero): Remove variable.
51603         (minus_zero): New variable.
51604         (main): Use minus_zero instead of -zero.
51605         * modules/ldexpl-tests (Depends-on): Add float.
51606
51607         * tests/test-snprintf-posix.h (zerol): Remove variable.
51608         (minus_zerol): New variable.
51609         (test_function): Use minus_zerol instead of -zerol.
51610         * modules/snprintf-posix-tests (Depends-on): Add float.
51611         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51612
51613         * tests/test-sprintf-posix.h (zerol): Remove variable.
51614         (minus_zerol): New variable.
51615         (test_function): Use minus_zerol instead of -zerol.
51616         * modules/sprintf-posix-tests (Depends-on): Add float.
51617         * modules/vsprintf-posix-tests (Depends-on): Add float.
51618
51619         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51620         (minus_zerol): New variable.
51621         (test_function): Use minus_zerol instead of -zerol.
51622         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51623
51624         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51625         (minus_zerol): New variable.
51626         (test_function): Use minus_zerol instead of -zerol.
51627         * modules/vasprintf-posix-tests (Depends-on): Add float.
51628
51629 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51630
51631         * MODULES.html.sh (Support for building documentation): Mention
51632         pmccabe2html.  Sort entries.
51633
51634         Add pmccabe2html module, from gnupdf.
51635         * build-aux/pmccabe.css: New file.
51636         * build-aux/pmccabe2html: New file.
51637         * m4/pmccabe2html.m4: New file.
51638         * modules/pmccabe2html: New file.
51639
51640 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51641
51642         flock: new module
51643         * MODULES.html.sh: Add to list of modules.
51644         * lib/flock.c: flock implementation for Windows and Unix systems
51645         which have fcntl.
51646         * doc/glibc-functions/flock.texi: Update documentation.
51647         * lib/sys_file.in.h: <sys/file.h> header file.
51648         * m4/flock.m4: M4 macros.
51649         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51650         * modules/flock: flock module.
51651         * modules/flock-tests: flock tests module.
51652         * modules/sys_file: sys/file.h module.
51653         * tests/test-flock.c: test suite for flock.
51654
51655 2008-10-06  Jim Meyering  <meyering@redhat.com>
51656
51657         bootstrap: check for LT_INIT more portably still ;-)
51658         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51659         Spotted by Bruno Haible.
51660
51661 2008-10-06  Eric Blake  <ebb9@byu.net>
51662
51663         test-signbit: avoid tripping Irix cc bug on -0.0L
51664         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51665         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51666         entire testsuite consistent and avoids an Irix 6.2 bug.
51667
51668 2008-10-05  Bruno Haible  <bruno@clisp.org>
51669             Jim Meyering  <jim@meyering.net>
51670
51671         Add an option for ignoring EPIPE during close_stdout.
51672         * lib/closeout.h: Include <stdbool.h>.
51673         (close_stdout_set_ignore_EPIPE): New declaration.
51674         * lib/closeout.c: Include <stdbool.h>.
51675         (ignore_EPIPE): New variable.
51676         (close_stdout_set_ignore_EPIPE): New function.
51677         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51678         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51679         failure.
51680         * modules/closeout (Depends-on): Add stdbool.
51681
51682 2008-10-05  Bruno Haible  <bruno@clisp.org>
51683
51684         * modules/accept: New file.
51685         * modules/bind: New file.
51686         * modules/connect: New file.
51687         * modules/getpeername: New file.
51688         * modules/getsockname: New file.
51689         * modules/getsockopt: New file.
51690         * modules/listen: New file.
51691         * modules/recv: New file.
51692         * modules/recvfrom: New file.
51693         * modules/send: New file.
51694         * modules/sendto: New file.
51695         * modules/setsockopt: New file.
51696         * modules/socket: New file.
51697         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51698         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51699         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51700         the particular module is requested. Add a link warning when the
51701         particular module is not requested.
51702         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51703         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51704         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51705         the particular module is requested.
51706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51707         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51708         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51709         * modules/sys_socket (Depends-on): Add link-warning.
51710         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51711         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51712         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51713         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51714         GL_LINK_WARNING.
51715         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51716         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51717         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51718         * doc/posix-functions/getpeername.texi: Mention the new module
51719         'getpeername'.
51720         * doc/posix-functions/getsockname.texi: Mention the new module
51721         'getsockname'.
51722         * doc/posix-functions/getsockopt.texi: Mention the new module
51723         'getsockopt'.
51724         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51725         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51726         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51727         * doc/posix-functions/send.texi: Mention the new module 'send'.
51728         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51729         * doc/posix-functions/setsockopt.texi: Mention the new module
51730         'setsockopt'.
51731         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51732         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51733         listen, connect, accept.
51734         * modules/select-tests (Depends-on): Likewise.
51735
51736 2008-10-05  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/winsock.c (strerror): Remove unused #undef.
51739         (rpl_close): Remove unused local variable.
51740
51741         * modules/sys_socket (Depends-on); Add errno.
51742
51743 2008-10-05  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51746         (select): Add a link warning when the 'select' module is not used.
51747         * modules/sys_select (Depends-on): Add link-warning.
51748         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51749         Suggested by Paolo Bonzini.
51750
51751 2008-10-05  Jim Meyering  <meyering@redhat.com>
51752
51753         bootstrap: check for LT_INIT more portably
51754         * build-aux/bootstrap: Avoid using grep -E, since it's not
51755         portable enough.  Suggestion from Bruno Haible.
51756
51757 2008-10-05  Bruno Haible  <bruno@clisp.org>
51758
51759         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51760         as being fixed by gnulib.
51761
51762 2008-10-05  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/select-tests: New file, mostly copied from
51765         modules/sys_select-tests.
51766         * tests/test-select.c: New file, mostly copied from
51767         tests/test-sys_select.c.
51768         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51769         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51770         (Makefile.am): Remove test_sys_select_LDADD.
51771
51772         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51773         to an undefined symbol, for an error message.
51774         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51775         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51776         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51777         winsock-select.c here.
51778         * modules/sys_select (Files): Remove lib/winsock-select.c.
51779         (Depends-on): Remove alloca.
51780         (Makefile.am): Substitute GNULIB_SELECT.
51781         * modules/select: New file.
51782         * doc/posix-functions/select.texi: Update.
51783
51784 2008-10-05  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51787         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51788         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51789         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51790         getdtablesize.
51791         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51792         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51793
51794 2008-10-05  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/getdtablesize-tests: New file.
51797         * tests/test-getdtablesize.c: New file.
51798
51799         New module 'getdtablesize'.
51800         * lib/unistd.in.h (getdtablesize): New declaration.
51801         * lib/getdtablesize.c: New file.
51802         * m4/getdtablesize.m4: New file.
51803         * modules/getdtablesize: New file.
51804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51805         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51806         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51807         HAVE_GETDTABLESIZE.
51808         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51809
51810 2008-10-05  Bruno Haible  <bruno@clisp.org>
51811
51812         * modules/sched (Makefile.am): Fix typo.
51813         Reported by Simon Josefsson.
51814
51815 2008-10-05  Jim Meyering  <meyering@redhat.com>
51816
51817         bootstrap: check for LT_INIT, too
51818         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51819         are deprecated.  Suggestion from Ralf Wildenhues.
51820
51821 2008-10-05  Bruno Haible  <bruno@clisp.org>
51822
51823         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51824         overriding them by ours.
51825         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51826
51827 2008-10-05  Jim Meyering  <meyering@redhat.com>
51828
51829         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51830         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51831         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51832
51833 2008-10-04  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/dup2 (License): Change to LGPLv2+.
51836         * modules/sleep (License): Likewise.
51837         * modules/perror (License): Likewise.
51838         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51839         Blake.
51840         * modules/signal (License): Likewise.
51841         * modules/sigprocmask (License): Likewise.
51842         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51843         Meyering.
51844
51845 2008-10-04  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51848         Reported by Rainer Tammer <tammer@tammer.net>.
51849
51850 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51851             Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51854         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51855         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51856
51857 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51858
51859         filevercmp: new module
51860         * lib/filevercmp.h: New function filevercmp comparing version strings.
51861         * lib/filevercmp.c: Implementation of filevercmp function.
51862         * modules/filevercmp: Module metadata.
51863         * tests/test-filevercmp.c: Unit test for new module.
51864         * modules/filevercmp-tests: Unit test metadata.
51865         * MODULES.html.sh: Add filevercmp module.
51866
51867 2008-10-03  Bruno Haible  <bruno@clisp.org>
51868
51869         * lib/c-ctype.h: Add comment.
51870         Reported by Jim Meyering.
51871
51872 2008-10-02  Bruno Haible  <bruno@clisp.org>
51873
51874         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51875
51876 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51877
51878         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51879         name of bootstrap.conf accordingly.
51880
51881 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51882
51883         * build-aux/bootstrap: Install git-merge-changelog configuration
51884         items into .gitconfig if needed.
51885
51886 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51887
51888         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51889         git repository, and initialize/update it accordingly.
51890
51891 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51892
51893         * modules/fsync-tests: New file.
51894         * tests/test-fsync.c: New file.
51895
51896         New module 'fsync'.
51897         * lib/fsync.c: New file.
51898         * m4/fsync.m4: New file.
51899         * modules/fsync: New file.
51900         * lib/unistd.in.h (fsync): New declaration.
51901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51902         GNULIB_FSYNC and HAVE_FSYNC.
51903         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51904         * MODULES.html.sh (posix_functions): Add fsync.
51905         * doc/posix-functions/fsync.texi: Mention the new module.
51906
51907 2008-10-02  Jim Meyering  <meyering@redhat.com>
51908
51909         fts.c: sync with similar code from coreutils' remove.c
51910         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51911         Guard also with "#if defined __linux__", since for now at least,
51912         this code is Linux-kernel-specific.
51913
51914 2008-10-02  Jim Meyering  <meyering@redhat.com>
51915
51916         fts: bug fixes
51917         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51918         Include <sys/vfs.h>, not <sys/statfs.h>.
51919
51920         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51921         Include <sys/vfs.h>, not <sys/statfs.h>.
51922
51923 2008-10-01  Bruno Haible  <bruno@clisp.org>
51924
51925         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51927         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51928         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51929         * doc/posix-functions/posix_spawnp.texi: Likewise.
51930         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51931         whether posix_spawn actually works.
51932         * m4/pipe.m4 (gl_PIPE): Likewise.
51933         * modules/execute (Files): Add m4/posix_spawn.m4.
51934         * modules/pipe (Files): Add m4/posix_spawn.m4.
51935         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51936
51937 2008-10-01  Jim Meyering  <meyering@redhat.com>
51938
51939         remove trailing spaces
51940         * NEWS: Likewise.
51941         * lib/poll.c (poll): Likewise.
51942         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51943         * lib/winsock.c (rpl_close): Likewise.
51944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51945         * modules/yield: Likewise.
51946         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51947         * tests/test-sys_select.c (connect_to_socket): Likewise.
51948
51949         fts.c: adjust a new interface to be more generally useful
51950         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51951         (fts_build): Adjust caller.
51952
51953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51954
51955         * modules/cond-tests: New file.
51956         * tests/test-cond.c: New file.
51957
51958 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51959             Bruno Haible  <bruno@clisp.org>
51960
51961         * modules/cond (Dependencies): Add errno, time.
51962         * lib/glthread/cond.h: Include <time.h>.
51963         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51964         across platforms.
51965
51966 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51967             Bruno Haible  <bruno@clisp.org>
51968
51969         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51970
51971 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51972             Bruno Haible  <bruno@clisp.org>
51973
51974         * modules/tls-tests (Depends-on): Add thread, yield.
51975         (configure.ac): Remove all checks.
51976         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51977         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51978         gl_thread_self): Remove definitions. Include glthread/thread.h and
51979         glthread/yield.h instead.
51980         (test_tls): Pass an additional NULL argument to gl_thread_join.
51981
51982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51983             Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/lock-tests (Depends-on): Add thread, yield.
51986         (configure.ac): Remove all checks.
51987         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51988         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51989         gl_thread_self): Remove definitions. Include glthread/thread.h and
51990         glthread/yield.h instead.
51991         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51992         additional NULL argument to gl_thread_join.
51993
51994 2008-09-30  Bruno Haible  <bruno@clisp.org>
51995
51996         Fix the Win32 implementation of the 'thread' module.
51997         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51998         pointer type.
51999         (gl_thread_self): Invoke gl_thread_self_func.
52000         (gl_thread_self_func): New declaration.
52001         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52002         (do_init_self_key, init_self_key): New functions.
52003         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52004         Remove some fields.
52005         (running_threads, running_lock): Remove variables.
52006         (get_current_thread_handle): New function.
52007         (gl_thread_self_func, wrapper_func, glthread_create_func,
52008         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52009         simplified.
52010
52011 2008-09-30  Bruno Haible  <bruno@clisp.org>
52012
52013         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52014         files.
52015
52016 2008-09-30  Jim Meyering  <meyering@redhat.com>
52017
52018         fts.m4: correct the test for statfs.f_type
52019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52020         when checking for statfs.f_type.
52021
52022 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52023
52024         tests: avoid some compiler warnings
52025         * tests/test-memchr.c (main): Pass NULL indirectly.
52026         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52027
52028 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52029
52030         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52031         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52032         exactly specified dayshifts.
52033         (dayshift): New rule.
52034         (rel): Add dayshift.
52035         (relative_time_table) [tomorrow, yesterday, today, now]:
52036         Use tDAY_SHIFT in place of tDAY_UNIT.
52037         * tests/test-getdate.c: Add tests for now-disallowed countable
52038         dayshifts, e.g., "4 yesterday ago".
52039
52040 2008-09-29  Bruno Haible  <bruno@clisp.org>
52041
52042         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52043         * tests/test-posix_spawn1.in.sh: Renamed from
52044         tests/test-posix_spawn.in.sh.
52045         * tests/test-posix_spawn2.c: New file.
52046         * tests/test-posix_spawn2.in.sh: New file.
52047         * modules/posix_spawnp-tests (Files): Update.
52048         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52049
52050 2008-09-29  Bruno Haible  <bruno@clisp.org>
52051
52052         Propagate effects of putenv/setenv/unsetenv to child processes.
52053         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52054         * lib/pipe.c (create_pipe): Likewise.
52055
52056 2008-09-29  Bruno Haible  <bruno@clisp.org>
52057
52058         Enable use of shell scripts as executables in mingw.
52059         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52060         run the program as a shell script.
52061         * lib/pipe.c (create_pipe): Likewise.
52062         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52063         resulting array.
52064
52065 2008-09-29  Eric Blake  <ebb9@byu.net>
52066
52067         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52068
52069 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52070
52071         * doc/posix-functions/accept.texi: Update mingw problems.
52072         * doc/posix-functions/bind.texi: Update mingw problems.
52073         * doc/posix-functions/close.texi: Update mingw problems.
52074         * doc/posix-functions/connect.texi: Update mingw problems.
52075         * doc/posix-functions/getpeername.texi: Update mingw problems.
52076         * doc/posix-functions/getsockname.texi: Update mingw problems.
52077         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52078         * doc/posix-functions/ioctl.texi: Update mingw problems.
52079         * doc/posix-functions/listen.texi: Update mingw problems.
52080         * doc/posix-functions/recv.texi: Update mingw problems.
52081         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52082         * doc/posix-functions/select.texi: Update mingw problems.
52083         * doc/posix-functions/send.texi: Update mingw problems.
52084         * doc/posix-functions/sendto.texi: Update mingw problems.
52085         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52086         * doc/posix-functions/socket.texi: Update mingw problems.
52087
52088 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52089             Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/sys_select.in.h: Include sys/time.h.
52092         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52093         * modules/sys_select: Depend on sys_time.
52094         * tests/test-sys_select.c: Test that sys/select.h defines struct
52095         timeval fully.
52096
52097 2008-09-29  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52100         * lib/sys_select.in.h: Likewise.
52101
52102 2008-09-29  Bruno Haible  <bruno@clisp.org>
52103
52104         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52105
52106 2008-09-29  Bruno Haible  <bruno@clisp.org>
52107
52108         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52109         Set LIBSOCKET instead of augmenting LIBS.
52110         * modules/sockets (Link): New section.
52111         * modules/sockets-tests (test_sockets_LDADD): New variable.
52112         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52113         * modules/poll-tests (test_poll_LDADD): New variable.
52114         * NEWS: Document the change.
52115
52116 2008-09-29  Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52119         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52120         ARPA_INET_H directly.
52121         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52122
52123 2008-09-28  Bruno Haible  <bruno@clisp.org>
52124
52125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52126         from gl_HEADER_SYS_SOCKET.
52127         (gl_HEADER_SYS_SOCKET): Invoke it.
52128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52129
52130 2008-09-28  Bruno Haible  <bruno@clisp.org>
52131
52132         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52133         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52134         Needed on OSF/1 4.0.
52135
52136 2008-09-28  Bruno Haible  <bruno@clisp.org>
52137
52138         Override open more carefully.
52139         * lib/open.c (orig_open): New function.
52140         (rpl_open): Use orig_open instead of open.
52141         * lib/fcntl.in.h: Add special invocation convention.
52142         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52143         (gl_FUNC_OPEN): Invoke it.
52144
52145         Override freopen more carefully.
52146         * lib/freopen.c (orig_freopen): New function.
52147         (rpl_freopen): Use orig_freopen instead of freopen.
52148         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52149         (gl_FUNC_FREOPEN): Invoke it.
52150
52151         Override fopen more carefully.
52152         * lib/fopen.c (orig_fopen): New function.
52153         (rpl_fopen): Use orig_fopen instead of fopen.
52154         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52155         (gl_FUNC_FOPEN): Invoke it.
52156         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52157
52158 2008-09-28  Bruno Haible  <bruno@clisp.org>
52159
52160         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52161         SIGPIPE.
52162
52163 2008-09-28  Bruno Haible  <bruno@clisp.org>
52164
52165         * tests/test-sigaction.c (handler, main): Disable the check whether
52166         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52167         glibc systems with LinuxThreads.
52168
52169 2008-09-28  Bruno Haible  <bruno@clisp.org>
52170
52171         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52172
52173         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52174         with AIX xlc.
52175         * lib/fcntl.in.h (open): Likewise.
52176         Reported by Rainer Tammer <tammer@tammer.net>.
52177
52178 2008-09-28  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/posix_spawnp-tests: New file.
52181         * tests/test-posix_spawn.c: New file.
52182         * tests/test-posix_spawn.in.sh: New file.
52183
52184         New module 'posix_spawnp'.
52185         * modules/posix_spawnp: New file.
52186         * lib/spawnp.c: New file, from GNU libc with modifications.
52187         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52188
52189         New module 'posix_spawn'.
52190         * modules/posix_spawn: New file.
52191         * lib/spawn.c: New file, from GNU libc with modifications.
52192         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52193
52194         New module 'posix_spawnattr_destroy'.
52195         * modules/posix_spawnattr_destroy: New file.
52196         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52197         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52198         module.
52199
52200         New module 'posix_spawnattr_setsigmask'.
52201         * modules/posix_spawnattr_setsigmask: New file.
52202         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52203         modifications.
52204         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52205         new module.
52206
52207         New module 'posix_spawnattr_getsigmask'.
52208         * modules/posix_spawnattr_getsigmask: New file.
52209         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52210         modifications.
52211         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52212         new module.
52213
52214         New module 'posix_spawnattr_setsigdefault'.
52215         * modules/posix_spawnattr_setsigdefault: New file.
52216         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52217         modifications.
52218         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52219         new module.
52220
52221         New module 'posix_spawnattr_getsigdefault'.
52222         * modules/posix_spawnattr_getsigdefault: New file.
52223         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52224         modifications.
52225         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52226         new module.
52227
52228         New module 'posix_spawnattr_setschedpolicy'.
52229         * modules/posix_spawnattr_setschedpolicy: New file.
52230         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52231         modifications.
52232         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52233         new module.
52234
52235         New module 'posix_spawnattr_getschedpolicy'.
52236         * modules/posix_spawnattr_getschedpolicy: New file.
52237         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52238         modifications.
52239         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52240         new module.
52241
52242         New module 'posix_spawnattr_setschedparam'.
52243         * modules/posix_spawnattr_setschedparam: New file.
52244         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52245         modifications.
52246         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52247         new module.
52248
52249         New module 'posix_spawnattr_getschedparam'.
52250         * modules/posix_spawnattr_getschedparam: New file.
52251         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52252         modifications.
52253         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52254         new module.
52255
52256         New module 'posix_spawnattr_setpgroup'.
52257         * modules/posix_spawnattr_setpgroup: New file.
52258         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52259         modifications.
52260         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52261         module.
52262
52263         New module 'posix_spawnattr_getpgroup'.
52264         * modules/posix_spawnattr_getpgroup: New file.
52265         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52266         modifications.
52267         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52268         module.
52269
52270         New module 'posix_spawnattr_setflags'.
52271         * modules/posix_spawnattr_setflags: New file.
52272         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52273         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52274         module.
52275
52276         New module 'posix_spawnattr_getflags'.
52277         * modules/posix_spawnattr_getflags: New file.
52278         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52279         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52280         module.
52281
52282         New module 'posix_spawnattr_init'.
52283         * modules/posix_spawnattr_init: New file.
52284         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52285         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52286         module.
52287
52288         New module 'posix_spawn_file_actions_destroy'.
52289         * modules/posix_spawn_file_actions_destroy: New file.
52290         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52291         modifications.
52292         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52293         the new module.
52294
52295         New module 'posix_spawn_file_actions_addopen'.
52296         * modules/posix_spawn_file_actions_addopen: New file.
52297         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52298         modifications.
52299         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52300         the new module.
52301
52302         New module 'posix_spawn_file_actions_adddup2'.
52303         * modules/posix_spawn_file_actions_adddup2: New file.
52304         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52305         modifications.
52306         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52307         the new module.
52308
52309         New module 'posix_spawn_file_actions_addclose'.
52310         * modules/posix_spawn_file_actions_addclose: New file.
52311         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52312         modifications.
52313         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52314         the new module.
52315
52316         New module 'posix_spawn_file_actions_init'.
52317         * modules/posix_spawn_file_actions_init: New file.
52318         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52319         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52320         new module.
52321
52322         New module 'posix_spawn-internal'.
52323         * modules/posix_spawn-internal: New file.
52324         * lib/spawn_int.h: New file, from GNU libc with modifications.
52325         * lib/spawni.c: New file, from GNU libc with modifications.
52326         * m4/posix_spawn.m4: New file.
52327
52328         New module 'spawn'.
52329         * modules/spawn: New file.
52330         * lib/spawn.in.h: New file, from GNU libc with modifications.
52331         * m4/spawn_h.m4: New file.
52332         * doc/posix-headers/spawn.texi: Mention the new module.
52333
52334 2008-09-28  Bruno Haible  <bruno@clisp.org>
52335
52336         * modules/sched-tests: New file.
52337         * tests/test-sched.c: New file.
52338
52339         New module 'sched'.
52340         * modules/sched: New file.
52341         * lib/sched.in.h: New file.
52342         * m4/sched_h.m4: New file.
52343         * doc/posix-headers/sched.texi: Mention the new module.
52344
52345 2008-09-27  Eric Blake  <ebb9@byu.net>
52346
52347         Fix previous patch, and tweak references to $0.
52348         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52349         (func_version, func_gnulib_dir): Don't call this program
52350         gnulib-tool.
52351         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52352         with using $0 in function.
52353         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52354         (func_fatal_error): Reuse the name the user invoked us with.
52355
52356 2008-09-27  Bruno Haible  <bruno@clisp.org>
52357
52358         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52359         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52360         (gl_ICONV_H): Not here.
52361         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52362         instead of assigning ICONV_H directly.
52363
52364         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52366         WCHAR_H directly.
52367
52368 2008-09-27  Bruno Haible  <bruno@clisp.org>
52369
52370         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52371         * modules/arpa_inet (Depends-on): Add link-warning.
52372         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52373         * modules/unistd (Makefile.am): Likewise.
52374
52375 2008-09-26  Bruno Haible  <bruno@clisp.org>
52376
52377         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52378         variables.
52379         (func_version): Essentially copied from gnulib-tool.
52380         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52381         func_readlink): Copied from gnulib-tool.
52382
52383 2008-09-26  Bruno Haible  <bruno@clisp.org>
52384
52385         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52386         invoking git-version-gen.
52387
52388 2008-09-26  Bruno Haible  <bruno@clisp.org>
52389
52390         * posix-modules: Update to directory names changed on 2008-01-19.
52391         Remove commas in output before splitting into words. No more need to
52392         avoid 'ftruncate' since 2007-02-19.
52393
52394 2008-09-26  Bruno Haible  <bruno@clisp.org>
52395
52396         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52397
52398 2008-09-26  Bruno Haible  <bruno@clisp.org>
52399
52400         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52401         * modules/fwriteerror (Depends-on): Add errno.
52402
52403 2008-09-26  Bruno Haible  <bruno@clisp.org>
52404
52405         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52406         * tests/test-vc-list-files-cvs.sh: Likewise.
52407
52408 2008-09-26  Bruno Haible  <bruno@clisp.org>
52409
52410         * doc/posix-headers/sys_resource.texi: Reorder items.
52411
52412 2008-09-26  Jim Meyering  <meyering@redhat.com>
52413
52414         fts: tweak inode comparison function
52415         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52416         inode numbers, as documented.
52417
52418         fts: sort dirent entries on inode number before traversing
52419         This avoids a quadratic, seek-related performance penalty when
52420         operating on a directory containing many entries (measurable at 10k;
52421         3.5 hours at 2 million entries with a cold cache) on certain types
52422         of file systems, including ext3 and ext4, but not tmpfs.
52423         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52424         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52425         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52426         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52427         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52428         (fts_build): Set the stat.st_ino member from D_INO.
52429         If it is likely to be useful, sort dirent entries on inode number.
52430
52431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52432         and the struct statfs.f_type member.
52433         * modules/fts (Depends-on): Add d-ino.
52434
52435 2008-09-26  Bruno Haible  <bruno@clisp.org>
52436
52437         * modules/sigpipe-die (Depends-on): Add sigpipe.
52438
52439         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52440         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52441         and GNULIB_STDIO_H_SIGPIPE are set.
52442         * lib/stdio-write.c: New file.
52443         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52444         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52445         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52446         REPLACE_STDIO_WRITE_FUNCS.
52447         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52448         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52449         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52450         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52451         * modules/stdio (Files): Add lib/stdio-write.c.
52452         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52453         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52454         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52455         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52456         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52457         REPLACE_FPRINTF_POSIX.
52458         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52459         REPLACE_PRINTF_POSIX.
52460         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52461         REPLACE_VFPRINTF_POSIX.
52462         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52463         REPLACE_VPRINTF_POSIX.
52464         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52465         SIGPIPE issue.
52466         * doc/posix-functions/fputc.texi: Likewise.
52467         * doc/posix-functions/fputs.texi: Likewise.
52468         * doc/posix-functions/fwrite.texi: Likewise.
52469         * doc/posix-functions/printf.texi: Likewise.
52470         * doc/posix-functions/putc.texi: Likewise.
52471         * doc/posix-functions/putchar.texi: Likewise.
52472         * doc/posix-functions/puts.texi: Likewise.
52473         * doc/posix-functions/vfprintf.texi: Likewise.
52474         * doc/posix-functions/vprintf.texi: Likewise.
52475
52476         * modules/safe-write (Depends-on): Add write.
52477
52478         * modules/sigpipe-tests: New file.
52479         * tests/test-sigpipe.c: New file.
52480         * tests/test-sigpipe.sh: New file.
52481
52482         * modules/write: New file.
52483         * lib/unistd.in.h: Include <sys/types.h>.
52484         (write): New declaration.
52485         * lib/write.c: New file.
52486         * m4/write.m4: New file.
52487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52488         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52489         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52490         GNULIB_WRITE, REPLACE_WRITE.
52491         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52492         and the SIGPIPE issue.
52493
52494         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52495         (raise): New declaration.
52496         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52497         (ext_signal): New function.
52498         (rpl_raise): New function.
52499         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52500         GNULIB_SIGNAL_H_SIGPIPE.
52501         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52502         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52503
52504         * modules/sigpipe: New file.
52505         * m4/sigpipe.m4: New file.
52506
52507 2008-09-25  Derek Price  <derek@ximbiot.com>
52508             Bruno Haible  <bruno@clisp.org>
52509
52510         * gnulib-tool (func_import): Report all license incompatibilities, not
52511         just the first one.
52512
52513 2008-09-25  Bruno Haible  <bruno@clisp.org>
52514
52515         * gnulib-tool (func_import): When computing the edits, consider not
52516         only the Makefile.ams that exist but also those that will be generated.
52517
52518 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52519
52520         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52521         fixes gnulib-tool --test warning about duplicate dependency.
52522
52523 2008-09-25  Bruno Haible  <bruno@clisp.org>
52524
52525         * gnulib-tool: Don't ask the user to perform edits in the generated
52526         Makefile.ams.
52527         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52528         apply to the Makefile.am being generated.
52529         (func_emit_tests_Makefile_am): Execute edits that apply to the
52530         Makefile.am being generated.
52531         (func_import): Setup list of Makefile.am edits before emitting the
52532         Makefile.ams, not at the end.
52533         (func_create_testdir): Update.
52534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52535
52536 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52537
52538         * gnulib-tool (func_import): Store the --tests-base option in the
52539         comment in gnulib-cache.m4.
52540
52541 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52542
52543         * NEWS: Document increased portability that sys_select now provides.
52544
52545         * lib/sys_select.in.h: Install select wrapper.
52546         * lib/sys_socket.in.h: Use more descriptive name when there is no
52547         select wrapper.
52548         * lib/winsock-select.c: New.
52549         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52550         Require gl_HEADER_SYS_SOCKET.
52551         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52552         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52553         * tests/test-sys_select.c: Add functional tests.
52554
52555 2008-09-24  Eric Blake  <ebb9@byu.net>
52556
52557         open, fopen: close fd leak in last patch
52558         * lib/open.c (rpl_open): Close fd before returning error.
52559         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52560         * doc/posix-functions/open.texi (open): Document that Irix also
52561         has the bug.
52562         * doc/posix-functions/fopen.texi (fopen): Likewise.
52563         Reported by Paolo Bonzini.
52564
52565 2008-09-24  Bruno Haible  <bruno@clisp.org>
52566
52567         Ensure that a filename ending in a slash cannot be used to access a
52568         non-directory.
52569         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52570         to check whether it's really a directory.
52571         * lib/fopen.c: Include fcntl.h, unistd.h.
52572         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52573         and fdopen().
52574         * modules/fopen (Depends-on): Add unistd.
52575         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52576         * tests/test-fopen.c (main): Likewise.
52577         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52578         * doc/posix-functions/fopen.texi: Likewise.
52579         Reported by Eric Blake.
52580
52581 2008-09-23  Eric Blake  <ebb9@byu.net>
52582
52583         c-stack: avoid compiler optimizations when provoking overflow
52584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52585         recursion harder to optimize, to ensure a stack overflow occurs.
52586         * tests/test-c-stack.c (recurse): Likewise.
52587         Borrowed from libsigsegv.
52588
52589         c-stack: work around Irix sigaltstack bug
52590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52591         whether sigaltstack uses wrong end of stack_t (copied in part from
52592         libsigsegv).
52593         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52594         Irix bug, without requiring an over-allocation.
52595         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52596         bug.
52597
52598         fopen: document mingw bug on directories
52599         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52600         not allowing a stream visiting a directory, even though reading
52601         from such a stream is not portable.
52602
52603 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52604
52605         * lib/poll.c: Rewrite.
52606         * modules/poll: Depend on alloca.
52607
52608 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52609
52610         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52611         instead define prototypes for a full set of wrappers.  Ensure
52612         that Cygwin does not use the compatibility code, which is only
52613         for MinGW.
52614         * lib/winsock.c: New.
52615         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52616         * modules/sys_socket: Add lib/winsock.c.
52617
52618         * modules/poll-tests: Add errno and perror.
52619         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52620
52621 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52622
52623         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52624
52625 2008-09-23  Bruno Haible  <bruno@clisp.org>
52626
52627         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52628         * doc/glibc-functions/*: Likewise.
52629
52630 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52631
52632         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52633         success.
52634
52635 2008-09-22  Eric Blake  <ebb9@byu.net>
52636             Bruno Haible  <bruno@clisp.org>
52637
52638         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52639         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52640         supply %A but mishandle pseudo-NaN.
52641         Reported by Simon Josefsson.
52642
52643 2008-09-21  Bruno Haible  <bruno@clisp.org>
52644
52645         * tests/test-lock.c (main): Tweak skip message.
52646         * tests/test-tls.c (main): Likewise.
52647
52648 2008-09-21  Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52651         whether 'struct sigaction' has sa_sigaction here...
52652         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52653         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52654
52655 2008-09-21  Bruno Haible  <bruno@clisp.org>
52656
52657         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52658         section.
52659         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52660         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52661         the new section.
52662         (Support for obsolete systems lacking POSIX:2001): New section.
52663         (String handling <string.h>): Move strdup to the new section.
52664         Suggested by Simon Josefsson and Paolo Bonzini.
52665
52666 2008-09-21  Bruno Haible  <bruno@clisp.org>
52667
52668         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52669         exponents in %e and %g results on 'long double'. Needed for mingw's
52670         improved *printf functions.
52671         * tests/test-vasprintf-posix.c (test_function): Likewise.
52672         * tests/test-snprintf-posix.h (test_function): Likewise.
52673         * tests/test-sprintf-posix.h (test_function): Likewise.
52674         Reported by Eric Blake.
52675
52676 2008-09-21  Bruno Haible  <bruno@clisp.org>
52677
52678         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52679         * tests/test-sprintf-posix.h (test_function): Likewise.
52680
52681 2008-09-21  Bruno Haible  <bruno@clisp.org>
52682
52683         * modules/getpass (Depends-on): Add strdup-posix.
52684
52685         New module 'strdup-posix'.
52686         * modules/strdup-posix: New file.
52687         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52688         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52690         REPLACE_STRDUP.
52691         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52692         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52694         strdup-posix.
52695
52696         * modules/strdup (Depends-on): Remove malloc-posix.
52697
52698 2008-09-20  Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52701         Wildenhues.
52702
52703 2008-09-20  Bruno Haible  <bruno@clisp.org>
52704
52705         Ensure that wint_t gets defined on IRIX 5.3.
52706         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52707         * lib/wctype.in.h (wint_t): Likewise.
52708         (__wctype_wint_t): Remove type.
52709         (isw*): Use wint_t instead of __wctype_wint_t.
52710         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52711         * modules/wchar (Files): Add m4/wint_t.m4.
52712         (Makefile.am): Substitute HAVE_WINT_T.
52713         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52714         * tests/test-wctype.c: Check that wint_t is defined.
52715         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52716         * doc/posix-headers/wctype.texi: Likewise.
52717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52718
52719 2008-09-18  Bruno Haible  <bruno@clisp.org>
52720
52721         * gnulib-tool (func_exit): Update comment.
52722
52723 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52724
52725         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52726         assumes strdup exists and does not depend on strdup to return
52727         ENOMEM on out of memory conditions.
52728
52729 2008-09-18  Bruno Haible  <bruno@clisp.org>
52730
52731         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52732         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52733         digits for the exponent.
52734
52735 2008-09-18  Jim Meyering  <meyering@redhat.com>
52736             Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/vasnprintf.c (decimal_point_char): Define also if
52739         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52740
52741 2008-09-16  Bruno Haible  <bruno@clisp.org>
52742         and Eric Blake  <ebb9@byu.net>
52743
52744         vasnprintf: support Irix 5.3
52745         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52746         that mishandle long double infinity.
52747         Reported by Tom G. Christensen.
52748
52749 2008-09-16  Bruno Haible  <bruno@clisp.org>
52750
52751         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52752         Solaris 9.
52753         * doc/glibc-functions/alphasort.texi: Likewise.
52754         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52755
52756 2008-09-16  Jim Meyering  <meyering@redhat.com>
52757
52758         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52759         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52760         a umask modification leak out of a subshell.  Otherwise, the
52761         opensolaris /bin/sh would be accepted and thus cause unwarranted
52762         failures in the coreutils test suite.
52763
52764 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52765
52766         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52767         to succeed.
52768
52769 2008-09-16  Jim Meyering  <meyering@redhat.com>
52770
52771         avoid spurious test failure when library is built without ACL support
52772         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52773         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52774         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52775         * tests/test-copy-acl.sh: Likewise.
52776
52777 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52778
52779         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52780         based on character occurrence counts.
52781
52782 2008-09-15  Eric Blake  <ebb9@byu.net>
52783
52784         tests: avoid some compiler warnings
52785         * tests/test-memchr.c (main): Pass NULL indirectly.
52786         * tests/test-closein.c (main): Avoid unused variable.
52787
52788 2008-09-15  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52791         are missing on OpenBSD 4.0 individually.
52792         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52793
52794 2008-09-15  Bruno Haible  <bruno@clisp.org>
52795
52796         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52797         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52798         * doc/posix-functions/perror.texi: Likewise.
52799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52800         is missing.
52801         Reported by Eric Blake.
52802
52803         * lib/errno.in.h: Use replacement values >= 2000.
52804         Reported by Eric Blake.
52805
52806 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52807
52808         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52809         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52810         limit.
52811         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52812         compareseq was aborted.
52813
52814 2008-09-14  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52817         yvec_edit_count.
52818         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52819         (fstrcmp_bounded): Simplify result computation accordingly.
52820
52821 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52822
52823         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52824         (fstrcmp): Define in terms of fstrcmp_bounded.
52825         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52826         lower_bound argument.
52827         Return quickly if the result is certainly < lower_bound.
52828         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52829
52830 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52831
52832         * lib/diffseq.h (EARLY_ABORT): New macro.
52833         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52834         evaluates to true.
52835
52836 2008-09-14  Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/perror-tests: New file.
52839         * tests/test-perror.sh: New file.
52840         * tests/test-perror.c: New file.
52841
52842         New module 'perror'.
52843         * lib/stdio.in.h (perror): New declaration.
52844         * lib/perror.c: New file.
52845         * m4/perror.m4: New file.
52846         * modules/perror: New file.
52847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52848         * doc/posix-functions/perror.texi: Mention the perror module.
52849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52850         REPLACE_PERROR.
52851         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52852         REPLACE_PERROR.
52853
52854 2008-09-14  Bruno Haible  <bruno@clisp.org>
52855
52856         * modules/stdio (Makefile.am): Reorder to match the order in
52857         lib/stdio.in.h.
52858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52859
52860 2008-09-13  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52863
52864 2008-09-13  Bruno Haible  <bruno@clisp.org>
52865
52866         Extend strerror to cover the added errno values.
52867         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52868         (rpl_strerror): Provide error messages for the added errno values and
52869         for the WSA* values.
52870         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52871         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52872         strerror.
52873         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52874         * modules/strerror (Depends-on): Add errno.
52875         * doc/posix-functions/strerror.texi: Document the change.
52876         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52877         and EOVERFLOW.
52878
52879 2008-09-13  Bruno Haible  <bruno@clisp.org>
52880
52881         * modules/EOVERFLOW: Remove file.
52882         * m4/eoverflow.m4: Remove file.
52883         * modules/EOVERFLOW-tests: Remove file.
52884         * tests/test-EOVERFLOW.c: Remove file.
52885         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52886         * modules/ftell (Depends-on): Likewise.
52887         * modules/getdelim (Depends-on): Likewise.
52888         * modules/getugroups (Depends-on): Likewise.
52889         * modules/poll (Depends-on): Likewise.
52890         * modules/snprintf (Depends-on): Likewise.
52891         * modules/sprintf-posix (Depends-on): Likewise.
52892         * modules/vasnprintf (Depends-on): Likewise.
52893         * modules/vasprintf (Depends-on): Likewise.
52894         * modules/vfprintf-posix (Depends-on): Likewise.
52895         * modules/vsnprintf (Depends-on): Likewise.
52896         * modules/vsprintf-posix (Depends-on): Likewise.
52897         * modules/xvasprintf (Depends-on): Likewise.
52898         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52899         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52900         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52901         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52902         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52903         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52904         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52905         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52906         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52907         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52908         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52909         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52910         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52911         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52912         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52913         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52914         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52915         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52916         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52917         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52919         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52920         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52921         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52922         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52924         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52925         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52926         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52927         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52928         * MODULES.html.sh: Remove EOVERFLOW.
52929         * NEWS: Mention the change.
52930
52931 2008-09-13  Bruno Haible  <bruno@clisp.org>
52932
52933         * modules/errno-tests: New file.
52934         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52935
52936         * lib/errno.in.h: New file.
52937         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52938         * modules/errno: New file.
52939         * doc/posix-headers/errno.texi: Update documentation.
52940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52941
52942 2008-09-13  Bruno Haible  <bruno@clisp.org>
52943
52944         * tests/test-poll.c: Use #if for native Windows, rather than testing
52945         __MSVCRT__.
52946
52947 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52948             Bruno Haible  <bruno@clisp.org>
52949
52950         * lib/glob.c: Don't include <pwd.h> on native Windows.
52951         (WINDOWS32): New macro.
52952         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52953
52954 2008-09-13  Bruno Haible  <bruno@clisp.org>
52955
52956         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52957         (ETIMEDOUT): Remove macro.
52958         (glthread_cond_timedwait_multithreaded): New declaration.
52959         (glthread_cond_timedwait): Use it.
52960         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52961         (glthread_cond_timedwait_multithreaded): New function.
52962
52963 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52964
52965         * modules/poll-tests: Do not check for io.h.
52966         * tests/test-poll.c: Check for __MSVCRT__ instead.
52967
52968 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52969
52970         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52971         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52972         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52973
52974 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52975
52976         * modules/poll-tests: New.
52977         * tests/test-poll.c: New.
52978
52979 2008-09-12  Eric Blake  <ebb9@byu.net>
52980
52981         frexp: test for NetBSD failure on -0.0
52982         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52983         not all, bugs from NetBSD 3.0 have been fixed.
52984         * doc/posix-functions/frexp.texi (frexp): Document bug.
52985         Reported by Thomas Klausner.
52986
52987         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52988         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52989         literal -0.0.
52990         Reported by Jonathan C. Patschke <jp@centtech.com>.
52991
52992 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52993
52994         * lib/glthread/cond.h: Use dummy implementation also if
52995         USE_WIN32_THREADS.
52996
52997 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52998
52999         * modules/fnmatch-posix (License): Change to LGPLv2+.
53000         * modules/fnmatch-gnu (License): Likewise.
53001
53002 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53003
53004         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53005
53006 2008-09-11  Jim Meyering  <meyering@redhat.com>
53007
53008         * users.txt: Add gtk-vnc.
53009
53010 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53011
53012         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53013         rotate amounts.
53014
53015         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53016         required for 16-bit and 8-bit rotates.
53017         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53018         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53019         UINT8_MAX instead of hard-coded constants.
53020         Suggested by Paul Eggert.
53021
53022 2008-09-07  Bruno Haible  <bruno@clisp.org>
53023
53024         * tests/test-striconveh.c (main): Check behaviour when converting from
53025         UTF-7.
53026
53027         Make striconveh work better with stateful encodings.
53028         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53029         that iconv does not increment the inptr when returning -1/EINVAL.
53030
53031 2008-09-07  Bruno Haible  <bruno@clisp.org>
53032
53033         * build-aux/config.rpath: Update according to libtool-2.2.6.
53034         * build-aux/config.libpath: Likewise.
53035
53036 2008-09-06  Bruno Haible  <bruno@clisp.org>
53037
53038         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53039         * lib/freadptr.c (freadptr): Likewise.
53040         * lib/freadseek.c (freadptrinc): Likewise.
53041         Reported by Simon Josefsson.
53042
53043 2008-09-06  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/freadptr (License): Change to LGPLv2+.
53046         * modules/freadseek (License): Likewise.
53047         Suggested by Eric Blake.
53048
53049         * modules/memchr2 (License): Change to LGPLv2+.
53050         Approved by Eric Blake.
53051
53052 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53053             Bruno Haible  <bruno@clisp.org>
53054
53055         Make gnulib-tool work with native 'sed' on AIX.
53056         * gnulib-tool (sed_noop): New variable.
53057         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53058         func_add_or_update, func_create_testdir): Use it to initialize sed
53059         script variables.
53060         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53061
53062 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53063             Bruno Haible  <bruno@clisp.org>
53064
53065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53066         also works after #include directives.
53067
53068 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53069
53070         getdate.y: reject an out-of-range timezone value
53071         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53072         the range [-24...+24].  When specified with only one or two digits,
53073         * tests/test-getdate.c: Tests for the fix.
53074         * doc/getdate.texi: Document this change.
53075
53076 2008-09-03  Bruno Haible  <bruno@clisp.org>
53077
53078         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53079
53080 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53081
53082         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53083         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53084         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53085         Blake <ebb9@byu.net>.
53086
53087         * tests/test-bitrotate.c: Add more test vectors.
53088
53089 2008-09-02  Eric Blake  <ebb9@byu.net>
53090
53091         vasnprintf-posix: handle large precision via %.*d
53092         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53093         when handling it ourselves.
53094         * tests/test-vasnprintf-posix.c (test_function): Add test.
53095         * tests/test-snprintf-posix.h (test_function): Likewise.
53096         * tests/test-sprintf-posix.h (test_function): Likewise.
53097         * tests/test-vasprintf-posix.c (test_function): Likewise.
53098         Reported by Alain Guibert.
53099
53100 2008-09-01  Eric Blake  <ebb9@byu.net>
53101
53102         c-stack: make configure-time check more robust
53103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53104         successful sigaction call.
53105         Reported by Tom G. Christensen.
53106
53107 2008-09-01  Bruno Haible  <bruno@clisp.org>
53108
53109         New module 'findprog-lgpl'.
53110         * modules/findprog-lgpl: New file.
53111         * lib/findprog-lgpl.c: New file.
53112         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53113         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53114         to decide whether to use strdup or xstrdup, concatenated_filename or
53115         xconcatenated_filename.
53116
53117 2008-09-01  Bruno Haible  <bruno@clisp.org>
53118
53119         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53120         'xconcat-filename' (GPL).
53121         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53122         (License): Change to LGPLv2+.
53123         * modules/xconcat-filename: New file.
53124         * lib/concat-filename.h (concatenated_filename): Change specification.
53125         (xconcatenated_filename): New declaration.
53126         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53127         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53128         memory situations.
53129         * lib/xconcat-filename.c: New file.
53130         * NEWS: Mention the change.
53131         * lib/findprog.c: Include concat-filename.h, not filename.h.
53132         (find_in_path): Use xconcatenated_filename instead of
53133         concatenated_filename.
53134         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53135         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53136         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53137         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53138         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53139         instead of concatenated_filename.
53140         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53141         (execute_java_class): Use xconcatenated_filename instead of
53142         concatenated_filename.
53143         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53144         * modules/javacomp (Depends-on): Likewise.
53145         * modules/javaexec (Depends-on): Likewise.
53146
53147 2008-09-01  Bruno Haible  <bruno@clisp.org>
53148
53149         Split module 'filename' into 'filename' and 'concat-filename'.
53150         * modules/filename: Keep only lib/filename.h.
53151         (License): Change to LGPLv2+.
53152         * modules/concat-filename: New file, extracted from modules/filename.
53153         * lib/filename.h (concatenated_filename): Remove declaration.
53154         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53155         * lib/concat-filename.c: Include concat-filename.h.
53156         * NEWS: Mention the change.
53157
53158 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53159
53160         * lib/bitrotate.h (rotl8, rotr8): Add.
53161
53162         * modules/bitrotate (configure.ac): Need
53163         AC_REQUIRE([AC_C_INLINE]).
53164         (Description): Mention stdint.h.  Reported by Bruno Haible
53165         <bruno@clisp.org>.
53166
53167         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53168         Paolo Bonzini <bonzini@gnu.org>.
53169
53170 2008-08-31  Bruno Haible  <bruno@clisp.org>
53171
53172         Assume Solaris specific bi-arch conventions on Solaris systems.
53173         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53174         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53176         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53177         like acl_libdirstem.
53178         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53179         acl_libdirstem.
53180         * NEWS: Mention the change.
53181         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53182
53183 2008-08-31  Jim Meyering  <meyering@redhat.com>
53184
53185         * lib/strftime.h: Add comments describing the two added arguments.
53186
53187         remove duplicate #include directives
53188         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53189         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53190
53191 2008-08-31  Bruno Haible  <bruno@clisp.org>
53192
53193         New module 'sigpipe-die'.
53194         * modules/sigpipe-die: New file.
53195         * lib/sigpipe-die.h: New file.
53196         * lib/sigpipe-die.c: New file.
53197         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53198
53199 2008-08-31  Bruno Haible  <bruno@clisp.org>
53200
53201         Don't override previously installed signal handlers.
53202         * lib/fatal-signal.c (saved_sigactions): New variable.
53203         (uninstall_handlers): Reset the signal to the saved handler, not
53204         to SIG_DFL (except when ignored).
53205         (install_handlers): Save the previous handlers.
53206
53207 2008-08-30  Bruno Haible  <bruno@clisp.org>
53208
53209         * gnulib-tool (func_reset_sigpipe): New function.
53210         (func_get_automake_snippet, func_modules_transitive_closure,
53211         func_import): Invoke it before a join command that reads from stdin,
53212         to avoid "echo: write error: Broken pipe" error messages on stderr.
53213         Reported by Sam Steingold <sds@gnu.org>.
53214
53215 2008-08-30  Bruno Haible  <bruno@clisp.org>
53216
53217         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53218         Code copied from m4/open.m4.
53219         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53220         access and the filename ends in a slash. Code copied from lib/open.c.
53221         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53222         * tests/test-fopen.c (main): Check against bug with trailing slash.
53223
53224 2008-08-29  Bruno Haible  <bruno@clisp.org>
53225
53226         Avoid some "gcc -pedantic" warnings.
53227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53228         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53229         * lib/dirent.in.h: Likewise.
53230         * lib/fcntl.in.h: Likewise.
53231         * lib/float.in.h: Likewise.
53232         * lib/iconv.in.h: Likewise.
53233         * lib/inttypes.in.h: Likewise.
53234         * lib/locale.in.h: Likewise.
53235         * lib/math.in.h: Likewise.
53236         * lib/netinet_in.in.h: Likewise.
53237         * lib/search.in.h: Likewise.
53238         * lib/signal.in.h: Likewise.
53239         * lib/stdarg.in.h: Likewise.
53240         * lib/stdint.in.h: Likewise.
53241         * lib/stdio.in.h: Likewise.
53242         * lib/stdlib.in.h: Likewise.
53243         * lib/string.in.h: Likewise.
53244         * lib/strings.in.h: Likewise.
53245         * lib/sys_select.in.h: Likewise.
53246         * lib/sys_socket.in.h: Likewise.
53247         * lib/sys_stat.in.h: Likewise.
53248         * lib/sys_time.in.h: Likewise.
53249         * lib/sysexits.in.h: Likewise.
53250         * lib/time.in.h: Likewise.
53251         * lib/unistd.in.h: Likewise.
53252         * lib/wchar.in.h: Likewise.
53253         * lib/wctype.in.h: Likewise.
53254         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53255         * modules/fchdir (Makefile.am): Likewise.
53256         * modules/fcntl (Makefile.am): Likewise.
53257         * modules/float (Makefile.am): Likewise.
53258         * modules/iconv_open (Makefile.am): Likewise.
53259         * modules/inttypes (Makefile.am): Likewise.
53260         * modules/locale (Makefile.am): Likewise.
53261         * modules/math (Makefile.am): Likewise.
53262         * modules/netinet_in (Makefile.am): Likewise.
53263         * modules/search (Makefile.am): Likewise.
53264         * modules/signal (Makefile.am): Likewise.
53265         * modules/stdarg (Makefile.am): Likewise.
53266         * modules/stdint (Makefile.am): Likewise.
53267         * modules/stdio (Makefile.am): Likewise.
53268         * modules/stdlib (Makefile.am): Likewise.
53269         * modules/string (Makefile.am): Likewise.
53270         * modules/strings (Makefile.am): Likewise.
53271         * modules/sys_select (Makefile.am): Likewise.
53272         * modules/sys_socket (Makefile.am): Likewise.
53273         * modules/sys_stat (Makefile.am): Likewise.
53274         * modules/sys_time (Makefile.am): Likewise.
53275         * modules/sysexits (Makefile.am): Likewise.
53276         * modules/time (Makefile.am): Likewise.
53277         * modules/unistd (Makefile.am): Likewise.
53278         * modules/wchar (Makefile.am): Likewise.
53279         * modules/wctype (Makefile.am): Likewise.
53280         Reported by Reuben Thomas <rrt@sc3d.org>.
53281
53282 2008-08-29  Bruno Haible  <bruno@clisp.org>
53283
53284         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53285         any more.
53286
53287 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53288
53289         * MODULES.html.sh (Misc): Add bitrotate.
53290
53291         * modules/bitrotate: New file.
53292
53293         * lib/bitrotate.h: New file.
53294
53295         * modules/bitrotate-tests: New file.
53296
53297         * tests/test-bitrotate.c: New file.
53298
53299         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53300         on the bitrotate module.
53301
53302         * lib/arctwo.c: Use new bitrotate module.
53303
53304 2008-08-29  Jim Meyering  <meyering@redhat.com>
53305
53306         bootstrap: merge changes from coreutils
53307         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53308         of copied files.  Remove a kludge, now that this is fixed.
53309         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53310         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53311         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53312
53313 2008-08-29  Bruno Haible  <bruno@clisp.org>
53314
53315         * MODULES.html.sh: Remove --cvs-urls option.
53316
53317 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53318
53319         maint.mk: adjust to file name change
53320         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53321
53322 2008-08-28  Jim Meyering  <meyering@redhat.com>
53323
53324         * modules/getndelim2 (License): Relicense to LGPLv2+.
53325         Approved by Richard Stallman for the version of 1995, and by
53326         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53327
53328 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53329
53330         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53331         dummy if one is not available.  Do not touch them if
53332         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53333         (getc_maybe_unlocked): New.
53334         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53335
53336 2008-08-26  Eric Blake  <ebb9@byu.net>
53337
53338         doc/INSTALL: resync from autoconf
53339         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53340         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53341         moving...
53342         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53343         * INSTALL: Regenerate.
53344         * INSTALL.ISO: New file.
53345         * INSTALL.UTF-8: Likewise.
53346
53347 2008-08-26  Jim Meyering  <meyering@redhat.com>
53348
53349         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53350         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53351         these definitions conditional, so that they may be overridden, too.
53352
53353 2008-08-26  Bruno Haible  <bruno@clisp.org>
53354
53355         Generate INSTALL file variants with prettier quotes.
53356         * doc/Makefile (INSTALL_PRELUDE): New macro.
53357         (INSTALL): Use it.
53358         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53359
53360 2008-08-26  Bruno Haible  <bruno@clisp.org>
53361
53362         Run makeinfo in an English locale.
53363         * doc/Makefile (MAKEINFO): New variable.
53364
53365 2008-08-26  Bruno Haible  <bruno@clisp.org>
53366
53367         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53368         Suggested by Eric Blake.
53369
53370 2008-08-25  Bruno Haible  <bruno@clisp.org>
53371
53372         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53373
53374 2008-08-25  Eric Blake  <ebb9@byu.net>
53375
53376         c-stack: test that stack overflow can be caught
53377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53378         that platform allows handling stack overflow; at least OS/2 EMX
53379         has sigaltstack, but crashes before transferring control to
53380         handler on stack overflow.
53381         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53382         check for HAVE_STACK_OVERFLOW_HANDLING.
53383         Reported by Elbert Pol.
53384
53385 2008-08-25  Bruno Haible  <bruno@clisp.org>
53386
53387         * doc/posix-functions/strftime.texi: Fix description of strftime
53388         module.
53389
53390 2008-08-24  Bruno Haible  <bruno@clisp.org>
53391
53392         * tests/uniwidth/test-uc_width2.c: New file.
53393         * tests/uniwidth/test-uc_width2.sh: New file.
53394         * modules/uniwidth/width-tests (Files): Add the new files.
53395         (TESTS): Add uniwidth/test-uc_width2.sh.
53396         (TESTS_ENVIRONMENT): New variable.
53397         (check_PROGRAMS): Add test-uc_width2.
53398         (test_uc_width2_SOURCES): New variable.
53399
53400         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53401         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53402         not 0x00AB.
53403         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53404
53405 2008-08-22  Eric Blake  <ebb9@byu.net>
53406
53407         test-lock, test-tls: mention why a test is skipped
53408         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53409         skipped.
53410         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53411
53412         count-one-bits: relax license
53413         * modules/count-one-bits (License): Relicense to LGPLv2+.
53414         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53415
53416 2008-08-22  Andreas Schwab  <schwab@suse.de>
53417
53418         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53419         Remove spurious space in assignment.
53420
53421 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53422
53423         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53424         Paul Eggert <eggert@CS.UCLA.EDU>.
53425
53426 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53427
53428         * modules/gettext: Add m4/threadlib.m4.
53429
53430 2008-08-19  Eric Blake  <ebb9@byu.net>
53431
53432         test-c-stack: fix compilation failure on FreeBSD 5.0
53433         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53434         headers before <sys/resource.h>.
53435         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53436         the bug.
53437         Reported by Nelson H. F. Beebe.
53438
53439         strverscmp: migrate from "strverscmp.h" to <string.h>
53440         * modules/string (Makefile.am): Add new hooks.
53441         * modules/strverscmp (Files): Remove strverscmp.h.
53442         (Depends-on): Add string.
53443         (configure.ac): Add indicator.
53444         (Include): Mention new header.
53445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53446         defaults.
53447         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53448         results.
53449         * lib/strverscmp.h: Delete.
53450         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53451         * tests/test-strverscmp.c (includes): Adjust client.
53452         * lib/check-version.c (includes): Likewise.
53453         * NEWS: Document the change.
53454
53455         strverscmp: add unit test
53456         * modules/strverscmp-tests: New file.
53457         * tests/test-strverscmp.c: Likewise.
53458
53459 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53460
53461         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53462         regarding Windows crypto stuff, from Mono.
53463
53464 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53465
53466         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53467         if present, for intel RND.  Return error on failures.
53468
53469 2008-08-18  Ben Pfaff  <blp@gnu.org>
53470
53471         gitlog-to-changelog: give better diagnostic for failed pipe-open
53472         * build-aux/gitlog-to-changelog: Improve error message: suggest
53473         that the version of Git may be too old.
53474
53475 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53476
53477         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53478         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53479
53480 2008-08-18  Bruno Haible  <bruno@clisp.org>
53481
53482         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53483         pthread_in_use().
53484
53485 2008-08-18  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/glthread/threadlib.c: Include <pthread.h>.
53488
53489 2008-08-18  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53492         glthread_recursive_lock_* macros.
53493         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53494         Fix syntax error.
53495
53496 2008-08-18  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/glthread/thread.c: Avoid forcing a context switch right after
53499         thread creation.
53500
53501 2008-08-17  Bruno Haible  <bruno@clisp.org>
53502
53503         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53504         * lib/glthread/thread.h: Provide Win32 specific implementation.
53505         * modules/thread (Files): Add lib/glthread/thread.c.
53506         (Depends-on): Add lock.
53507         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53508
53509 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53510
53511         New module 'yield'.
53512         * modules/yield: New file.
53513         * lib/glthread/yield.h: New file.
53514         * m4/yield.m4: New file.
53515         * MODULES.html.sh (Multithreading): Add yield.
53516
53517 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53518
53519         New module 'thread'.
53520         * modules/thread: New file.
53521         * lib/glthread/thread.h: New file.
53522         * m4/thread.m4: New file.
53523         * MODULES.html.sh (Multithreading): Add thread.
53524
53525 2008-08-17  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/glthread/lock.h: Include <stdlib.h> always.
53528         * lib/glthread/tls.h: Likewise.
53529         * lib/glthread/cond.h: Likewise.
53530
53531 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53532
53533         New module 'cond'.
53534         * modules/cond: New file.
53535         * lib/glthread/cond.h: New file.
53536         * lib/glthread/cond.c: New file.
53537         * m4/cond.m4: New file.
53538         * MODULES.html.sh (Multithreading): Add cond.
53539
53540 2008-08-16  Eric Blake  <ebb9@byu.net>
53541
53542         c-stack: fix regression on Irix 5.3 from 2008-06-21
53543         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53544         sa_sigaction...
53545         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53546         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53547         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53548         * modules/signal (Makefile.am): Use the value.
53549         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53550         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53551         * doc/posix-headers/signal.texi (signal.h): Document this
53552         portability issue.
53553         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53554         Reported by Tom G. Christensen.
53555
53556 2008-08-17  Bruno Haible  <bruno@clisp.org>
53557
53558         New module 'threadlib'.
53559         * modules/threadlib: New file.
53560         * lib/glthread/threadlib.c: New file, extracted from
53561         lib/glthread/lock.c.
53562         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53563         functions.
53564         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53565         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53566         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53567         macros.
53568         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53569         (gl_DISABLE_THREADS): Remove macro.
53570         * modules/lock (Files): Remove build-aux/config.rpath.
53571         (Depends-on): Remove havelib. Add threadlib.
53572         (configure.ac-early): Remove section.
53573         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53574         * modules/tls (Depends-on): Remove lock. Add threadlib.
53575         (Link): New section, copied from threadlib.
53576         * MODULES.html.sh (Multithreading): Add threadlib.
53577
53578 2008-08-14  Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53581         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53582         glthread_rwlock_unlock, glthread_rwlock_destroy,
53583         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53584         glthread_recursive_lock_destroy): Define as macros always.
53585         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53586         glthread_lock_lock.
53587         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53588         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53589         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53590         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53591         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53592         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53593         (glthread_recursive_lock_lock_func): Renamed from
53594         glthread_recursive_lock_lock.
53595         (glthread_recursive_lock_unlock_func): Renamed from
53596         glthread_recursive_lock_unlock.
53597         (glthread_recursive_lock_destroy_func): Renamed from
53598         glthread_recursive_lock_destroy.
53599
53600 2008-08-14  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/glthread/lock.h: Renamed from lib/lock.h.
53603         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53604         * lib/glthread/tls.h: Renamed from lib/tls.h.
53605         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53606         * lib/fstrcmp.c: Update includes.
53607         * lib/strsignal.c: Update includes.
53608         * modules/lock (Files, Makefile.am): Update.
53609         (Include): Change to "glthread/lock.h".
53610         * modules/tls (Files, Makefile.am): Update.
53611         (Include): Change to "glthread/tls.h".
53612         * tests/test-lock.c: Update includes.
53613         * tests/test-tls.c: Update includes.
53614         * NEWS: Mention the renamed header files.
53615
53616 2008-08-11  Jim Meyering  <meyering@redhat.com>
53617
53618         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53619
53620 2008-08-11  Eric Blake  <ebb9@byu.net>
53621
53622         test-c-stack: avoid C99-ism
53623         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53624         before statement.
53625         Reported by Alain Guibert.
53626
53627 2008-08-10  Jim Meyering  <meyering@redhat.com>
53628
53629         ensure that return value of uinttostr et al are not ignored
53630         * lib/inttostr.h (__GNUC_PREREQ): Define.
53631         (__attribute_warn_unused_result__): Define.
53632         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53633
53634 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53635
53636         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53637         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53638
53639 2008-08-07  Jim Meyering  <meyering@redhat.com>
53640
53641         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53642
53643         * modules/mkstemp (License): Relicense under LGPLv2+.
53644         * modules/tempname (License): Likewise.
53645
53646 2008-08-06  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/poll.c (poll): Further micro-optimization.
53649
53650 2008-08-06  Jim Meyering  <meyering@redhat.com>
53651
53652         inet_pton.c: use locale-independent tolower
53653         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53654         (inet_pton6): Use c_tolower rather than tolower.
53655         * modules/inet_pton (Depends-on): Add c-ctype.
53656
53657 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53658
53659         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53660         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53661
53662 2008-08-06  Jim Meyering  <meyering@redhat.com>
53663
53664         * modules/inet_pton (License): Relicense under LGPLv2+.
53665
53666 2008-08-03  Bruno Haible  <bruno@clisp.org>
53667
53668         Additional non-aborting API for lock and tls.
53669         * lib/lock.h: Include <errno.h>.
53670         (glthread_lock_init): New macro/function.
53671         (gl_lock_init): Define as wrapper around glthread_lock_init.
53672         (glthread_lock_lock): New macro/function.
53673         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53674         (glthread_lock_unlock): New macro/function.
53675         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53676         (glthread_lock_destroy): New macro/function.
53677         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53678         (glthread_rwlock_init): New macro/function.
53679         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53680         (glthread_rwlock_rdlock): New macro/function.
53681         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53682         (glthread_rwlock_wrlock): New macro/function.
53683         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53684         (glthread_rwlock_unlock): New macro/function.
53685         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53686         (glthread_rwlock_destroy): New macro/function.
53687         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53688         (glthread_recursive_lock_init): New macro/function.
53689         (gl_recursive_lock_init): Define as wrapper around
53690         glthread_recursive_lock_init.
53691         (glthread_recursive_lock_lock): New macro/function.
53692         (gl_recursive_lock_lock): Define as wrapper around
53693         glthread_recursive_lock_lock.
53694         (glthread_recursive_lock_unlock): New macro/function.
53695         (gl_recursive_lock_unlock): Define as wrapper around
53696         glthread_recursive_lock_unlock.
53697         (glthread_recursive_lock_destroy): New macro/function.
53698         (gl_recursive_lock_destroy): Define as wrapper around
53699         glthread_recursive_lock_destroy.
53700         (glthread_once): New macro/function.
53701         (gl_once): Define as wrapper around glthread_once.
53702         Update function declarations.
53703         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53704         glthread_rwlock_init. Return error code.
53705         (glthread_rwlock_rdlock_multithreaded): Renamed from
53706         glthread_rwlock_rdlock. Return error code.
53707         (glthread_rwlock_wrlock_multithreaded): Renamed from
53708         glthread_rwlock_wrlock. Return error code.
53709         (glthread_rwlock_unlock_multithreaded): Renamed from
53710         glthread_rwlock_unlock. Return error code.
53711         (glthread_rwlock_destroy_multithreaded): Renamed from
53712         glthread_rwlock_destroy. Return error code.
53713         (glthread_recursive_lock_init_multithreaded): Renamed from
53714         glthread_recursive_lock_init. Return error code.
53715         (glthread_recursive_lock_lock_multithreaded): Renamed from
53716         glthread_recursive_lock_lock. Return error code.
53717         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53718         glthread_recursive_lock_unlock. Return error code.
53719         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53720         glthread_recursive_lock_destroy. Return error code.
53721         (glthread_once_call): Make static.
53722         (glthread_once_multithreaded): Renamed from glthread_once.
53723         * lib/tls.h: Include <errno.h>.
53724         (glthread_tls_key_init): New macro/function.
53725         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53726         (glthread_tls_set): New macro/function.
53727         (gl_tls_set): Define as wrapper around glthread_tls_set.
53728         (glthread_tls_key_destroy): New macro/function.
53729         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53730         Update function declarations.
53731         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53732         glthread_tls_get.
53733         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53734
53735 2008-08-04  Eric Blake  <ebb9@byu.net>
53736
53737         gnumakefile: use space, not TAB, outside of targets
53738         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53739
53740 2008-08-02  Jim Meyering  <meyering@redhat.com>
53741
53742         getdate.y: avoid locale-dependent date parsing failure
53743         In Turkish locales, getdate would fail to recognize keywords
53744         containing a lowercase "i".  The solution is not to rely on
53745         locale-sensitive case-conversion.
53746         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53747         (lookup_word): Use c_toupper in place of toupper.
53748         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53749         Reported by Vefa Bicakci <bicave@superonline.com> in
53750         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53751         * modules/getdate (Depends-on): Add c-ctype.
53752
53753 2008-08-02  Bruno Haible  <bruno@clisp.org>
53754
53755         * gnulib-tool (func_import): When updating or creating a .gitignore
53756         file, prepend each added line with a slash, and ignore leading slashes
53757         from the existing lines.
53758         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53759
53760 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53761
53762         Portability fix for GNU make 3.79.1.
53763         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53764         versions do not understand.
53765
53766 2008-08-01  Bruno Haible  <bruno@clisp.org>
53767
53768         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53769         * tests/test-isnanf.h (zero): New variable.
53770         (main): Avoid literal -0.0f.
53771         * tests/test-isnand.h (zero): New variable.
53772         (main): Avoid literal -0.0.
53773         * tests/test-isnanl.h (zero): New variable.
53774         (main): Avoid literal -0.0L.
53775         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53776         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53777         -0.0, -0.0L.
53778         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53779         (test_signbitd): Avoid literal -0.0.
53780         (test_signbitl): Avoid literal -0.0L.
53781         * tests/test-ceilf1.c (zero): New variable.
53782         (main): Avoid literal -0.0f.
53783         * tests/test-ceill.c (zero): New variable.
53784         (main): Avoid literal -0.0L.
53785         * tests/test-floorf1.c (zero): New variable.
53786         (main): Avoid literal -0.0f.
53787         * tests/test-floorl.c (zero): New variable.
53788         (main): Avoid literal -0.0L.
53789         * tests/test-roundf1.c (zero): New variable.
53790         (main): Avoid literal -0.0f.
53791         * tests/test-round1.c (zero): New variable.
53792         (main): Avoid literal -0.0.
53793         * tests/test-roundl.c (zero): New variable.
53794         (main): Avoid literal -0.0L.
53795         * tests/test-truncf1.c (zero): New variable.
53796         (main): Avoid literal -0.0f.
53797         * tests/test-trunc1.c (zero): New variable.
53798         (main): Avoid literal -0.0.
53799         * tests/test-truncl.c (zero): New variable.
53800         (main): Avoid literal -0.0L.
53801         * tests/test-frexp.c (zero): New variable.
53802         (main): Avoid literal -0.0.
53803         * tests/test-frexpl.c (zero): New variable.
53804         (main): Avoid literal -0.0L.
53805         * tests/test-ldexpl.c (zero): New variable.
53806         (main): Avoid literal -0.0L.
53807         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53808         (zerod, zerol): New variables.
53809         (test_function): Avoid literals -0.0, -0.0L.
53810         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53811         (zerod, zerol): New variables.
53812         (test_function): Avoid literals -0.0, -0.0L.
53813         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53814         (zerod, zerol): New variables.
53815         (test_function): Avoid literals -0.0, -0.0L.
53816         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53817         (zerod, zerol): New variables.
53818         (test_function): Avoid literals -0.0, -0.0L.
53819         * tests/test-strtod.c (zero): New variable.
53820         (main): Avoid literal -0.0.
53821         Reported by Jonathan C. Patschke <jp@centtech.com>.
53822
53823 2008-07-31  Jim Meyering  <meyering@redhat.com>
53824
53825         sha256.h: correct definition of SHA224_DIGEST_SIZE
53826         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53827         Reported by Paulie Pena IV <paulie4@gmail.com>.
53828         Define as 224 / 8, rather than as a literal.
53829         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53830         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53831         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53832
53833 2008-07-31  Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53836         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53837         Reported by Jonathan Patschke <jp@centtech.com>.
53838
53839 2008-07-31  Bruno Haible  <bruno@clisp.org>
53840
53841         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53842         Reported by Paolo Bonzini <bonzini@gnu.org>.
53843
53844 2008-07-30  Eric Blake  <ebb9@byu.net>
53845
53846         test-strtod: allow compilation without -lm
53847         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53848         Reported by Dennis Clarke <blastwave@gmail.com>.
53849
53850 2008-07-28  Jim Meyering  <meyering@redhat.com>
53851
53852         bootstrap: work also when there are no .po files in po/
53853         * build-aux/bootstrap (update_po_files): Complete the change
53854         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53855
53856 2008-07-27  Jim Meyering  <meyering@redhat.com>
53857
53858         * users.txt: Add zile.
53859
53860 2008-07-26  Ben Pfaff  <blp@gnu.org>
53861
53862         Add missing dependencies on new m4/exponent[fdl].m4 files.
53863         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53864         * modules/isnand-nolibm: Add m4/exponentd.m4.
53865         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53866         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53867         m4/isnan[fdl].m4, because the macros actually used moved.
53868         Reported by Jim Meyering.
53869
53870 2008-07-14  Ben Pfaff  <blp@gnu.org>
53871
53872         Add isinf module.
53873         * lib/isinf.c: New file.
53874         * lib/math.in.h: Define isinf macro if we have decided to replace
53875         it.
53876         * m4/isinf.m4: New file.
53877         * m4/math_h.m4: Initialize and substitute variables for isinf
53878         module.
53879         * modules/isinf: New file.
53880         * modules/isinf-tests: New file.
53881         * modules/math: Add substitutions for new module.
53882         * tests/test-isinf.c: New file.
53883         * doc/posix-functions/isinf.texi: Mention new module.
53884         * MODULES.html.sh: Mention new module.
53885
53886 2008-07-14  Ben Pfaff  <blp@gnu.org>
53887
53888         Factor out some macros for use by additional modules.
53889         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53890         exponentf.m4.
53891         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53892         exponentd.m4.
53893         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53894         file exponentl.m4.
53895         * m4/exponentf.m4: New file.
53896         * m4/exponentd.m4: New file.
53897         * m4/exponentl.m4: New file.
53898         * modules/isnanf: Use new file m4/exponentf.m4.
53899         * modules/isnand: Use new file m4/exponentd.m4.
53900         * modules/isnanl: Use new file m4/exponentl.m4.
53901
53902 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53903
53904         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53905         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53906         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53907         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53908
53909         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53910         readlink on platforms without PATH_MAX.
53911
53912 2008-07-21  Eric Blake  <ebb9@byu.net>
53913
53914         Warn, not fail, on stale version.
53915         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53916
53917         Don't allow installation with stale devel version number.
53918         * top/GNUmakefile (_is-install-target): New macro.
53919         (_curr-ver): Forbid installation with stale version number.
53920
53921 2008-07-20  Bruno Haible  <bruno@clisp.org>
53922
53923         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53924         TESTS_ENVIRONMENT.
53925         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53926
53927 2008-07-20  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/c-stack.h (c_stack_action): Add documentation.
53930         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53931
53932 2008-07-20  Bruno Haible  <bruno@clisp.org>
53933
53934         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53935         * modules/readlink (License): Likewise.
53936
53937 2008-07-17  Eric Blake  <ebb9@byu.net>
53938
53939         * modules/c-stack (Link): Fix typo.
53940
53941         Make c-stack use libsigsegv, when available.
53942         * modules/c-stack (Depends-on): Add libsigsegv.
53943         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53944         needed.
53945         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53946         (segv_handler, overflow_handler, c_stack_action)
53947         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53948         implementation when libsigsegv is available, but only when using
53949         the library is necessary.
53950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53951         comment, explaining why XSI check fails on Linux.
53952         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53953         * tests/test-c-stack2.sh: Tweak skip message.
53954         * NEWS: Document new link-time requirements.
53955
53956 2008-07-16  Eric Blake  <ebb9@byu.net>
53957
53958         c-stack: Expose false positives when not using libsigsegv.
53959         * modules/c-stack-tests (Files): Expand test.
53960         * tests/test-c-stack.c (main): Add means to conditionally trigger
53961         non-overflow SIGSEGV.
53962         * tests/test-c-stack2.sh: New file.
53963
53964 2008-07-14  Bruno Haible  <bruno@clisp.org>
53965
53966         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53967         Reported by Eric Blake.
53968
53969 2008-07-14  Sam Steingold  <sds@gnu.org>
53970             Bruno Haible  <bruno@clisp.org>
53971
53972         New module libsigsegv.
53973         * modules/libsigsegv: New file.
53974         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53975         modifications.
53976         * MODULES.html.sh (Signal handling): New section.
53977
53978 2008-07-14  Bruno Haible  <bruno@clisp.org>
53979
53980         * modules/unictype/ctype-* (Description): Add the word "function".
53981         Improves the resulting doc in MODULES.html.
53982
53983 2008-07-12  Ben Pfaff  <blp@gnu.org>
53984
53985         Add longlong module.
53986         * modules/longlong: New file.
53987
53988 2008-07-12  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53991         to empty.
53992
53993 2008-07-10  Ben Pfaff  <blp@gnu.org>
53994
53995         Add isnan module.
53996         * doc/posix-functions/isnan.texi: Mention new module.
53997         * lib/math.in.h: Define isnan macro if we have decided to replace
53998         it.
53999         * m4/isnan.m4: New file.
54000         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54001         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54002         also.
54003         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54004         redundancy.
54005         * m4/math_h.m4: Initialize and substitute variables for isnan
54006         module.
54007         * modules/isnan: New file.
54008         * modules/isnan-tests: New file.
54009         * modules/math: Add substitutions for new module.
54010         * tests/test-isnan.c: New file.
54011         * MODULES.html.sh: Mention new module.
54012
54013 2008-07-10  Ben Pfaff  <blp@gnu.org>
54014
54015         Add isnanf module.
54016         * lib/isnanf.m4: New file.
54017         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54018         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54019         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54020         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54021         * modules/isnanf: New file.
54022         * modules/isnanf-tests: New file.
54023         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54024         files.
54025         * tests/test-isnanf-nolibm.c: factored most of its contents into
54026         new file tests/test-isnanf.h.
54027         * tests/test-isnanf.h: New file.
54028         * tests/test-isnanf.c: New file.
54029         * MODULES.html.sh: Mention new module.
54030         * doc/glibc-functions/isnanf.texi: Mention new module.
54031
54032 2008-07-10  Ben Pfaff  <blp@gnu.org>
54033
54034         Add isnand module.
54035         * lib/isnand.h: New file.
54036         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54037         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54038         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54039         functionality also.
54040         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54041         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54042         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54043         * modules/isnand: New file.
54044         * modules/isnand-tests: New file.
54045         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54046         files.
54047         * tests/test-isnand-nolibm.c: factored most of its contents into
54048         new file tests/test-isnand.h.
54049         * tests/test-isnand.h: New file.
54050         * tests/test-isnand.c: New file.
54051         * MODULES.html.sh: Mention new module.
54052
54053 2008-07-10  Ben Pfaff  <blp@gnu.org>
54054
54055         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54056         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54057         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54058         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54059         * modules/isnanf-nolibm: Update references to renamed files.
54060         * modules/isnand-nolibm: Likewise.
54061         * modules/isnanf-nolibm-tests: Likewise.
54062         * modules/isnand-nolibm-tests: Likewise.
54063         * lib/frexp.c: Likewise.
54064         * lib/isfinite.c: Likewise.
54065         * lib/signbitd.c: Likewise.
54066         * lib/signbitf.c: Likewise.
54067         * lib/vasnprintf.c: Likewise.
54068         * tests/test-ceilf1.c: Likewise.
54069         * tests/test-ceilf2.c: Likewise.
54070         * tests/test-floorf1.c: Likewise.
54071         * tests/test-floorf2.c: Likewise.
54072         * tests/test-frexp.c: Likewise.
54073         * tests/test-round1.c: Likewise.
54074         * tests/test-round2.c: Likewise.
54075         * tests/test-roundf1.c: Likewise.
54076         * tests/test-strtod.c: Likewise.
54077         * tests/test-trunc1.c: Likewise.
54078         * tests/test-trunc2.c: Likewise.
54079         * tests/test-truncf1.c: Likewise.
54080         * tests/test-truncf2.c: Likewise.
54081         * NEWS: Mention the renamed header files.
54082
54083 2008-07-11  Jim Meyering  <meyering@redhat.com>
54084
54085         vc-list-files: make the last-resort awk code more portable
54086         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54087         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54088         does not support it.
54089
54090 2008-07-10  Eric Blake  <ebb9@byu.net>
54091
54092         Work with tar's bootstrap.
54093         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54094         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54095         an m4 comment.
54096
54097 2008-07-09  Jim Meyering  <meyering@redhat.com>
54098
54099         posix-shell.m4: fix typo that made this test malfunction
54100         * m4/posix-shell.m4: Remove capitalization in variable name.
54101
54102 2008-07-08  Bruno Haible  <bruno@clisp.org>
54103
54104         * m4/onceonly.m4: Update comments.
54105         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54106
54107 2008-07-04  Jim Meyering  <meyering@redhat.com>
54108
54109         * users.txt: Add vc-dwim.
54110         (bison, coreutils): Use the gitweb URL.
54111
54112 2008-07-03  Jim Meyering  <meyering@redhat.com>
54113
54114         * users.txt: Add libffcall.  From Sam Steingold.
54115
54116 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54117
54118         getdate.y: do not ignore TZ with relative day, month or year offset
54119         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54120         relative-date-handling, since otherwise, the latter would clobber the
54121         sole output (an updated Start value) of the tz-handling block.
54122         * tests/test-getdate.c: Tests for the fix
54123
54124 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54125
54126         Recognize 'foo_LIBRARIES += libgnu.a'.
54127         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54128         makefile snippet has already specified an installation location,
54129         also using '+='.
54130
54131 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54132
54133         getdate.y: factor out common actions
54134         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54135         Use them in place of open-coded actions.
54136
54137 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54138
54139         Add self-test for getdate module.
54140         * modules/getdate-tests: New file.
54141         * tests/test-getdate.c: New file.
54142
54143 2008-06-29  Bruno Haible  <bruno@clisp.org>
54144
54145         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54146         .gitignore.
54147         Reported by Sylvain Beucler <beuc@beuc.net>.
54148
54149 2008-06-29  Bruno Haible  <bruno@clisp.org>
54150
54151         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54152         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54153
54154 2008-06-29  Bruno Haible  <bruno@clisp.org>
54155
54156         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54157         EXTRA_DIST.
54158         Reported by Sylvain Beucler <beuc@beuc.net>.
54159
54160 2008-06-26  Jim Meyering  <meyering@redhat.com>
54161
54162         make several modules depend on the "open" module
54163         This provides slightly increased consistency when opening-for-write
54164         the name of a non-directory spelled with a trailing slash.
54165         * modules/chdir-safer: Likewise.
54166         * modules/chown: Likewise.
54167         * modules/clean-temp: Likewise.
54168         * modules/copy-file: Likewise.
54169         * modules/fchdir: Likewise.
54170         * modules/fcntl-safer: Likewise.
54171         * modules/pipe: Likewise.
54172         * modules/utime: Likewise.
54173         Prompted by Eric Blake and Bruno Haible.
54174
54175 2008-06-24  Andreas Schwab  <schwab@suse.de>
54176
54177         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54178         literals can be used as initializers for global variables.
54179
54180 2008-06-23  Eric Blake  <ebb9@byu.net>
54181
54182         Make gnulib-cache.m4 easier to diff.
54183         * gnulib-tool (func_import): Allow newlines when reading cached
54184         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54185
54186 2008-06-23  Bruno Haible  <bruno@clisp.org>
54187
54188         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54189         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54190         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54191         m4/signalblocking.m4.
54192         (gl_PREREQ_SIGACTION): Don't invoke it.
54193         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54194         gl_PREREQ_SIG_HANDLER_H.
54195         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54196         Don't check for sigaction here.
54197
54198 2008-06-23  Bruno Haible  <bruno@clisp.org>
54199
54200         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54201         (install_handlers): Don't set the SA_RESETHAND flag.
54202
54203 2008-06-23  Bruno Haible  <bruno@clisp.org>
54204
54205         * m4/sigaction.m4: Comment fixes.
54206         * lib/signal.in.h: Likewise.
54207
54208 2008-06-23  Eric Blake  <ebb9@byu.net>
54209
54210         Fix typo.
54211         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54212
54213         Avoid SA_ namespace.
54214         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54215         Reported by Ralf Wildenhues.
54216
54217         Avoid test failure due to SA_RESTORER.
54218         * tests/test-sigaction.c (SA_MASK): New macro.
54219         (main): Avoid failing due to extension flags being set.
54220         Reported by Jim Meyering.
54221
54222         Revert use of sig-handler.h in sigprocmask.c.
54223         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54224         it requires the existence of struct sigaction.
54225         * lib/sigprocmask.c (handler_t): Restore typedef.
54226         (rpl_signal, old_handlers): Use local type.
54227
54228 2008-06-22  Bruno Haible  <bruno@clisp.org>
54229
54230         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54231         conditionally.
54232         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54233
54234 2008-06-22  Bruno Haible  <bruno@clisp.org>
54235
54236         * doc/posix-functions/siginterrupt.texi: Move note.
54237
54238         * lib/signal.in.h (SA_RESTART): New macro.
54239         * lib/sigaction.c: Update comment.
54240
54241         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54242
54243         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54244         (gl_PREREQ_SIGPROCMASK): Invoke it.
54245         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54246
54247         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54248
54249         * lib/sigprocmask.c: Update a comment.
54250
54251 2008-06-21  Eric Blake  <ebb9@byu.net>
54252
54253         Use sigaction module rather than signal().
54254         * modules/c-stack (Depends-on): Add sigaction.
54255         * modules/fatal-signal (Depends-on): Likewise.
54256         * modules/nanosleep (Depends-on): Likewise.
54257         * modules/sigprocmask (Files): Add sig-handler.h.
54258         * modules/sigaction (Files): Likewise.
54259         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54260         Eggert.
54261         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54262         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54263         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54264         (init_fatal_signals): Likewise.
54265         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54266         (siginterrupt): Delete fallback.
54267         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54268         instead.
54269         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54270         siginterrupt.
54271
54272         New module sigaction, for mingw.
54273         * modules/sigaction: New module...
54274         * modules/sigaction-tests: ...and its test.
54275         * m4/sigaction.m4: New file.
54276         * lib/sigaction.c: Likewise.
54277         * tests/test-sigaction.c: Likewise.
54278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54279         * modules/signal (Makefile.am): Likewise.
54280         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54281         needed.
54282         * doc/posix-headers/signal.texi (signal.h): Mention provided
54283         types.
54284         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54285         that sigaction is preferable.
54286         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54287         module.
54288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54289         sigaction.
54290
54291         Improve robustness of sigprocmask by overriding signal.
54292         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54293         is in use.
54294         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54295         (SIGKILL, SIGSTOP): Provide fallbacks.
54296         (rpl_signal): Implement.
54297         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54298         signal can be called inside handlers.
54299
54300         Fix nanosleep module on mingw.
54301         * modules/nanosleep (Depends-on): Add sys_select.
54302         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54303
54304         Fix licensing of sigprocmask.
54305         * modules/raise (License): Relicense as LGPL.
54306
54307 2008-06-21  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54310         result if it contains question marks.
54311         Reported by Michael Geng <linux@michaelgeng.de>.
54312
54313 2008-06-19  Bruno Haible  <bruno@clisp.org>
54314
54315         Fix CVS-ism.
54316         * doc/gnulib.texi: Include updated-stamp.texi.
54317         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54318         (updated-stamp.texi): New rule.
54319         (gnulib.info): Depend on it.
54320         * doc/.gitignore: Add updated-stamp.texi.
54321         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54322
54323 2008-06-19  Bruno Haible  <bruno@clisp.org>
54324
54325         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54326         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54327
54328 2008-06-19  Eric Blake  <ebb9@byu.net>
54329
54330         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54331         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54332         Reported by Stepan Kasal.
54333
54334 2008-06-18  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54337         Reported by Eric Blake.
54338
54339 2008-06-18  Eric Blake  <ebb9@byu.net>
54340
54341         Work around cygwin 1.5.25 strsignal bug.
54342         * tests/test-strsignal.c: Allow for const char *.
54343         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54344
54345 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54346
54347         * users.txt: Update URL to article and add author/date
54348         information.
54349
54350 2008-06-17  Bruno Haible  <bruno@clisp.org>
54351
54352         New macro gl_DISABLE_THREADS.
54353         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54354         if the user did not pass --enable-threads or --disable-threads option.
54355         (gl_DISABLE_THREADS): New macro.
54356         Reported by Eric Blake <ebb9@byu.net>.
54357
54358 2008-06-17  Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54361         when the macro ignores it.
54362         Based on a patch by Eric Blake <ebb9@byu.net>.
54363
54364 2008-06-17  Bruno Haible  <bruno@clisp.org>
54365
54366         * modules/tls (License): Change to LGPLv2+.
54367         Reported by Eric Blake.
54368
54369 2008-06-17  Eric Blake  <ebb9@byu.net>
54370
54371         Simplify c-stack prerequisites.
54372         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54374         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54375         check.
54376         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54377         <sys/resource.h>.
54378
54379         Move c-stack test into testsuite.
54380         * modules/c-stack-tests: New file.
54381         * lib/c-stack.c [DEBUG]: Move test program...
54382         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54383         fail test if sigaltstack is lacking.
54384         * tests/test-c-stack.sh: New driver file.
54385
54386 2008-06-16  Eric Blake  <ebb9@byu.net>
54387
54388         Use raise module consistently.
54389         * modules/fatal-signal (Depends-on): Add raise.
54390         * modules/sigprocmask (Depends-on): Likewise.
54391         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54392         * lib/sigprocmask.c (sigprocmask): Likewise.
54393         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54395
54396         Fix compliance bug in sigpending.
54397         * lib/sigprocmask.c (sigpending): Return pending array via
54398         parameter, not return value.
54399
54400 2008-06-14  Eric Blake  <ebb9@byu.net>
54401
54402         Improve obstack-printf test code.
54403         * tests/test-obstack-printf.c (test_function): Fix comment, and
54404         simplify usage of obstack_* in macros.  Add a test for coverage.
54405         Reported by Bruno Haible.
54406
54407 2008-06-14  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54410         array size as a constant, not as a const variable.
54411         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54412         AC_USE_SYSTEM_EXTENSIONS.
54413         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54414         Test whether the obstack_printf function actually exists.
54415         * modules/obstack-printf (Depends-on): Add extensions.
54416         (Include): Remove obstack.h.
54417         * modules/obstack-printf-posix (Depends-on): Add extensions.
54418         (Include): Remove obstack.h.
54419
54420 2008-06-13  Eric Blake  <ebb9@byu.net>
54421
54422         Add obstack-printf and obstack-printf-posix modules.
54423         * modules/obstack-printf: New file.
54424         * modules/obstack-printf-posix: Likewise.
54425         * MODULES.html.sh (Misc): Mention them.
54426         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54427         Likewise.
54428         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54429         Likewise.
54430         * modules/stdio (Makefile.am): Accomodate new modules.
54431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54432         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54433         Declare.
54434         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54435         functions.
54436         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54437         (gl_REPLACE_OBSTACK_PRINTF): New macros
54438         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54439         * tests/test-obstack-printf.c: New file.
54440         * modules/obstack-printf-tests: Likewise.
54441         * modules/obstack-printf-posix-tests: Likewise.
54442
54443 2008-06-11  Bruno Haible  <bruno@clisp.org>
54444
54445         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54446         * lib/open.c: Include errno.h.
54447         (open): Fail when attempting to write to a file that has a trailing
54448         slash.
54449         * tests/test-open.c (main): Test against trailing slash bug.
54450         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54451
54452 2008-06-10  Bruno Haible  <bruno@clisp.org>
54453
54454         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54455         for $? to work inside the trap command, with various /bin/sh-s.
54456         * tests/test-vc-list-files-cvs.sh: Likewise.
54457
54458 2008-06-10  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/acl-internal.h: Don't include gettext.h here.
54461         * lib/set-mode-acl.c: Include gettext.h here.
54462         * lib/copy-acl.c: Likewise.
54463
54464 2008-06-10  Bruno Haible  <bruno@clisp.org>
54465
54466         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54467         * lib/wait-process.c (wait_subprocess): Likewise.
54468         * lib/execute.h (execute): Add termsigp argument.
54469         * lib/execute.c (execute): Likewise.
54470         * lib/csharpcomp.c (compile_csharp_using_pnet,
54471         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54472         * lib/csharpexec.c (execute_csharp_using_pnet,
54473         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54474         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54475         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54476         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54477         is_jikes_present): Update.
54478         * lib/javaexec.c (execute_java_class): Update.
54479         * lib/javaversion.c (execute_and_read_line): Update.
54480         * NEWS: Document the changes.
54481         Reported by Eric Blake.
54482
54483 2008-06-10  Eric Blake  <ebb9@byu.net>
54484
54485         Add missing include.
54486         * tests/test-strstr.c (includes): Add <signal.h>.
54487         * tests/test-strcasestr.c (includes): Likewise.
54488         * tests/test-memmem.c (includes): Likewise.
54489
54490 2008-06-10  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/wait-process.c (wait_subprocess): Add an assertion.
54493
54494 2008-06-10  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54497
54498 2008-06-10  Bruno Haible  <bruno@clisp.org>
54499
54500         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54501         using alarm().
54502         * tests/test-strcasestr.c (main): Likewise.
54503         * tests/test-strstr.c (main): Likewise.
54504
54505 2008-06-09  Bruno Haible  <bruno@clisp.org>
54506
54507         Work around the Solaris 10 ACE ACLs ABI change.
54508         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54509         declare if ACL_NO_TRIVIAL is present.
54510         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54511         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54512         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54513         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54514         define if ACL_NO_TRIVIAL is present.
54515         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54516         and use the current ABI.
54517         (file_has_acl): Use same #if condition as elsewhere.
54518         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54519         in use, and use the current ABI.
54520         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54521         Reported by Jim Meyering.
54522
54523 2008-06-09  Eric Blake  <ebb9@byu.net>
54524
54525         Work around environments that (stupidly) ignore SIGALRM.
54526         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54527         before using alarm().
54528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54530         Reported by Ian Beckwith <ianb@erislabs.net>.
54531
54532         Produce autobuild blurb earlier in log.
54533         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54534
54535 2008-06-09  Jim Meyering  <meyering@redhat.com>
54536         and OndÅ™ej Vašík  <ovasik@redhat.com>
54537
54538         utimens.c: correct kernel bug work-around
54539         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54540         failure, not success, and the kernel bug we're trying to work
54541         around affects not just the utimensat call, but also the fallback
54542         futimens call.
54543         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54544         not success.
54545         [HAVE_FUTIMENS]: Use the same work-around, here.
54546
54547 2008-06-09  Jim Meyering  <meyering@redhat.com>
54548
54549         add more guards around definition of ACE_-related code
54550         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54551         ALLOW and ACE_OWNER are also defined.
54552
54553 2008-06-08  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/acl-internal.h: Add me as co-author.
54556         * lib/file-has-acl.c: Likewise.
54557         * lib/set-mode-acl.c: Likewise.
54558         * lib/copy-acl.c: Likewise.
54559
54560 2008-06-08  Bruno Haible  <bruno@clisp.org>
54561
54562         Add support for AIX ACLs.
54563         * lib/acl-internal.h (acl_nontrivial): New declaration.
54564         * lib/file-has-acl.c (acl_nontrivial): New function.
54565         (file_has_acl): Add implementation using AIX 4 ACL API.
54566         * lib/set-mode-acl.c (qset_acl): Likewise.
54567         * lib/copy-acl.c (qcopy_acl): Likewise.
54568
54569 2008-06-08  Bruno Haible  <bruno@clisp.org>
54570
54571         Add support for HP-UX ACLs.
54572         * lib/acl-internal.h (acl_nontrivial): New declaration.
54573         * lib/file-has-acl.c (acl_nontrivial): New function.
54574         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54575         * lib/set-mode-acl.c (qset_acl): Likewise.
54576         * lib/copy-acl.c (qcopy_acl): Likewise.
54577
54578 2008-06-08  Bruno Haible  <bruno@clisp.org>
54579
54580         Add support for Cygwin ACLs.
54581         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54582         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54583         the chmod_or_fchmod call.
54584         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54585
54586 2008-06-08  Bruno Haible  <bruno@clisp.org>
54587
54588         Fix bug with setuid modes in Solaris 10+ code.
54589         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54590         succeeded, when the mode contains some special bits.
54591
54592 2008-06-08  Bruno Haible  <bruno@clisp.org>
54593
54594         Add support for Solaris 7..10 ACLs.
54595         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54596         declarations.
54597         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54598         functions.
54599         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54600         * lib/set-mode-acl.c (qset_acl): Likewise.
54601         * lib/copy-acl.c (qcopy_acl): Likewise.
54602
54603 2008-06-08  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54606         declaration.
54607         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54608         (acl_access_nontrivial): Remove MacOS X case.
54609         (file_has_acl): Use acl_extended_nontrivial.
54610         * lib/copy-acl.c (qcopy_acl): Likewise.
54611
54612 2008-06-08  Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54615
54616 2008-06-08  Jim Meyering  <meyering@redhat.com>
54617
54618         * modules/acl (Maintainer): Add Bruno Haible.
54619
54620 2008-06-07  Bruno Haible  <bruno@clisp.org>
54621
54622         Improve support for Tru64 ACLs.
54623         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54624         ACL on OSF/1.
54625
54626 2008-06-07  Bruno Haible  <bruno@clisp.org>
54627
54628         Add support for MacOS X ACLs.
54629         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54630         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54631         * lib/set-mode-acl.c (qset_acl): Likewise.
54632         * lib/copy-acl.c (qcopy_acl): Likewise.
54633
54634 2008-06-07  Bruno Haible  <bruno@clisp.org>
54635
54636         Fix memory leak introduced on 2008-05-22.
54637         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54638         use.
54639
54640 2008-06-07  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54643         to construct an empty ACL.
54644
54645 2008-06-07  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54648         precisely.
54649         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54650
54651 2008-06-07  Bruno Haible  <bruno@clisp.org>
54652
54653         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54654         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54655
54656 2008-06-07  Bruno Haible  <bruno@clisp.org>
54657
54658         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54659         regardless of POSIX.
54660         * doc/posix-functions/_longjmp.texi: Likewise.
54661         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54662         SystemV platform in this case.
54663
54664 2008-06-06  Eric Blake  <ebb9@byu.net>
54665
54666         Document abort() bugs.
54667         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54668
54669         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54670         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54671         sigsetjmp.
54672         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54673         siglongjmp, but only as a macro.
54674         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54675         is obsolete.
54676         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54677
54678         Tweak documentation to cover cygwin argz bugs.
54679         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54680         argz bug fix; no code change needed since no cygwin releases
54681         occurred between the last fix and the bug being tested.
54682         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54683         module and recently fixed cygwin bugs.
54684         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54685         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54686         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54687         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54688         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54689         Likewise.
54690         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54691         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54692         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54693         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54694         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54695         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54696         Likewise.
54697
54698         Avoid gcc warning on cygwin.
54699         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54700         !ACL_NO_TRIVIAL]: Avoid unused variable.
54701
54702 2008-06-05  Eric Blake  <ebb9@byu.net>
54703
54704         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54705         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54706         git-version-gen fails to come up with a version.
54707         Reported by Simon Josefsson.
54708
54709 2008-06-05  Jim Meyering  <meyering@redhat.com>
54710             Paul Eggert  <eggert@cs.ucla.edu>
54711
54712         utimens.c: work around a probable Linux kernel bug
54713         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54714         appears to be a kernel bug that causes utimensat to return 280
54715         instead of 0, indicating success.
54716
54717 2008-06-04  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54720         2008-06-01 commit.
54721
54722 2008-06-04  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54725         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54726         (file_has_acl): Use it. Save errno afterwards.
54727         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54728
54729 2008-06-03  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54732         draft code. Simplify #ifs.
54733         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54734         Put Solaris code after POSIX-draft code. Fix comments regarding
54735         Solaris 10, HP-UX. Mention Cygwin.
54736         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54737
54738 2008-06-03  Eric Blake  <ebb9@byu.net>
54739
54740         Provide fallback for older kernels.
54741         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54742         Provide runtime fallback if kernel lacks support.
54743         Reported by Mike Frysinger.
54744
54745 2008-06-02  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54748         it exists.
54749
54750 2008-06-02  Bruno Haible  <bruno@clisp.org>
54751
54752         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54753         * lib/copy-acl.c (qcopy_acl): Update comment.
54754
54755 2008-06-02  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54758         like ACL APIs.
54759
54760 2008-06-02  Bruno Haible  <bruno@clisp.org>
54761
54762         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54763         * tests/test-set-mode-acl.sh: Likewise.
54764         * tests/test-copy-acl.sh: Likewise.
54765         * tests/test-copy-file.sh: Likewise.
54766
54767 2008-06-02  Bruno Haible  <bruno@clisp.org>
54768
54769         * tests/test-file-has-acl.sh: Remove unused code.
54770
54771 2008-06-01  Bruno Haible  <bruno@clisp.org>
54772
54773         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54774         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54775         messages.
54776         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54777
54778 2008-06-01  Bruno Haible  <bruno@clisp.org>
54779
54780         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54781         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54782         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54783         APIs.
54784         * modules/acl-tests (configure.ac): Remove tests now contained in
54785         m4/acl.m4.
54786
54787 2008-06-02  Jim Meyering  <meyering@redhat.com>
54788
54789         announce-gen: use a better key-server host name
54790         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54791         it may be more consistently reliable.  Suggested by Werner Koch
54792         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54793
54794 2008-06-01  Bruno Haible  <bruno@clisp.org>
54795
54796         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54797         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54798
54799 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54800
54801         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54802
54803 2008-06-01  Bruno Haible  <bruno@clisp.org>
54804
54805         New ACL tests.
54806         * tests/test-file-has-acl.sh: New file.
54807         * tests/test-file-has-acl.c: New file.
54808         * tests/test-set-mode-acl.sh: New file.
54809         * tests/test-set-mode-acl.c: New file.
54810         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54811         * tests/test-copy-acl.c: New file.
54812         * modules/acl-tests: New file, based on modules/copy-file-tests.
54813         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54814         (Depends-on): Add acl-tests.
54815         (configure.ac): Remove checks.
54816         (Makefile.am): Don't create test-sameacls program here any more.
54817
54818 2008-06-01  Bruno Haible  <bruno@clisp.org>
54819
54820         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54821         * tests/test-sameacls.c: Include progname.h.
54822         (main): Invoke set_program_name. Portability fixes for MacOS X,
54823         Solaris, HP-UX.
54824
54825 2008-06-01  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54828         function.
54829         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54830
54831 2008-06-01  Bruno Haible  <bruno@clisp.org>
54832
54833         * modules/rpmatch (Depends-on): Add strdup.
54834
54835 2008-06-01  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/pipe.c: Include unistd-safer.h.
54838         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54839         * modules/pipe (Depends-on): Add unistd-safer.
54840
54841 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54842
54843         * modules/autobuild (configure.ac): Call AB_INIT.
54844
54845 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54846
54847         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54848         Suggested by Bruno Haible <bruno@clisp.org>.
54849
54850 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54851
54852         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54853         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54854         <bruno@clisp.org>.
54855
54856 2008-05-29  Eric Blake  <ebb9@byu.net>
54857
54858         Prefer new POSIX 200x interfaces over futimesat.
54859         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54860         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54861         when available.
54862         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54863
54864 2008-05-28  Bruno Haible  <bruno@clisp.org>
54865
54866         * modules/stpcpy (License): Change to LGPLv2+.
54867         Requested by David Lutterkort <dlutter@redhat.com>.
54868
54869 2008-05-27  Bruno Haible  <bruno@clisp.org>
54870
54871         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54872         current mingw.
54873         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54874
54875 2008-05-27  Bruno Haible  <bruno@clisp.org>
54876
54877         * modules/iconv_open (Link): New section, from module 'iconv'.
54878         * modules/striconv (Link): Likewise.
54879         * modules/striconveh (Link): Likewise.
54880         * modules/xstriconv (Link): Likewise.
54881         * modules/unicodeio (Link): Likewise.
54882         * modules/propername (Link): Likewise.
54883         Reported by Jim Meyering.
54884
54885 2008-05-26  Jim Meyering  <meyering@redhat.com>
54886
54887         sha256: do not artificially restrict buffer length to be < 2^32
54888         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54889         uint32_t to size_t.
54890         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54891         to match.
54892
54893         avoid unaligned access errors, e.g., on sparc
54894         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54895         direct access through a possibly-unaligned uint64* pointer.
54896         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54897         direct access through a possibly-unaligned uint32* pointer.
54898         Prompted by this patch from Tom "spot" Callaway:
54899         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54900
54901         sha512.c: fix typo in comment
54902         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54903
54904 2008-05-25  Bruno Haible  <bruno@clisp.org>
54905
54906         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54907         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54908         (Makefile.am): Update lib_SOURCES.
54909
54910 2008-05-25  Bruno Haible  <bruno@clisp.org>
54911
54912         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54913
54914 2008-05-25  Jim Meyering  <meyering@redhat.com>
54915
54916         useless-if-before-free: freed expr may have white-space differences
54917         * build-aux/useless-if-before-free: Recognize cases in which the
54918         freed expression differs from the tested one in embedded white
54919         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54920         $1 was used, so we can't make any regexp shy.  Improved tests now
54921         detect this.
54922
54923         useless-if-before-free: accept white space in the expression.
54924         * build-aux/useless-if-before-free: For now, any white space
54925         in the expression must be identical in the free argument.
54926
54927         useless-if-before-free: efficiency tweak
54928         * build-aux/useless-if-before-free: Make the expression-matching
54929         regexp "shy".
54930         Make the *outer* regexp shy, not the expr-matching one.
54931
54932         update code-in-comment to accept cast of free arg
54933         * build-aux/useless-if-before-free: Update regexp.
54934
54935 2008-05-25  Bruno Haible  <bruno@clisp.org>
54936
54937         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54938         * modules/copy-file-tests (Files, Makefile.am): Update.
54939         * tests/test-copy-file.c (func_test_copy): Update.
54940
54941 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54942
54943         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54944
54945 2008-05-23  Bruno Haible  <bruno@clisp.org>
54946
54947         Improve support for ACLs on OSF/1.
54948         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54949         Remove fallback for unknown flavors of ACLs.
54950
54951 2008-05-22  Bruno Haible  <bruno@clisp.org>
54952
54953         Add support for ACLs on OSF/1.
54954         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54955         replacements.
54956         (acl_free_text): New macro fallback.
54957         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54958         acl_free.
54959         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54960         acl_free_text function. Require AC_C_INLINE.
54961
54962 2008-05-22  Bruno Haible  <bruno@clisp.org>
54963
54964         Make copy_acl work on MacOS X 10.5.
54965         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54966         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54967         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54968         If MODE_INSIDE_ACL, don't assume that every system has the same text
54969         representation for ACLs as FreeBSD.
54970         * lib/copy-acl.c (copy_acl): Add support for platforms with
54971         !MODE_INSIDE_ACL.
54972         * lib/file-has-acl.c (file_has_acl): Likewise.
54973         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54974         FreeBSD, MacOS X, or IRIX, respectively.
54975
54976 2008-05-22  Bruno Haible  <bruno@clisp.org>
54977
54978         * lib/acl.h: Don't include <sys/acl.h>.
54979         (GETACLCNT): Move fallback to lib/acl-internal.h.
54980         * lib/acl-internal.h: Include <sys/acl.h> here.
54981         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54982
54983 2008-05-22  Bruno Haible  <bruno@clisp.org>
54984
54985         Split off copy_acl function to separate file.
54986         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54987         * lib/acl.c (copy_acl): Moved function to separate file.
54988         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54989         * modules/acl (Files): Add lib/copy-acl.c.
54990         (Makefiles.am): Augment lib_SOURCES.
54991
54992 2008-05-22  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/copy-file-tests: New file.
54995         * tests/test-copy-file.sh: New file.
54996         * tests/test-copy-file.c: New file.
54997         * tests/test-copy-file-sameacls.c: New file.
54998
54999 2008-05-22  Eric Blake  <ebb9@byu.net>
55000
55001         Avoid gcc warning.
55002         * tests/test-memcmp.c (main): Pass NULL indirectly.
55003
55004 2008-05-21  Bruno Haible  <bruno@clisp.org>
55005
55006         Add reference doc about ACLs.
55007         * doc/acl-resources.txt: New file.
55008         * doc/acl-cygwin.txt: New file.
55009
55010 2008-05-21  Bruno Haible  <bruno@clisp.org>
55011
55012         Avoid one more warning from gcc.
55013         * lib/vasnprintf.c (IF_LINT): Update comments.
55014         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55015
55016 2008-05-21  Jim Meyering  <meyering@redhat.com>
55017
55018         avoid a warning from gcc
55019         * lib/vasnprintf.c (IF_LINT): Define.
55020         (scale10_round_decimal_long_double):
55021         Use it to avoid a "may be used uninitialized" warning.
55022         (scale10_round_decimal_double): Likewise.
55023
55024 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55025
55026         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55027         declared.
55028
55029 2008-05-20  Bruno Haible  <bruno@clisp.org>
55030
55031         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55032         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55033
55034 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55035
55036         * modules/memcmp-tests: New file.
55037         * tests/test-memcmp.c: New file.
55038
55039 2008-05-19  Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/propername (Notice, configure.ac): Put quoted "..." into
55042         --keyword option.
55043         * lib/propername.h: Update comments accordingly.
55044         Reported by Eric Blake.
55045
55046 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55047
55048         * modules/getpass-gnu (Depends-on): Add fseeko.
55049
55050 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55051
55052         * modules/base64-tests: New file.
55053
55054 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55055
55056         * lib/base64.c (base64_decode_ctx): If a decode context structure
55057         was passed in use it to ignore newlines.  If a context structure
55058         was _not_ passed in, continue to treat newlines as garbage (this
55059         is the historical behavior).  Formerly base64_decode.
55060         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55061         takes a decode context structure.
55062         * lib/base64.h (base64_decode): Macro for four-argument calls.
55063         (base64_decode_alloc): Likewise.
55064         * lib/base64.c (base64_decode_ctx): If a decode context structure
55065         was passed in use it to ignore newlines.  If a context structure
55066         was _not_ passed in, continue to treat newlines as garbage (this
55067         is the historical behavior).  Formerly base64_decode.
55068         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55069         takes a decode context structure.
55070         * lib/base64.h (base64_decode): Macro for four-argument calls.
55071         (base64_decode_alloc): Likewise.
55072
55073 2008-05-19  Jim Meyering  <meyering@redhat.com>
55074
55075         avoid a warning from gcc
55076         * lib/trim.c (IF_LINT): Define.
55077         (trim2): Use it to avoid a "may be used uninitialized" warning.
55078
55079         Fix doc typo.
55080         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55081
55082 2008-05-19  Bruno Haible  <bruno@clisp.org>
55083
55084         * doc/glibc-functions/getpass.texi: Document limits of other
55085         implementations.
55086
55087 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55088             Bruno Haible <bruno@clisp.org>
55089
55090         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55091
55092 2008-05-18  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/propername: New file, from GNU gettext.
55095         * lib/propername.h: New file, from GNU gettext.
55096         * lib/propername.c: New file, from GNU gettext.
55097         * MODULES.html.sh (Internationalization functions): Add propername.
55098
55099 2008-05-16  Jim Meyering  <meyering@redhat.com>
55100             Bruno Haible  <bruno@clisp.org>
55101
55102         Avoid some warnings from "gcc -Wshadow".
55103         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55104
55105 2008-05-15  Eric Blake  <ebb9@byu.net>
55106
55107         Extend previous patch to cygwin 1.7.0.
55108         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55109         fast implementation in cygwin >= 1.7.0.
55110         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55112
55113 2008-05-15  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55116         implementation in glibc >= 2.9.
55117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55119
55120 2008-05-15  Bruno Haible  <bruno@clisp.org>
55121
55122         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55123         (Unicode string functions): Add unilbrk/*.
55124         Reported by Karl Berry.
55125
55126 2008-05-15  Eric Blake  <ebb9@byu.net>
55127
55128         Fix violation of <stdbool.h> replacement in regex.
55129         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55130         * lib/regexec.c (re_search_internal): Likewise.
55131         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55132
55133 2008-05-15  Jim Meyering  <meyering@redhat.com>
55134
55135         avoid distracting test output when git or cvs is not found
55136         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55137         * tests/test-vc-list-files-git.sh: Likewise.
55138
55139 2008-05-15  Eric Blake  <ebb9@byu.net>
55140
55141         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55142         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55143         glibc version.
55144         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55145         * doc/posix-functions/strstr.texi (strstr): Likewise.
55146         * lib/str-two-way.h (MAX): Sychronize with glibc.
55147
55148 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55149
55150         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55151         opr.ctx_type.
55152         (calc_first): Initialize constraint field.
55153         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55154         Fix grammar.
55155         (duplicate_node): Merge constraint field for all node types.
55156         (calc_eclosure_iter): Look at constraint field for all node types.
55157         * lib/regex_internal.c (create_cd_newstate): Don't look at
55158         opr.ctx_type.
55159
55160 2008-05-14  Bruno Haible  <bruno@clisp.org>
55161
55162         Help GCC to do better code generation.
55163         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55164         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55165         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55166         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55167         Declare with attribute 'malloc' if supported.
55168
55169 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55170
55171         use "echo STR|wc -c" rather than unportable "expr length STR"
55172         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55173         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55174
55175 2008-05-14  Jim Meyering  <meyering@redhat.com>
55176
55177         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55178         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55179         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55180         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55181         via Collin Lasse.
55182
55183 2008-05-14  Eric Blake  <ebb9@byu.net>
55184
55185         Avoid quadratic growth in gl_LIBSOURCES.
55186         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55187         Suggested by Bruno Haible.
55188
55189         Test xmemdup0.
55190         * modules/xmemdup0-tests: New file.
55191         * tests/test-xmemdup0.c: Likewise.
55192
55193 2008-05-13  Eric Blake  <ebb9@byu.net>
55194
55195         Split xmemdup0 into its own module.
55196         * modules/xmemdup0: New file.
55197         * lib/xmemdup0.h: Likewise.
55198         * lib/xmemdup0.c: Likewise.
55199         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55200         * lib/xalloc.h (xmemdup0): Remove.
55201         * lib/xmalloc.c (xmemdup0): Likewise.
55202
55203 2008-05-13  Eric Blake  <ebb9@byu.net>
55204             Bruno Haible  <bruno@clisp.org>
55205
55206         Reduce number of forks required during autoconf.
55207         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55208         and gl_LIBSOURCES_DIR.
55209         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55210         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55211         m4_syscmd per file.
55212         <m4_foreach_w>: Move...
55213         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55214
55215 2008-05-13  Eric Blake  <ebb9@byu.net>
55216
55217         * gnulib-tool: Fix various comment typos.
55218
55219 2008-05-12  Bruno Haible  <bruno@clisp.org>
55220
55221         Tailor the linebreaking algorithm.
55222         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55223
55224 2008-05-12  Bruno Haible  <bruno@clisp.org>
55225
55226         Update to Unicode 5.0.0.
55227         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55228         LBP_JV, LBP_JT. Redistribute values.
55229         (unilbrk_table): Change size.
55230         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55231         Unicode TR#14 rev. 22.
55232         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55233         LBP_JV, LBP_JT. Redistribute values.
55234         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55235         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55236         Update.
55237         * lib/unilbrk/lbrkprop1.h: Regenerated.
55238         * lib/unilbrk/lbrkprop2.h: Regenerated.
55239         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55240         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55241         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55242         Likewise.
55243         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55244         Likewise.
55245         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55246         result.
55247         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55248         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55249         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55250         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55251         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55252         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55253
55254 2008-05-11  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55257
55258 2008-05-11  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55261         * modules/unilbrk/gen-lbrk: New file.
55262
55263 2008-05-11  Bruno Haible  <bruno@clisp.org>
55264
55265         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55266         * m4/sha512.m4 (gl_SHA512): Likewise.
55267
55268 2008-05-11  Jim Meyering  <meyering@redhat.com>
55269
55270         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55271         * modules/crypto/sha256: New file.
55272         * modules/crypto/sha512: Likewise.
55273         * lib/sha256.c: Likewise.
55274         * lib/sha256.h: Likewise.
55275         * lib/sha512.c: Likewise.
55276         * lib/sha512.h: Likewise.
55277         * lib/u64.h: Likewise.
55278         * m4/sha256.m4: Likewise.
55279         * m4/sha512.m4: Likewise.
55280         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55281
55282 2008-05-10  Bruno Haible  <bruno@clisp.org>
55283
55284         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55285         (Input/Output <stdio.h>): Add xprintf.
55286         (Signal handling <signal.h>): Add strsignal.
55287         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55288         (Core language properties): Add func.
55289         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55290         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55291         strings.
55292         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55293         (Input/output): New section.
55294         (File system functions): Add openat-die, stat-macros.
55295         (Networking functions): Add sockets.
55296         (Unicode string functions): Add unictype/*.
55297         (Support for building libraries and executables): Add gperf.
55298         (Support for building documentation): Add agpl-3.0.
55299         (Misc): Add nocrash.
55300
55301 2008-05-10  Bruno Haible  <bruno@clisp.org>
55302
55303         * modules/unictype/gen-ctype: New file.
55304
55305 2008-05-10  Jim Meyering  <meyering@redhat.com>
55306
55307         Make chdir-safer.c more efficient on a system with no symlinks.
55308         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55309         also if ELOOP is zero.  Suggested by Bruno Haible.
55310
55311         Make chdir-safer.c slightly safer.
55312         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55313         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55314
55315         Avoid compile failure on systems without ELOOP (like mingw).
55316         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55317         Reported by Bruno Haible.
55318
55319 2008-05-10  Bruno Haible  <bruno@clisp.org>
55320
55321         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55322         (is_utf8_encoding): Use a case-insensitive comparison.
55323         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55324         streq.
55325
55326 2008-05-10  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55329         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55330         * lib/unilbrk/ulc-common.h (iconv_string_length,
55331         iconv_string_keeping_offsets): Remove declarations.
55332         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55333         Don't include <iconv.h>, streq.h, xsize.h.
55334         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55335         conversion.
55336         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55337         <iconv.h>, streq.h, xsize.h.
55338         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55339         conversion.
55340         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55341         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55342         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55343         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55344
55345 2008-05-10  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55348         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55349
55350         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55351         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55352
55353         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55354         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55355
55356         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55357         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55358
55359         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55360         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55361
55362         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55363         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55364
55365         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55366         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55367
55368         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55369         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55370
55371 2008-05-10  Bruno Haible  <bruno@clisp.org>
55372
55373         Split up 'linebreak' module.
55374         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55375         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55376         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55377         modifications.
55378         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55379         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55380         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55381         lib/linebreak.c.
55382         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55383         lib/linebreak.c.
55384         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55385         lib/linebreak.c.
55386         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55387         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55388         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55389         lib/linebreak.c.
55390         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55391         lib/linebreak.c.
55392         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55393         lib/linebreak.c.
55394         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55395         lib/linebreak.c.
55396         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55397         lib/linebreak.c.
55398         * modules/unilbrk/base: New file.
55399         * modules/unilbrk/tables: New file.
55400         * modules/unilbrk/u8-possible-linebreaks: New file.
55401         * modules/unilbrk/u16-possible-linebreaks: New file.
55402         * modules/unilbrk/u32-possible-linebreaks: New file.
55403         * modules/unilbrk/ulc-common: New file.
55404         * modules/unilbrk/ulc-possible-linebreaks: New file.
55405         * modules/unilbrk/u8-width-linebreaks: New file.
55406         * modules/unilbrk/u16-width-linebreaks: New file.
55407         * modules/unilbrk/u32-width-linebreaks: New file.
55408         * modules/unilbrk/ulc-width-linebreaks: New file.
55409         * lib/linebreak.h: Remove file.
55410         * lib/linebreak.c: Remove file.
55411         * m4/linebreak.m4: Remove file.
55412         * modules/linebreak: Remove file.
55413         * NEWS: Mention the changes.
55414
55415 2008-05-09  Eric Blake  <ebb9@byu.net>
55416
55417         Add xmemdup0.
55418         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55419         implementation.
55420         * lib/xmalloc.c (xmemdup0): New C implementation.
55421
55422 2008-05-08  Bruno Haible  <bruno@clisp.org>
55423
55424         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55425
55426 2008-05-07  Eric Blake  <ebb9@byu.net>
55427
55428         Support cross-compilation of <wctype.h>.
55429         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55430         AC_CACHE_CHECK.
55431
55432 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55433
55434         * build-aux/vc-list-files: Add support for bzr.
55435
55436 2008-05-03  Jim Meyering  <meyering@redhat.com>
55437
55438         avoid failed assertion with tight malloc
55439         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55440
55441 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55442
55443         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55444         are needed from arpa/inet.h.
55445         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55446         Reported by Bruno Haible.
55447
55448 2008-05-02  Jim Meyering  <meyering@redhat.com>
55449
55450         avoid compilation error on FreeBSD 6
55451         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55452
55453 2008-05-01  Jim Meyering  <meyering@redhat.com>
55454
55455         useless-if-before-free: correct --help's exit status description
55456         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55457         for one or more matches, etc.  Reported by Bruno Haible.
55458
55459         vc-list-files: make the stand-alone gnulib test work
55460         * modules/vc-list-files-tests (configure.ac):
55461         Define and AC_SUBST abs_aux_dir.
55462         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55463         $(abs_top_srcdir) to each script and having each of them
55464         duplicate the work of setting PATH, set PATH here, using
55465         the new variable, abs_aux_dir instead.
55466         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55467         * tests/test-vc-list-files-git.sh: Likewise.
55468         Reported by Bruno Haible.
55469
55470 2008-05-01  Bruno Haible  <bruno@clisp.org>
55471
55472         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55473         reallocation. Rename 'done' to 'found_delimiter'.
55474
55475 2008-05-01  Jim Meyering  <meyering@redhat.com>
55476
55477         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55478         * build-aux/vc-list-files: Use `...`, not $(...).
55479
55480 2008-04-30  Jim Meyering  <meyering@redhat.com>
55481
55482         add tests for vc-list-files
55483         * modules/vc-list-files-tests: New module.
55484         * tests/test-vc-list-files-cvs.sh: New file.
55485         * tests/test-vc-list-files-git.sh: New file.
55486
55487         avoid a warning from gcc
55488         * lib/getndelim2.c (IF_LINT): Define.
55489         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55490
55491         vc-list-files: work properly with build-aux/cvsu, too
55492         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55493         to all cvs-based clauses.
55494
55495         vc-list-files: work properly in the CVS+awk case, too
55496         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55497
55498         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55499         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55500         take more than one file argument, so .  Add quotes, just in case $dir
55501         ever contains a shell meta-character.  Prompted by Soren Hansen in
55502         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55503
55504 2008-04-29  Eric Blake  <ebb9@byu.net>
55505
55506         Optimize getndelim2 to use block operations when possible.
55507         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55508         freadseek, and memchr2.
55509         * lib/getndelim2.c (getndelim2): Use them for block reads.
55510
55511 2008-04-29  Bruno Haible  <bruno@clisp.org>
55512
55513         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55514         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55515         * modules/inet_ntop (Depends-on): Add extensions.
55516         * modules/inet_pton (Depends-on): Likewise.
55517         Reported by Simon Josefsson.
55518
55519 2008-04-29  Jim Meyering  <meyering@redhat.com>
55520
55521         When the is more than one match in a block, match all of them.
55522         * build-aux/useless-if-before-free: Iterate through each block
55523         until there are no more matches.
55524
55525         Fix broken useless-if-before-free script.
55526         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55527         the expression to match cast of argument to free-like function.
55528
55529 2008-04-29  Eric Blake  <ebb9@byu.net>
55530
55531         Use new header.
55532         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55533
55534 2008-04-29  Jim Meyering  <meyering@redhat.com>
55535
55536         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55537         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55538         by gnulib to exist and to declare e.g., inet_ntop.
55539         Don't include "inet_ntop.h", now removed.
55540
55541         * m4/arpa_inet_h.m4: Remove trailing blanks.
55542
55543 2008-04-29  Eric Blake  <ebb9@byu.net>
55544
55545         Silence valgrind on safe reads beyond potential array bounds.
55546         * lib/rawmemchr.valgrind: New file.
55547         * lib/strchrnul.valgrind: Likewise.
55548         * modules/rawmemchr (Files): Distribute new file.
55549         * modules/strchrnul (Files): Likewise.
55550         Suggested by Bruno Haible.
55551
55552 2008-04-29  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55555         (inet_ntop, inet_pton): Change portability warning's wording.
55556         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55557         Invoke gl_CHECK_NEXT_HEADERS.
55558         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55559         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55560         set ARPA_INET_H.
55561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55562         * modules/arpa_inet (Description): No longer only for systems that
55563         lack it.
55564         (Depends-on): Add include_next.
55565         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55566         HAVE_ARPA_INET_H.
55567
55568 2008-04-29  Jim Meyering  <meyering@redhat.com>
55569
55570         * modules/mkdir (License): Re-license as LGPLv2+.
55571
55572 2008-04-29  Bruno Haible  <bruno@clisp.org>
55573
55574         * modules/rawmemchr (Maintainer): Set to Eric.
55575         * modules/strchrnul (Maintainer): Likewise.
55576
55577 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55578
55579         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55580         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55581
55582         * modules/arpa_inet (arpa/inet.h): Use them.
55583
55584 2008-04-28  Eric Blake  <ebb9@byu.net>
55585
55586         Test getndelim2.
55587         * modules/getndelim2-tests: New file.
55588         * tests/test-getndelim2.c: Likewise.
55589         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55590         stream.
55591         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55592
55593         * MODULES.html.sh: Document new module.
55594
55595 2008-04-20  Bruno Haible  <bruno@clisp.org>
55596
55597         * lib/c-stack.c (die): Use raise.
55598         * modules/c-stack (Depends-on): Add raise.
55599
55600 2008-04-28  Bruno Haible  <bruno@clisp.org>
55601
55602         Expect rpmatch to be declared.
55603         * lib/yesno.c (rpmatch): Remove declaration.
55604
55605         Declare rpmatch.
55606         * lib/stdlib.in.h (rpmatch): New declaration.
55607         * lib/rpmatch.c: Include <stdlib.h> first.
55608         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55609         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55611         HAVE_RPMATCH.
55612         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55614         (Include): Set to <stdlib.h>.
55615         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55616         HAVE_RPMATCH.
55617         * NEWS: Document the change.
55618
55619 2008-04-28  Bruno Haible  <bruno@clisp.org>
55620
55621         Change rpmatch to use nl_langinfo when appropriate.
55622         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55623         (N_): New macro.
55624         (localized_pattern): New function/macro.
55625         (try): Remove match, nomatch arguments. Copy the pattern into safe
55626         memory before caching it.
55627         (rpmatch): Use localized_pattern. Add translator comments.
55628         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55629         Suggested by Eric Blake.
55630         * modules/rpmatch (Depends-on): Add stdbool.
55631
55632 2008-04-28  Eric Blake  <ebb9@byu.net>
55633
55634         Add rawmemchr module, matching glibc.
55635         * modules/string (Makefile.am): New indicator.
55636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55637         * lib/string.in.h (rawmemchr): Declare when appropriate.
55638         * modules/rawmemchr: New file.
55639         * m4/rawmemchr.m4: Likewise.
55640         * lib/rawmemchr.c: Likewise.
55641         * modules/rawmemchr-tests: Likewise.
55642         * tests/test-rawmemchr.c: Likewise.
55643         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55644         module.
55645         * modules/strchrnul (Depends-on): Add rawmemchr.
55646         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55647
55648         Whitespace cleanup.
55649         * tests/test-strchrnul.c: Reindent.
55650         * lib/strchrnul.c: Likewise.
55651
55652         Optimize and test strchrnul.
55653         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55654         * modules/strchrnul-tests: New file.
55655         * tests/test-strchrnul.c: Likewise.
55656
55657         Remove intprops dependency.
55658         * modules/memchr (Depends-on): Remove intprops.
55659         * modules/memrchr (Depends-on): Likewise.
55660         * modules/memchr2 (Depends-on): Likewise.
55661         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55662         * lib/memrchr.c (__memrchr): Likewise.
55663         * lib/memrchr2.c (memchr2): Likewise.
55664         Reported by Simon Josefsson.
55665
55666 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55667
55668         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55669         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55670
55671 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55672
55673         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55674
55675         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55676
55677         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55678
55679         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55680         declarations.
55681         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55682
55683         * m4/inet_pton.m4: Don't check for header files.
55684
55685         * m4/inet_ntop.m4: Don't check for header files.
55686
55687 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55688
55689         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55690         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55691         trigger for cygwin).
55692         Reported by Bruno Haible  <bruno@clisp.org>.
55693
55694 2008-04-28  Bruno Haible  <bruno@clisp.org>
55695
55696         * doc/posix-functions/strdup.texi: Mention mingw problem.
55697
55698 2008-04-27  Bruno Haible  <bruno@clisp.org>
55699
55700         * modules/stat-time-tests (Depends-on): Add sleep.
55701         * tests/test-stat-time.c (force_unlink): New function.
55702         (cleanup): Use it.
55703         (test_mtime): Remove the ctime related tests.
55704         (test_ctime): New function, containing the ctime related tests.
55705         (main): Call test_ctime, except on native Windows platforms.
55706
55707 2008-04-27  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/rpmatch.c (rpmatch): Add some comments.
55710         Reported by James Youngman <jay@gnu.org>.
55711
55712 2008-04-27  Bruno Haible  <bruno@clisp.org>
55713
55714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55715         quiet NaNs.
55716
55717 2008-04-27  Bruno Haible  <bruno@clisp.org>
55718
55719         Make test-yesno.sh work on mingw.
55720         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55721         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55722         (main): Set stdin to binary mode.
55723         * modules/yesno-tests (Depends-on): Add binary-io.
55724
55725 2008-04-27  Bruno Haible  <bruno@clisp.org>
55726
55727         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55728         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55729         argument that lie outside the IEEE 854 domain.
55730         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55731         (gl_ISFINITE): Use it.
55732         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55733
55734 2008-04-27  Bruno Haible  <bruno@clisp.org>
55735
55736         Allow local renaming in config.h.
55737         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55738
55739 2008-04-27  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/memchr.c (__memchr): Change type of 'i'.
55742         * lib/memchr2.c (memchr2): Likewise.
55743
55744 2008-04-26  Eric Blake  <ebb9@byu.net>
55745         and Bruno Haible  <bruno@clisp.org>
55746
55747         Optimize and test memrchr.
55748         * modules/memrchr (Depends-on): Add intprops.
55749         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55750         * modules/memrchr-tests: New file.
55751         * tests/test-memrchr.c: New file.
55752
55753 2008-04-26  Bruno Haible  <bruno@clisp.org>
55754
55755         Add tentative support for DragonFly BSD.
55756         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55757         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55758         fp.
55759         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55760         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55761         * lib/fpurge.c (fpurge): Likewise.
55762         * lib/freadable.c (freaadable): Likewise.
55763         * lib/freadahead.c (freadahead): Likewise.
55764         * lib/freading.c (freading): Likewise.
55765         * lib/freadptr.c (freadptr): Likewise.
55766         * lib/freadseek.c (freadptrinc): Likewise.
55767         * lib/fseeko.c (fseeko): Likewise.
55768         * lib/fseterr.c (fseterr): Likewise.
55769         * lib/fwritable.c (fwritable): Likewise.
55770         * lib/fwriting.c (fwriting): Likewise.
55771
55772 2008-04-26  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/stdio-impl.h: New file.
55775         * lib/fbufmode.c: Include stdio-impl.h.
55776         (fbufmode): Use fp_, remove redundant #defines.
55777         * lib/fflush.c: Include stdio-impl.h.
55778         (clear_ungetc_buffer): Remove redundant #defines.
55779         * lib/fpurge.c: Include stdio-impl.h.
55780         (fpurge): Remove redundant #defines.
55781         * lib/freadable.c: Include stdio-impl.h.
55782         (freadable): Remove redundant #defines.
55783         * lib/freadahead.c: Include stdio-impl.h.
55784         (freadahead): Remove redundant #defines.
55785         * lib/freading.c: Include stdio-impl.h.
55786         (freading): Remove redundant #defines.
55787         * lib/freadptr.c: Include stdio-impl.h.
55788         (freadptr): Remove redundant #defines.
55789         * lib/freadseek.c: Include stdio-impl.h.
55790         (freadptrinc): Remove redundant #defines.
55791         * lib/fseeko.c: Include stdio-impl.h.
55792         (rpl_fseeko): Remove redundant #defines.
55793         * lib/fseterr.c: Include stdio-impl.h.
55794         (fseterr): Remove redundant #defines.
55795         * lib/fwritable.c: Include stdio-impl.h.
55796         (fwritable: Remove redundant #defines.
55797         * lib/fwriting.c: Include stdio-impl.h.
55798         (fwriting): Remove redundant #defines.
55799         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55800         * modules/fflush (Files): Likewise.
55801         * modules/fpurge (Files): Likewise.
55802         * modules/freadable (Files): Likewise.
55803         * modules/freadahead (Files): Likewise.
55804         * modules/freading (Files): Likewise.
55805         * modules/freadptr (Files): Likewise.
55806         * modules/freadseek (Files): Likewise.
55807         * modules/fseeko (Files): Likewise.
55808         * modules/fseterr (Files): Likewise.
55809         * modules/fwritable (Files): Likewise.
55810         * modules/fwriting (Files): Likewise.
55811
55812 2008-04-26  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55815         restore_seek_optimization, update_fpos_cache): New functions, extracted
55816         from rpl_fflush.
55817         (rpl_fflush): Use them.
55818         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55819         (gl_REPLACE_FFLUSH): Use it.
55820
55821 2008-04-26  Bruno Haible  <bruno@clisp.org>
55822
55823         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55824         on Solaris.
55825         * tests/test-xstrtoimax.sh: Likewise.
55826         * tests/test-xstrtoumax.sh: Likewise.
55827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55828
55829 2008-04-26  Bruno Haible  <bruno@clisp.org>
55830
55831         * modules/memchr-tests: New file.
55832         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55833
55834 2008-04-26  Eric Blake  <ebb9@byu.net>
55835             Bruno Haible  <bruno@clisp.org>
55836
55837         * lib/memchr.c: Include intprops.h.
55838         (__memchr): Optimize parallel detection of matching bytes. Rename local
55839         variables. Add explanatory comments.
55840
55841 2008-04-26  Bruno Haible  <bruno@clisp.org>
55842
55843         Fix module 'memchr', broken since 2000-10-28.
55844         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55845
55846 2008-04-26  Bruno Haible  <bruno@clisp.org>
55847
55848         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55849         comments.
55850
55851 2008-04-25  Eric Blake  <ebb9@byu.net>
55852
55853         Use native fstatat on cygwin 1.7.0.
55854         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55855         first.
55856
55857 2008-04-23  Eric Blake  <ebb9@byu.net>
55858
55859         Improve memchr2 performance.
55860         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55861         NUL bytes.
55862         * modules/memchr2 (Depends-on): Use intprops.h.
55863
55864 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55865
55866         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55867         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55868         <blp@cs.stanford.edu>.
55869
55870 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55871
55872         * lib/arpa_inet.in.h: New file.
55873
55874         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55875         (Makefile.am): Sed in substitute header file.
55876
55877         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55878         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55879
55880         * modules/inet_ntop (configure.ac): Use
55881         gl_ARPA_INET_MODULE_INDICATOR.
55882
55883         * modules/inet_pton (configure.ac): Use
55884         gl_ARPA_INET_MODULE_INDICATOR.
55885
55886 2008-04-22  Jim Meyering  <meyering@redhat.com>
55887
55888         * modules/verify (License): Re-license as LGPLv2+.
55889
55890 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55891
55892         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55893         parameter to void* as per POSIX standard (MinGW uses char*).
55894
55895 2008-04-21  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55898         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55899         Define to replacements if REPLACE_ISWCNTRL is 1.
55900         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55901         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55902         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55903         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55904         what it fixes.
55905         * doc/posix-functions/iswalpha.texi: Likewise.
55906         * doc/posix-functions/iswblank.texi: Likewise.
55907         * doc/posix-functions/iswcntrl.texi: Likewise.
55908         * doc/posix-functions/iswdigit.texi: Likewise.
55909         * doc/posix-functions/iswgraph.texi: Likewise.
55910         * doc/posix-functions/iswlower.texi: Likewise.
55911         * doc/posix-functions/iswprint.texi: Likewise.
55912         * doc/posix-functions/iswpunct.texi: Likewise.
55913         * doc/posix-functions/iswspace.texi: Likewise.
55914         * doc/posix-functions/iswupper.texi: Likewise.
55915         * doc/posix-functions/iswxdigit.texi: Likewise.
55916         Reported by Alain Guibert.
55917
55918 2008-04-21  Bruno Haible  <bruno@clisp.org>
55919
55920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55921         Patch by Alain Guibert.
55922
55923 2008-04-21  Bruno Haible  <bruno@clisp.org>
55924
55925         Fix test failures on mingw.
55926         * tests/test-xstrtol.c (print_no_progname): New function.
55927         (main): Install it in error_print_progname hook.
55928         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55929         * tests/test-xstrtoimax.sh: Likewise.
55930         * tests/test-xstrtoumax.sh: Likewise.
55931
55932 2008-04-21  Bruno Haible  <bruno@clisp.org>
55933
55934         Fix test failure on mingw.
55935         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55936
55937 2008-04-21  Bruno Haible  <bruno@clisp.org>
55938
55939         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55940         Actually assign a value.
55941
55942 2008-04-20  Bruno Haible  <bruno@clisp.org>
55943
55944         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55945         take 2.
55946         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55947         'canonicalize-lgpl' module is also used.
55948         * lib/canonicalize-lgpl.c: Undo last change.
55949         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55950
55951 2008-04-20  Bruno Haible  <bruno@clisp.org>
55952
55953         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55954         config.h. Provide _mkdir based fallback for mingw.
55955         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55956         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55957         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55958         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55959         rather than defining mkdir in config.h.
55960         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55961         (gl_SYS_STAT_H_DEFAULTS): New macro.
55962         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55963         HAVE_IO_H any more.
55964         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55965         HAVE_DECL_MKDIR and HAVE_IO_H.
55966
55967 2008-04-20  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/isapipe.c: Port to native Windows platforms.
55970
55971 2008-04-20  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55974
55975 2008-04-21  Eric Blake  <ebb9@byu.net>
55976
55977         Work around preprocessors that don't handle UINTMAX_MAX.
55978         * lib/memchr2.c (memchr2): Avoid embedded #if.
55979         Reported by Alain Guibert, fix suggested by Bruno Haible.
55980
55981 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55982
55983         * doc/posix-functions/strftime.texi (strftime): Explain better
55984         Windows incompatibility.  Suggested by Micah Cowan
55985         <micah@cowan.name>.
55986
55987 2008-04-20  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55990         unistr/u8-mblen.
55991
55992 2008-04-20  Bruno Haible  <bruno@clisp.org>
55993
55994         Fix test failure on platforms with non-GNU iconv.
55995         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55996         (U_TO_U8): Use it, rather than u16_to_u8.
55997         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55998         units at the end of the input string.
55999         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56000
56001 2008-04-20  Bruno Haible  <bruno@clisp.org>
56002
56003         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56004         when the resulting length is 0.
56005         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56006
56007 2008-04-20  Bruno Haible  <bruno@clisp.org>
56008
56009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56010         works.
56011         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56012
56013 2008-04-20  Bruno Haible  <bruno@clisp.org>
56014
56015         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56016         * modules/tsearch-tests (configure.ac): Test for initstate function.
56017
56018 2008-04-20  Bruno Haible  <bruno@clisp.org>
56019
56020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56021         for nlink_t if missing.
56022         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56023
56024 2008-04-19  Bruno Haible  <bruno@clisp.org>
56025
56026         Work around snprintf bug on Linux libc5.
56027         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56029         gl_SNPRINTF_SIZE1.
56030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56031         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56032         that test failed.
56033         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56034         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56035         * modules/snprintf (Files): Add m4/printf.m4.
56036         * modules/vsnprintf (Files): Likewise.
56037         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56038         * doc/posix-functions/vsnprintf.texi: Likewise.
56039
56040 2008-04-19  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56043         from 0.0058 to less than 10^-7.
56044
56045 2008-04-19  Bruno Haible  <bruno@clisp.org>
56046
56047         Fix rounding when a precision is given.
56048         * lib/vasnprintf.c (is_borderline): New function.
56049         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56050         9...9x.
56051         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56052         %e, %g.
56053         * tests/test-vasprintf-posix.c (test_function): Likewise.
56054         * tests/test-snprintf-posix.h (test_function): Likewise.
56055         * tests/test-sprintf-posix.h (test_function): Likewise.
56056         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56057         * tests/test-printf-posix.h (test_function): Likewise.
56058         * tests/test-printf-posix.output: Update.
56059         Reported by John Darrington <john@darrington.wattle.id.au> via
56060         Ben Pfaff <blp@cs.stanford.edu>.
56061
56062 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56063
56064         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56065         Suggested by Bruno Haible <bruno@clisp.org>.
56066
56067 2008-04-17  Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56070         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56071         implementation.
56072         Patch by Bruce Merry <bmerry@gmail.com>.
56073
56074 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56075
56076         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56077         doesn't work under Windows.
56078
56079 2008-04-16  Bruno Haible  <bruno@clisp.org>
56080
56081         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56082         New macros.
56083         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56084         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56085         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56086         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56087         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56088         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56089         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56090         macros.
56091         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56092         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56093         Northern Sotho, Uighur.
56094
56095 2008-04-16  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56098         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56099         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56100         Reported by Daniel Bergström <daniel@octocode.com>.
56101
56102 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56103             Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56106         function.
56107         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56108         New functions, mostly extracted from gl_locale_name_default.
56109         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56110
56111 2008-04-16  Eric Blake  <ebb9@byu.net>
56112
56113         Adjust strtod detection to catch glibc 2.7 bug.
56114         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56115         Reported by John Gatewood Ham.
56116
56117 2008-04-16  Bruno Haible  <bruno@clisp.org>
56118
56119         Add tentative support for Linux libc5.
56120         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56121         * lib/fpurge.c (fpurge): Likewise.
56122         * lib/freadable.c (freadable): Likewise.
56123         * lib/freadahead.c (freadahead): Likewise.
56124         * lib/freading.c (freading): Likewise.
56125         * lib/freadptr.c (freadptr): Likewise.
56126         * lib/freadseek.c (freadptrinc): Likewise.
56127         * lib/fseeko.c (rpl_fseeko): Likewise.
56128         * lib/fseterr.c (fseterr): Likewise.
56129         * lib/fwritable.c (fwritable): Likewise.
56130         * lib/fwriting.c (fwriting): Likewise.
56131         Reported by Alain Guibert <alguibert+bts@free.fr>.
56132
56133 2008-04-15  Bruno Haible  <bruno@clisp.org>
56134
56135         * modules/mathl (configure.ac): Define module indicator.
56136
56137 2008-04-15  Bruno Haible  <bruno@clisp.org>
56138
56139         * lib/logl.c (logl): Remove unused variables.
56140
56141 2008-04-15  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56144         fails.
56145
56146 2008-04-15  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/trim.c (trim2): Fix argument of isspace() macro.
56149
56150 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56151
56152         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56153         to 0.
56154         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56155
56156 2008-04-14  Bruno Haible  <bruno@clisp.org>
56157
56158         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56159         AC_LANG_PROGRAM argument.
56160         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56161         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56163         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56164         * m4/math_h.m4 (gl_MATH_H): Likewise.
56165         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56169         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56170         * m4/regex.m4 (gl_REGEX): Likewise.
56171         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56175         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56176         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56179
56180 2008-04-14  Jim Meyering  <meyering@redhat.com>
56181
56182         test-strtod: fix typos: s/abs/fabs/
56183         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56184
56185 2008-04-13  Bruno Haible  <bruno@clisp.org>
56186
56187         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56188         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56189         module is also used and while not building the reloc-wrapper.
56190
56191 2008-04-13  Bruno Haible  <bruno@clisp.org>
56192
56193         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56194
56195 2008-04-13  Bruno Haible  <bruno@clisp.org>
56196
56197         Fix AIX compilation failure introduced on 2008-04-02.
56198         * tests/test-frexp.c (exp): Undefine before redefining.
56199         * tests/test-frexpl.c (exp): Likewise.
56200
56201 2008-04-13  Bruno Haible  <bruno@clisp.org>
56202
56203         Work around a HP-UX stdio bug.
56204         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56205         * tests/test-ftello.c (main): Likewise.
56206         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56207         * doc/posix-functions/ftello.texi: Likewise.
56208
56209 2008-04-13  Bruno Haible  <bruno@clisp.org>
56210
56211         Make test-signbit pass on HP-UX/hppa.
56212         * tests/test-signbit.c (minus_zerol): New variable.
56213         (test_signbitl): Use it.
56214
56215 2008-04-13  Bruno Haible  <bruno@clisp.org>
56216
56217         Make truncl work on OSF/1 4.0.
56218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56219         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56220         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56222         HAVE_DECL_TRUNCL.
56223         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56224         HAVE_DECL_TRUNCL.
56225         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56226
56227 2008-04-13  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56230
56231 2008-04-13  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56234         expression, so as to avoid HP-UX 11 cc compiler bug.
56235
56236 2008-04-13  Bruno Haible  <bruno@clisp.org>
56237
56238         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56239
56240 2008-04-13  Bruno Haible  <bruno@clisp.org>
56241
56242         * lib/git-merge-changelog.c: Remove empty declaration outside of
56243         functions.
56244
56245 2008-04-13  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56248
56249 2008-04-13  Bruno Haible  <bruno@clisp.org>
56250
56251         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56252         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56254         also if it exists but lacks definitions of the SHUT_* macros.
56255         * modules/sys_socket (Description): Update.
56256         Reported by Elbert Pol <e.pol@chello.nl>.
56257
56258 2008-04-13  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/localcharset.c (OS2): Don't redefine if already defined.
56261         Reported by Elbert Pol <e.pol@chello.nl>.
56262
56263 2008-04-13  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/binary-io.h [__EMX__]: Include <io.h>.
56266         Reported by Elbert Pol <e.pol@chello.nl>.
56267
56268 2008-04-12  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/fpucw.h: Enable the definitions also for x86_64.
56271         Needed for NetBSD/x86_64.
56272         Reported by Thomas Klausner <tk@giga.or.at>.
56273
56274 2008-04-12  Bruno Haible  <bruno@clisp.org>
56275
56276         * tests/test-strtod.c: Include isnand.h.
56277         (main): Use isnand instead of isnan.
56278         Reported by Jim Meyering.
56279
56280 2008-04-12  Bruno Haible  <bruno@clisp.org>
56281
56282         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56283         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56284
56285 2008-04-12  Jim Meyering  <meyering@redhat.com>
56286
56287         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56288
56289 2008-04-12  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56292         Reported by Elbert Pol <e.pol@chello.nl>.
56293
56294 2008-04-12  Eric Blake  <ebb9@byu.net>
56295
56296         Work around Solaris 10 math.h bug.
56297         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56298         (gl_MATH_H_DEFAULTS): Set up default.
56299         * modules/math (Makefile.am): Replace new indicators.
56300         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56301         * tests/test-math.c (main): Test this.
56302         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56303         * doc/posix-headers/math.texi (math.h): Mention bug.
56304         Reported by Nelson H. F. Beebe and Jim Meyering.
56305
56306 2008-04-11  Bruno Haible  <bruno@clisp.org>
56307
56308         Adapt to future versions of Apple GCC.
56309         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56310         Reported by Peter O'Gorman <peter@pogma.com>.
56311
56312 2008-04-11  Bruno Haible  <bruno@clisp.org>
56313
56314         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56315
56316 2008-04-11  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56319
56320         * modules/getaddrinfo-tests (Makefile.am): Define
56321         test_getaddrinfo_LDADD.
56322
56323 2008-04-11  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56326         (init): Fix syntax error.
56327         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56328         is declared.
56329
56330 2008-04-11  Bruno Haible  <bruno@clisp.org>
56331
56332         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56333         * modules/glob (Depends-on): Add stdbool.
56334
56335 2008-04-11  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/trim.c: Include <string.h>.
56338
56339 2008-04-11  Eric Blake  <ebb9@byu.net>
56340
56341         Avoid compile failure on OS/2.
56342         * lib/regex_internal.h (internal_function): Disable optimization
56343         on OS/2 (__EMX__), where it caused compiler error.
56344         Reported by Elbert Pol.
56345
56346 2008-04-11  Bruno Haible  <bruno@clisp.org>
56347
56348         Flush the standard error stream before aborting. Needed on mingw.
56349         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56350         * tests/test-array_list.c (ASSERT): Likewise.
56351         * tests/test-array_oset.c (ASSERT): Likewise.
56352         * tests/test-avltree_list.c (ASSERT): Likewise.
56353         * tests/test-avltree_oset.c (ASSERT): Likewise.
56354         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56355         * tests/test-binary-io.c (ASSERT): Likewise.
56356         * tests/test-byteswap.c (ASSERT): Likewise.
56357         * tests/test-c-ctype.c (ASSERT): Likewise.
56358         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56359         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56360         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56361         * tests/test-c-strstr.c (ASSERT): Likewise.
56362         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56363         * tests/test-canonicalize.c (ASSERT): Likewise.
56364         * tests/test-carray_list.c (ASSERT): Likewise.
56365         * tests/test-ceilf1.c (ASSERT): Likewise.
56366         * tests/test-ceilf2.c (ASSERT): Likewise.
56367         * tests/test-ceill.c (ASSERT): Likewise.
56368         * tests/test-count-one-bits.c (ASSERT): Likewise.
56369         * tests/test-fbufmode.c (ASSERT): Likewise.
56370         * tests/test-fflush2.c (ASSERT): Likewise.
56371         * tests/test-floorf1.c (ASSERT): Likewise.
56372         * tests/test-floorf2.c (ASSERT): Likewise.
56373         * tests/test-floorl.c (ASSERT): Likewise.
56374         * tests/test-fopen.c (ASSERT): Likewise.
56375         * tests/test-fpending.c (ASSERT): Likewise.
56376         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56377         * tests/test-fpurge.c (ASSERT): Likewise.
56378         * tests/test-freadable.c (ASSERT): Likewise.
56379         * tests/test-freadahead.c (ASSERT): Likewise.
56380         * tests/test-freading.c (ASSERT): Likewise.
56381         * tests/test-freadptr.c (ASSERT): Likewise.
56382         * tests/test-freadptr2.c (ASSERT): Likewise.
56383         * tests/test-freadseek.c (ASSERT): Likewise.
56384         * tests/test-freopen.c (ASSERT): Likewise.
56385         * tests/test-frexp.c (ASSERT): Likewise.
56386         * tests/test-frexpl.c (ASSERT): Likewise.
56387         * tests/test-fseek.c (ASSERT): Likewise.
56388         * tests/test-fseeko.c (ASSERT): Likewise.
56389         * tests/test-fstrcmp.c (ASSERT): Likewise.
56390         * tests/test-ftell.c (ASSERT): Likewise.
56391         * tests/test-ftello.c (ASSERT): Likewise.
56392         * tests/test-func.c (ASSERT): Likewise.
56393         * tests/test-fwritable.c (ASSERT): Likewise.
56394         * tests/test-fwriting.c (ASSERT): Likewise.
56395         * tests/test-getdelim.c (ASSERT): Likewise.
56396         * tests/test-getline.c (ASSERT): Likewise.
56397         * tests/test-i-ring.c (ASSERT): Likewise.
56398         * tests/test-iconv-utf.c (ASSERT): Likewise.
56399         * tests/test-iconv.c (ASSERT): Likewise.
56400         * tests/test-isfinite.c (ASSERT): Likewise.
56401         * tests/test-isnand.c (ASSERT): Likewise.
56402         * tests/test-isnanf.c (ASSERT): Likewise.
56403         * tests/test-isnanl.h (ASSERT): Likewise.
56404         * tests/test-ldexpl.c (ASSERT): Likewise.
56405         * tests/test-linked_list.c (ASSERT): Likewise.
56406         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56407         * tests/test-localename.c (ASSERT): Likewise.
56408         * tests/test-lseek.c (ASSERT): Likewise.
56409         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56410         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56411         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56412         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56413         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56414         * tests/test-mbschr.c (ASSERT): Likewise.
56415         * tests/test-mbscspn.c (ASSERT): Likewise.
56416         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56417         * tests/test-mbspbrk.c (ASSERT): Likewise.
56418         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56419         * tests/test-mbsrchr.c (ASSERT): Likewise.
56420         * tests/test-mbsspn.c (ASSERT): Likewise.
56421         * tests/test-mbsstr1.c (ASSERT): Likewise.
56422         * tests/test-mbsstr2.c (ASSERT): Likewise.
56423         * tests/test-mbsstr3.c (ASSERT): Likewise.
56424         * tests/test-memchr2.c (ASSERT): Likewise.
56425         * tests/test-memmem.c (ASSERT): Likewise.
56426         * tests/test-open.c (ASSERT): Likewise.
56427         * tests/test-printf-frexp.c (ASSERT): Likewise.
56428         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56429         * tests/test-printf-posix.c (ASSERT): Likewise.
56430         * tests/test-quotearg.c (ASSERT): Likewise.
56431         * tests/test-rbtree_list.c (ASSERT): Likewise.
56432         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56433         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56434         * tests/test-round1.c (ASSERT): Likewise.
56435         * tests/test-roundf1.c (ASSERT): Likewise.
56436         * tests/test-roundl.c (ASSERT): Likewise.
56437         * tests/test-signbit.c (ASSERT): Likewise.
56438         * tests/test-sleep.c (ASSERT): Likewise.
56439         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56440         * tests/test-snprintf.c (ASSERT): Likewise.
56441         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56442         * tests/test-stat-time.c (ASSERT): Likewise.
56443         * tests/test-strcasestr.c (ASSERT): Likewise.
56444         * tests/test-strerror.c (ASSERT): Likewise.
56445         * tests/test-striconv.c (ASSERT): Likewise.
56446         * tests/test-striconveh.c (ASSERT): Likewise.
56447         * tests/test-striconveha.c (ASSERT): Likewise.
56448         * tests/test-strsignal.c (ASSERT): Likewise.
56449         * tests/test-strstr.c (ASSERT): Likewise.
56450         * tests/test-strtod.c (ASSERT): Likewise.
56451         * tests/test-trunc1.c (ASSERT): Likewise.
56452         * tests/test-trunc2.c (ASSERT): Likewise.
56453         * tests/test-truncf1.c (ASSERT): Likewise.
56454         * tests/test-truncf2.c (ASSERT): Likewise.
56455         * tests/test-truncl.c (ASSERT): Likewise.
56456         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56457         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56458         * tests/test-vasnprintf.c (ASSERT): Likewise.
56459         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56460         * tests/test-vasprintf.c (ASSERT): Likewise.
56461         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56462         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56463         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56464         * tests/test-vsnprintf.c (ASSERT): Likewise.
56465         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56466         * tests/test-wcwidth.c (ASSERT): Likewise.
56467         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56468         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56469         * tests/test-xvasprintf.c (ASSERT): Likewise.
56470         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56471         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56472         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56473         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56474         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56475         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56476         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56477         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56478         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56479         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56480         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56481         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56482         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56483         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56484         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56485         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56486         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56487         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56488         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56489         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56490         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56491         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56492         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56493         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56494         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56495         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56496         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56497         * tests/unictype/test-combining.c (ASSERT): Likewise.
56498         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56499         * tests/unictype/test-digit.c (ASSERT): Likewise.
56500         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56501         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56502         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56503         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56504         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56505         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56506         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56507         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56508         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56509         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56510         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56511         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56512         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56513         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56514         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56515         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56516         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56517         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56518         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56519         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56520         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56521         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56522         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56523         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56524         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56525         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56526         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56527         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56528         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56529         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56530         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56531         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56532         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56533         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56534         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56535         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56536         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56537         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56538         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56539         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56540         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56541         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56542         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56543         Reported by Eric Blake.
56544
56545 2008-04-11  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/wchar.in.h: Tweak comment.
56548
56549 2008-04-11  Bruno Haible  <bruno@clisp.org>
56550
56551         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56552         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56553         gl_COMMON.
56554         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56555
56556 2008-04-11  Bruno Haible  <bruno@clisp.org>
56557
56558         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56559
56560 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56561
56562         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56563         of attempting to use non-existing /dev/*random.  Based on patch
56564         from Adam Strzelecki <ono@java.pl> in
56565         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56566
56567 2008-04-08  Bruno Haible  <bruno@clisp.org>
56568
56569         Add tentative support for emx+gcc.
56570         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56571         * lib/fpurge.c (fpurge): Likewise.
56572         * lib/freadable.c (freadable): Likewise.
56573         * lib/freadahead.c (freadahead): Likewise.
56574         * lib/freading.c (freading): Likewise.
56575         * lib/freadptr.c (freadptr): Likewise.
56576         * lib/freadseek.c (freadptrinc): Likewise.
56577         * lib/fseeko.c (rpl_fseeko): Likewise.
56578         * lib/fseterr.c (fseterr): Likewise.
56579         * lib/fwritable.c (fwritable): Likewise.
56580         * lib/fwriting.c (fwriting): Likewise.
56581         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56582
56583 2008-04-09  Eric Blake  <ebb9@byu.net>
56584
56585         Avoid some autoconf warnings.
56586         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56587         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56588         * m4/afs.m4 (gl_AFS): Likewise.
56589         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56590         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56592         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56593         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56594         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56595         (AC_CHECK_DECLS_ONCE): Likewise.
56596         Rename file...
56597         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56598         gnulib-tool requires autoconf 2.59 or better.
56599         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56600
56601 2008-04-08  Eric Blake  <ebb9@byu.net>
56602
56603         Use 'git describe --match' if present (added in git 1.5.5).
56604         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56605         if possible.
56606
56607 2008-04-08  Bruno Haible  <bruno@clisp.org>
56608
56609         Add tentative support for OpenServer.
56610         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56611         _ptr, _cnt.
56612         * lib/fpurge.c (fpurge): Likewise.
56613         * lib/freadable.c (freadable): Likewise.
56614         * lib/freadahead.c (freadahead): Likewise.
56615         * lib/freading.c (freading): Likewise.
56616         * lib/freadptr.c (freadptr): Likewise.
56617         * lib/freadseek.c (freadptrinc): Likewise.
56618         * lib/fseeko.c (rpl_fseeko): Likewise.
56619         * lib/fseterr.c (fseterr): Likewise.
56620         * lib/fwritable.c (fwritable): Likewise.
56621         * lib/fwriting.c (fwriting): Likewise.
56622         Reported by Roger Cornelius <rac@tenzing.org> and
56623         Brian K. White <brian@aljex.com>.
56624
56625 2008-04-06  Jim Meyering  <meyering@redhat.com>
56626
56627         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56628
56629 2008-04-06  Bruno Haible  <bruno@clisp.org>
56630
56631         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56632         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56633         * tests/test-printf-posix.sh: Likewise.
56634         * tests/test-vfprintf-posix.sh: Likewise.
56635         * tests/test-vprintf-posix.sh: Likewise.
56636         * tests/test-xprintf-posix.sh: Likewise.
56637
56638 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56639
56640         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56641         hide error from 'ls', needed on OS/2.
56642         Report by Elbert Pol <elbert.pol@gmail.com>.
56643
56644 2008-04-04  Eric Blake  <ebb9@byu.net>
56645
56646         Make test-fseeko.c failures meaningful.
56647         * tests/test-fseeko.c: Print line number on failure.
56648         * tests/test-fseek.c: Likewise.
56649         Reported by Nelson H. F. Beebe.
56650
56651         Improve strtod bug detection check.
56652         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56653         required for Solaris 10.
56654         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56655
56656 2008-04-04  Bruno Haible  <bruno@clisp.org>
56657
56658         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56659         by m4/setenv.m4.
56660
56661 2008-04-03  Eric Blake  <ebb9@byu.net>
56662
56663         Ensure sane .version contents.
56664         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56665         version string.
56666         * build-aux/git-version-gen: Improve documentation.
56667
56668         Make GNU make output nicer.
56669         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56670         MAKECMDGOALS to enforce message for all command line targets.  Set
56671         srcdir for use in maint.mk.
56672
56673         Another maintainer tweak.
56674         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56675         a target that regenerates version.
56676
56677 2008-04-03  Jim Meyering  <meyering@redhat.com>
56678
56679         vc-list-files: don't cause coreutils "make po-check" failure
56680         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56681
56682 2008-04-03  Eric Blake  <ebb9@byu.net>
56683
56684         Allow VPATH usage of vc-list-files.
56685         * build-aux/vc-list-files (scriptversion): Add timestamp.
56686         (options): Add --help, --version, -C.
56687         (CVS): Support installed cvsu.
56688
56689 2008-04-02  Bruno Haible  <bruno@clisp.org>
56690
56691         Avoid some "statement with no effect" warnings from gcc.
56692         * tests/test-wctype.c (main): Explicitly ignore unused values.
56693         Reported by Jim Meyering.
56694
56695 2008-04-02  Jim Meyering  <meyering@redhat.com>
56696
56697         Avoid some warnings from "gcc -Wshadow".
56698         * tests/test-frexp.c (exp): Define to a different identifier.
56699         * tests/test-frexpl.c (exp): Likewise.
56700
56701 2008-04-03  Jim Meyering  <meyering@redhat.com>
56702
56703         bootstrap: remove dangling *.[ch] symlinks from lib
56704         * build-aux/bootstrap [dangling symlink removal]: Move find's
56705         -depth option to precede all others, to avoid a warning.
56706         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56707
56708 2008-04-02  Bruno Haible  <bruno@clisp.org>
56709
56710         Avoid some warnings from "gcc -Wshadow".
56711         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56712         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56713         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56714         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56715         Reported by Jim Meyering.
56716
56717 2008-04-01  Bruno Haible  <bruno@clisp.org>
56718
56719         Fix test to work on IRIX 6.5 with cc.
56720         * tests/test-math.c (numeric_equal): New function.
56721         (main): Use it.
56722
56723 2008-04-01  Bruno Haible  <bruno@clisp.org>
56724
56725         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56726
56727 2008-04-01  Bruno Haible  <bruno@clisp.org>
56728
56729         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56730         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56731         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56732         (Depends-on): Remove math.
56733
56734         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56735         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56736         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56737         (Depends-on): Remove math.
56738
56739         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56740         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56741         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56742         (Depends-on): Remove math.
56743         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56744         (Depends-on): Remove math.
56745
56746         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56747         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56748         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56749         (Depends-on): Remove math.
56750         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56751         (Depends-on): Remove math.
56752
56753         * tests/test-round1.c: Include nan.h.
56754         (main): Use NaNd instead of NAN.
56755         * modules/round-tests (Files): Add tests/nan.h.
56756
56757         * tests/test-trunc1.c: Include nan.h.
56758         (main): Use NaNd instead of NAN.
56759         * modules/trunc-tests (Files): Add tests/nan.h.
56760
56761         * tests/test-roundf1.c: Include nan.h.
56762         (main): Use NaNf instead of NAN.
56763         * modules/roundf-tests (Files): Add tests/nan.h.
56764
56765         * tests/test-truncf1.c: Include nan.h.
56766         (main): Use NaNf instead of NAN.
56767         * modules/truncf-tests (Files): Add tests/nan.h.
56768
56769         * tests/test-ceilf1.c: Include nan.h.
56770         (main): Use NaNf instead of NAN.
56771         * modules/ceilf-tests (Files): Add tests/nan.h.
56772
56773         * tests/test-floorf1.c: Include nan.h.
56774         (main): Use NaNf instead of NAN.
56775         * modules/floorf-tests (Files): Add tests/nan.h.
56776
56777         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56778         (main): Use NaNf instead of NAN.
56779         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56780
56781         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56782         (main): Use NaNd instead of NAN.
56783         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56784
56785         * tests/test-frexp.c: Include nan.h.
56786         (main): Use NaNd instead of NAN.
56787         * modules/frexp-tests (Files): Add tests/nan.h.
56788
56789         * lib/isnan.c: Don't include <math.h>.
56790         (FUNC): Don't use NAN macro.
56791         * modules/isnand-nolibm (Depends-on): Remove math.
56792         * modules/isnanf-nolibm (Depends-on): Remove math.
56793         * modules/isnanl (Depends-on): Remove math.
56794         * modules/isnanl-nolibm (Depends-on): Remove math.
56795
56796         * tests/nan.h: New file.
56797
56798 2008-04-01  Eric Blake  <ebb9@byu.net>
56799
56800         Fix typos.
56801         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56802         values to be the right type.
56803
56804         For now, cater to gnulib strtod inaccuracies.
56805         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56806         fractional results.  While not as nice from a QoI perspective, it
56807         is a quicker patch than correctly implementing decimal to binary
56808         rounding.
56809
56810 2008-03-31  Eric Blake  <ebb9@byu.net>
56811
56812         Guarantee a definition of NAN.
56813         * lib/math.in.h (NAN): Define if missing.
56814         * tests/test-math.c (main): Test it.
56815         * doc/posix-headers/math.texi (math.h): Document this.
56816         * lib/isnan.c (rpl_isnand): Use it.
56817         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56818         * tests/test-floorf1.c (NaN): Likewise.
56819         * tests/test-frexp.c (NaN): Likewise.
56820         * tests/test-isnand.c (NaN): Likewise.
56821         * tests/test-isnanf.c (NaN): Likewise.
56822         * tests/test-round1.c (NaN): Likewise.
56823         * tests/test-roundf1.c (NaN): Likewise.
56824         * tests/test-snprintf-posix.h (NaN): Likewise.
56825         * tests/test-sprintf-posix.h (NaN): Likewise.
56826         * tests/test-trunc1.c (NaN): Likewise.
56827         * tests/test-truncf1.c (NaN): Likewise.
56828         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56829         * tests/test-vasprintf-posix.c (NaN): Likewise.
56830         * modules/isnand-nolibm (Depends-on): Add math.
56831         * modules/isnanf-nolibm (Depends-on): Likewise.
56832         * modules/isnanl (Depends-on): Likewise.
56833         * modules/isnanl-nolibm (Depends-on): Likewise.
56834         * modules/snprintf-posix-tests (Depends-on): Likewise.
56835         * modules/sprintf-posix-tests (Depends-on): Likewise.
56836         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56837         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56838         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56839         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56840
56841 2008-03-31  Bruno Haible  <bruno@clisp.org>
56842
56843         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56844         * doc/posix-functions/strtod.texi: Likewise.
56845
56846 2008-03-31  Bruno Haible  <bruno@clisp.org>
56847
56848         * tests/test-strtod.c (main): Don't use C99 syntax.
56849
56850 2008-03-31  Bruno Haible  <bruno@clisp.org>
56851
56852         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56853         Reported by Eric Blake.
56854
56855 2008-03-31  Jim Meyering  <meyering@redhat.com>
56856
56857         Don't compare actual signbit return values.
56858         * tests/test-strtod.c (main): Rather, compare only their
56859         zero/non-zero nature.
56860
56861 2008-03-31  Eric Blake  <ebb9@byu.net>
56862
56863         More strtod documentation.
56864         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56865         failures as distinct bugs.
56866
56867 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56868
56869         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56870         Problem reported by Erik Benada in
56871         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56872
56873 2008-03-30  Bruno Haible  <bruno@clisp.org>
56874
56875         * tests/test-strtod.c: Add comments about which assertion fails on which
56876         platform.
56877         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56878
56879 2008-03-30  Eric Blake  <ebb9@byu.net>
56880
56881         Test signbit behavior on zeros.
56882         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56883         (test_signbitd, test_signbitl): Likewise.
56884
56885         More strtod touchups.
56886         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56887         sign of negative underflow, for now.  Use .5, not .1.
56888         * doc/posix-functions/strtod.texi (strtod): Mention these
56889         limitations.
56890         Reported by Jim Meyering.
56891
56892 2008-03-30  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56895         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56896
56897 2008-03-30  Bruno Haible  <bruno@clisp.org>
56898
56899         Avoid failure when attempting to return empty iconv results on some
56900         platforms.
56901         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56902         allocation, don't report ENOMEM when the resulting string is empty.
56903
56904 2008-03-30  Bruno Haible  <bruno@clisp.org>
56905
56906         Fix buffer overrun.
56907         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56908         Don't consider the width for tmp_length. Check count against tmp_length
56909         before doing the padding. Ensure enough allocation during padding.
56910
56911 2008-03-30  Eric Blake  <ebb9@byu.net>
56912
56913         strtod touchups.
56914         * lib/strtod.c (strtod): Avoid compiler warnings.
56915         Reported by Jim Meyering.
56916
56917 2008-03-30  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56920         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56921         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56922         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56923         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56924         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56925         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56926         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56927
56928         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56929         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56930         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56931         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56932         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56933         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56934         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56935         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56936
56937         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56938         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56939         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56940         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56941         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56942         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56943         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56944         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56945
56946         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56947         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56948
56949         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56950         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56951
56952         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56953         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56954
56955         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56957         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56958
56959         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56961         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56962
56963         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56965         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56966
56967         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56969         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56970
56971         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56972         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56974         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56975         (Depends-on): Add EOVERFLOW.
56976         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56977         (Depends-on): Add EOVERFLOW.
56978         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56979         (Depends-on): Add EOVERFLOW.
56980         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56981         (Depends-on): Add EOVERFLOW.
56982         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56983         (Depends-on): Add EOVERFLOW.
56984         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56985         (Depends-on): Add EOVERFLOW.
56986         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56987         (Depends-on): Add EOVERFLOW.
56988         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56989         (Depends-on): Add EOVERFLOW.
56990
56991         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56993         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56994
56995         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56997         * modules/snprintf (Depends-on): Add EOVERFLOW.
56998
56999         * lib/poll.c (EOVERFLOW): Remove fallback.
57000         * modules/poll (Depends-on): Add EOVERFLOW.
57001
57002         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57003         * modules/getugroups (Depends-on): Add EOVERFLOW.
57004
57005         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57006         * modules/getdelim (Depends-on): Add EOVERFLOW.
57007
57008         * lib/ftell.c (EOVERFLOW): Remove fallback.
57009         * modules/ftell (Depends-on): Add EOVERFLOW.
57010
57011         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57013         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57014
57015         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57016
57017         * modules/EOVERFLOW-tests: New file.
57018         * tests/test-EOVERFLOW.c: New file.
57019
57020         * modules/EOVERFLOW: New file.
57021         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57022
57023 2008-03-30  Bruno Haible  <bruno@clisp.org>
57024
57025         Fix bug introduced on 2007-06-10.
57026         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57027         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57028
57029 2008-03-30  Bruno Haible  <bruno@clisp.org>
57030
57031         Improve freadseek's efficiency after ungetc.
57032         * lib/freadseek.c: Include freadahead.h.
57033         (freadptrinc): New function, extracted from freadseek.
57034         (freadseek): Use it in a loop. Use freadahead to determine the number
57035         of loop iterations.
57036         * modules/freadseek (Depends-on): Add freadahead.
57037         (configure.ac): Require AC_C_INLINE.
57038
57039 2008-03-30  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/freadseek.c (freadseek): Don't ignore the return value of
57042         freadptr.
57043
57044 2008-03-29  Eric Blake  <ebb9@byu.net>
57045
57046         Add hex float support.
57047         * modules/strtod (Depends-on): Add c-ctype.
57048         (Link): Mention POW_LIB.
57049         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57050         whitespace between 'e' and exponent.
57051         * tests/test-strtod.c (main): Enable hex float tests.
57052         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57053         now provides.
57054
57055         Document various strtod bugs, with some fixes.
57056         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57057         "-0x", "inf", "nan", and hex constants.
57058         * doc/posix-functions/atof.texi (atof): Likewise.
57059         * modules/stdlib (Makefile.am): Support strtod.
57060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57061         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57062         detect additional strtod bugs.
57063         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57064         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57065         bool where appropriate.  Parse 'inf' and 'nan'.
57066         * tests/test-strtod.c: New file.
57067         * modules/strtod (Depends-on): Add stdbool, stdlib.
57068         (configure.ac): Turn on module indicator.
57069         * modules/strtod-tests: New module.
57070
57071 2008-03-29  Eric Blake  <ebb9@byu.net>
57072
57073         Fix ftell on mingw.
57074         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57075         * modules/ftell-tests (Depends-on): Add binary-io.
57076         * modules/ftello-tests (Depends-on): Likewise.
57077         * tests/test-ftell.c (main): Enhance test to cover behavior after
57078         ungetc.  Enforce binary mode.
57079         * tests/test-ftello.c (main): Likewise.
57080
57081         Pass test-freadseek on cygwin.
57082         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57083         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57084         ungetc buffer.
57085
57086         * tests/test-fflush2.c (main): Fix typo.
57087
57088 2008-03-29  Bruno Haible  <bruno@clisp.org>
57089
57090         * tests/test-fflush2.c (main): Temporarily disable the contents of
57091         this test.
57092         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57093         Reported by Eric Blake.
57094
57095 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57096
57097         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57098         (GC_SHA224_DIGEST_SIZE): Add.
57099
57100         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57101         (gc_hash_digest_length): Likewise.
57102         (gc_hash_buffer): Likewise.
57103
57104 2008-03-25  Bruno Haible  <bruno@clisp.org>
57105
57106         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57107         detail which gettext release to use.
57108         Reported by Simon Josefsson.
57109
57110 2008-03-26  Jim Meyering  <meyering@redhat.com>
57111
57112         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57113         * modules/gnumakefile (clean-GNUmakefile): Also, use
57114         test ... && ... || : syntax rather than if-then ... fi.
57115
57116         gnumakefile: Don't double-quote-expand $(VPATH) value.
57117         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57118
57119 2008-03-24  Eric Blake  <ebb9@byu.net>
57120
57121         Alter GNUmakefile to install into top directory.
57122         * modules/maintainer-makefile: Split, and add dependency...
57123         * modules/gnumakefile: to this new module.
57124         * build-aux/GNUmakefile: Move...
57125         * top/GNUmakefile: ...here.
57126         * build-aux/maint.mk: Move...
57127         * top/maint.mk: ...here.
57128         * MODULES.html.sh (Support for maintaining...): Document new
57129         module.
57130
57131 2008-03-23  Bruno Haible  <bruno@clisp.org>
57132
57133         * gnulib-tool: New options --vc-files, --no-vc-files.
57134         (func_usage): Document them.
57135         (vc_files): New variable.
57136         (func_import): Consider vc_files.
57137         (func_create_testdir): Set vc_files to empty.
57138         Suggested by Jim Meyering and Karl Berry.
57139
57140 2008-03-23  Bruno Haible  <bruno@clisp.org>
57141
57142         Fix regex compilation error on HP-UX 11.
57143         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57144         * modules/regex (Files): Add m4/mbstate_t.m4.
57145         Reported by Ton Voon <ton.voon@altinity.com>.
57146
57147 2008-03-23  Bruno Haible  <bruno@clisp.org>
57148
57149         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57150
57151 2008-03-23  Eric Blake  <ebb9@byu.net>
57152             Bruno Haible  <bruno@clisp.org>
57153
57154         Install files from top/ in the destination directory.
57155         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57156         augmentation also for the files from top/.
57157         (func_import, func_create_testdir): Rewrite file names:
57158         top/filename -> filename.
57159
57160 2008-03-23  Bruno Haible  <bruno@clisp.org>
57161
57162         Tweak "gnulib --version" output.
57163         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57164
57165 2008-03-23  Bruno Haible  <bruno@clisp.org>
57166
57167         Tweak "gnulib --version" output.
57168         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57169         rather than contents of ChangeLog, when possible.
57170
57171 2008-03-21  Eric Blake  <ebb9@byu.net>
57172
57173         More --version tweaks.
57174         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57175         date of last ChangeLog entry.
57176
57177 2008-03-21  Jim Meyering  <meyering@redhat.com>
57178
57179         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57180
57181 2008-03-20  Eric Blake  <ebb9@byu.net>
57182
57183         VPATH fix.
57184         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57185
57186 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57187
57188         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57189         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57190
57191 2008-03-20  Eric Blake  <ebb9@byu.net>
57192
57193         Sync GNUmakefile with coreutils.
57194         * build-aux/GNUmakefile (have-Makefile): Rename...
57195         (_have-Makefile): ...to this, for namespace consideration.
57196         (GNUmakefile.cfg): Include, if present.
57197         (_autoreconf): Define a default.
57198         (_is-dist-target): New rule for rebuilds to pick up intra-release
57199         version.
57200         (maint-cfg.mk): Rename...
57201         (cfg.mk): ...to this.
57202
57203 2008-03-18  Jim Meyering  <meyering@redhat.com>
57204
57205         New script and module: mktempd
57206         * MODULES.html.sh (maint+release support): Add mktempd.
57207         * build-aux/mktempd: New file.
57208         * modules/mktempd: New file.
57209
57210 2008-03-15  Jim Meyering  <meyering@redhat.com>
57211
57212         Undo last change.
57213         * lib/sha1.c, lib/md5.c: 63 != ~63.
57214         Reported by Andreas Schwab.
57215
57216         sha1.c, md5.c: Hoist a redundant expression.
57217         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57218         "ctx->buflen" only once, before calling *_process_block.
57219         * lib/md5.c (md5_process_bytes): Likewise.
57220
57221 2008-03-14  Eric Blake  <ebb9@byu.net>
57222
57223         Bump copyright year in files generated by gnulib-tool.
57224         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57225         gnulib-tool, rather than hard-coding it.
57226
57227         Fix 'gnulib-tool --version' output to work with git.
57228         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57229         (startup): ...here.
57230         (func_version): Use it to invoke git-version-gen, rather than
57231         relying on CVS keyword expansion.  Modernize wording.
57232         (cvsdatestamp, last_checkin_date, version): Kill unused
57233         variables.
57234
57235 2008-03-12  Jim Meyering  <meyering@redhat.com>
57236
57237         Recognize optional cast of the argument to free.
57238         * build-aux/useless-if-before-free: Update regexps.
57239
57240         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57241
57242 2008-03-11  Bruno Haible  <bruno@clisp.org>
57243
57244         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57245         by a single package.
57246         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57247         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57248         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57249         Reported by Sam Steingold <sds@gnu.org>.
57250
57251 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57252
57253         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57254         repositories.
57255
57256 2008-03-11  Bruno Haible  <bruno@clisp.org>
57257
57258         Avoid conflicts between local macro definitions.
57259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57260         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57261
57262 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57263             Bruno Haible  <bruno@clisp.org>
57264
57265         Make va_copy work with some version of xlc on AIX 5.1.
57266         * lib/stdarg.in.h: New file.
57267         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57268         On AIX, use a <stdarg.h> file substitute.
57269         * modules/stdarg (Files): Add lib/stdarg.in.h.
57270         (Depends-on): Add include_next.
57271         (Makefile.am): Build a stdarg.h substitute if requested.
57272         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57273
57274 2008-03-10  Bruno Haible  <bruno@clisp.org>
57275
57276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57278         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57279
57280 2008-03-10  Bruno Haible  <bruno@clisp.org>
57281
57282         * modules/stdlib (Depends-on): Add include_next, remove
57283         absolute-header.
57284
57285 2008-03-09  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/freadahead.h (freadahead): Document more precisely.
57288         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57289         the sum of both buffer sizes.
57290         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57291         * NEWS: Document the change.
57292
57293 2008-03-09  Bruno Haible  <bruno@clisp.org>
57294
57295         Extend freadptr to return also the buffer size.
57296         * lib/freadptr.h (freadptr): Add sizep argument.
57297         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57298         (freadptr): Add sizep argument. Determine buffer size like freadahead
57299         does.
57300         * tests/test-freadptr.c: Don't include freadahead.h.
57301         (main): Adapt for new calling convention of freadptr.
57302         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57303         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57304         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57305         tests/test-freadptr2.sh.
57306         (Depends): Remove freadahead.
57307         (TESTS): Add test-freadptr2.sh.
57308         (check_PROGRAMS): Add test-freadptr2.
57309
57310 2008-03-09  Bruno Haible  <bruno@clisp.org>
57311
57312         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57313         Report and solution by Simon Josefsson.
57314
57315 2008-03-06  Bruno Haible  <bruno@clisp.org>
57316
57317         Make fflush after ungetc work on BSD platforms.
57318         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57319         * tests/test-fflush2.c: New file.
57320         * tests/test-fflush2.sh: New file.
57321         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57322         tests/test-fflush2.c.
57323         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57324         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57325
57326 2008-03-06  Eric Blake  <ebb9@byu.net>
57327
57328         Likewise for ftello.
57329         * modules/ftello (Dependencies): Add extensions.
57330         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57331
57332 2008-03-06  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/fseeko (Dependencies): Add extensions.
57335         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57336         Needed on glibc systems.
57337
57338 2008-03-06  Bruno Haible  <bruno@clisp.org>
57339
57340         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57341         email address.
57342         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57343
57344 2008-03-06  Bruno Haible  <bruno@clisp.org>
57345
57346         * users.txt: Add libgnupdf.
57347
57348 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57349
57350         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57351         (Header File Substitutes, Function Substitutes,
57352         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57353         (Build robot for gnulib): Fix typo.
57354
57355 2008-03-06  Bruno Haible  <bruno@clisp.org>
57356
57357         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57358         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57359
57360 2008-03-06  Bruno Haible  <bruno@clisp.org>
57361
57362         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57363         * doc/gnulib.texi: Include it.
57364
57365 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57366
57367         * modules/func (License): Change license to unlimited; there was
57368         no LGPL parts in the module anyway.
57369
57370 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57371
57372         * modules/__func__: Renamed to modules/func.
57373         * modules/__func__-tests: Renamed to modules/func-tests.
57374         * tests/test-__func__.c: Renamed to tests/test-func.c.
57375         * m4/__func__.m4: Renamed to m4/func.m4.
57376         * doc/gnulib.texi (__func__): Section renamed to func.
57377         Suggested by Eric Blake <ebb9@byu.net>.
57378
57379 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57380
57381         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57382         about __func__.  Make example self-contained.  Suggested by Eric
57383         Blake <ebb9@byu.net>.
57384
57385         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57386         Suggested by Eric Blake <ebb9@byu.net>.
57387
57388 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57389
57390         * modules/__func__: New file.
57391         * modules/__func__-tests: New file.
57392         * tests/test-__func__.c: New file.
57393         * m4/__func__.m4: New file.
57394         * doc/gnulib.texi (__func__): Document __func__ module.
57395
57396 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57397
57398         * modules/byteswap (License): Re-license as LGPLv2+.
57399
57400 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57401
57402         * doc/Makefile: Add pdf target.
57403
57404 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57405
57406         * modules/inline (License): Use 'unlimited', since there are only
57407         *.m4 files in this module.
57408
57409 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57410             Bruno Haible  <bruno@clisp.org>
57411
57412         Add support for HP C 7.1 on OpenVMS 8.3.
57413         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57414
57415 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57416
57417         Update VMS specifics.
57418         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57419
57420 2008-03-02  Jim Meyering  <meyering@redhat.com>
57421
57422         Remove the last dependency on the "free" module.
57423         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57424         Reported by Bob Proulx.
57425
57426         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57427
57428         Remove useless "if" tests before free.  Deprecate "free" module.
57429         * doc/posix-functions/free.texi: Mention that this
57430         module is no longer useful.
57431         * modules/free (Notice): Say this module is obsolete.
57432         * modules/readutmp (Depends-on): Remove free.
57433         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57434         * lib/putenv.c (putenv): Likewise.
57435         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57436         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57437         * tests/test-c-strcasestr.c (main): Likewise.
57438         * tests/test-c-strstr.c (main): Likewise.
57439         * tests/test-mbscasestr1.c (main): Likewise.
57440         * tests/test-mbscasestr2.c (main): Likewise.
57441         * tests/test-mbsstr1.c (main): Likewise.
57442         * tests/test-mbsstr2.c (main): Likewise.
57443         * tests/test-memmem.c (main): Likewise.
57444         * tests/test-strcasestr.c (main): Likewise.
57445         * tests/test-striconv.c (main): Likewise.
57446         * tests/test-striconveh.c (main): Likewise.
57447         * tests/test-striconveha.c (main): Likewise.
57448         * tests/test-strstr.c (main): Likewise.
57449
57450         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57451
57452         bootstrap: sync from coreutils again
57453         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57454
57455 2008-03-01  Jim Meyering  <meyering@redhat.com>
57456
57457         bootstrap: sync from coreutils
57458         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57459         also when the target doesn't exist.
57460
57461 2008-03-01  Eric Blake  <ebb9@byu.net>
57462
57463         Fix bugs in last patch.
57464         * lib/memchr2.c (memchr2): Fix typo.
57465         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57466         extension.
57467         Reported by Bruce Korb.
57468
57469         New module 'memchr2'.
57470         * modules/memchr2: New file.
57471         * modules/memchr2-tests: Likewise.
57472         * lib/memchr2.h: Likewise.
57473         * lib/memchr2.c: Likewise, based on memchr.c.
57474         * tests/test-memchr2.c: New test.
57475         * MODULES.html.sh (String handling): Add memchr2.
57476
57477 2008-02-29  Bruno Haible  <bruno@clisp.org>
57478
57479         * modules/freadseek-tests: New file.
57480         * tests/test-freadseek.sh: New file.
57481         * tests/test-freadseek.c: New file.
57482
57483         New module 'freadseek'.
57484         * modules/freadseek: New file.
57485         * lib/freadseek.h: New file.
57486         * lib/freadseek.c: New file.
57487         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57488
57489 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57490
57491         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57492         wydawca.
57493
57494         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57495         program_invocation_name and program_invocation_short_name are
57496         present.
57497
57498 2008-02-28  Bruno Haible  <bruno@clisp.org>
57499
57500         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57501         * tests/test-freadptr.sh: Also test non-seekable stdin.
57502
57503 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57504
57505         * build-aux/bootstrap (source_base, m4_base)
57506         (doc_base, tests_base): New variables.
57507         (gnulib_tool_options): Do not hardcode base directories, use
57508         the above variables instead.
57509
57510 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57511
57512         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57513
57514 2008-02-28  Bruno Haible  <bruno@clisp.org>
57515
57516         * modules/freadptr-tests: New file.
57517         * tests/test-freadptr.sh: New file.
57518         * tests/test-freadptr.c: New file.
57519
57520         New module 'freadptr'.
57521         * modules/freadptr: New file.
57522         * lib/freadptr.h: New file.
57523         * lib/freadptr.c: New file.
57524         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57525
57526 2008-02-26  Karl Berry  <karl@freefriends.org>
57527
57528         Sync from Libtool:
57529         * libltdl/argz.c (argz_add, argz_count): New functions.
57530         * libltdl/argz.in.h: Declare them.
57531         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57532
57533 2008-02-22  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57536         is a pointer type.  Needed for HP-UX 10.
57537         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57538         * doc/posix-functions/gmtime_r.texi: Likewise.
57539         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57540
57541 2008-02-24  Bruno Haible  <bruno@clisp.org>
57542
57543         * modules/environ-tests: New file.
57544         * tests/test-environ.c: New file.
57545
57546         New module 'environ'.
57547         * modules/environ: New file.
57548         * lib/unistd.in.h (environ): New declaration.
57549         * m4/environ.m4: New file.
57550         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57551         after use.
57552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57553         HAVE_DECL_ENVIRON.
57554         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57555         HAVE_DECL_ENVIRON.
57556         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57557         wrong claim that 'environ' is missing on some systems.
57558         * modules/execute (Depends-on): Add environ.
57559         * lib/execute.c (environ): Remove fallback declaration.
57560         * modules/pipe (Depends-on): Add environ.
57561         * lib/pipe.c (environ): Remove fallback declaration.
57562         * modules/setenv (Depends-on): Add environ.
57563         * lib/setenv.c (environ): Remove fallback declaration.
57564         * modules/unsetenv (Depends-on): Add environ.
57565         * lib/unsetenv.c (environ): Remove fallback declaration.
57566         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57567         m4/environ.m4.
57568         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57569         (gl_PREREQ_UNSETENV): Likewise.
57570
57571 2008-02-24  Bruno Haible  <bruno@clisp.org>
57572
57573         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57574
57575 2008-02-20  Bob Proulx  <bob@proulx.com>
57576
57577         Enable use of older two part flavor 'git describe'.
57578         * build-aux/git-version-gen: If using the older two part flavor of
57579         git version then recreate the third part now present in the
57580         newer three part flavor of git describe.
57581
57582 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57583
57584         * lib/fts.c (fts_build): Typo correction to comment.
57585
57586 2008-02-17  Bruno Haible  <bruno@clisp.org>
57587
57588         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57589         generating no-op conflicts.
57590
57591 2008-02-17  Bruno Haible  <bruno@clisp.org>
57592
57593         Speed up by 10%.
57594         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57595         result_entries, rather than an index-based loop.
57596
57597 2008-02-17  Bruno Haible  <bruno@clisp.org>
57598
57599         Speed up by 25%.
57600         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57601         'hashcode_cached'.
57602         (entry_create): New function.
57603         (entry_hashcode): Use the cached hashcode if possible.
57604         (read_changelog_file, try_split_merged_entry): Use entry_create.
57605
57606 2008-02-17  Bruno Haible  <bruno@clisp.org>
57607
57608         Speed up from O(n^2) to O(n) for long ChangeLog files.
57609         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57610         (read_changelog_file): Change implementation of entries_reversed list
57611         to rbtreehash.
57612         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57613
57614 2008-02-17  Bruno Haible  <bruno@clisp.org>
57615
57616         New option --split-merged-entry.
57617         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57618         (find_paragraph_end, try_split_merged_entry): New functions.
57619         (long_options): Add option --split-merged-entry.
57620         (usage): Document option --split-merged-entry.
57621         (main): Implement option --split-merged-entry.
57622         Reported by Eric Blake.
57623
57624 2008-02-17  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/git-merge-changelog.c: Include c-strstr.h.
57627         (main): Support the "git pull --rebase" situation.
57628         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57629         Reported by Eric Blake.
57630
57631 2008-02-16  Eric Blake  <ebb9@byu.net>
57632
57633         Avoid doubling \ in common case of "c-maybe" quoting style.
57634         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57635         eliding outer quotes.
57636         * lib/quotearg.h: Document this.
57637         * tests/test-quotearg.c (result_strings, inputs, results_g)
57638         (flag_results, locale_results): Test it by adding a new string to
57639         each test group.
57640         (compare_strings): Test new string.
57641
57642 2008-02-13  Eric Blake  <ebb9@byu.net>
57643
57644         Avoid trigraph quoting in default output.
57645         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57646         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57647         unless explicitly requested.
57648         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57649
57650 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57651
57652         Don't rely on signed integer overflowing to negative value.
57653         * lib/getugroups.c (getugroups): Include <limits.h>.
57654         Instead, compare against INT_MAX, and increment only if the test passes.
57655
57656 2008-02-13  Jim Meyering  <meyering@redhat.com>
57657         and Eric Blake  <ebb9@byu.net>
57658
57659         Avoid shadowing warning and compile errors on Linux.
57660         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57661         forwarding macros on Linux.
57662         (dcgettext): Define a stub, for Linux.
57663         (results_g, main): Avoid warnings.
57664
57665 2008-02-12  Eric Blake  <ebb9@byu.net>
57666
57667         Silence warning in last patch.
57668         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57669
57670         Quotearg part 4: add tests, fix c-maybe colon quoting.
57671         * lib/quotearg.h: Improve documentation.
57672         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57673         escapes when adding outer quotes.  When quoting trigraphs, use
57674         valid C notation.  When quoting NUL, omit extra characters if next
57675         character is not digit.  Alter prototype.
57676         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57677         callers.
57678         * modules/quotearg-tests: New module.
57679         * tests/test-quotearg.c: New test.
57680
57681 2008-02-07  Eric Blake  <ebb9@byu.net>
57682
57683         Quotearg part 3: add flag to control outer quote elision.
57684         * lib/quotearg.h (c_maybe_quoting_style): New style.
57685         (enum quoting_flags): Better documentation of flags.
57686         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57687         c-maybe style.
57688         (quotearg_buffer_restyled): Handle new flag to elide outer
57689         quotes.
57690
57691         Quotearg part 2: add flag that can control NUL elision.
57692         * lib/quotearg.h (set_quoting_flags): New prototype.
57693         * lib/quotearg.c (struct quoting_options): Add flag field.
57694         (set_quoting_flags): New function.
57695         (quotearg_buffer_restyled): Add flags parameter.
57696         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57697         (quotearg_n_options): Set the flag, since length cannot be
57698         returned.
57699         (quoting_options_from_style): Default flags correctly.
57700
57701         Quotearg part 1: more wrappers, restore quotearg_char state.
57702         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57703         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57704         (quotearg_colon_mem): New wrappers.
57705         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57706         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57707         functions.
57708         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57709         (quotearg_colon_mem): New functions.
57710
57711 2008-02-11  Bruno Haible  <bruno@clisp.org>
57712
57713         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57714         library in the current directory: it does not work with parallel make.
57715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57716
57717 2008-02-11  Bruno Haible  <bruno@clisp.org>
57718
57719         * .gitattributes: New file.
57720
57721 2008-02-11  Jim Meyering  <meyering@redhat.com>
57722
57723         useless-if-before-free: Fix reversed exit values.
57724         * build-aux/useless-if-before-free: Use correct values
57725         for EXIT_MATCH and EXIT_NO_MATCH.
57726
57727         * build-aux/useless-if-before-free: Close stdout carefully.
57728
57729 2008-02-10  Bruno Haible  <bruno@clisp.org>
57730
57731         New module 'git-merge-changelog'.
57732         * modules/git-merge-changelog: New file.
57733         * lib/git-merge-changelog.c: New file.
57734
57735 2008-02-10  Jim Meyering  <meyering@redhat.com>
57736
57737         useless-if-before-free: New option: --list (-l).
57738
57739         useless-if-before-free: Don't exit immediately upon open failure.
57740         * build-aux/useless-if-before-free: Exit 2 for errors.
57741         Upon failure to open a file, don't exit immediately.
57742         Rather, just warn and continue with any remaining files.
57743
57744 2008-02-10  Bruno Haible  <bruno@clisp.org>
57745
57746         New abstract list operation 'node_set_value'.
57747         * lib/gl_list.h (gl_list_node_set_value): New function.
57748         (struct gl_list_implementation): New field node_set_value.
57749         * lib/gl_list.c (gl_list_node_set_value): New function.
57750         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57751         (gl_array_list_implementation): Update.
57752         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57753         (gl_carray_list_implementation): Update.
57754         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57755         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57756         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57757         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57760         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57761         Update.
57762         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57763         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57764         (gl_sublist_list_implementation): Update.
57765
57766 2008-02-10  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57769         Needed when ELEMENT is #defined to 'some_type *'.
57770
57771 2008-02-10  Jim Meyering  <meyering@redhat.com>
57772
57773         New script and module: useless-if-before-free
57774         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57775         * build-aux/useless-if-before-free: New file.
57776         * modules/useless-if-before-free: New file.
57777
57778         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57779
57780         xstrtol_error: Fix typo.
57781         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57782         s/exit_failure/exit_status/.
57783
57784 2008-02-09  Jim Meyering  <meyering@redhat.com>
57785
57786         New script and module: gitlog-to-changelog
57787         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57788         * modules/gitlog-to-changelog: New file.
57789         * build-aux/gitlog-to-changelog: New file.
57790
57791 2008-02-08  Jim Meyering  <meyering@redhat.com>
57792
57793         Avoid two "parameter unused" warnings.
57794         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57795         Mark "st" as used.
57796
57797         Use "git COMMAND", not "git-COMMAND".
57798         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57799         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57800         * build-aux/git-version-gen: Use "git status", not "git-status".
57801
57802 2008-02-07  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57805         Avoids a crash on Windows Vista.
57806         Reported by Adam Strzelecki <ono@java.pl> via
57807         Simon Josefsson <simon@josefsson.org>.
57808
57809 2008-02-06  Bruno Haible  <bruno@clisp.org>
57810
57811         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57812         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57813         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57815         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57817         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57818         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57826         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57827         left-adjust flag.
57828         * tests/test-snprintf-posix.h (test_function): Likewise.
57829         * tests/test-sprintf-posix.h (test_function): Likewise.
57830         * tests/test-vasprintf-posix.c (test_function): Likewise.
57831         * doc/posix-functions/fprintf.texi: Update.
57832         * doc/posix-functions/printf.texi: Update.
57833         * doc/posix-functions/snprintf.texi: Update.
57834         * doc/posix-functions/sprintf.texi: Update.
57835         * doc/posix-functions/vfprintf.texi: Update.
57836         * doc/posix-functions/vprintf.texi: Update.
57837         * doc/posix-functions/vsnprintf.texi: Update.
57838         * doc/posix-functions/vsprintf.texi: Update.
57839         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57840
57841 2008-02-06  Bruno Haible  <bruno@clisp.org>
57842
57843         Fix bug introduced on 2008-01-26.
57844         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57845
57846 2008-02-06  Bruno Haible  <bruno@clisp.org>
57847
57848         Fix bug introduced on 2007-06-10.
57849         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57850         !NEED_PRINTF_FLAG_ZERO.
57851
57852 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57853
57854         getloadavg: use libperfstat on AIX5
57855         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57856
57857 2008-02-03  Bruno Haible  <bruno@clisp.org>
57858
57859         * lib/diffseq.h: Add comments about required #includes.
57860         Reported by Michael Biggs <gnulib@doubleplum.net>.
57861
57862 2008-02-01  Bruno Haible  <bruno@clisp.org>
57863
57864         * users.txt: Add gnuit.
57865
57866 2008-01-31  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/md4.c (set_uint32): Mark as inline.
57869         * lib/md5.c (set_uint32): Likewise.
57870         * lib/sha1.c (set_uint32): Likewise.
57871         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57872         * m4/md5.m4 (gl_MD5): Likewise.
57873         * m4/sha1.m4 (gl_SHA1): Likewise.
57874
57875 2008-01-31  Jim Meyering  <meyering@redhat.com>
57876
57877         Use "sizeof VAR", rather than a literal "4".
57878         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57879         * lib/md4.c (md4_read_ctx): Likewise.
57880         * lib/sha1.c (sha1_read_ctx): Likewise.
57881
57882 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57883
57884         * tests/test-sha1.c: New file, based on test-md5.c.
57885
57886         * modules/crypto/sha1-tests: New file.
57887
57888 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57889
57890         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57891
57892 2008-01-31  Jim Meyering  <meyering@redhat.com>
57893
57894         Prefer "sizeof v" over the equivalent "4".
57895         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57896         * lib/md5.c (set_uint32): Likewise.
57897         * lib/sha1.c (set_uint32): Likewise.
57898
57899 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57900
57901         * lib/sha1.c (set_uint32): Mark function as static.
57902
57903 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57904
57905         md2: clarify comments to say that alignment is not required.
57906         * lib/md2.h: Remove warning about alignment in comment.
57907         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57908         never been required.
57909
57910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57911
57912         md4: adapt alignment constraint fix from sha1.
57913         * lib/md4.c (set_uint32): New function, from sha1.c
57914         (md4_read_ctx): Use it.
57915         (md4_finish_ctx): Doc fix.
57916         * lib/md4.h: Doc fix.
57917
57918 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57919
57920         md5: adapt alignment constraint fix from sha1.
57921         * lib/md5.c (set_uint32): New function, from sha1.c
57922         (md5_read_ctx): Use it.
57923         (md5_finish_ctx): Doc fix.
57924         * lib/md5.h: Doc fix.
57925
57926 2008-01-30  Peter Palfrader  <weasel@debian.org>
57927
57928         sha1: remove the result buffer alignment constraint
57929         * lib/sha1.c (set_uint32): New function.
57930         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57931         constraint.
57932         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57933         * lib/sha1.h: Likewise.
57934
57935 2008-01-30  Andreas Schwab  <schwab@suse.de>
57936             Bruno Haible  <bruno@clisp.org>
57937
57938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57939         correct definition of LDBL_MIN_EXP.
57940
57941 2008-01-30  Karl Berry  <karl@gnu.org>
57942
57943         * config/srclist-update: try to preserve x bit on updates.
57944         * config/srclistvars.sh: update for karl.
57945
57946 2008-01-29  Jim Meyering  <meyering@redhat.com>
57947
57948         vasnprintf.c: Avoid warning about unused label
57949         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57950         "overflow" label definition and associated code with the
57951         same cpp condition that guards the sole use of that label.
57952
57953 2008-01-26  Bruno Haible  <bruno@clisp.org>
57954
57955         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57956         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57957         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57958         * lib/isnanl-nolibm.h (isnanl): Likewise.
57959         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57960
57961 2008-01-26  Bruno Haible  <bruno@clisp.org>
57962
57963         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57964         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57965
57966 2008-01-26  Bruno Haible  <bruno@clisp.org>
57967
57968         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57969         GCC >= 4.0 built-in.
57970         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57971
57972 2008-01-26  Bruno Haible  <bruno@clisp.org>
57973
57974         Rename isnan, applicable to 'double' only, to isnand.
57975         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57976         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57977         (configure.ac): Update.
57978         (Include): Replace "isnan.h" with "isnand.h".
57979         * m4/isnand.m4: Renamed from m4/isnan.m4.
57980         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57981         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57982         instead of isnan.c.
57983         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57984         instead of HAVE_ISNAN_IN_LIBC.
57985         (isnand): Renamed from isnan.
57986         * lib/isnand.c: New file.
57987         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57988         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57989         (Makefile.am): Update.
57990         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57991         Include isnand.h instead of isnan.h.
57992         (main): Test isnand instead of isnan.
57993         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57994         isnan-nolibm.
57995         * modules/frexp (Depends-on): Likewise.
57996         * modules/frexp-tests (Depends-on): Likewise.
57997         * modules/frexp-nolibm (Depends-on): Likewise.
57998         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57999         * modules/isfinite (Depends-on): Likewise.
58000         * modules/round-tests (Depends-on): Likewise.
58001         * modules/signbit (Depends-on): Likewise.
58002         * modules/signbit-tests (Depends-on): Likewise.
58003         * modules/snprintf-posix (Depends-on): Likewise.
58004         * modules/sprintf-posix (Depends-on): Likewise.
58005         * modules/trunc-tests (Depends-on): Likewise.
58006         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58007         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58008         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58010         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58012         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58013         * modules/vasnprintf-posix (Depends-on): Likewise.
58014         * modules/vasprintf-posix (Depends-on): Likewise.
58015         * modules/vfprintf-posix (Depends-on): Likewise.
58016         * modules/vsnprintf-posix (Depends-on): Likewise.
58017         * modules/vsprintf-posix (Depends-on): Likewise.
58018         * lib/frexp.c: Include isnand.h instead of isnan.h.
58019         (ISNAN): Set to isnand instead of isnan.
58020         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58021         (gl_isfinited): Use isnand instead of isnan.
58022         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58023         (gl_signbitd): Use isnand instead of isnan.
58024         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58025         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58026         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58027         (main): Use isnand instead of isnan.
58028         * tests/test-round1.c: Include isnand.h.
58029         (main): Use isnand instead of isnan.
58030         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58031         (ISNAN): Set to isnand instead of isnan.
58032         * tests/test-trunc1.c: Include isnand.h.
58033         (main): Use isnand instead of isnan.
58034         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58035         (equal): Use isnand instead of isnan.
58036         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58037         isnand-nolibm.
58038         * NEWS: Mention the change.
58039
58040 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58041             Bruno Haible  <bruno@clisp.org>
58042
58043         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58044         the GCC builtins for signbits are present and set
58045         REPLACE_SIGNBIT_USING_GCC if so.
58046         * lib/math.in.h (signbit): Define using GCC builtins if
58047         REPLACE_SIGNBIT_USING_GCC is set.
58048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58049         REPLACE_SIGNBIT_USING_GCC.
58050         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58051
58052 2008-01-25  Jim Meyering  <meyering@redhat.com>
58053
58054         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58055         * lib/poll.c: Include <config.h>, not "config.h".
58056         * tests/test-getaddrinfo.c: Likewise.
58057
58058 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58059
58060         * modules/sockets-tests: New file.
58061
58062 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58063
58064         * modules/sockets: New module, can be used to call WSA_Startup and
58065         WSA_Cleanup when needed.
58066
58067         * lib/sockets.h, lib/sockets.c: New files.
58068
58069         * m4/sockets.m4: New file.
58070
58071         * tests/test-sockets.c: New file.
58072
58073 2008-01-19  Bruno Haible  <bruno@clisp.org>
58074
58075         * doc/posix-headers: Renamed from doc/headers.
58076         * doc/posix-functions: Renamed from doc/functions.
58077         * doc/gnulib.texi: Update.
58078
58079 2008-01-19  Bruno Haible  <bruno@clisp.org>
58080
58081         * doc/glibc-functions/strcasestr.texi: Include contents of
58082         doc/functions/strcasestr.texi, fixing the list of platforms.
58083         * doc/functions/strcasestr.texi: Remove file.
58084
58085 2008-01-19  Bruno Haible  <bruno@clisp.org>
58086
58087         * doc/glibc-functions/memmem.texi: Include contents of
58088         doc/functions/memmem.texi.
58089         * doc/functions/memmem.texi: Remove file.
58090
58091 2008-01-18  Bruno Haible  <bruno@clisp.org>
58092
58093         * doc/glibc-functions/*.texi: New files.
58094         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58095         to use the new files.
58096
58097 2008-01-17  Bruno Haible  <bruno@clisp.org>
58098
58099         * tests/test-gethostname.c (main): Fix printf statement.
58100
58101 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58102
58103         * modules/gethostname-tests: New file.
58104
58105         * tests/test-gethostname.c: New file.
58106
58107 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58108
58109         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58110         used by the UNAME case.  Reported by Bruno Haible
58111         <bruno@clisp.org>.
58112
58113 2008-01-17  Eric Blake  <ebb9@byu.net>
58114
58115         Convert c-strcasestr to be more efficient.
58116         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58117         (Depends-on): Add c-strcase, remove malloca, strnlen.
58118         * tests/test-c-strcasestr.c (main): Enhance test.
58119         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58120
58121 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58122
58123         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58124         Use it in creating po/Makevars.
58125
58126 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58127
58128         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58129         Applications that requires it should initialize libgcrypt
58130         manually.
58131
58132 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58133
58134         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58135
58136 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         Fix problem with getdate on mingw32 reported by Simon Josefsson
58139         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58140         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58141         tzname", when deciding whether to declare tzname.
58142         * lib/strftime.c (tzname): Likewise.
58143
58144 2008-01-15  Bruno Haible  <bruno@clisp.org>
58145
58146         Work around a MacOS X 10.5 bug in frexpl().
58147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58148         * doc/functions/frexpl.texi: Document the bug.
58149         Reported by Elias Pipping <pipping@gentoo.org>.
58150
58151 2008-01-14  Eric Blake  <ebb9@byu.net>
58152
58153         Touch up previous patch.
58154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58155         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58156
58157         Convert strcasestr module to use Two-Way algorithm.
58158         * modules/strcasestr-simple: New module, based on the old
58159         strcasestr, but with Two-Way rather than KMP.
58160         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58161         * lib/string.in.h (rpl_strcasestr): Declare.
58162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58163         performance.
58164         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58165         * modules/string (Makefile.am): Support strcasestr.
58166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58167         * modules/strcasestr-tests (Depends-on): Check for alarm.
58168         * tests/test-strcasestr.c: Augment test.
58169         * lib/str-two-way.h: Clean up stray macro.
58170         * NEWS: Document new module.
58171         * MODULES.html.sh (string handling): Likewise.
58172         * doc/functions/strcasestr.texi: New file.
58173         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58174         here, since it is not a POSIX function.
58175
58176 2008-01-14  Colin Watson  <cjwatson@debian.org>
58177             Bruno Haible  <bruno@clisp.org>
58178
58179         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58180         works fine; if not, set REPLACE_STRSIGNAL.
58181         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58183         REPLACE_STRSIGNAL.
58184         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58185         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58186         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58187
58188 2008-01-14  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/strsignal (Include): Change to <string.h>.
58191
58192 2008-01-14  Colin Watson  <cjwatson@debian.org>
58193
58194         * modules/argp (Notice): Add a notice recommending to change
58195         XGETTEXT_OPTIONS.
58196         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58197
58198 2008-01-13  Colin Watson  <cjwatson@debian.org>
58199
58200         * modules/strsignal-tests: New file.
58201         * tests/test-strsignal.c: New file.
58202
58203         * lib/strsignal.c: New file, from glibc with modifications.
58204         * lib/siglist.h: New file, from glibc with modifications.
58205         * lib/string.in.h (strsignal): New declaration.
58206         * m4/strsignal.m4: New file.
58207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58208         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58209         * modules/strsignal: New file.
58210         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58211         HAVE_DECL_STRSIGNAL.
58212
58213 2008-01-13  Bruno Haible  <bruno@clisp.org>
58214
58215         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58216         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58219
58220 2008-01-13  Bruno Haible  <bruno@clisp.org>
58221
58222         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58223         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58224         * lib/argp.h (__attribute__): Likewise.
58225         * lib/c-stack.c (__attribute__): Likewise.
58226         * lib/error.h (__attribute__): Likewise.
58227         * lib/fts.c (__attribute__): Likewise.
58228         * lib/openat.h (__attribute__): Likewise.
58229         * lib/stdio.in.h (__attribute__): Likewise.
58230         * lib/string.in.h (__attribute__): Likewise.
58231         * lib/utimens.c (__attribute__): Likewise.
58232         * lib/vasnprintf.h (__attribute__): Likewise.
58233         * lib/xalloc.h (__attribute__): Likewise.
58234         * lib/xprintf.h (__attribute__): Likewise.
58235         * lib/xstrtol.h (__attribute__): Likewise.
58236         * lib/xvasprintf.h (__attribute__): Likewise.
58237
58238 2008-01-12  Bruno Haible  <bruno@clisp.org>
58239
58240         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58241         * doc/glibc-headers/a.out.texi: New file.
58242         * doc/glibc-headers/aliases.texi: New file.
58243         * doc/glibc-headers/alloca.texi: New file.
58244         * doc/glibc-headers/ar.texi: New file.
58245         * doc/glibc-headers/argp.texi: New file.
58246         * doc/glibc-headers/argz.texi: New file.
58247         * doc/glibc-headers/byteswap.texi: New file.
58248         * doc/glibc-headers/crypt.texi: New file.
58249         * doc/glibc-headers/endian.texi: New file.
58250         * doc/glibc-headers/envz.texi: New file.
58251         * doc/glibc-headers/err.texi: New file.
58252         * doc/glibc-headers/error.texi: New file.
58253         * doc/glibc-headers/execinfo.texi: New file.
58254         * doc/glibc-headers/fpu_control.texi: New file.
58255         * doc/glibc-headers/fstab.texi: New file.
58256         * doc/glibc-headers/fts.texi: New file.
58257         * doc/glibc-headers/getopt.texi: New file.
58258         * doc/glibc-headers/ieee754.texi: New file.
58259         * doc/glibc-headers/ifaddrs.texi: New file.
58260         * doc/glibc-headers/libintl.texi: New file.
58261         * doc/glibc-headers/mcheck.texi: New file.
58262         * doc/glibc-headers/mntent.texi: New file.
58263         * doc/glibc-headers/obstack.texi: New file.
58264         * doc/glibc-headers/paths.texi: New file.
58265         * doc/glibc-headers/printf.texi: New file.
58266         * doc/glibc-headers/pty.texi: New file.
58267         * doc/glibc-headers/resolv.texi: New file.
58268         * doc/glibc-headers/shadow.texi: New file.
58269         * doc/glibc-headers/sysexits.texi: New file.
58270         * doc/glibc-headers/ttyent.texi: New file.
58271
58272 2008-01-12  Jim Meyering  <meyering@redhat.com>
58273
58274         announce-gen: emit Gnulib's git-based version string.
58275         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58276         New option --gnulib-version=V, where V is expected to be
58277         the output of running git describe in the gnulib directory.
58278         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58279         not useful, and plan to stop publishing an xdelta file with each
58280         coreutils release.
58281
58282         * build-aux/announce-gen: Also check for lzma-compressed files.
58283
58284 2008-01-11  Bruno Haible  <bruno@clisp.org>
58285
58286         * tests/test-memmem.c (main): Increase maximum allowed time.
58287         * tests/test-strstr.c (main): Likewise.
58288
58289 2008-01-11  Bruno Haible  <bruno@clisp.org>
58290
58291         * doc/functions/memmem.texi: Add more precisions about platforms.
58292         * doc/functions/strstr.texi: Likewise.
58293
58294 2008-01-10  Eric Blake  <ebb9@byu.net>
58295
58296         * m4/strstr.m4: Delete cruft from copy-n-paste.
58297         Reported by Bruno Haible.
58298
58299 2008-01-10  Bruno Haible  <bruno@clisp.org>
58300
58301         Make c-strstr rely on strstr.
58302         * lib/c-strstr.c: Don't include str-kmp.h.
58303         (c_strstr): Define in terms of strstr.
58304         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58305         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58306
58307 2008-01-10  Bruno Haible  <bruno@clisp.org>
58308
58309         * doc/gnulib.texi (String Functions in C Locale): New section.
58310         * doc/c-ctype.texi: New file.
58311         * doc/c-strcase.texi: New file.
58312         * doc/c-strcaseeq.texi: New file.
58313         * doc/c-strcasestr.texi: New file.
58314         * doc/c-strstr.texi: New file.
58315         * doc/c-strtod.texi: New file.
58316         * doc/c-strtold.texi: New file.
58317
58318 2008-01-10  Eric Blake  <ebb9@byu.net>
58319
58320         * lib/relocatable.h: Fix a comment.
58321
58322 2008-01-10  Eric Blake  <ebb9@byu.net>
58323
58324         Share two-way algorithm.
58325         * lib/str-two-way.h: New file, merged from...
58326         * lib/memmem.c: ...here...
58327         * lib/strstr.c: ...and here.
58328         * modules/memmem (Files): Use it.
58329         * modules/strstr (Files): Likewise.
58330
58331         Avoid quadratic strstr implementations.
58332         * lib/strstr.c: New file.
58333         * m4/strstr.m4: Likewise.
58334         * modules/strstr: Likewise.
58335         * modules/strstr-tests: Likewise.
58336         * tests/test-strstr.c: Likewise.
58337         * lib/string.in.h (rpl_strstr): Declare.
58338         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58340         * modules/string (Makefile.am): Likewise.
58341         * MODULES.html.sh (string handling): Mention new module.
58342         * doc/functions/strstr.texi (strstr): Document the bug.
58343
58344 2008-01-10  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/relocatable.h (relocate): State whether result is freshly
58347         allocated or not.
58348         * lib/relocatable.c (relocate): Return a freshly allocated string
58349         instead of a pointer to a privately held string.
58350         Reported by Sylvain Beucler <beuc@gnu.org>.
58351
58352 2008-01-10  Colin Watson  <cjwatson@debian.org>
58353
58354         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58355         s/S_ISNLK/S_ISLNK/.
58356
58357 2008-01-09  Bruno Haible  <bruno@clisp.org>
58358
58359         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58360         and other files.
58361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58362         if it's only a guess.
58363         * modules/memmem: Simplify by depending on memmem-simple.
58364
58365 2008-01-09  Bruno Haible  <bruno@clisp.org>
58366
58367         Work around OpenBSD 4.0 tdelete() bug.
58368         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58369         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58370         macros and don't redefine the enum values.
58371         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58372         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58373         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58374
58375 2008-01-09  Bruno Haible  <bruno@clisp.org>
58376
58377         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58378         (main): Don't perform the tests if setlocale did not install a UTF-8
58379         locale. Needed on OpenBSD 4.0.
58380         * modules/wcwidth-tests (Depends-on): Add localcharset.
58381
58382 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58383
58384         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58385         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58386         * NEWS: announce this.
58387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58388
58389 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58390         and Eric Blake  <ebb9@byu.net>
58391
58392         Add memmem-simple module.
58393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58394         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58395         * modules/memmem-simple: New file.
58396         * modules/memmem (Description): Tweak.
58397         * MODULES.html.sh (string handling): Mention new module.
58398         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58399         addressed by memmem-simple.
58400         * NEWS: Document the difference.
58401
58402 2008-01-09  Eric Blake  <ebb9@byu.net>
58403
58404         Give gcc some memmem optimization hints.
58405         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58406         (strcasestr): Declare as pure.
58407         * modules/memmem (Maintainer): Claim my implementation.
58408
58409 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58410
58411         Support AIX 6.1 and higher.
58412         * build-aux/config.libpath: Likewise.
58413         * build-aux/config.rpath: Likewise.
58414
58415 2008-01-08  Jim Meyering  <meyering@redhat.com>
58416             Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58419         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58420         Reported by Peter Fales in
58421         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58422
58423 2008-01-08  Bruno Haible  <bruno@clisp.org>
58424
58425         * modules/unictype/category-of (Depends-on): Add
58426         unictype/category-none.
58427         * modules/unictype/category-and-tests (Depends-on): Add
58428         unictype/category-{L,N,Lu,Nd}.
58429         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58430         * modules/unictype/category-or-tests (Depends-on): Add
58431         unictype/category-{L,N}.
58432         * modules/unictype/category-name-tests (Depends-on): Add
58433         unictype/category-{Z,Nl}.
58434         Reported by Simon Josefsson.
58435
58436 2008-01-08  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58439         convention better.
58440         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58441         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58442         Reported by Peter Miller <millerp@canb.auug.org.au>.
58443
58444 2008-01-08  Eric Blake  <ebb9@byu.net>
58445
58446         Rewrite memmem to guarantee linear complexity without malloc.
58447         * lib/memmem.c (memmem): Use Two-Way rather than
58448         Knuth-Morris-Pratt, to allow O(1) space usage.
58449         (critical_factorization, two_way_short_needle)
58450         (two_way_long_needle): New functions.
58451         (knuth_morris_pratt): Delete.
58452         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58453         Add stdint.
58454         * tests/test-memmem.c (main): Add tests for periodic needle and
58455         sublinear performance.
58456         * doc/functions/memmem.texi (memmem): Document other deficiencies
58457         in cygwin and older glibc.
58458
58459 2008-01-08  Bruno Haible  <bruno@clisp.org>
58460
58461         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58462         augmentation.
58463
58464 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58465
58466         Add a configure time option: --disable-acl.
58467         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58468         AC_ARG_ENABLE(acl).
58469
58470 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58471
58472         * tests/test-localename.c: Don't include obsolete "setenv.h".
58473
58474         * modules/localename-tests (Depends-on): Need unsetenv.
58475
58476 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58477
58478         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58479
58480 2008-01-06  Colin Watson  <cjwatson@debian.org>
58481
58482         * users.txt: Add man-db.
58483
58484 2008-01-07  Bruno Haible  <bruno@clisp.org>
58485
58486         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58487         previous section name.
58488
58489 2008-01-07  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/progname.c (set_program_name): Don't strip off a leading
58492         "lt-" prefix outside a .libs directory.
58493         Suggested by Paul Eggert.
58494
58495 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58496             Bruno Haible  <bruno@clisp.org>
58497
58498         Improve memory cleanup in 'relocatable' module.
58499         * lib/relocatable.h (compute_curr_prefix): Change return type to
58500         'char *'.
58501         * lib/relocatable.c (compute_curr_prefix): Change return type to
58502         'char *'. Free curr_installdir after use.
58503         (relocate): Free curr_prefix_better after use.
58504         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58505
58506 2008-01-01  Bruno Haible  <bruno@clisp.org>
58507
58508         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58509         failure on older glibc systems.
58510         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58511
58512 2008-01-05  Eric Blake  <ebb9@byu.net>
58513
58514         Avoid quadratic system memmem.
58515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58516         Reported by Ralf Wildenhues.
58517
58518         Fix memmem test for mingw.
58519         * modules/memmem-tests (configure.ac): Check for alarm.
58520         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58521         it.
58522         * doc/functions/memmem.texi: New file.
58523         * doc/gnulib.texi (Function Substitutes): Add memmem.
58524         Reported by Bruno Haible.
58525
58526 2008-01-04  Bruno Haible  <bruno@clisp.org>
58527
58528         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58529         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58530         gl_HEADER_STRING_H_DEFAULTS.
58531
58532 2008-01-04  Eric Blake  <ebb9@byu.net>
58533
58534         Shorten duration of memmem test.
58535         * tests/test-memmem.c (main): Use alarm to declare failure if test
58536         is taking too long.
58537         Reported by Ralf Wildenhues.
58538
58539 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58540
58541         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58542         string, needed by strerror.
58543
58544 2008-01-03  Colin Watson  <cjwatson@debian.org>
58545             Bruno Haible  <bruno@clisp.org>
58546
58547         * doc/gnulib-tool.texi (Localization): New section.
58548
58549 2008-01-02  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58552         variables to 'unsigned char *' type.
58553         Reported by Paul Eggert.
58554
58555 2008-01-02  Jim Meyering  <jim@meyering.net>
58556
58557         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58558
58559 2007-12-31  Jim Meyering  <jim@meyering.net>
58560
58561         Avoid use of private FTS type name.
58562         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58563
58564 2007-12-30  Karl Berry  <karl@gnu.org>
58565
58566         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58567         work around defect in Texinfo and/or the standalone Info browser.
58568
58569 2007-12-30  Bruno Haible  <bruno@clisp.org>
58570
58571         Unify 5 copies of the KMP code.
58572         * lib/str-kmp.h: New file.
58573         * lib/c-strcasestr.c: Include str-kmp.h.
58574         (knuth_morris_pratt): Remove function.
58575         (c_strcasestr): Update.
58576         * lib/c-strstr.c: Include str-kmp.h.
58577         (knuth_morris_pratt): Remove function.
58578         (c_strcasestr): Update.
58579         * lib/mbscasestr.c: Include str-kmp.h.
58580         (knuth_morris_pratt_unibyte): Remove function.
58581         * lib/mbsstr.c: Include str-kmp.h.
58582         (knuth_morris_pratt_unibyte): Remove function.
58583         * lib/strcasestr.c: Include str-kmp.h.
58584         (knuth_morris_pratt): Remove function.
58585         (strcasestr): Update.
58586         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58587         * modules/c-strstr (Files): Likewise.
58588         * modules/mbscasestr (Files): Likewise.
58589         * modules/mbsstr (Files): Likewise.
58590         * modules/strcasestr (Files): Likewise.
58591         Suggested by Paul Eggert.
58592
58593 2007-12-30  Bruno Haible  <bruno@clisp.org>
58594
58595         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58596         defined.
58597
58598 2007-12-30  Bruno Haible  <bruno@clisp.org>
58599
58600         * lib/xmalloca.h: Include xalloc.h.
58601         (xnmalloca): New macro.
58602
58603 2007-12-30  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/malloca.h (nmalloca): New macro.
58606         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58607         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58608         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58609         knuth_morris_pratt_multibyte): Likewise.
58610         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58611         knuth_morris_pratt_multibyte): Likewise.
58612         * lib/memmem.c (knuth_morris_pratt): Likewise.
58613         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58614
58615 2007-12-25  Bruno Haible  <bruno@clisp.org>
58616
58617         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58618         * lib/glob.c: Don't include openat.h.
58619         (link_exists2_p): Add back the code that deals with the
58620         !GLOB_ALTDIRFUNC case.
58621         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58622         let it do the filename concatenation.
58623         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58624         * modules/glob (Depends-on): Remove openat.
58625
58626 2007-12-31  Bruno Haible  <bruno@clisp.org>
58627
58628         * modules/dirfd (License): Change to LGPLv2+.
58629         Approved by Jim Meyering.
58630
58631 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58634         when multiplying M by sizeof (size_t).
58635
58636 2007-12-10  Martin Lambers  <marlam@marlam.de>
58637
58638         Override getpagesize on mingw.
58639         * lib/getpagesize.c: New file.
58640         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58641         * modules/getpagesize (Files): Add lib/getpagesize.c.
58642         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58644         REPLACE_GETPAGESIZE.
58645         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58646
58647 2007-12-25  Bruno Haible  <bruno@clisp.org>
58648
58649         * modules/localcharset (Notice): New field.
58650         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58651         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58652
58653 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58654             Bruno Haible  <bruno@clisp.org>
58655
58656         Avoid using the syntax symbol() in formatted documentation.
58657         * MODULES.html.sh (func_module): When replacing symbol() with a
58658         hyperlink, remove the parentheses. Show an error if some remain.
58659         Recognize and render the '...' syntax.
58660         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58661         Rework. Add paragraph about GCC's inlining.
58662         * doc/alloca.texi: Likewise.
58663         * doc/error.texi: Remove parentheses from symbol reference.
58664         * doc/gnulib-intro.texi: Likewise.
58665         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58666         * modules/fnmatch (Description): Reword to say "the ... function".
58667         * modules/full-read (Description): Likewise.
58668         * modules/full-write (Description): Likewise.
58669         * modules/safe-read (Description): Likewise.
58670         * modules/safe-write (Description): Likewise.
58671         * modules/strchrnul (Description): Likewise.
58672         * modules/trim (Description): Likewise.
58673         * modules/error (Description): Remove parentheses from symbol
58674         references.
58675         * modules/verror (Description): Likewise.
58676         Reported by Karl Berry.
58677
58678 2007-12-25  Bruno Haible  <bruno@clisp.org>
58679
58680         Fixup after 2007-10-16 commit.
58681         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58682
58683 2007-12-24  Bruno Haible  <bruno@clisp.org>
58684
58685         Make --enable-relocatable work with DESTDIR.
58686         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58687         to compute installdir from destprog.
58688         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58689         also set the RELOC_DESTDIR variable.
58690         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58691
58692 2007-12-24  Bruno Haible  <bruno@clisp.org>
58693
58694         Fix link error due to xalloc_die().
58695         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58696         of xreadlink.
58697         * lib/relocwrapper.c: Update comments.
58698         * build-aux/install-reloc: Remove xreadlink.c from file list.
58699         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58700         xreadlink.c.
58701         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58702
58703 2007-12-24  Bruno Haible  <bruno@clisp.org>
58704
58705         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58706         * lib/setenv.h: Remove file.
58707         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58708         lib/setenv.h.
58709         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58710         (Depends-on): Add stdlib.
58711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58712         gl_FUNC_UNSETENV.
58713         (Include): Replace setenv.h with <stdlib.h>.
58714         * modules/unsetenv: New file.
58715         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58716         * lib/unsetenv.c: Include <stdlib.h> first.
58717         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58718         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58719         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58720         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58721         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58722         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58724         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58725         * doc/functions/unsetenv.texi: Update.
58726         * modules/xsetenv (Depends-on): Add unsetenv.
58727         * modules/getdate (Depends-on): Likewise.
58728         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58729         * lib/xsetenv.c: Don't include setenv.h.
58730         * lib/getdate.y: Likewise.
58731         * lib/relocwrapper.c: Likewise.
58732         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58733         (Depends-on): Add stdlib.
58734         * NEWS: Mention the changes.
58735         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58736
58737 2007-12-23  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58740         indentation.
58741
58742 2007-12-23  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/c-strcasestr.c: Add more comments.
58745         * lib/c-strstr.c: Likewise.
58746         * lib/mbscasestr.c: Likewise.
58747         * lib/mbsstr.c: Likewise.
58748         * lib/strcasestr.c: Likewise.
58749         * lib/memmem.c: Likewise.
58750
58751 2007-12-23  Bruno Haible  <bruno@clisp.org>
58752
58753         * tests/test-memmem.c: Include <string.h> first.
58754
58755 2007-12-22  Bruno Haible  <bruno@clisp.org>
58756
58757         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58758         the contents of $testsbase.
58759         Reported by Ralf Wildenhues.
58760
58761 2007-12-22  Bruno Haible  <bruno@clisp.org>
58762
58763         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58764         two variables local_ldadd_before, local_ldadd_last.
58765
58766 2007-12-20  Eric Blake  <ebb9@byu.net>
58767
58768         Work around circular library issue when cross-compiling.
58769         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58770         that progname.o does not need to pull in rpl_memcmp.
58771
58772 2007-12-19  Eric Blake  <ebb9@byu.net>
58773
58774         Fix memmem to avoid O(n^2) worst-case complexity.
58775         * lib/memmem.c (knuth_morris_pratt): New function.
58776         (memmem): Use it if first few naive iterations fail.
58777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58778         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58779         * modules/memchr (License): Likewise.
58780         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58781         malloca.
58782         * tests/test-memmem.c: Rewrite, borrowing ideas from
58783         test-mbsstr1.c; the old version wouldn't even compile!
58784         * modules/memmem-tests: New file.
58785         * lib/string.in.h (rpl_memmem): Add declaration.
58786         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58788         REPLACE_MEMMEM.
58789
58790 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58793         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58794         before any system include files, and undef after them all.  This
58795         should fix a problem on VMS reported by John E. Malmberg in
58796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58797
58798 2007-12-17  Eric Blake  <ebb9@byu.net>
58799
58800         Revert addition of verify, for BSD/OS.
58801         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58802         can't handle large files, for the sake of obsolete platforms.
58803         * modules/fseeko (Depends-on): Remove verify.
58804         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58805         * doc/functions/ftello.texi (ftello): Likewise.
58806         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58807         Reported by Larry Jones.
58808
58809 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58810
58811         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58812         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58813
58814 2007-12-17  Jim Meyering  <meyering@redhat.com>
58815
58816         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58817         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58818         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58819         * modules/getcwd (Depends-on): Add openat.
58820         Reported by Petr Salinger.
58821
58822 2007-12-17  Bruno Haible  <bruno@clisp.org>
58823
58824         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58825         avoid a segmentation fault of the configure test on x86_64 systems.
58826
58827 2007-12-15  Jim Meyering  <meyering@redhat.com>
58828
58829         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58830
58831 2007-12-13  Eric Blake  <ebb9@byu.net>
58832
58833         Another fseek test.
58834         * tests/test-fseek.c (main): Also test ungetc handling.
58835         * tests/test-fseeko.c (main): Likewise.
58836         * modules/fseeko (Depends-on): Add verify.
58837         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58838         large.
58839         Reported by Larry Jones.
58840
58841         Fix fseeko on mingw.
58842         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58843         seek.
58844
58845         Beef up fseek tests.
58846         * tests/test-fseek.c (main): Also test eof handling.
58847         * tests/test-fseeko.c (main): Likewise.
58848         Reported by Larry Jones.
58849
58850 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58851
58852         Fix fseeko on BSD-based platforms.
58853         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58854         successful seek.
58855
58856 2007-12-12  Eric Blake  <ebb9@byu.net>
58857
58858         Allow circular dependency of separate libtests.a
58859         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58860         when use_libtests.
58861
58862 2007-12-11  Eric Blake  <ebb9@byu.net>
58863
58864         Fix bug with -0.0L in previous patch.
58865         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58866         * tests/test-isnan.c (main): Also test on zeroes.
58867         * tests/test-isnanf.c (main): Likewise.
58868         * tests/test-isnanl.h (main): Likewise.
58869
58870         Detect pseudo-denormals on x86 even when cross-compiling.
58871         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58872         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58873         invalid bit patterns that happen to satisfy ==.
58874
58875         Avoid link failures with separate libtests.a.
58876         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58877         last, to satisfy circular dependencies.
58878
58879 2007-12-11  Eric Blake  <ebb9@byu.net>
58880         and Bruno Haible  <bruno@clisp.org>
58881
58882         Fix OpenBSD 4.0 <float.h> handling of long double.
58883         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58884         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58885         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58886
58887 2007-12-11  Jim Meyering  <meyering@redhat.com>
58888
58889         * users.txt: Add libvirt.
58890
58891         Support versions of autoconf prior to 2.59c.
58892         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58893         if it is not already defined.
58894
58895 2007-12-09  Bruno Haible  <bruno@clisp.org>
58896
58897         Let 'gnulib-tool --import' collect sources needed for the tests in
58898         tests/ rather than in lib/.
58899         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58900         argument. If true, add rules to generate libtests.a, and put libtests.a
58901         into $(LDADD). Consider source files in subdirectories and set
58902         uses_subdirs.
58903         (func_emit_initmacro_start, func_emit_initmacro_end,
58904         func_emit_initmacro_done): Pass all arguments explicitly.
58905         (func_import): Determine two module lists main_modules,
58906         testsrelated_modules. Determine use_libtests. Determine two variables
58907         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58908         instead of just sed_transform_lib_file. Determine two variables
58909         main_files and testsrelated_files. Compute 'files' as the union of
58910         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58911         func_add_or_update. In the generated gnulib-comp.m4, collect the
58912         object files for tests/ in different variables than those for lib/.
58913         Substitute LIBTESTS_LIBDEPS.
58914         (func_create_testdir): Combine the uses_subdirs results from
58915         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58916
58917 2007-12-09  Bruno Haible  <bruno@clisp.org>
58918
58919         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58920         the build-aux directory.
58921
58922 2007-12-09  Bruno Haible  <bruno@clisp.org>
58923
58924         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58925         introduced on 2006-09-09.
58926
58927 2007-12-07  Jim Meyering  <meyering@redhat.com>
58928
58929         Let these macros work also with autoconf-2.59.
58930         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58931         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58933
58934 2007-12-06  Jim Meyering  <meyering@redhat.com>
58935
58936         Avoid a configure-time syntax error in gl_FUNC_ACL.
58937         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58938         function in each branch, before testing the cache variable.
58939
58940 2007-12-04  Eric Blake  <ebb9@byu.net>
58941
58942         Make scripts executable.
58943         * build-aux/config.guess: Add execute permissions.
58944         * build-aux/config.sub: Likewise.
58945         * build-aux/gendocs.sh: Likewise.
58946
58947         Fix frexp on mingw.
58948         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58949         cross-compiling.
58950         * doc/functions/frexp.texi (frexp): Document the bug.
58951
58952         Make cygwin fseeko check more reliable.
58953         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58954         version numbers, rather than unrelated feature check.
58955         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58956         * doc/functions/ftello.texi (ftello): Likewise.
58957         Reported by Bruno Haible.
58958
58959         * m4/strerror.m4: Bump version number.
58960
58961 2007-12-03  Bruno Haible  <bruno@clisp.org>
58962
58963         * doc/functions/mprotect.texi: Mention the mingw problem.
58964
58965 2007-12-03  Eric Blake  <ebb9@byu.net>
58966
58967         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58968         REPLACE_STRERROR is initialized before this macro.
58969
58970 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58973         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58974         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58975         put -lsec in even for programs other than 'ls'.  This fixes a problem
58976         for gettext reported by Bruno Haible in
58977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58978         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58979         Add support for Solaris 10.  This isn't efficient, but should get the
58980         job done for now.
58981
58982 2007-12-03  James Youngman  <jay@gnu.org>
58983
58984         * doc/regexprops-generic.texi: change "an close-group" to "a
58985         close-group" and "illegal" to "not allowed".
58986
58987 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58988
58989         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58990         pr_byname.h. Needed for the rare case when the maintainer has done
58991         "make maintainer-clean" in the source directory and then attempts a
58992         build outside the source directory.
58993         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58994         scripts_byname.h.
58995
58996 2007-12-02  Martin Lambers <marlam@marlam.de>
58997             Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/getpagesize.h: Remove file.
59000         * lib/unistd.in.h: Include declaration of getpagesize here.
59001         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59002         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59003         HAVE_SYS_PARAM_H.
59004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59005         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59006         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59007         (Depends-on): Add unistd.
59008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59009         (Include): Use <unistd.h> instead of getpagesize.h.
59010         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59011         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59012         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59013         gl_GETPAGESIZE invocation, already handled by module dependency.
59014         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59015
59016 2007-12-02  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/strings-tests: New file.
59019         * tests/test-strings.c: New file.
59020
59021         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59022         * lib/strings.in.h: New file.
59023         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59024         * m4/strings_h.m4: New file.
59025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59026         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59027         * modules/strings: New file.
59028         * modules/string (Makefile.am): Update.
59029         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59030         Reported by Karl Berry.
59031
59032 2007-12-01  Eric Blake  <ebb9@byu.net>
59033
59034         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59035         accomodate fix in cygwin 1.5.25.
59036
59037 2007-12-01  Jim Meyering  <meyering@redhat.com>
59038
59039         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59040         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59041         that would inhibit utf8-optimization of a regexp containing line-
59042         or buffer-anchors, e.g., `^', `$'.
59043
59044 2007-11-30  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59047         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59048         glthread_recursive_lock_init.
59049         * lib/lock.c (glthread_recursive_lock_init)
59050         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59051         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59052
59053 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59054
59055         New function qset_acl, like set_acl but with syscall semantics.
59056         * lib/acl.h (qset_acl): New decl.
59057         * lib/acl.c (qset_acl): New function.
59058         (set_acl): Use new function.  Use more-consistent diagnostics.
59059
59060 2007-11-28  Jim Meyering  <meyering@redhat.com>
59061
59062         * modules/physmem (License): Change from GPL to LGPLv2+.
59063
59064 2007-11-26  Bruno Haible  <bruno@clisp.org>
59065
59066         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59067         'long double' type has excess precision.
59068         Reported by Jim Meyering in
59069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59070
59071 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59072
59073         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59074         Sync from <http://gnu.org/licenses>.
59075         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59076         with license text from same location.
59077         * doc/maintain.texi, doc/standards.texi:  Sync from
59078         <http://savannah.gnu.org/projects/gnustandards>.
59079
59080 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59081         and Jim Meyering  <meyering@redhat.com>
59082
59083         Adjust getdate' grammar to accept a slightly more regular language.
59084         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59085         Before, the former was rejected.
59086         * lib/getdate.y (digits_to_date_time): New function, factored
59087         out of ...
59088         (number): ...here.  Just call digits_to_date_time.
59089         (hybrid): New non-terminal to handle an <unsigned number,
59090         signed relative offset> sequence consistently.
59091
59092 2007-11-18  Jim Meyering  <meyering@redhat.com>
59093
59094         Pull my changes from coreutils:
59095         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59096         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59097         use of $gnulib_tool_option_extras, so that it's separated from the
59098         preceding argument.
59099
59100         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59101         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59102         parent destination directories before copying a file into place.
59103
59104 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59105
59106         bootstrap: work also with 4-argument variant of AC_INIT
59107         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59108
59109 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59110
59111         Port test-getaddrinfo to Solaris.
59112         Problem reported by Bruno Haible in
59113         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59114         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59115         explanation of setting 'hints'.
59116         Don't reject an implementation merely because it returns EAI_SERVICE.
59117         (EAI_SERVICE): Define to 0 if not defined.
59118
59119 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59120
59121         The license of gnu-make and posix-shell is now "GPLed build tool".
59122         * modules/gnu-make (License): Likewise.
59123         * modules/posix-shell (License): Likewise.
59124
59125         New module posix-shell, for determining a POSIX shell
59126         or perhaps something that is close enough to a POSIX shell.
59127         * m4/posix-shell.m4: New file.
59128         * modules/posix-shell: New file.
59129
59130         * MODULES.html.sh: Mention new module.
59131
59132         New module gnu-make, for determining whether we're using GNU Make.
59133         * m4/gnu-make.m4: New file.
59134         * modules/gnu-make: New file.
59135         * MODULES.html.sh: Mention new module.
59136
59137 2007-11-14  Jim Meyering  <meyering@redhat.com>
59138
59139         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59140         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59141         use this macro to create a function _definition_.
59142         Remove useless "#undef ARGMATCH_DIE".
59143
59144 2007-11-14  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/config.charset: Update for OpenBSD 4.1.
59147         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59148
59149 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59150
59151         Document 64-bit #if problems in stdint.texi.
59152         * doc/headers/stdint.texi (stdint.h): Mention problems with
59153         64-bit-#if, and how to work around them.
59154
59155         Don't insist on 'long long int' support in the preprocessor.  It
59156         breaks too many things.  For example, PRIdMAX still uses a 'long
59157         long int' format with the latest Sun compiler, even though
59158         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59159         preprocessor problem.  This causes the latest coreutils to dump
59160         core on Solaris 10 sparc with the Sun C compiler.
59161         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59162         the troublesome expressions at configure-time, not at #if-time.
59163         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59164         preprocessor.
59165         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59166         compile-time C checks, done at 'configure'-time.
59167         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59168         * modules/inttypes (Makefile): Substitute the new symbols that
59169         gl_INTTYPES_H now generates.
59170         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59171
59172 2007-11-12  Bruno Haible  <bruno@clisp.org>
59173
59174         Tests for Unicode character classification functions.
59175
59176         * modules/unictype/bidicategory-byname-tests: New file.
59177         * modules/unictype/bidicategory-name-tests: New file.
59178         * modules/unictype/bidicategory-of-tests: New file.
59179         * modules/unictype/bidicategory-test-tests: New file.
59180         * modules/unictype/block-list-tests: New file.
59181         * modules/unictype/block-of-tests: New file.
59182         * modules/unictype/block-test-tests: New file.
59183         * modules/unictype/category-C-tests: New file.
59184         * modules/unictype/category-Cc-tests: New file.
59185         * modules/unictype/category-Cf-tests: New file.
59186         * modules/unictype/category-Cn-tests: New file.
59187         * modules/unictype/category-Co-tests: New file.
59188         * modules/unictype/category-Cs-tests: New file.
59189         * modules/unictype/category-L-tests: New file.
59190         * modules/unictype/category-Ll-tests: New file.
59191         * modules/unictype/category-Lm-tests: New file.
59192         * modules/unictype/category-Lo-tests: New file.
59193         * modules/unictype/category-Lt-tests: New file.
59194         * modules/unictype/category-Lu-tests: New file.
59195         * modules/unictype/category-M-tests: New file.
59196         * modules/unictype/category-Mc-tests: New file.
59197         * modules/unictype/category-Me-tests: New file.
59198         * modules/unictype/category-Mn-tests: New file.
59199         * modules/unictype/category-N-tests: New file.
59200         * modules/unictype/category-Nd-tests: New file.
59201         * modules/unictype/category-Nl-tests: New file.
59202         * modules/unictype/category-No-tests: New file.
59203         * modules/unictype/category-P-tests: New file.
59204         * modules/unictype/category-Pc-tests: New file.
59205         * modules/unictype/category-Pd-tests: New file.
59206         * modules/unictype/category-Pe-tests: New file.
59207         * modules/unictype/category-Pf-tests: New file.
59208         * modules/unictype/category-Pi-tests: New file.
59209         * modules/unictype/category-Po-tests: New file.
59210         * modules/unictype/category-Ps-tests: New file.
59211         * modules/unictype/category-S-tests: New file.
59212         * modules/unictype/category-Sc-tests: New file.
59213         * modules/unictype/category-Sk-tests: New file.
59214         * modules/unictype/category-Sm-tests: New file.
59215         * modules/unictype/category-So-tests: New file.
59216         * modules/unictype/category-Z-tests: New file.
59217         * modules/unictype/category-Zl-tests: New file.
59218         * modules/unictype/category-Zp-tests: New file.
59219         * modules/unictype/category-Zs-tests: New file.
59220         * modules/unictype/category-and-not-tests: New file.
59221         * modules/unictype/category-and-tests: New file.
59222         * modules/unictype/category-byname-tests: New file.
59223         * modules/unictype/category-name-tests: New file.
59224         * modules/unictype/category-none-tests: New file.
59225         * modules/unictype/category-of-tests: New file.
59226         * modules/unictype/category-or-tests: New file.
59227         * modules/unictype/category-test-withtable-tests: New file.
59228         * modules/unictype/combining-class-tests: New file.
59229         * modules/unictype/ctype-alnum-tests: New file.
59230         * modules/unictype/ctype-alpha-tests: New file.
59231         * modules/unictype/ctype-blank-tests: New file.
59232         * modules/unictype/ctype-cntrl-tests: New file.
59233         * modules/unictype/ctype-digit-tests: New file.
59234         * modules/unictype/ctype-graph-tests: New file.
59235         * modules/unictype/ctype-lower-tests: New file.
59236         * modules/unictype/ctype-print-tests: New file.
59237         * modules/unictype/ctype-punct-tests: New file.
59238         * modules/unictype/ctype-space-tests: New file.
59239         * modules/unictype/ctype-upper-tests: New file.
59240         * modules/unictype/ctype-xdigit-tests: New file.
59241         * modules/unictype/decimal-digit-tests: New file.
59242         * modules/unictype/digit-tests: New file.
59243         * modules/unictype/mirror-tests: New file.
59244         * modules/unictype/numeric-tests: New file.
59245         * modules/unictype/property-alphabetic-tests: New file.
59246         * modules/unictype/property-ascii-hex-digit-tests: New file.
59247         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59248         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59249         * modules/unictype/property-bidi-block-separator-tests: New file.
59250         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59251         * modules/unictype/property-bidi-common-separator-tests: New file.
59252         * modules/unictype/property-bidi-control-tests: New file.
59253         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59254         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59255         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59256         * modules/unictype/property-bidi-european-digit-tests: New file.
59257         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59258         * modules/unictype/property-bidi-left-to-right-tests: New file.
59259         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59260         * modules/unictype/property-bidi-other-neutral-tests: New file.
59261         * modules/unictype/property-bidi-pdf-tests: New file.
59262         * modules/unictype/property-bidi-segment-separator-tests: New file.
59263         * modules/unictype/property-bidi-whitespace-tests: New file.
59264         * modules/unictype/property-byname-tests: New file.
59265         * modules/unictype/property-combining-tests: New file.
59266         * modules/unictype/property-composite-tests: New file.
59267         * modules/unictype/property-currency-symbol-tests: New file.
59268         * modules/unictype/property-dash-tests: New file.
59269         * modules/unictype/property-decimal-digit-tests: New file.
59270         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59271         * modules/unictype/property-deprecated-tests: New file.
59272         * modules/unictype/property-diacritic-tests: New file.
59273         * modules/unictype/property-extender-tests: New file.
59274         * modules/unictype/property-format-control-tests: New file.
59275         * modules/unictype/property-grapheme-base-tests: New file.
59276         * modules/unictype/property-grapheme-extend-tests: New file.
59277         * modules/unictype/property-grapheme-link-tests: New file.
59278         * modules/unictype/property-hex-digit-tests: New file.
59279         * modules/unictype/property-hyphen-tests: New file.
59280         * modules/unictype/property-id-continue-tests: New file.
59281         * modules/unictype/property-id-start-tests: New file.
59282         * modules/unictype/property-ideographic-tests: New file.
59283         * modules/unictype/property-ids-binary-operator-tests: New file.
59284         * modules/unictype/property-ids-trinary-operator-tests: New file.
59285         * modules/unictype/property-ignorable-control-tests: New file.
59286         * modules/unictype/property-iso-control-tests: New file.
59287         * modules/unictype/property-join-control-tests: New file.
59288         * modules/unictype/property-left-of-pair-tests: New file.
59289         * modules/unictype/property-line-separator-tests: New file.
59290         * modules/unictype/property-logical-order-exception-tests: New file.
59291         * modules/unictype/property-lowercase-tests: New file.
59292         * modules/unictype/property-math-tests: New file.
59293         * modules/unictype/property-non-break-tests: New file.
59294         * modules/unictype/property-not-a-character-tests: New file.
59295         * modules/unictype/property-numeric-tests: New file.
59296         * modules/unictype/property-other-alphabetic-tests: New file.
59297         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59298         * modules/unictype/property-other-grapheme-extend-tests: New file.
59299         * modules/unictype/property-other-id-continue-tests: New file.
59300         * modules/unictype/property-other-id-start-tests: New file.
59301         * modules/unictype/property-other-lowercase-tests: New file.
59302         * modules/unictype/property-other-math-tests: New file.
59303         * modules/unictype/property-other-uppercase-tests: New file.
59304         * modules/unictype/property-paired-punctuation-tests: New file.
59305         * modules/unictype/property-paragraph-separator-tests: New file.
59306         * modules/unictype/property-pattern-syntax-tests: New file.
59307         * modules/unictype/property-pattern-white-space-tests: New file.
59308         * modules/unictype/property-private-use-tests: New file.
59309         * modules/unictype/property-punctuation-tests: New file.
59310         * modules/unictype/property-quotation-mark-tests: New file.
59311         * modules/unictype/property-radical-tests: New file.
59312         * modules/unictype/property-sentence-terminal-tests: New file.
59313         * modules/unictype/property-soft-dotted-tests: New file.
59314         * modules/unictype/property-space-tests: New file.
59315         * modules/unictype/property-terminal-punctuation-tests: New file.
59316         * modules/unictype/property-test-tests: New file.
59317         * modules/unictype/property-titlecase-tests: New file.
59318         * modules/unictype/property-unassigned-code-value-tests: New file.
59319         * modules/unictype/property-unified-ideograph-tests: New file.
59320         * modules/unictype/property-uppercase-tests: New file.
59321         * modules/unictype/property-variation-selector-tests: New file.
59322         * modules/unictype/property-white-space-tests: New file.
59323         * modules/unictype/property-xid-continue-tests: New file.
59324         * modules/unictype/property-xid-start-tests: New file.
59325         * modules/unictype/property-zero-width-tests: New file.
59326         * modules/unictype/scripts-tests: New file.
59327         * modules/unictype/syntax-c-ident-tests: New file.
59328         * modules/unictype/syntax-c-whitespace-tests: New file.
59329         * modules/unictype/syntax-java-ident-tests: New file.
59330         * modules/unictype/syntax-java-whitespace-tests: New file.
59331         * tests/unictype/test-bidi_byname.c: New file.
59332         * tests/unictype/test-bidi_name.c: New file.
59333         * tests/unictype/test-bidi_of.c: New file.
59334         * tests/unictype/test-bidi_test.c: New file.
59335         * tests/unictype/test-block_list.c: New file.
59336         * tests/unictype/test-block_of.c: New file.
59337         * tests/unictype/test-block_test.c: New file.
59338         * tests/unictype/test-categ_and.c: New file.
59339         * tests/unictype/test-categ_and_not.c: New file.
59340         * tests/unictype/test-categ_byname.c: New file.
59341         * tests/unictype/test-categ_name.c: New file.
59342         * tests/unictype/test-categ_none.c: New file.
59343         * tests/unictype/test-categ_of.c: New file.
59344         * tests/unictype/test-categ_or.c: New file.
59345         * tests/unictype/test-categ_test_withtable.c: New file.
59346         * tests/unictype/test-combining.c: New file.
59347         * tests/unictype/test-decdigit.c: New file.
59348         * tests/unictype/test-digit.c: New file.
59349         * tests/unictype/test-mirror.c: New file.
59350         * tests/unictype/test-numeric.c: New file.
59351         * tests/unictype/test-pr_byname.c: New file.
59352         * tests/unictype/test-pr_test.c: New file.
59353         * tests/unictype/test-predicate-part1.h: New file.
59354         * tests/unictype/test-predicate-part2.h: New file.
59355         * tests/unictype/test-scripts.c: New file.
59356         * tests/unictype/test-sy_c_ident.c: New file.
59357         * tests/unictype/test-sy_java_ident.c: New file.
59358
59359         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59360         for Unicode 5.0.0.
59361         * tests/unictype/test-categ_Cc.c: Likewise.
59362         * tests/unictype/test-categ_Cf.c: Likewise.
59363         * tests/unictype/test-categ_Cn.c: Likewise.
59364         * tests/unictype/test-categ_Co.c: Likewise.
59365         * tests/unictype/test-categ_Cs.c: Likewise.
59366         * tests/unictype/test-categ_L.c: Likewise.
59367         * tests/unictype/test-categ_Ll.c: Likewise.
59368         * tests/unictype/test-categ_Lm.c: Likewise.
59369         * tests/unictype/test-categ_Lo.c: Likewise.
59370         * tests/unictype/test-categ_Lt.c: Likewise.
59371         * tests/unictype/test-categ_Lu.c: Likewise.
59372         * tests/unictype/test-categ_M.c: Likewise.
59373         * tests/unictype/test-categ_Mc.c: Likewise.
59374         * tests/unictype/test-categ_Me.c: Likewise.
59375         * tests/unictype/test-categ_Mn.c: Likewise.
59376         * tests/unictype/test-categ_N.c: Likewise.
59377         * tests/unictype/test-categ_Nd.c: Likewise.
59378         * tests/unictype/test-categ_Nl.c: Likewise.
59379         * tests/unictype/test-categ_No.c: Likewise.
59380         * tests/unictype/test-categ_P.c: Likewise.
59381         * tests/unictype/test-categ_Pc.c: Likewise.
59382         * tests/unictype/test-categ_Pd.c: Likewise.
59383         * tests/unictype/test-categ_Pe.c: Likewise.
59384         * tests/unictype/test-categ_Pf.c: Likewise.
59385         * tests/unictype/test-categ_Pi.c: Likewise.
59386         * tests/unictype/test-categ_Po.c: Likewise.
59387         * tests/unictype/test-categ_Ps.c: Likewise.
59388         * tests/unictype/test-categ_S.c: Likewise.
59389         * tests/unictype/test-categ_Sc.c: Likewise.
59390         * tests/unictype/test-categ_Sk.c: Likewise.
59391         * tests/unictype/test-categ_Sm.c: Likewise.
59392         * tests/unictype/test-categ_So.c: Likewise.
59393         * tests/unictype/test-categ_Z.c: Likewise.
59394         * tests/unictype/test-categ_Zl.c: Likewise.
59395         * tests/unictype/test-categ_Zp.c: Likewise.
59396         * tests/unictype/test-categ_Zs.c: Likewise.
59397         * tests/unictype/test-ctype_alnum.c: Likewise.
59398         * tests/unictype/test-ctype_alpha.c: Likewise.
59399         * tests/unictype/test-ctype_blank.c: Likewise.
59400         * tests/unictype/test-ctype_cntrl.c: Likewise.
59401         * tests/unictype/test-ctype_digit.c: Likewise.
59402         * tests/unictype/test-ctype_graph.c: Likewise.
59403         * tests/unictype/test-ctype_lower.c: Likewise.
59404         * tests/unictype/test-ctype_print.c: Likewise.
59405         * tests/unictype/test-ctype_punct.c: Likewise.
59406         * tests/unictype/test-ctype_space.c: Likewise.
59407         * tests/unictype/test-ctype_upper.c: Likewise.
59408         * tests/unictype/test-ctype_xdigit.c: Likewise.
59409         * tests/unictype/test-decdigit.h: Likewise.
59410         * tests/unictype/test-digit.h: Likewise.
59411         * tests/unictype/test-numeric.h: Likewise.
59412         * tests/unictype/test-pr_alphabetic.c: Likewise.
59413         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59414         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59415         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59416         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59417         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59418         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59419         * tests/unictype/test-pr_bidi_control.c: Likewise.
59420         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59421         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59422         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59423         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59424         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59425         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59426         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59427         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59428         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59429         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59430         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59431         * tests/unictype/test-pr_combining.c: Likewise.
59432         * tests/unictype/test-pr_composite.c: Likewise.
59433         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59434         * tests/unictype/test-pr_dash.c: Likewise.
59435         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59436         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59437         * tests/unictype/test-pr_deprecated.c: Likewise.
59438         * tests/unictype/test-pr_diacritic.c: Likewise.
59439         * tests/unictype/test-pr_extender.c: Likewise.
59440         * tests/unictype/test-pr_format_control.c: Likewise.
59441         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59442         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59443         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59444         * tests/unictype/test-pr_hex_digit.c: Likewise.
59445         * tests/unictype/test-pr_hyphen.c: Likewise.
59446         * tests/unictype/test-pr_id_continue.c: Likewise.
59447         * tests/unictype/test-pr_id_start.c: Likewise.
59448         * tests/unictype/test-pr_ideographic.c: Likewise.
59449         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59450         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59451         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59452         * tests/unictype/test-pr_iso_control.c: Likewise.
59453         * tests/unictype/test-pr_join_control.c: Likewise.
59454         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59455         * tests/unictype/test-pr_line_separator.c: Likewise.
59456         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59457         * tests/unictype/test-pr_lowercase.c: Likewise.
59458         * tests/unictype/test-pr_math.c: Likewise.
59459         * tests/unictype/test-pr_non_break.c: Likewise.
59460         * tests/unictype/test-pr_not_a_character.c: Likewise.
59461         * tests/unictype/test-pr_numeric.c: Likewise.
59462         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59463         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59464         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59465         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59466         * tests/unictype/test-pr_other_id_start.c: Likewise.
59467         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59468         * tests/unictype/test-pr_other_math.c: Likewise.
59469         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59470         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59471         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59472         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59473         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59474         * tests/unictype/test-pr_private_use.c: Likewise.
59475         * tests/unictype/test-pr_punctuation.c: Likewise.
59476         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59477         * tests/unictype/test-pr_radical.c: Likewise.
59478         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59479         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59480         * tests/unictype/test-pr_space.c: Likewise.
59481         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59482         * tests/unictype/test-pr_titlecase.c: Likewise.
59483         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59484         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59485         * tests/unictype/test-pr_uppercase.c: Likewise.
59486         * tests/unictype/test-pr_variation_selector.c: Likewise.
59487         * tests/unictype/test-pr_white_space.c: Likewise.
59488         * tests/unictype/test-pr_xid_continue.c: Likewise.
59489         * tests/unictype/test-pr_xid_start.c: Likewise.
59490         * tests/unictype/test-pr_zero_width.c: Likewise.
59491         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59492         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59493
59494 2007-11-12  Bruno Haible  <bruno@clisp.org>
59495
59496         Unicode character classification functions.
59497         * lib/unictype.h: New file.
59498         * modules/unictype/base: New file.
59499         * modules/unictype/category-L: New file.
59500         * modules/unictype/category-Lu: New file.
59501         * modules/unictype/category-Ll: New file.
59502         * modules/unictype/category-Lt: New file.
59503         * modules/unictype/category-Lm: New file.
59504         * modules/unictype/category-Lo: New file.
59505         * modules/unictype/category-M: New file.
59506         * modules/unictype/category-Mn: New file.
59507         * modules/unictype/category-Mc: New file.
59508         * modules/unictype/category-Me: New file.
59509         * modules/unictype/category-N: New file.
59510         * modules/unictype/category-Nd: New file.
59511         * modules/unictype/category-Nl: New file.
59512         * modules/unictype/category-No: New file.
59513         * modules/unictype/category-P: New file.
59514         * modules/unictype/category-Pc: New file.
59515         * modules/unictype/category-Pd: New file.
59516         * modules/unictype/category-Ps: New file.
59517         * modules/unictype/category-Pe: New file.
59518         * modules/unictype/category-Pi: New file.
59519         * modules/unictype/category-Pf: New file.
59520         * modules/unictype/category-Po: New file.
59521         * modules/unictype/category-S: New file.
59522         * modules/unictype/category-Sm: New file.
59523         * modules/unictype/category-Sc: New file.
59524         * modules/unictype/category-Sk: New file.
59525         * modules/unictype/category-So: New file.
59526         * modules/unictype/category-Z: New file.
59527         * modules/unictype/category-Zs: New file.
59528         * modules/unictype/category-Zl: New file.
59529         * modules/unictype/category-Zp: New file.
59530         * modules/unictype/category-C: New file.
59531         * modules/unictype/category-Cc: New file.
59532         * modules/unictype/category-Cf: New file.
59533         * modules/unictype/category-Cs: New file.
59534         * modules/unictype/category-Co: New file.
59535         * modules/unictype/category-Cn: New file.
59536         * modules/unictype/category-or: New file.
59537         * modules/unictype/category-of: New file.
59538         * modules/unictype/category-test: New file.
59539         * modules/unictype/category-test-withtable: New file.
59540         * modules/unictype/category-byname: New file.
59541         * modules/unictype/category-none: New file.
59542         * modules/unictype/category-and: New file.
59543         * modules/unictype/category-and-not: New file.
59544         * modules/unictype/category-name: New file.
59545         * modules/unictype/combining-class: New file.
59546         * modules/unictype/category-all: New file.
59547         * modules/unictype/bidicategory-all: New file.
59548         * modules/unictype/bidicategory-byname: New file.
59549         * modules/unictype/bidicategory-name: New file.
59550         * modules/unictype/bidicategory-of: New file.
59551         * modules/unictype/bidicategory-test: New file.
59552         * modules/unictype/decimal-digit: New file.
59553         * modules/unictype/digit: New file.
59554         * modules/unictype/numeric: New file.
59555         * modules/unictype/mirror: New file.
59556         * modules/unictype/property-white-space: New file.
59557         * modules/unictype/property-alphabetic: New file.
59558         * modules/unictype/property-other-alphabetic: New file.
59559         * modules/unictype/property-not-a-character: New file.
59560         * modules/unictype/property-default-ignorable-code-point: New file.
59561         * modules/unictype/property-other-default-ignorable-code-point: New
59562         file.
59563         * modules/unictype/property-deprecated: New file.
59564         * modules/unictype/property-logical-order-exception: New file.
59565         * modules/unictype/property-variation-selector: New file.
59566         * modules/unictype/property-private-use: New file.
59567         * modules/unictype/property-unassigned-code-value: New file.
59568         * modules/unictype/property-uppercase: New file.
59569         * modules/unictype/property-other-uppercase: New file.
59570         * modules/unictype/property-lowercase: New file.
59571         * modules/unictype/property-other-lowercase: New file.
59572         * modules/unictype/property-titlecase: New file.
59573         * modules/unictype/property-soft-dotted: New file.
59574         * modules/unictype/property-id-start: New file.
59575         * modules/unictype/property-other-id-start: New file.
59576         * modules/unictype/property-id-continue: New file.
59577         * modules/unictype/property-other-id-continue: New file.
59578         * modules/unictype/property-xid-start: New file.
59579         * modules/unictype/property-xid-continue: New file.
59580         * modules/unictype/property-pattern-white-space: New file.
59581         * modules/unictype/property-pattern-syntax: New file.
59582         * modules/unictype/property-join-control: New file.
59583         * modules/unictype/property-grapheme-base: New file.
59584         * modules/unictype/property-grapheme-extend: New file.
59585         * modules/unictype/property-other-grapheme-extend: New file.
59586         * modules/unictype/property-grapheme-link: New file.
59587         * modules/unictype/property-bidi-control: New file.
59588         * modules/unictype/property-bidi-left-to-right: New file.
59589         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59590         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59591         * modules/unictype/property-bidi-european-digit: New file.
59592         * modules/unictype/property-bidi-eur-num-separator: New file.
59593         * modules/unictype/property-bidi-eur-num-terminator: New file.
59594         * modules/unictype/property-bidi-arabic-digit: New file.
59595         * modules/unictype/property-bidi-common-separator: New file.
59596         * modules/unictype/property-bidi-block-separator: New file.
59597         * modules/unictype/property-bidi-segment-separator: New file.
59598         * modules/unictype/property-bidi-whitespace: New file.
59599         * modules/unictype/property-bidi-non-spacing-mark: New file.
59600         * modules/unictype/property-bidi-boundary-neutral: New file.
59601         * modules/unictype/property-bidi-pdf: New file.
59602         * modules/unictype/property-bidi-embedding-or-override: New file.
59603         * modules/unictype/property-bidi-other-neutral: New file.
59604         * modules/unictype/property-hex-digit: New file.
59605         * modules/unictype/property-ascii-hex-digit: New file.
59606         * modules/unictype/property-ideographic: New file.
59607         * modules/unictype/property-unified-ideograph: New file.
59608         * modules/unictype/property-radical: New file.
59609         * modules/unictype/property-ids-binary-operator: New file.
59610         * modules/unictype/property-ids-trinary-operator: New file.
59611         * modules/unictype/property-zero-width: New file.
59612         * modules/unictype/property-space: New file.
59613         * modules/unictype/property-non-break: New file.
59614         * modules/unictype/property-iso-control: New file.
59615         * modules/unictype/property-format-control: New file.
59616         * modules/unictype/property-dash: New file.
59617         * modules/unictype/property-hyphen: New file.
59618         * modules/unictype/property-punctuation: New file.
59619         * modules/unictype/property-line-separator: New file.
59620         * modules/unictype/property-paragraph-separator: New file.
59621         * modules/unictype/property-quotation-mark: New file.
59622         * modules/unictype/property-sentence-terminal: New file.
59623         * modules/unictype/property-terminal-punctuation: New file.
59624         * modules/unictype/property-currency-symbol: New file.
59625         * modules/unictype/property-math: New file.
59626         * modules/unictype/property-other-math: New file.
59627         * modules/unictype/property-paired-punctuation: New file.
59628         * modules/unictype/property-left-of-pair: New file.
59629         * modules/unictype/property-combining: New file.
59630         * modules/unictype/property-composite: New file.
59631         * modules/unictype/property-decimal-digit: New file.
59632         * modules/unictype/property-numeric: New file.
59633         * modules/unictype/property-diacritic: New file.
59634         * modules/unictype/property-extender: New file.
59635         * modules/unictype/property-ignorable-control: New file.
59636         * modules/unictype/property-test: New file.
59637         * modules/unictype/property-byname: New file.
59638         * modules/unictype/property-all: New file.
59639         * modules/unictype/scripts: New file.
59640         * modules/unictype/scripts-all: New file.
59641         * modules/unictype/block-of: New file.
59642         * modules/unictype/block-test: New file.
59643         * modules/unictype/block-list: New file.
59644         * modules/unictype/block-all: New file.
59645         * modules/unictype/syntax-c-whitespace: New file.
59646         * modules/unictype/syntax-java-whitespace: New file.
59647         * modules/unictype/syntax-c-ident: New file.
59648         * modules/unictype/syntax-java-ident: New file.
59649         * modules/unictype/ctype-alnum: New file.
59650         * modules/unictype/ctype-alpha: New file.
59651         * modules/unictype/ctype-cntrl: New file.
59652         * modules/unictype/ctype-digit: New file.
59653         * modules/unictype/ctype-graph: New file.
59654         * modules/unictype/ctype-lower: New file.
59655         * modules/unictype/ctype-print: New file.
59656         * modules/unictype/ctype-punct: New file.
59657         * modules/unictype/ctype-space: New file.
59658         * modules/unictype/ctype-upper: New file.
59659         * modules/unictype/ctype-xdigit: New file.
59660         * modules/unictype/ctype-blank: New file.
59661         * lib/unictype/bidi_byname.c: New file.
59662         * lib/unictype/bidi_name.c: New file.
59663         * lib/unictype/bidi_of.c: New file.
59664         * lib/unictype/bidi_test.c: New file.
59665         * lib/unictype/bitmap.h: New file.
59666         * lib/unictype/block_test.c: New file.
59667         * lib/unictype/blocks.c: New file.
59668         * lib/unictype/categ_C.c: New file.
59669         * lib/unictype/categ_Cc.c: New file.
59670         * lib/unictype/categ_Cf.c: New file.
59671         * lib/unictype/categ_Cn.c: New file.
59672         * lib/unictype/categ_Co.c: New file.
59673         * lib/unictype/categ_Cs.c: New file.
59674         * lib/unictype/categ_L.c: New file.
59675         * lib/unictype/categ_Ll.c: New file.
59676         * lib/unictype/categ_Lm.c: New file.
59677         * lib/unictype/categ_Lo.c: New file.
59678         * lib/unictype/categ_Lt.c: New file.
59679         * lib/unictype/categ_Lu.c: New file.
59680         * lib/unictype/categ_M.c: New file.
59681         * lib/unictype/categ_Mc.c: New file.
59682         * lib/unictype/categ_Me.c: New file.
59683         * lib/unictype/categ_Mn.c: New file.
59684         * lib/unictype/categ_N.c: New file.
59685         * lib/unictype/categ_Nd.c: New file.
59686         * lib/unictype/categ_Nl.c: New file.
59687         * lib/unictype/categ_No.c: New file.
59688         * lib/unictype/categ_P.c: New file.
59689         * lib/unictype/categ_Pc.c: New file.
59690         * lib/unictype/categ_Pd.c: New file.
59691         * lib/unictype/categ_Pe.c: New file.
59692         * lib/unictype/categ_Pf.c: New file.
59693         * lib/unictype/categ_Pi.c: New file.
59694         * lib/unictype/categ_Po.c: New file.
59695         * lib/unictype/categ_Ps.c: New file.
59696         * lib/unictype/categ_S.c: New file.
59697         * lib/unictype/categ_Sc.c: New file.
59698         * lib/unictype/categ_Sk.c: New file.
59699         * lib/unictype/categ_Sm.c: New file.
59700         * lib/unictype/categ_So.c: New file.
59701         * lib/unictype/categ_Z.c: New file.
59702         * lib/unictype/categ_Zl.c: New file.
59703         * lib/unictype/categ_Zp.c: New file.
59704         * lib/unictype/categ_Zs.c: New file.
59705         * lib/unictype/categ_and.c: New file.
59706         * lib/unictype/categ_and_not.c: New file.
59707         * lib/unictype/categ_byname.c: New file.
59708         * lib/unictype/categ_name.c: New file.
59709         * lib/unictype/categ_none.c: New file.
59710         * lib/unictype/categ_of.c: New file.
59711         * lib/unictype/categ_or.c: New file.
59712         * lib/unictype/categ_test.c: New file.
59713         * lib/unictype/combining.c: New file.
59714         * lib/unictype/ctype_alnum.c: New file.
59715         * lib/unictype/ctype_alpha.c: New file.
59716         * lib/unictype/ctype_blank.c: New file.
59717         * lib/unictype/ctype_cntrl.c: New file.
59718         * lib/unictype/ctype_digit.c: New file.
59719         * lib/unictype/ctype_graph.c: New file.
59720         * lib/unictype/ctype_lower.c: New file.
59721         * lib/unictype/ctype_print.c: New file.
59722         * lib/unictype/ctype_punct.c: New file.
59723         * lib/unictype/ctype_space.c: New file.
59724         * lib/unictype/ctype_upper.c: New file.
59725         * lib/unictype/ctype_xdigit.c: New file.
59726         * lib/unictype/decdigit.c: New file.
59727         * lib/unictype/digit.c: New file.
59728         * lib/unictype/identsyntaxmap.h: New file.
59729         * lib/unictype/mirror.c: New file.
59730         * lib/unictype/numeric.c: New file.
59731         * lib/unictype/pr_alphabetic.c: New file.
59732         * lib/unictype/pr_ascii_hex_digit.c: New file.
59733         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59734         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59735         * lib/unictype/pr_bidi_block_separator.c: New file.
59736         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59737         * lib/unictype/pr_bidi_common_separator.c: New file.
59738         * lib/unictype/pr_bidi_control.c: New file.
59739         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59740         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59741         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59742         * lib/unictype/pr_bidi_european_digit.c: New file.
59743         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59744         * lib/unictype/pr_bidi_left_to_right.c: New file.
59745         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59746         * lib/unictype/pr_bidi_other_neutral.c: New file.
59747         * lib/unictype/pr_bidi_pdf.c: New file.
59748         * lib/unictype/pr_bidi_segment_separator.c: New file.
59749         * lib/unictype/pr_bidi_whitespace.c: New file.
59750         * lib/unictype/pr_byname.c: New file.
59751         * lib/unictype/pr_byname.gperf: New file.
59752         * lib/unictype/pr_combining.c: New file.
59753         * lib/unictype/pr_composite.c: New file.
59754         * lib/unictype/pr_currency_symbol.c: New file.
59755         * lib/unictype/pr_dash.c: New file.
59756         * lib/unictype/pr_decimal_digit.c: New file.
59757         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59758         * lib/unictype/pr_deprecated.c: New file.
59759         * lib/unictype/pr_diacritic.c: New file.
59760         * lib/unictype/pr_extender.c: New file.
59761         * lib/unictype/pr_format_control.c: New file.
59762         * lib/unictype/pr_grapheme_base.c: New file.
59763         * lib/unictype/pr_grapheme_extend.c: New file.
59764         * lib/unictype/pr_grapheme_link.c: New file.
59765         * lib/unictype/pr_hex_digit.c: New file.
59766         * lib/unictype/pr_hyphen.c: New file.
59767         * lib/unictype/pr_id_continue.c: New file.
59768         * lib/unictype/pr_id_start.c: New file.
59769         * lib/unictype/pr_ideographic.c: New file.
59770         * lib/unictype/pr_ids_binary_operator.c: New file.
59771         * lib/unictype/pr_ids_trinary_operator.c: New file.
59772         * lib/unictype/pr_ignorable_control.c: New file.
59773         * lib/unictype/pr_iso_control.c: New file.
59774         * lib/unictype/pr_join_control.c: New file.
59775         * lib/unictype/pr_left_of_pair.c: New file.
59776         * lib/unictype/pr_line_separator.c: New file.
59777         * lib/unictype/pr_logical_order_exception.c: New file.
59778         * lib/unictype/pr_lowercase.c: New file.
59779         * lib/unictype/pr_math.c: New file.
59780         * lib/unictype/pr_non_break.c: New file.
59781         * lib/unictype/pr_not_a_character.c: New file.
59782         * lib/unictype/pr_numeric.c: New file.
59783         * lib/unictype/pr_other_alphabetic.c: New file.
59784         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59785         * lib/unictype/pr_other_grapheme_extend.c: New file.
59786         * lib/unictype/pr_other_id_continue.c: New file.
59787         * lib/unictype/pr_other_id_start.c: New file.
59788         * lib/unictype/pr_other_lowercase.c: New file.
59789         * lib/unictype/pr_other_math.c: New file.
59790         * lib/unictype/pr_other_uppercase.c: New file.
59791         * lib/unictype/pr_paired_punctuation.c: New file.
59792         * lib/unictype/pr_paragraph_separator.c: New file.
59793         * lib/unictype/pr_pattern_syntax.c: New file.
59794         * lib/unictype/pr_pattern_white_space.c: New file.
59795         * lib/unictype/pr_private_use.c: New file.
59796         * lib/unictype/pr_punctuation.c: New file.
59797         * lib/unictype/pr_quotation_mark.c: New file.
59798         * lib/unictype/pr_radical.c: New file.
59799         * lib/unictype/pr_sentence_terminal.c: New file.
59800         * lib/unictype/pr_soft_dotted.c: New file.
59801         * lib/unictype/pr_space.c: New file.
59802         * lib/unictype/pr_terminal_punctuation.c: New file.
59803         * lib/unictype/pr_test.c: New file.
59804         * lib/unictype/pr_titlecase.c: New file.
59805         * lib/unictype/pr_unassigned_code_value.c: New file.
59806         * lib/unictype/pr_unified_ideograph.c: New file.
59807         * lib/unictype/pr_uppercase.c: New file.
59808         * lib/unictype/pr_variation_selector.c: New file.
59809         * lib/unictype/pr_white_space.c: New file.
59810         * lib/unictype/pr_xid_continue.c: New file.
59811         * lib/unictype/pr_xid_start.c: New file.
59812         * lib/unictype/pr_zero_width.c: New file.
59813         * lib/unictype/scripts.c: New file.
59814         * lib/unictype/sy_c_ident.c: New file.
59815         * lib/unictype/sy_c_whitespace.c: New file.
59816         * lib/unictype/sy_java_ident.c: New file.
59817         * lib/unictype/sy_java_whitespace.c: New file.
59818
59819         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59820         Unicode 5.0.0.
59821         * lib/unictype/blocks.h: Likewise.
59822         * lib/unictype/categ_C.h: Likewise.
59823         * lib/unictype/categ_Cc.h: Likewise.
59824         * lib/unictype/categ_Cf.h: Likewise.
59825         * lib/unictype/categ_Cn.h: Likewise.
59826         * lib/unictype/categ_Co.h: Likewise.
59827         * lib/unictype/categ_Cs.h: Likewise.
59828         * lib/unictype/categ_L.h: Likewise.
59829         * lib/unictype/categ_Ll.h: Likewise.
59830         * lib/unictype/categ_Lm.h: Likewise.
59831         * lib/unictype/categ_Lo.h: Likewise.
59832         * lib/unictype/categ_Lt.h: Likewise.
59833         * lib/unictype/categ_Lu.h: Likewise.
59834         * lib/unictype/categ_M.h: Likewise.
59835         * lib/unictype/categ_Mc.h: Likewise.
59836         * lib/unictype/categ_Me.h: Likewise.
59837         * lib/unictype/categ_Mn.h: Likewise.
59838         * lib/unictype/categ_N.h: Likewise.
59839         * lib/unictype/categ_Nd.h: Likewise.
59840         * lib/unictype/categ_Nl.h: Likewise.
59841         * lib/unictype/categ_No.h: Likewise.
59842         * lib/unictype/categ_P.h: Likewise.
59843         * lib/unictype/categ_Pc.h: Likewise.
59844         * lib/unictype/categ_Pd.h: Likewise.
59845         * lib/unictype/categ_Pe.h: Likewise.
59846         * lib/unictype/categ_Pf.h: Likewise.
59847         * lib/unictype/categ_Pi.h: Likewise.
59848         * lib/unictype/categ_Po.h: Likewise.
59849         * lib/unictype/categ_Ps.h: Likewise.
59850         * lib/unictype/categ_S.h: Likewise.
59851         * lib/unictype/categ_Sc.h: Likewise.
59852         * lib/unictype/categ_Sk.h: Likewise.
59853         * lib/unictype/categ_Sm.h: Likewise.
59854         * lib/unictype/categ_So.h: Likewise.
59855         * lib/unictype/categ_Z.h: Likewise.
59856         * lib/unictype/categ_Zl.h: Likewise.
59857         * lib/unictype/categ_Zp.h: Likewise.
59858         * lib/unictype/categ_Zs.h: Likewise.
59859         * lib/unictype/categ_of.h: Likewise.
59860         * lib/unictype/combining.h: Likewise.
59861         * lib/unictype/ctype_alnum.h: Likewise.
59862         * lib/unictype/ctype_alpha.h: Likewise.
59863         * lib/unictype/ctype_blank.h: Likewise.
59864         * lib/unictype/ctype_cntrl.h: Likewise.
59865         * lib/unictype/ctype_digit.h: Likewise.
59866         * lib/unictype/ctype_graph.h: Likewise.
59867         * lib/unictype/ctype_lower.h: Likewise.
59868         * lib/unictype/ctype_print.h: Likewise.
59869         * lib/unictype/ctype_punct.h: Likewise.
59870         * lib/unictype/ctype_space.h: Likewise.
59871         * lib/unictype/ctype_upper.h: Likewise.
59872         * lib/unictype/ctype_xdigit.h: Likewise.
59873         * lib/unictype/decdigit.h: Likewise.
59874         * lib/unictype/digit.h: Likewise.
59875         * lib/unictype/mirror.h: Likewise.
59876         * lib/unictype/numeric.h: Likewise.
59877         * lib/unictype/pr_alphabetic.h: Likewise.
59878         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59879         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59880         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59881         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59882         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59883         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59884         * lib/unictype/pr_bidi_control.h: Likewise.
59885         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59886         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59887         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59888         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59889         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59890         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59891         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59892         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59893         * lib/unictype/pr_bidi_pdf.h: Likewise.
59894         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59895         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59896         * lib/unictype/pr_combining.h: Likewise.
59897         * lib/unictype/pr_composite.h: Likewise.
59898         * lib/unictype/pr_currency_symbol.h: Likewise.
59899         * lib/unictype/pr_dash.h: Likewise.
59900         * lib/unictype/pr_decimal_digit.h: Likewise.
59901         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59902         * lib/unictype/pr_deprecated.h: Likewise.
59903         * lib/unictype/pr_diacritic.h: Likewise.
59904         * lib/unictype/pr_extender.h: Likewise.
59905         * lib/unictype/pr_format_control.h: Likewise.
59906         * lib/unictype/pr_grapheme_base.h: Likewise.
59907         * lib/unictype/pr_grapheme_extend.h: Likewise.
59908         * lib/unictype/pr_grapheme_link.h: Likewise.
59909         * lib/unictype/pr_hex_digit.h: Likewise.
59910         * lib/unictype/pr_hyphen.h: Likewise.
59911         * lib/unictype/pr_id_continue.h: Likewise.
59912         * lib/unictype/pr_id_start.h: Likewise.
59913         * lib/unictype/pr_ideographic.h: Likewise.
59914         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59915         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59916         * lib/unictype/pr_ignorable_control.h: Likewise.
59917         * lib/unictype/pr_iso_control.h: Likewise.
59918         * lib/unictype/pr_join_control.h: Likewise.
59919         * lib/unictype/pr_left_of_pair.h: Likewise.
59920         * lib/unictype/pr_line_separator.h: Likewise.
59921         * lib/unictype/pr_logical_order_exception.h: Likewise.
59922         * lib/unictype/pr_lowercase.h: Likewise.
59923         * lib/unictype/pr_math.h: Likewise.
59924         * lib/unictype/pr_non_break.h: Likewise.
59925         * lib/unictype/pr_not_a_character.h: Likewise.
59926         * lib/unictype/pr_numeric.h: Likewise.
59927         * lib/unictype/pr_other_alphabetic.h: Likewise.
59928         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59929         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59930         * lib/unictype/pr_other_id_continue.h: Likewise.
59931         * lib/unictype/pr_other_id_start.h: Likewise.
59932         * lib/unictype/pr_other_lowercase.h: Likewise.
59933         * lib/unictype/pr_other_math.h: Likewise.
59934         * lib/unictype/pr_other_uppercase.h: Likewise.
59935         * lib/unictype/pr_paired_punctuation.h: Likewise.
59936         * lib/unictype/pr_paragraph_separator.h: Likewise.
59937         * lib/unictype/pr_pattern_syntax.h: Likewise.
59938         * lib/unictype/pr_pattern_white_space.h: Likewise.
59939         * lib/unictype/pr_private_use.h: Likewise.
59940         * lib/unictype/pr_punctuation.h: Likewise.
59941         * lib/unictype/pr_quotation_mark.h: Likewise.
59942         * lib/unictype/pr_radical.h: Likewise.
59943         * lib/unictype/pr_sentence_terminal.h: Likewise.
59944         * lib/unictype/pr_soft_dotted.h: Likewise.
59945         * lib/unictype/pr_space.h: Likewise.
59946         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59947         * lib/unictype/pr_titlecase.h: Likewise.
59948         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59949         * lib/unictype/pr_unified_ideograph.h: Likewise.
59950         * lib/unictype/pr_uppercase.h: Likewise.
59951         * lib/unictype/pr_variation_selector.h: Likewise.
59952         * lib/unictype/pr_white_space.h: Likewise.
59953         * lib/unictype/pr_xid_continue.h: Likewise.
59954         * lib/unictype/pr_xid_start.h: Likewise.
59955         * lib/unictype/pr_zero_width.h: Likewise.
59956         * lib/unictype/scripts.h: Likewise.
59957         * lib/unictype/scripts_byname.gperf: Likewise.
59958         * lib/unictype/sy_c_ident.h: Likewise.
59959         * lib/unictype/sy_c_whitespace.h: Likewise.
59960         * lib/unictype/sy_java_ident.h: Likewise.
59961         * lib/unictype/sy_java_whitespace.h: Likewise.
59962
59963         * lib/unictype/Makefile: New file.
59964         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59965         glibc.
59966         * lib/unictype/3level.h: New file, copied from glibc.
59967         * lib/unictype/3levelbit.h: New file.
59968
59969 2007-11-11  Bruno Haible  <bruno@clisp.org>
59970
59971         * modules/gperf: New file.
59972         * modules/iconv_open (Depends-on): Add it.
59973         (Makefile.am): Remove the GPERF definition.
59974
59975 2007-11-11  Bruno Haible  <bruno@clisp.org>
59976
59977         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59978         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59979
59980 2007-11-11  Bruno Haible  <bruno@clisp.org>
59981
59982         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59983         (usage): Remove function.
59984
59985 2007-11-11  Bruno Haible  <bruno@clisp.org>
59986
59987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59988         gl_FUNC_CEILF_LIBS.
59989         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59990         gl_FUNC_CEIL_LIBS.
59991         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59992         gl_FUNC_CEILL_LIBS.
59993         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59994         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59995         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59996
59997 2007-11-11  Bruno Haible  <bruno@clisp.org>
59998
59999         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60000         roundf were declared but do not exist on functions.
60001         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60002         roundl were declared but do not exist on functions.
60003         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60004         HAVE_FLOORL_AND_CEILL, respectively.
60005         Needed for Sun C on Solaris 10.
60006
60007 2007-11-11  Bruno Haible  <bruno@clisp.org>
60008
60009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60010         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60011         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60012         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60013         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60014         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60015         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60016         HAVE_DECL_ROUNDF.
60017         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60018         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60020         of HAVE_DECL_ROUND*.
60021         * modules/math (Makefile.am): Update.
60022
60023 2007-11-10  Bruno Haible  <bruno@clisp.org>
60024
60025         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60026         ptrdiff_t as m4/intl.m4.
60027
60028 2007-11-10  Jim Meyering  <meyering@redhat.com>
60029
60030         Avoid link failure for the argmatch test.
60031         * tests/test-argmatch.c (usage): Define function to avoid a link
60032         failure: argmatch_die requires a usage function.
60033
60034 2007-11-09  Bruno Haible  <bruno@clisp.org>
60035
60036         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60037         * doc/functions/vsnprintf.texi: Likewise.
60038         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60039         with a size argument < 2.
60040
60041 2007-11-09  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60044         buffer. Fixes an inefficiency introduced on 2007-11-03.
60045
60046 2007-11-09  Bruno Haible  <bruno@clisp.org>
60047
60048         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60049         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60050
60051 2007-11-08  Jim Meyering  <meyering@redhat.com>
60052
60053         Change cache variable name prefix "jm_" to "gl_" everywhere.
60054         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60055         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60056         * m4/uptime.m4: s/gl_/jm_/
60057
60058 2007-11-07  Bruno Haible  <bruno@clisp.org>
60059
60060         Update to GNU gettext 0.17.
60061         * m4/intl.m4: Update to GNU gettext 0.17.
60062         * m4/po.m4: Likewise.
60063         * modules/gettext (Files): Remove m4/ulonglong.m4.
60064         (configure.ac): Require gettext infrastructure from version 0.17.
60065
60066 2007-11-06  Bruno Haible  <bruno@clisp.org>
60067
60068         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60069         symbolic values are not defined in a public header.
60070         * lib/freadable.c (freadable) [QNX]: Likewise.
60071         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60072         * lib/freading.c (freading) [QNX]: Likewise.
60073         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60074         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60075         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60076         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60077         Reported by Alain Magloire.
60078
60079         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60080
60081 2007-11-05  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60084         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60085         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60086         Reported by Eric Blake.
60087
60088 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60089             Bruno Haible  <bruno@clisp.org>
60090
60091         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60092         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60093         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60094         (malloc): Undefine also before including <stdlib.h>.
60095         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60096         Needed on OSF/1 4.0.
60097
60098 2007-11-05  Jim Meyering  <meyering@redhat.com>
60099
60100         git-version-gen: sync from coreutils.
60101         * build-aux/git-version-gen: Add comments.
60102         Change the first '-' to '.' in the snapshot version string,
60103         e.g., 6.9-377-08144 -> 6.9.377-08144
60104         Remove first parameter.
60105         Don't declare a version "-dirty" merely because a time
60106         stamp has changed.
60107
60108 2007-11-04  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/lock.h: Protect all macro definitions containing an 'if'
60111         statement through a "do { ... } while (0)".
60112         * lib/tls.h: Likewise.
60113
60114 2007-11-04  Bruno Haible  <bruno@clisp.org>
60115
60116         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60117
60118 2007-11-04  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60121         * modules/fprintf-posix (Depends-on): Add nocrash.
60122         * modules/snprintf-posix (Depends-on): Likewise.
60123         * modules/sprintf-posix (Depends-on): Likewise.
60124         * modules/vasnprintf-posix (Depends-on): Likewise.
60125         * modules/vasprintf-posix (Depends-on): Likewise.
60126         * modules/vfprintf-posix (Depends-on): Likewise.
60127         * modules/vsnprintf-posix (Depends-on): Likewise.
60128         * modules/vsprintf-posix (Depends-on): Likewise.
60129         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60130         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60131         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60132         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60133         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60134         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60135         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60136
60137 2007-11-04  Bruno Haible  <bruno@clisp.org>
60138
60139         * modules/nocrash: New file.
60140         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60141         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60142
60143 2007-11-04  Bruno Haible  <bruno@clisp.org>
60144
60145         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60146         precision handling.
60147         * tests/test-vasprintf-posix.c (test_function): Likewise.
60148         * tests/test-snprintf-posix.h (test_function): Likewise.
60149         * tests/test-sprintf-posix.h (test_function): Likewise.
60150
60151         Fix *printf behaviour for large precisions on mingw and BeOS.
60152         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60153         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60155         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60157         gl_PRINTF_PRECISION and test its result. Invoke
60158         gl_PREREQ_VASNPRINTF_PRECISION.
60159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60166         * doc/functions/fprintf.texi: Update.
60167         * doc/functions/printf.texi: Update.
60168         * doc/functions/snprintf.texi: Update.
60169         * doc/functions/sprintf.texi: Update.
60170         * doc/functions/vfprintf.texi: Update.
60171         * doc/functions/vprintf.texi: Update.
60172         * doc/functions/vsnprintf.texi: Update.
60173         * doc/functions/vsprintf.texi: Update.
60174
60175 2007-11-04  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60178
60179 2007-11-04  Bruno Haible  <bruno@clisp.org>
60180
60181         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60182         Reported by Sylvain Beucler <beuc@gnu.org>.
60183
60184 2007-11-03  Bruno Haible  <bruno@clisp.org>
60185
60186         * tests/test-fprintf-posix2.sh: New file.
60187         * tests/test-fprintf-posix2.c: New file.
60188         * modules/fprintf-posix-tests (Files): Add them.
60189         (TESTS): Add test-fprintf-posix2.sh.
60190         (configure.ac): Check for getrlimit and setrlimit.
60191         (check_PROGRAMS): Add test-fprintf-posix2.
60192
60193         * tests/test-printf-posix2.sh: New file.
60194         * tests/test-printf-posix2.c: New file.
60195         * modules/printf-posix-tests (Files): Add them.
60196         (TESTS): Add test-printf-posix2.sh.
60197         (configure.ac): Check for getrlimit and setrlimit.
60198         (check_PROGRAMS): Add test-printf-posix2.
60199
60200         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60201         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60202         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60203         (decode_double): New function, copied from decode_long_double.
60204         (scale10_round_decimal_decoded): New function, extracted from
60205         scale10_round_decimal_long_double.
60206         (scale10_round_decimal_long_double): Use it.
60207         (scale10_round_decimal_double): New function.
60208         (floorlog10): New function.
60209         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60211         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60213         gl_PRINTF_ENOMEM and test its result. Invoke
60214         gl_PREREQ_VASNPRINTF_ENOMEM.
60215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60222         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60223         * modules/snprintf-posix (Depends-on): Likewise.
60224         * modules/sprintf-posix (Depends-on): Likewise.
60225         * modules/vasnprintf-posix (Depends-on): Likewise.
60226         * modules/vasprintf-posix (Depends-on): Likewise.
60227         * modules/vfprintf-posix (Depends-on): Likewise.
60228         * modules/vsnprintf-posix (Depends-on): Likewise.
60229         * modules/vsprintf-posix (Depends-on): Likewise.
60230         * doc/functions/fprintf.texi: Update.
60231         * doc/functions/printf.texi: Update.
60232         * doc/functions/snprintf.texi: Update.
60233         * doc/functions/sprintf.texi: Update.
60234         * doc/functions/vfprintf.texi: Update.
60235         * doc/functions/vprintf.texi: Update.
60236         * doc/functions/vsnprintf.texi: Update.
60237         * doc/functions/vsprintf.texi: Update.
60238
60239 2007-11-03  Bruno Haible  <bruno@clisp.org>
60240
60241         * modules/frexp-nolibm-tests: New file.
60242
60243         * modules/frexp-nolibm: New file.
60244         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60245
60246 2007-11-03  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60249         value is C99 compliant.
60250         Needed for OSF/1 5.1.
60251
60252 2007-11-03  Bruno Haible  <bruno@clisp.org>
60253
60254         Fix out-of-memory handling of vasnprintf.
60255         * lib/printf-parse.c: Include <errno.h>.
60256         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60257         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60258         is already set.
60259
60260 2007-11-02  Eric Blake  <ebb9@byu.net>
60261
60262         Fix tests on cygwin.
60263         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60264
60265 2007-11-01  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60268         warning.
60269         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60270         needed for POSIX compatibility.
60271
60272 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60275         for compatibility with GNU.
60276
60277 2007-11-01  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60280         (putenv): Renamed from rpl_putenv. Change argument type from
60281         'const char *' to 'char *'.
60282         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60283         of defining putenv in config.h, just set REPLACE_PUTENV.
60284         * modules/putenv (Depends-on): Add stdlib.
60285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60286         (Include): Use <stdlib.h>.
60287         * lib/stdlib.in.h (putenv): New declaration.
60288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60289         REPLACE_PUTENV.
60290         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60291         REPLACE_PUTENV.
60292         Needed for MacOS X 10.5.0.
60293         Reported by Peter O'Gorman <peter@pogma.com>.
60294
60295 2007-11-01  Jim Meyering  <meyering@redhat.com>
60296
60297         Treat an empty date string exactly like "0".
60298         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60299         if the remaining date string (to be parsed) is empty, use "0".
60300         Reported by Mischa Molhoek and discussed in this thread:
60301         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60302
60303 2007-10-31  Bruno Haible  <bruno@clisp.org>
60304
60305         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60306         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60307         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60308         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60309         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60310         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60311
60312 2007-10-31  Bruno Haible  <bruno@clisp.org>
60313
60314         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60315         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60316         (AC_TYPE_LONG_LONG_INT): Use it.
60317         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60318         it as well.
60319         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60320         to m4/longlong.m4.
60321         * modules/stdint (Files): Remove m4/ulonglong.m4.
60322         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60323         m4/ulonglong.m4.
60324         * modules/strtoumax (Files): Likewise.
60325
60326 2007-10-30  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/xvasprintf-posix: New file.
60329         Suggested by Eric Blake.
60330
60331 2007-10-30  Bruno Haible  <bruno@clisp.org>
60332
60333         * modules/xprintf-posix-tests: New file.
60334         * tests/test-xprintf-posix.sh: New file.
60335         * tests/test-xprintf-posix.c: New file.
60336         * tests/test-xfprintf-posix.c: New file.
60337
60338         * modules/xprintf-posix: New file.
60339
60340 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60341
60342         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60343         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60344         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60345
60346 2007-10-29  Bruno Haible  <bruno@clisp.org>
60347
60348         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60349         contain the special marker '_cv_'.
60350         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60351         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60352         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60353         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60354         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60355         Reported by Ralf Wildenhues.
60356
60357 2007-10-29  Bruno Haible  <bruno@clisp.org>
60358
60359         * gnulib-tool (func_import): When --lgpl is not specified, set
60360         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60361         GPLv3.
60362         Reported by Simon Josefsson.
60363
60364 2007-10-28  Bruno Haible  <bruno@clisp.org>
60365
60366         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60367         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60368         HAVE_DECL_ISFINITE.
60369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60370         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60371         HAVE_DECL_ISFINITE.
60372
60373 2007-10-28  Bruno Haible  <bruno@clisp.org>
60374
60375         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60376         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60377
60378 2007-10-28  Bruno Haible  <bruno@clisp.org>
60379
60380         Fix link errors with Sun C 5.0 on Solaris 10.
60381         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60382         function is declared but not present in the compiler's libm.
60383         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60384         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60385         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60386         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60387         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60388         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60389         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60391         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60392         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60393         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60394         HAVE_DECL_FLOORL.
60395
60396 2007-10-28  Bruno Haible  <bruno@clisp.org>
60397
60398         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60399         gl_FUNC_FLOORL. Cache the result.
60400         (gl_FUNC_FLOORL): Use it.
60401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60402         gl_FUNC_CEILL. Cache the result.
60403         (gl_FUNC_CEILL): Use it.
60404
60405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60406         gl_FUNC_FLOOR. Cache the result.
60407         (gl_FUNC_FLOOR): Use it.
60408         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60409         gl_FUNC_CEIL. Cache the result.
60410         (gl_FUNC_CEIL): Use it.
60411
60412         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60413         gl_FUNC_FLOORF. Cache the result.
60414         (gl_FUNC_FLOORF): Use it.
60415         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60416         gl_FUNC_CEILF. Cache the result.
60417         (gl_FUNC_CEILF): Use it.
60418
60419 2007-10-28  Bruno Haible  <bruno@clisp.org>
60420
60421         * gnulib-tool: Allow specifying the LGPL version number through
60422         --lgpl=2 or --lgpl=3.
60423         (func_usage): Document --lgpl with argument.
60424         Handle --lgpl=... arguments.
60425         (func_import): Recognize also gl_LGPL calls with an argument. When
60426         --lgpl=2 is used and the module's license is just LGPL, report an
60427         error. Set sed_transform_lib_file according to the lgpl variable. In
60428         the generated files, use --lgpl or gl_LGPL invocations with argument,
60429         if necessary.
60430         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60431         an LGPv2+ license.
60432         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60433         gl_LGPL macro.
60434
60435 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60436             Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60439         (u16_uctomb_aux): Likewise.
60440         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60441         !HAVE_INLINE.
60442         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60443
60444 2007-10-28  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60447         Invoke AM_GETTEXT_OPTION if it exists.
60448         * modules/vasprintf: Likewise.
60449         * modules/verror: Likewise.
60450         * modules/xprintf: Likewise.
60451         * modules/xvasprintf: Likewise.
60452
60453 2007-10-27  Ben Pfaff  <blp@gnu.org>
60454
60455         * lib/math.in.h: Define isfinite macro and prototypes for
60456         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60457         implementations.
60458         * m4/math_h.m4: New substitutions for isfinite module.
60459         * lib/isfinite.c: New file.
60460         * m4/isfinite.m4: New file.
60461         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60462         * modules/isfinite: New file.
60463         * modules/isfinite-tests: New file.
60464         * tests/tests-isfinite.c: New file.
60465         * doc/functions/isfinite.texi: Mention isfinite module.
60466         * MODULES.html.sh: Mention new module.
60467
60468 2007-10-27  Ben Pfaff  <blp@gnu.org>
60469
60470         Ralf Wildenhues reported that Tru64 4.0D declares the round
60471         functions but does not have definitions.
60472         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60473         cannot be found in any library, set the output variable to
60474         "missing" instead of "".
60475         * m4/round.m4: Also use our substitute if we cannot find round in
60476         any library, even if it is declared.
60477         * m4/roundf.m4: Likewise for roundf.
60478         * m4/roundl.m4: Likewise for roundl.
60479         * lib/math.in.h: Undefine roundf, round, roundl before defining
60480         their replacements, to allow for hypothetical systems where these
60481         may be defined as macros but not available in libraries.
60482
60483 2007-10-27  Bruno Haible  <bruno@clisp.org>
60484
60485         * doc/gnulib.texi: Invoke @firstparagraphindent.
60486         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60487         changes in gnulib.
60488         (Source changes): New section.
60489
60490 2007-10-26  Bruno Haible  <bruno@clisp.org>
60491
60492         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60493         borrowed from autoconf.
60494
60495 2007-10-26  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60498         strerror returned the empty string. Needed on HP-UX 11.00.
60499
60500 2007-10-24  Micah Cowan  <micah@cowan.name>
60501
60502         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60503         * build-aux/bootstrap: Remove support for now-unnecessary option,
60504         --cvs-user, and envvars CVS_USER, CVS_RSH.
60505
60506 2007-10-24  Jim Meyering  <meyering@redhat.com>
60507
60508         Avoid diagnostics from sha1sum when there is no cached checksum.
60509         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60510         if the po.s1 file hasn't been created yet.
60511
60512         * build-aux/bootstrap: Sync from coreutils:
60513         2007-10-24  Jim Meyering  <meyering@redhat.com>
60514         Get gnulib from the git repository, not from an obsolete cvs one.
60515         * build-aux/bootstrap: Suggestion from Micah Cowan.
60516         2007-10-04  Jim Meyering  <jim@meyering.net>
60517         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60518         (update_po_files): Work also when there are no .po files in po/.
60519
60520 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * README: Append ".git" to git and cg examples.
60523         Problem reported by Benoit Sigoure.
60524
60525 2007-10-23  Micah Cowan  <micah@cowan.name>
60526
60527         * users.txt: Add wget.
60528
60529 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60530
60531         Fix linking of some unistdio tests on FreeBSD.
60532         * modules/unistdio/u16-vsnprintf-tests
60533         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60534         * modules/unistdio/u16-vsprintf-tests
60535         (test_u16_vsnprintf1_LDADD): Likewise.
60536         * modules/unistdio/u32-vsnprintf-tests
60537         (test_u32_vsnprintf1_LDADD): Likewise.
60538         * modules/unistdio/u32-vsprintf-tests
60539         (test_u32_vsprintf1_LDADD): Likewise.
60540         * modules/unistdio/u8-vsnprintf-tests
60541         (test_u8_vsnprintf1_LDADD): Likewise.
60542         * modules/unistdio/u8-vsprintf-tests
60543         (test_u8_vsprintf1_LDADD): Likewise.
60544         * modules/unistdio/ulc-vsnprintf-tests
60545         (test_ulc_vsnprintf1_LDADD): Likewise.
60546         * modules/unistdio/ulc-vsprintf-tests
60547         (test_ulc_vsprintf1_LDADD): Likewise.
60548
60549         Fix linking of some uniconv tests on FreeBSD.
60550         * modules/uniconv/u16-conv-from-enc-tests
60551         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60552         * modules/uniconv/u16-conv-to-enc-tests
60553         (test_u16_conv_to_enc_LDADD): Likewise.
60554         * modules/uniconv/u16-strconv-from-enc-tests
60555         (test_u16_strconv_from_enc_LDADD): Likewise.
60556         * modules/uniconv/u16-strconv-to-enc-tests
60557         (test_u16_strconv_to_enc_LDADD): Likewise.
60558         * modules/uniconv/u32-conv-from-enc-tests
60559         (test_u32_conv_from_enc_LDADD): Likewise.
60560         * modules/uniconv/u32-conv-to-enc-tests
60561         (test_u32_conv_to_enc_LDADD): Likewise.
60562         * modules/uniconv/u32-strconv-from-enc-tests
60563         (test_u32_strconv_from_enc_LDADD): Likewise.
60564         * modules/uniconv/u32-strconv-to-enc-tests
60565         (test_u32_strconv_to_enc_LDADD): Likewise.
60566         * modules/uniconv/u8-conv-from-enc-tests
60567         (test_u8_conv_from_enc_LDADD): Likewise.
60568         * modules/uniconv/u8-conv-to-enc-tests
60569         (test_u8_conv_to_enc_LDADD): Likewise.
60570         * modules/uniconv/u8-strconv-from-enc-tests
60571         (test_u8_strconv_from_enc_LDADD): Likewise.
60572         * modules/uniconv/u8-strconv-to-enc-tests
60573         (test_u8_strconv_to_enc_LDADD): Likewise.
60574
60575 2007-10-22  Bruno Haible  <bruno@clisp.org>
60576
60577         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60578         size.
60579
60580 2007-10-22  Eric Blake  <ebb9@byu.net>
60581
60582         Tweak x*printf documentation.
60583         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60584         variable name and comments.
60585         Suggested by Bruno Haible.
60586
60587 2007-10-22  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/acl.c (copy_acl): Fix file name in comment.
60590
60591 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         Fix Tru64 problem with stdbool.h.
60594         * lib/stdbool.in.h (false, true):
60595         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60596         Don't declare as an enum in this situation; it runs afoul of Tru64.
60597         Problem reported by Steven M. Schweda in
60598         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60599
60600 2007-10-22  Eric Blake  <ebb9@byu.net>
60601
60602         Also wrap vf?printf.
60603         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60604         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60605         (xvprintf, xvfprintf): New functions.
60606
60607 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60608
60609         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60610         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60611
60612         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60613         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60614
60615 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60618         by Bruno Haible.
60619
60620 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60621
60622         * lib/getloadavg.c
60623         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60624         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60625
60626         * tests/test-i-ring.c: Work for C89.
60627
60628 2007-10-22  Bruno Haible  <bruno@clisp.org>
60629
60630         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60631         -1u, in preprocessor expression, so that we don't test for the bug
60632         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60634
60635 2007-10-22  Eric Blake  <ebb9@byu.net>
60636
60637         * tests/test-yesno.sh: Silence stderr during test.
60638
60639 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60640
60641         * modules/crypto/gc-camellia: New file.
60642
60643         * m4/gc-camellia.m4: New file.
60644
60645         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60646
60647         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60648
60649 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60650
60651         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60652         --help to stdout.  Reported by sms@antinode.org (Steven
60653         M. Schweda).
60654
60655 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60656
60657         * users.txt: Fix link to libksba.
60658
60659 2007-10-21  Ben Pfaff  <blp@gnu.org>
60660
60661         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60662         round.c roundf implementation that depends on floorf and ceilf to
60663         be tested unconditionally.
60664
60665 2007-10-21  Ben Pfaff  <blp@gnu.org>
60666
60667         * m4/check-libm-func.m4: Removed.
60668         * m4/check-math-lib.m4: New file.
60669         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60670         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60671         definition and lack of AC_LIBOBJ([roundf]).
60672         * m4/roundl.m4: Ditto, and similarly for roundl.
60673         * modules/round: Reference new m4 file.
60674         * modules/roundf: Ditto.
60675         * modules/roundl: Ditto.
60676         * tests/test-round2.c (main): Use ROUND instead of round.
60677         Bug report from Bruno Haible.
60678
60679 2007-10-21  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60682         context.
60683
60684 2007-10-21  Bruno Haible  <bruno@clisp.org>
60685
60686         * tests/test-wcwidth.c (main): Allow negative result for some control
60687         characters.
60688
60689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60690         Needed on OSF/1 5.1.
60691
60692 2007-10-21  Bruno Haible  <bruno@clisp.org>
60693
60694         * tests/test-floorf1.c: Include isnanf.h.
60695         (main): Use isnanf() instead of isnan().
60696         * tests/test-ceilf1.c: Include isnanf.h.
60697         (main): Use isnanf() instead of isnan().
60698         * tests/test-truncf1.c: Include isnanf.h.
60699         (main): Use isnanf() instead of isnan().
60700         * tests/test-roundf1.c: Include isnanf.h.
60701         (main): Use isnanf() instead of isnan().
60702
60703 2007-10-21  Eric Blake  <ebb9@byu.net>
60704
60705         * users.txt: Update URL for m4.
60706
60707 2007-10-21  Bruno Haible  <bruno@clisp.org>
60708
60709         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60710
60711 2007-10-21  Bruno Haible  <bruno@clisp.org>
60712
60713         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60714         Git's management files if the CVS files are not present.
60715
60716 2007-10-20  Bruno Haible  <bruno@clisp.org>
60717
60718         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60719         gcc-3.4.x.
60720
60721 2007-10-20  Ben Pfaff  <blp@gnu.org>
60722
60723         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60724         implementations.
60725         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60726         * lib/round.c: New file.
60727         * lib/roundf.c: New file.
60728         * lib/roundl.c: New file.
60729         * m4/round.m4: New file.
60730         * m4/roundf.m4: New file.
60731         * m4/roundl.m4: New file.
60732         * m4/check-libm-func-m4: New file.
60733         * modules/math: Replace round, roundf, roundl related @VARS@ in
60734         math.in.h.
60735         * modules/round: New file.
60736         * modules/round-tests: New file.
60737         * modules/roundf: New file.
60738         * modules/roundf-tests: New file.
60739         * modules/roundl: New file.
60740         * modules/roundl-tests: New file.
60741         * tests/test-round1.c: New file.
60742         * tests/test-round2.c: New file.
60743         * tests/test-roundf1.c: New file.
60744         * tests/test-roundf2.c: New file.
60745         * tests/test-roundl.c: New file.
60746         * doc/functions/round.texi: Mention round module.
60747         * doc/functions/roundf.texi: Mention roundf module.
60748         * doc/functions/roundl.texi: Mention roundl module.
60749         * MODULES.html.sh: Mention new modules.
60750         Thanks to Bruno Haible for suggestions.
60751
60752 2007-10-20  Jim Meyering  <meyering@redhat.com>
60753
60754         * lib/xprintf.c: Include <config.h> unconditionally.
60755
60756         Change xprintf's license to GPL.
60757         * modules/xprintf (License): s/LGPL/GPL/, since this module
60758         depends on modules (exit and exitfail) which are GPL.
60759         Suggestion from Bruno Haible.
60760
60761         xprintf fixes.
60762         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60763         Use a clearer diagnostic.
60764         Patch from Bruno Haible.
60765
60766 2007-10-20  Bruno Haible  <bruno@clisp.org>
60767
60768         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60769         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60771
60772 2007-10-20  Bruno Haible  <bruno@clisp.org>
60773
60774         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60775         precision in the comparison result > x - 1 or similar.
60776         * tests/test-ceilf2.c (correct_result_p): Likewise.
60777         * tests/test-truncf2.c (correct_result_p): Likewise.
60778         * tests/test-trunc2.c (correct_result_p): Likewise.
60779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60780
60781 2007-10-20  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/ceil: New file.
60784         * m4/ceil.m4: New file.
60785         * doc/functions/ceil.texi: Mention the 'ceil' module.
60786
60787 2007-10-20  Bruno Haible  <bruno@clisp.org>
60788
60789         * modules/floor: New file.
60790         * m4/floor.m4: New file.
60791         * doc/functions/floor.texi: Mention the 'floor' module.
60792
60793 2007-10-20  Bruno Haible  <bruno@clisp.org>
60794
60795         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60796         of %a.
60797         * modules/floorf-tests (Depends-on): Likewise.
60798         * modules/truncf-tests (Depends-on): Likewise.
60799         * modules/trunc-tests (Depends-on): Likewise.
60800         Reported by Ben Pfaff.
60801
60802 2007-10-19  Jim Meyering  <meyering@redhat.com>
60803
60804         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60805         Don't bother testing specific errno values.  Just test ferror.
60806
60807         New module: xprintf
60808         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60809
60810 2007-10-19  Bruno Haible  <bruno@clisp.org>
60811
60812         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60813         syntax.
60814         * modules/javaexec (Makefile.am): Likewise.
60815         * modules/relocatable-prog (Makefile.am): Likewise.
60816         Suggested by Jim Meyering.
60817
60818 2007-10-18  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60821         Reported by Jim Meyering.
60822
60823 2007-10-18  Eric Blake  <ebb9@byu.net>
60824
60825         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60826
60827 2007-10-18  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60830         the format string into writable memory. Needed in Fortify conditions.
60831
60832 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60833             Bruno Haible  <bruno@clisp.org>
60834
60835         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60836         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60837         * modules/trim (Depends-on): Add mbchar.
60838         (configure.ac): Add gl_FUNC_MBRTOWC.
60839         (Makefile.am): Augment lib_SOURCES.
60840
60841 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60842
60843         Modify glob.c to use fstatat and dirfd, to simplify it.
60844         Suggested by Eric Blake.
60845         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60846         Don't include <stdbool.h>; not used.
60847         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60848         (link_exists_p): Simplify implementation, since we can now assume
60849         dirfd and fstatat.
60850         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60851
60852 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60853
60854         * gnulib-tool (func_get_dependencies): Fix sed script to
60855         match only tests.
60856
60857 2007-10-17  Bruno Haible  <bruno@clisp.org>
60858
60859         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60860         allow locale names without encoding suffix.
60861         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60863
60864 2007-10-16  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60867         * lib/getgroups.c (getgroups): Likewise.
60868         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60869
60870 2007-10-16  Bruno Haible  <bruno@clisp.org>
60871
60872         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60873         * modules/malloc-posix (License): Likewise.
60874         * modules/realloc-posix (License): Likewise.
60875         * modules/calloc-posix (License): Likewise.
60876         * modules/intprops (License): Change from GPL to LGPL, with
60877         Paul Eggert's approval.
60878
60879 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60880
60881         Merge glibc changes into lib/glob.c.
60882
60883         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60884         2007-10-15 04:59:03 UTC.  Here are the changes:
60885
60886         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60887
60888         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60889
60890         * lib/glob.c: Add some branch prediction throughout.
60891
60892         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60893
60894         [BZ #5103]
60895         * lib/glob.c (glob): Recognize patterns starting \/.
60896
60897         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60898
60899         [BZ #3996]
60900         * lib/glob.c (attribute_hidden): Define if not defined.
60901         (glob): Unescape dirname, filename or username when needed and not
60902         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60903         is NULL.  Handle unescaped [ in pattern without closing ].
60904         Don't pass GLOB_CHECK down to recursive glob for directories.
60905         (__glob_pattern_type): New function.
60906         (__glob_pattern_p): Implement using __glob_pattern_type.
60907         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60908         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60909         Remove unreachable code.
60910
60911         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60912
60913         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60914         explain why there are no leaks.
60915
60916         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60917
60918         [BZ #3253]
60919         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60920         time, rather allocate increasingly bigger arrays of pointers, if
60921         possible with alloca, if too large with malloc.
60922
60923 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60926         Problem reported by H.Merijn Brand in
60927         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60928         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60929         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60930
60931 2007-10-15  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60934         with explicit rpl_ prefix.
60935         * lib/fopen.c (fopen): Likewise.
60936         * lib/freopen.c (freopen): Likewise.
60937         * lib/iconv.c (iconv): Likewise.
60938         * lib/iconv_close.c (iconv_close): Likewise.
60939
60940 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60941
60942         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60943
60944 2007-10-15  Bruno Haible  <bruno@clisp.org>
60945
60946         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60947         <stddef.h> instead of <stdlib.h> since we only need NULL.
60948         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60949
60950 2007-10-15  Bruno Haible  <bruno@clisp.org>
60951
60952         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60953         Replace paragraph talking about LIBOBJS.
60954         Reported by Colin Watson <cjwatson@debian.org>.
60955
60956 2007-10-15  Bruno Haible  <bruno@clisp.org>
60957
60958         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60959         <stdlib.h> before using NULL.
60960
60961 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60962
60963         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60964         Reported by Albert Chin <china@thewrittenword.com>.
60965
60966 2007-10-14  Bruno Haible  <bruno@clisp.org>
60967
60968         * modules/iconv_open-utf-tests: New file.
60969         * tests/test-iconv-utf.c: New file.
60970
60971         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60972         * modules/iconv_open-utf: New file.
60973         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60974         (iconv, iconv_close): New declarations.
60975         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60976         be defined.
60977         (iconv_open): Add special handling of conversion between UTF-8 and
60978         UTF-{16,32}{BE,LE}.
60979         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60980         * lib/iconv_close.c: New file.
60981         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60982         gl_FUNC_ICONV_OPEN.
60983         (gl_FUNC_ICONV_OPEN): Use it.
60984         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60985         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60986         and REPLACE_ICONV_UTF.
60987         * modules/iconv_open (Depends-on): Add c-strcase.
60988         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60989         ICONV_CONST.
60990         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60991
60992 2007-10-13  Albert Chin  <china@thewrittenword.com>
60993             Bruno Haible  <bruno@clisp.org>
60994
60995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60996         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60997
60998 2007-10-13  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61001         defined, use the ISO C99 inline semantics.
61002         * lib/argp.h (ARGP_EI): Likewise.
61003
61004 2007-10-13  Bruno Haible  <bruno@clisp.org>
61005
61006         Handle 'inline' change in gcc 4.3.0.
61007         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61008         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61009         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61010         argp_fmtstream_point): Disable 'extern' declaration if the function
61011         definition is going to be provided inline.
61012         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61013         semantics, not the ISO C99 inline semantics.
61014         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61015         'extern' declaration if the function definition is going to be provided
61016         inline.
61017         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61018         the GNU C inline semantics, not the ISO C99 inline semantics. With
61019         GCC 4.2, avoid a warning.
61020
61021 2007-10-13  Bruno Haible  <bruno@clisp.org>
61022
61023         * lib/freading.h (freading): Enable the use of __freading for
61024         glibc >= 2.7.
61025         * lib/freading.c (freading): Likewise.
61026
61027 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61028
61029         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61030         "warning: C99 inline functions are not supported; using GNU89".
61031
61032 2007-10-12  Bruno Haible  <bruno@clisp.org>
61033
61034         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61035         of 2.
61036         * tests/test-ceilf2.c: New file.
61037         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61038
61039         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61040         * modules/ceilf-tests: Update.
61041
61042 2007-10-12  Bruno Haible  <bruno@clisp.org>
61043
61044         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61045         of 2.
61046         * tests/test-floorf2.c: New file.
61047         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61048
61049         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61050         * modules/floorf-tests: Update.
61051
61052 2007-10-12  Bruno Haible  <bruno@clisp.org>
61053
61054         * tests/test-trunc2.c: New file.
61055         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61056
61057         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61058         * modules/trunc-tests: Update.
61059
61060 2007-10-12  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61063         of 2.
61064         * tests/test-truncf2.c: New file.
61065         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61066
61067         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61068         * modules/truncf-tests: Update.
61069
61070 2007-10-11  Eric Blake  <ebb9@byu.net>
61071
61072         Don't claim strerror is broken on Interix.
61073         * doc/functions/strerror.texi (strerror): Known broken systems are
61074         now Solaris 8, and not Interix.
61075         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61076         Interix on cross-compile.
61077         Reported by Martin Koeppe in
61078         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61079
61080 2007-10-11  Bruno Haible  <bruno@clisp.org>
61081
61082         * modules/i-ring-tests: New file.
61083         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61084         instead of assert.
61085
61086 2007-10-11  Bruno Haible  <bruno@clisp.org>
61087
61088         * modules/filenamecat-tests: New file.
61089         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61090         * lib/filenamecat.c: Remove test code.
61091
61092 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61093
61094         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61095
61096         * lib/strerror.c: Include <string.h> always, to test interface,
61097         and to remove the need for the dummy.
61098         Include intprops.h to compute width instead of doing it ourselves
61099         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61100         (strerror): Define it to return NULL if there's no system strerror.
61101         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61102         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61103         ancient pre-strerror Unix systems well any more.  Saying "unknown
61104         system error" is enough.
61105         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61106         simpler strerror.c implementation.
61107         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61108         Simplify the tests to reflect the simpler strerror implementation.
61109         * modules/strerror (Depends-on): Add intprops.
61110
61111 2007-10-09  Eric Blake  <ebb9@byu.net>
61112
61113         Silence test-fpending.
61114         * modules/fpending-tests (Files): Add wrapper script.
61115         * tests/test-fpending.sh: New file.
61116
61117 2007-10-09  Bruno Haible  <bruno@clisp.org>
61118
61119         * MODULES.html.sh (func_module): Don't create a hyperlink for
61120         function names like 'printf_frexp'.
61121         (Misc): Add crc, memxor.
61122         (Characteristics of floating types): New section.
61123         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61124         isnanf-nolibm, signbit, trunc, truncf, truncl.
61125         (Enhancements for ISO C 99 functions): New subsection Input/output.
61126         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61127         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61128         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61129         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61130         (Enhancements for POSIX:2001 functions): Add chdir-long.
61131         (File system functions): Add areadlink, chdir-safer, read-file.
61132         Remove cycle-check.
61133         (File system as inode set): New section.
61134         (Date and time): Add gethrxtime.
61135         (Multithreading): Add openmp.
61136         (Internationalization functions): Add localename.
61137         (Unicode string functions): Add unistr/u*-mbsnlen.
61138         (Support for maintaining and releasing projects): Add git-version-gen.
61139         (Lone files): Remove directories.
61140
61141 2007-10-08  Ben Pfaff  <blp@gnu.org>
61142
61143         * lib/xmalloca.h: Fix typo in comment.
61144
61145 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61146
61147         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61148         when avoiding problems with integer overflow.  Use a portable test
61149         instead.
61150
61151 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61152
61153         * modules/dummy (License): Change to LGPLv2+.
61154         * modules/float (License): Likewise
61155         * modules/realloc (License): Likewise
61156         * modules/stdlib (License): Likewise
61157
61158 2007-10-07  Bruno Haible  <bruno@clisp.org>
61159
61160         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61161         * floor.c (TWO_MANT_DIG): Likewise.
61162         * ceil.c (TWO_MANT_DIG): Likewise.
61163         Reported by Ben Pfaff.
61164
61165 2007-10-07  Bruno Haible  <bruno@clisp.org>
61166
61167         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61168         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61169         * lib/frexp.c (FUNC): Likewise.
61170         * lib/printf-frexp.h (printf_frexp): Likewise.
61171         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61172         * lib/printf-frexp.c (FUNC): Likewise.
61173         Suggested by Jim Meyering.
61174
61175 2007-10-07  Jim Meyering  <meyering@redhat.com>
61176
61177         Make xnanosleep's integer overflow test more robust.
61178         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61179         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61180
61181 2007-10-07  Bruno Haible  <bruno@clisp.org>
61182
61183         * NEWS: Mention the license change.
61184
61185         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61186         abbreviations in the modules files.
61187
61188         Change copyright notice from GPLv2+ to GPLv3+.
61189         * README: Change copyright notice.
61190         * MODULES.html.sh: Likewise.
61191         * build-aux/bootstrap.conf: Likewise.
61192         * build-aux/config.libpath: Likewise.
61193         * build-aux/csharpcomp.sh.in: Likewise.
61194         * build-aux/csharpexec.sh.in: Likewise.
61195         * build-aux/install-reloc: Likewise.
61196         * build-aux/javacomp.sh.in: Likewise.
61197         * build-aux/javaexec.sh.in: Likewise.
61198         * build-aux/ldd.sh.in: Likewise.
61199         * build-aux/reloc-ldflags: Likewise.
61200         * build-aux/relocatable.sh.in: Likewise.
61201         * build-aux/x-to-1.in: Likewise.
61202         * check-module: Likewise.
61203         * config/srclistvars.sh: Likewise.
61204         * gnulib-tool: Likewise.
61205         * lib/acl-internal.h: Likewise.
61206         * lib/acl.c: Likewise.
61207         * lib/acl.h: Likewise.
61208         * lib/acl_entries.c: Likewise.
61209         * lib/areadlink-with-size.c: Likewise.
61210         * lib/areadlink.c: Likewise.
61211         * lib/areadlink.h: Likewise.
61212         * lib/argmatch.c: Likewise.
61213         * lib/argmatch.h: Likewise.
61214         * lib/argp-ba.c: Likewise.
61215         * lib/argp-eexst.c: Likewise.
61216         * lib/argp-fmtstream.c: Likewise.
61217         * lib/argp-fmtstream.h: Likewise.
61218         * lib/argp-fs-xinl.c: Likewise.
61219         * lib/argp-help.c: Likewise.
61220         * lib/argp-namefrob.h: Likewise.
61221         * lib/argp-parse.c: Likewise.
61222         * lib/argp-pin.c: Likewise.
61223         * lib/argp-pv.c: Likewise.
61224         * lib/argp-pvh.c: Likewise.
61225         * lib/argp-xinl.c: Likewise.
61226         * lib/argp.h: Likewise.
61227         * lib/at-func.c: Likewise.
61228         * lib/atanl.c: Likewise.
61229         * lib/backupfile.c: Likewise.
61230         * lib/backupfile.h: Likewise.
61231         * lib/basename.c: Likewise.
61232         * lib/binary-io.h: Likewise.
61233         * lib/byteswap.in.h: Likewise.
61234         * lib/c-stack.c: Likewise.
61235         * lib/c-stack.h: Likewise.
61236         * lib/c-strcasestr.c: Likewise.
61237         * lib/c-strcasestr.h: Likewise.
61238         * lib/c-strstr.c: Likewise.
61239         * lib/c-strstr.h: Likewise.
61240         * lib/c-strtod.c: Likewise.
61241         * lib/calloc.c: Likewise.
61242         * lib/canon-host.c: Likewise.
61243         * lib/canon-host.h: Likewise.
61244         * lib/canonicalize-lgpl.c: Likewise.
61245         * lib/canonicalize.c: Likewise.
61246         * lib/canonicalize.h: Likewise.
61247         * lib/ceil.c: Likewise.
61248         * lib/ceilf.c: Likewise.
61249         * lib/ceill.c: Likewise.
61250         * lib/chdir-long.c: Likewise.
61251         * lib/chdir-long.h: Likewise.
61252         * lib/chdir-safer.c: Likewise.
61253         * lib/chdir-safer.h: Likewise.
61254         * lib/chown.c: Likewise.
61255         * lib/classpath.c: Likewise.
61256         * lib/classpath.h: Likewise.
61257         * lib/clean-temp.c: Likewise.
61258         * lib/clean-temp.h: Likewise.
61259         * lib/cloexec.c: Likewise.
61260         * lib/close-stream.c: Likewise.
61261         * lib/closein.c: Likewise.
61262         * lib/closein.h: Likewise.
61263         * lib/closeout.c: Likewise.
61264         * lib/closeout.h: Likewise.
61265         * lib/concat-filename.c: Likewise.
61266         * lib/copy-file.c: Likewise.
61267         * lib/copy-file.h: Likewise.
61268         * lib/count-one-bits.h: Likewise.
61269         * lib/crc.c: Likewise.
61270         * lib/crc.h: Likewise.
61271         * lib/creat-safer.c: Likewise.
61272         * lib/csharpcomp.c: Likewise.
61273         * lib/csharpcomp.h: Likewise.
61274         * lib/csharpexec.c: Likewise.
61275         * lib/csharpexec.h: Likewise.
61276         * lib/cycle-check.c: Likewise.
61277         * lib/cycle-check.h: Likewise.
61278         * lib/diacrit.c: Likewise.
61279         * lib/diacrit.h: Likewise.
61280         * lib/diffseq.h: Likewise.
61281         * lib/dirchownmod.c: Likewise.
61282         * lib/dirent.in.h: Likewise.
61283         * lib/dirfd.c: Likewise.
61284         * lib/dirfd.h: Likewise.
61285         * lib/dirname.c: Likewise.
61286         * lib/dirname.h: Likewise.
61287         * lib/dummy.c: Likewise.
61288         * lib/dup-safer.c: Likewise.
61289         * lib/dup2.c: Likewise.
61290         * lib/eealloc.h: Likewise.
61291         * lib/error.c: Likewise.
61292         * lib/error.h: Likewise.
61293         * lib/euidaccess.c: Likewise.
61294         * lib/exclude.c: Likewise.
61295         * lib/exclude.h: Likewise.
61296         * lib/execute.c: Likewise.
61297         * lib/execute.h: Likewise.
61298         * lib/exitfail.c: Likewise.
61299         * lib/exitfail.h: Likewise.
61300         * lib/expl.c: Likewise.
61301         * lib/fatal-signal.c: Likewise.
61302         * lib/fatal-signal.h: Likewise.
61303         * lib/fbufmode.c: Likewise.
61304         * lib/fbufmode.h: Likewise.
61305         * lib/fchdir.c: Likewise.
61306         * lib/fchmodat.c: Likewise.
61307         * lib/fchownat.c: Likewise.
61308         * lib/fcntl--.h: Likewise.
61309         * lib/fcntl-safer.h: Likewise.
61310         * lib/fcntl.in.h: Likewise.
61311         * lib/fd-safer.c: Likewise.
61312         * lib/fflush.c: Likewise.
61313         * lib/file-has-acl.c: Likewise.
61314         * lib/file-set.c: Likewise.
61315         * lib/file-type.c: Likewise.
61316         * lib/file-type.h: Likewise.
61317         * lib/fileblocks.c: Likewise.
61318         * lib/filemode.c: Likewise.
61319         * lib/filemode.h: Likewise.
61320         * lib/filename.h: Likewise.
61321         * lib/filenamecat.c: Likewise.
61322         * lib/filenamecat.h: Likewise.
61323         * lib/findprog.c: Likewise.
61324         * lib/findprog.h: Likewise.
61325         * lib/float.in.h: Likewise.
61326         * lib/floor.c: Likewise.
61327         * lib/floorf.c: Likewise.
61328         * lib/floorl.c: Likewise.
61329         * lib/fopen-safer.c: Likewise.
61330         * lib/fopen.c: Likewise.
61331         * lib/fpending.c: Likewise.
61332         * lib/fpending.h: Likewise.
61333         * lib/fprintf.c: Likewise.
61334         * lib/fprintftime.h: Likewise.
61335         * lib/fpucw.h: Likewise.
61336         * lib/fpurge.c: Likewise.
61337         * lib/fpurge.h: Likewise.
61338         * lib/freadable.c: Likewise.
61339         * lib/freadable.h: Likewise.
61340         * lib/freadahead.c: Likewise.
61341         * lib/freadahead.h: Likewise.
61342         * lib/freading.c: Likewise.
61343         * lib/freading.h: Likewise.
61344         * lib/free.c: Likewise.
61345         * lib/freopen.c: Likewise.
61346         * lib/frexp.c: Likewise.
61347         * lib/frexpl.c: Likewise.
61348         * lib/fseek.c: Likewise.
61349         * lib/fseterr.c: Likewise.
61350         * lib/fseterr.h: Likewise.
61351         * lib/fstatat.c: Likewise.
61352         * lib/fstrcmp.c: Likewise.
61353         * lib/fstrcmp.h: Likewise.
61354         * lib/fsusage.c: Likewise.
61355         * lib/fsusage.h: Likewise.
61356         * lib/ftell.c: Likewise.
61357         * lib/ftello.c: Likewise.
61358         * lib/fts-cycle.c: Likewise.
61359         * lib/fts.c: Likewise.
61360         * lib/fts_.h: Likewise.
61361         * lib/full-read.c: Likewise.
61362         * lib/full-read.h: Likewise.
61363         * lib/full-write.c: Likewise.
61364         * lib/full-write.h: Likewise.
61365         * lib/fwritable.c: Likewise.
61366         * lib/fwritable.h: Likewise.
61367         * lib/fwriteerror.c: Likewise.
61368         * lib/fwriteerror.h: Likewise.
61369         * lib/fwriting.c: Likewise.
61370         * lib/fwriting.h: Likewise.
61371         * lib/gcd.c: Likewise.
61372         * lib/gcd.h: Likewise.
61373         * lib/getcwd.c: Likewise.
61374         * lib/getdate.h: Likewise.
61375         * lib/getdate.y: Likewise.
61376         * lib/getdomainname.c: Likewise.
61377         * lib/getdomainname.h: Likewise.
61378         * lib/getgroups.c: Likewise.
61379         * lib/gethostname.c: Likewise.
61380         * lib/gethrxtime.c: Likewise.
61381         * lib/gethrxtime.h: Likewise.
61382         * lib/getloadavg.c: Likewise.
61383         * lib/getndelim2.c: Likewise.
61384         * lib/getndelim2.h: Likewise.
61385         * lib/getnline.c: Likewise.
61386         * lib/getnline.h: Likewise.
61387         * lib/getopt.c: Likewise.
61388         * lib/getopt.in.h: Likewise.
61389         * lib/getopt1.c: Likewise.
61390         * lib/getopt_int.h: Likewise.
61391         * lib/getpagesize.h: Likewise.
61392         * lib/getsubopt.c: Likewise.
61393         * lib/gettime.c: Likewise.
61394         * lib/getugroups.c: Likewise.
61395         * lib/getugroups.h: Likewise.
61396         * lib/getusershell.c: Likewise.
61397         * lib/gl_anyavltree_list1.h: Likewise.
61398         * lib/gl_anyavltree_list2.h: Likewise.
61399         * lib/gl_anyhash_list1.h: Likewise.
61400         * lib/gl_anyhash_list2.h: Likewise.
61401         * lib/gl_anylinked_list1.h: Likewise.
61402         * lib/gl_anylinked_list2.h: Likewise.
61403         * lib/gl_anyrbtree_list1.h: Likewise.
61404         * lib/gl_anyrbtree_list2.h: Likewise.
61405         * lib/gl_anytree_list1.h: Likewise.
61406         * lib/gl_anytree_list2.h: Likewise.
61407         * lib/gl_anytree_oset.h: Likewise.
61408         * lib/gl_anytreehash_list1.h: Likewise.
61409         * lib/gl_anytreehash_list2.h: Likewise.
61410         * lib/gl_array_list.c: Likewise.
61411         * lib/gl_array_list.h: Likewise.
61412         * lib/gl_array_oset.c: Likewise.
61413         * lib/gl_array_oset.h: Likewise.
61414         * lib/gl_avltree_list.c: Likewise.
61415         * lib/gl_avltree_list.h: Likewise.
61416         * lib/gl_avltree_oset.c: Likewise.
61417         * lib/gl_avltree_oset.h: Likewise.
61418         * lib/gl_avltreehash_list.c: Likewise.
61419         * lib/gl_avltreehash_list.h: Likewise.
61420         * lib/gl_carray_list.c: Likewise.
61421         * lib/gl_carray_list.h: Likewise.
61422         * lib/gl_linked_list.c: Likewise.
61423         * lib/gl_linked_list.h: Likewise.
61424         * lib/gl_linkedhash_list.c: Likewise.
61425         * lib/gl_linkedhash_list.h: Likewise.
61426         * lib/gl_list.c: Likewise.
61427         * lib/gl_list.h: Likewise.
61428         * lib/gl_oset.c: Likewise.
61429         * lib/gl_oset.h: Likewise.
61430         * lib/gl_rbtree_list.c: Likewise.
61431         * lib/gl_rbtree_list.h: Likewise.
61432         * lib/gl_rbtree_oset.c: Likewise.
61433         * lib/gl_rbtree_oset.h: Likewise.
61434         * lib/gl_rbtreehash_list.c: Likewise.
61435         * lib/gl_rbtreehash_list.h: Likewise.
61436         * lib/gl_sublist.c: Likewise.
61437         * lib/gl_sublist.h: Likewise.
61438         * lib/group-member.c: Likewise.
61439         * lib/group-member.h: Likewise.
61440         * lib/hard-locale.c: Likewise.
61441         * lib/hard-locale.h: Likewise.
61442         * lib/hash-pjw.c: Likewise.
61443         * lib/hash-pjw.h: Likewise.
61444         * lib/hash-triple.c: Likewise.
61445         * lib/hash.c: Likewise.
61446         * lib/hash.h: Likewise.
61447         * lib/human.c: Likewise.
61448         * lib/human.h: Likewise.
61449         * lib/i-ring.c: Likewise.
61450         * lib/i-ring.h: Likewise.
61451         * lib/idcache.c: Likewise.
61452         * lib/imaxabs.c: Likewise.
61453         * lib/imaxdiv.c: Likewise.
61454         * lib/inet_pton.c: Likewise.
61455         * lib/inet_pton.h: Likewise.
61456         * lib/intprops.h: Likewise.
61457         * lib/inttostr.c: Likewise.
61458         * lib/inttostr.h: Likewise.
61459         * lib/inttypes.in.h: Likewise.
61460         * lib/isapipe.c: Likewise.
61461         * lib/isdir.c: Likewise.
61462         * lib/isnan.c: Likewise.
61463         * lib/isnan.h: Likewise.
61464         * lib/isnanf.c: Likewise.
61465         * lib/isnanf.h: Likewise.
61466         * lib/isnanl-nolibm.h: Likewise.
61467         * lib/isnanl.c: Likewise.
61468         * lib/isnanl.h: Likewise.
61469         * lib/javacomp.c: Likewise.
61470         * lib/javacomp.h: Likewise.
61471         * lib/javaexec.c: Likewise.
61472         * lib/javaexec.h: Likewise.
61473         * lib/javaversion.c: Likewise.
61474         * lib/javaversion.h: Likewise.
61475         * lib/javaversion.java: Likewise.
61476         * lib/lbrkprop.h: Likewise.
61477         * lib/lchmod.h: Likewise.
61478         * lib/lchown.c: Likewise.
61479         * lib/ldexpl.c: Likewise.
61480         * lib/linebreak.c: Likewise.
61481         * lib/linebreak.h: Likewise.
61482         * lib/linebuffer.c: Likewise.
61483         * lib/linebuffer.h: Likewise.
61484         * lib/locale.in.h: Likewise.
61485         * lib/logl.c: Likewise.
61486         * lib/long-options.c: Likewise.
61487         * lib/long-options.h: Likewise.
61488         * lib/lstat.c: Likewise.
61489         * lib/lstat.h: Likewise.
61490         * lib/math.in.h: Likewise.
61491         * lib/mbchar.c: Likewise.
61492         * lib/mbchar.h: Likewise.
61493         * lib/mbfile.h: Likewise.
61494         * lib/mbiter.h: Likewise.
61495         * lib/mbscasecmp.c: Likewise.
61496         * lib/mbscasestr.c: Likewise.
61497         * lib/mbschr.c: Likewise.
61498         * lib/mbscspn.c: Likewise.
61499         * lib/mbslen.c: Likewise.
61500         * lib/mbsncasecmp.c: Likewise.
61501         * lib/mbsnlen.c: Likewise.
61502         * lib/mbspbrk.c: Likewise.
61503         * lib/mbspcasecmp.c: Likewise.
61504         * lib/mbsrchr.c: Likewise.
61505         * lib/mbssep.c: Likewise.
61506         * lib/mbsspn.c: Likewise.
61507         * lib/mbsstr.c: Likewise.
61508         * lib/mbstok_r.c: Likewise.
61509         * lib/mbswidth.c: Likewise.
61510         * lib/mbswidth.h: Likewise.
61511         * lib/mbuiter.h: Likewise.
61512         * lib/memcasecmp.c: Likewise.
61513         * lib/memcasecmp.h: Likewise.
61514         * lib/memchr.c: Likewise.
61515         * lib/memcmp.c: Likewise.
61516         * lib/memcoll.c: Likewise.
61517         * lib/memcoll.h: Likewise.
61518         * lib/memcpy.c: Likewise.
61519         * lib/memrchr.c: Likewise.
61520         * lib/mkancesdirs.c: Likewise.
61521         * lib/mkdir-p.c: Likewise.
61522         * lib/mkdir-p.h: Likewise.
61523         * lib/mkdir.c: Likewise.
61524         * lib/mkdirat.c: Likewise.
61525         * lib/mkdtemp.c: Likewise.
61526         * lib/mkstemp-safer.c: Likewise.
61527         * lib/mkstemp.c: Likewise.
61528         * lib/modechange.c: Likewise.
61529         * lib/modechange.h: Likewise.
61530         * lib/mountlist.c: Likewise.
61531         * lib/mountlist.h: Likewise.
61532         * lib/mpsort.c: Likewise.
61533         * lib/nanosleep.c: Likewise.
61534         * lib/obstack.c: Likewise.
61535         * lib/obstack.h: Likewise.
61536         * lib/open-safer.c: Likewise.
61537         * lib/open.c: Likewise.
61538         * lib/openat-die.c: Likewise.
61539         * lib/openat-priv.h: Likewise.
61540         * lib/openat-proc.c: Likewise.
61541         * lib/openat.c: Likewise.
61542         * lib/openat.h: Likewise.
61543         * lib/pagealign_alloc.c: Likewise.
61544         * lib/pagealign_alloc.h: Likewise.
61545         * lib/physmem.c: Likewise.
61546         * lib/physmem.h: Likewise.
61547         * lib/pipe-safer.c: Likewise.
61548         * lib/pipe.c: Likewise.
61549         * lib/pipe.h: Likewise.
61550         * lib/posixtm.c: Likewise.
61551         * lib/posixtm.h: Likewise.
61552         * lib/posixver.c: Likewise.
61553         * lib/printf-frexp.c: Likewise.
61554         * lib/printf-frexp.h: Likewise.
61555         * lib/printf-frexpl.c: Likewise.
61556         * lib/printf-frexpl.h: Likewise.
61557         * lib/printf.c: Likewise.
61558         * lib/progname.c: Likewise.
61559         * lib/progname.h: Likewise.
61560         * lib/progreloc.c: Likewise.
61561         * lib/putenv.c: Likewise.
61562         * lib/quote.c: Likewise.
61563         * lib/quote.h: Likewise.
61564         * lib/quotearg.c: Likewise.
61565         * lib/quotearg.h: Likewise.
61566         * lib/raise.c: Likewise.
61567         * lib/readline.c: Likewise.
61568         * lib/readline.h: Likewise.
61569         * lib/readlink.c: Likewise.
61570         * lib/readtokens.c: Likewise.
61571         * lib/readtokens.h: Likewise.
61572         * lib/readtokens0.c: Likewise.
61573         * lib/readtokens0.h: Likewise.
61574         * lib/readutmp.c: Likewise.
61575         * lib/readutmp.h: Likewise.
61576         * lib/realloc.c: Likewise.
61577         * lib/relocwrapper.c: Likewise.
61578         * lib/rename-dest-slash.c: Likewise.
61579         * lib/rename.c: Likewise.
61580         * lib/rmdir.c: Likewise.
61581         * lib/rpmatch.c: Likewise.
61582         * lib/safe-read.c: Likewise.
61583         * lib/safe-read.h: Likewise.
61584         * lib/safe-write.c: Likewise.
61585         * lib/safe-write.h: Likewise.
61586         * lib/same-inode.h: Likewise.
61587         * lib/same.c: Likewise.
61588         * lib/same.h: Likewise.
61589         * lib/save-cwd.c: Likewise.
61590         * lib/save-cwd.h: Likewise.
61591         * lib/savedir.c: Likewise.
61592         * lib/savedir.h: Likewise.
61593         * lib/savewd.c: Likewise.
61594         * lib/savewd.h: Likewise.
61595         * lib/search.in.h: Likewise.
61596         * lib/setenv.c: Likewise.
61597         * lib/setenv.h: Likewise.
61598         * lib/settime.c: Likewise.
61599         * lib/sh-quote.c: Likewise.
61600         * lib/sh-quote.h: Likewise.
61601         * lib/sig2str.c: Likewise.
61602         * lib/sig2str.h: Likewise.
61603         * lib/signal.in.h: Likewise.
61604         * lib/signbitd.c: Likewise.
61605         * lib/signbitf.c: Likewise.
61606         * lib/signbitl.c: Likewise.
61607         * lib/sigprocmask.c: Likewise.
61608         * lib/sincosl.c: Likewise.
61609         * lib/sleep.c: Likewise.
61610         * lib/sprintf.c: Likewise.
61611         * lib/sqrtl.c: Likewise.
61612         * lib/stat-time.h: Likewise.
61613         * lib/stdio--.h: Likewise.
61614         * lib/stdio-safer.h: Likewise.
61615         * lib/stdlib--.h: Likewise.
61616         * lib/stdlib-safer.h: Likewise.
61617         * lib/stdlib.in.h: Likewise.
61618         * lib/stpcpy.c: Likewise.
61619         * lib/stpncpy.c: Likewise.
61620         * lib/strchrnul.c: Likewise.
61621         * lib/strcspn.c: Likewise.
61622         * lib/strerror.c: Likewise.
61623         * lib/strftime.c: Likewise.
61624         * lib/strftime.h: Likewise.
61625         * lib/striconveh.c: Likewise.
61626         * lib/striconveh.h: Likewise.
61627         * lib/striconveha.c: Likewise.
61628         * lib/striconveha.h: Likewise.
61629         * lib/stripslash.c: Likewise.
61630         * lib/strnlen1.c: Likewise.
61631         * lib/strnlen1.h: Likewise.
61632         * lib/strtod.c: Likewise.
61633         * lib/strtoimax.c: Likewise.
61634         * lib/strtok_r.c: Likewise.
61635         * lib/strtol.c: Likewise.
61636         * lib/strtoll.c: Likewise.
61637         * lib/strtoul.c: Likewise.
61638         * lib/strtoull.c: Likewise.
61639         * lib/sysexits.in.h: Likewise.
61640         * lib/tempname.c: Likewise.
61641         * lib/tempname.h: Likewise.
61642         * lib/timespec.h: Likewise.
61643         * lib/tls.c: Likewise.
61644         * lib/tls.h: Likewise.
61645         * lib/tmpdir.c: Likewise.
61646         * lib/tmpdir.h: Likewise.
61647         * lib/tmpfile-safer.c: Likewise.
61648         * lib/tmpfile.c: Likewise.
61649         * lib/trigl.c: Likewise.
61650         * lib/trigl.h: Likewise.
61651         * lib/trim.c: Likewise.
61652         * lib/trim.h: Likewise.
61653         * lib/trunc.c: Likewise.
61654         * lib/truncf.c: Likewise.
61655         * lib/truncl.c: Likewise.
61656         * lib/tsearch.c: Likewise.
61657         * lib/unicodeio.c: Likewise.
61658         * lib/unicodeio.h: Likewise.
61659         * lib/unistd--.h: Likewise.
61660         * lib/unistd-safer.h: Likewise.
61661         * lib/unistdio/ulc-fprintf.c: Likewise.
61662         * lib/unistdio/ulc-vfprintf.c: Likewise.
61663         * lib/unlinkdir.c: Likewise.
61664         * lib/unlinkdir.h: Likewise.
61665         * lib/unlocked-io.h: Likewise.
61666         * lib/unsetenv.c: Likewise.
61667         * lib/userspec.c: Likewise.
61668         * lib/utime.c: Likewise.
61669         * lib/utimecmp.c: Likewise.
61670         * lib/utimecmp.h: Likewise.
61671         * lib/utimens.c: Likewise.
61672         * lib/verify.h: Likewise.
61673         * lib/verror.c: Likewise.
61674         * lib/verror.h: Likewise.
61675         * lib/version-etc-fsf.c: Likewise.
61676         * lib/version-etc.c: Likewise.
61677         * lib/version-etc.h: Likewise.
61678         * lib/vfprintf.c: Likewise.
61679         * lib/vprintf.c: Likewise.
61680         * lib/vsprintf.c: Likewise.
61681         * lib/w32spawn.h: Likewise.
61682         * lib/wait-process.c: Likewise.
61683         * lib/wait-process.h: Likewise.
61684         * lib/wcwidth.c: Likewise.
61685         * lib/write-any-file.c: Likewise.
61686         * lib/xalloc-die.c: Likewise.
61687         * lib/xalloc.h: Likewise.
61688         * lib/xasprintf.c: Likewise.
61689         * lib/xgetcwd.c: Likewise.
61690         * lib/xgetcwd.h: Likewise.
61691         * lib/xgetdomainname.c: Likewise.
61692         * lib/xgetdomainname.h: Likewise.
61693         * lib/xgethostname.c: Likewise.
61694         * lib/xmalloc.c: Likewise.
61695         * lib/xmalloca.c: Likewise.
61696         * lib/xmalloca.h: Likewise.
61697         * lib/xmemcoll.c: Likewise.
61698         * lib/xnanosleep.c: Likewise.
61699         * lib/xreadlink.c: Likewise.
61700         * lib/xreadlink.h: Likewise.
61701         * lib/xsetenv.c: Likewise.
61702         * lib/xsetenv.h: Likewise.
61703         * lib/xstriconv.c: Likewise.
61704         * lib/xstriconv.h: Likewise.
61705         * lib/xstrndup.c: Likewise.
61706         * lib/xstrndup.h: Likewise.
61707         * lib/xstrtod.c: Likewise.
61708         * lib/xstrtod.h: Likewise.
61709         * lib/xstrtol-error.c: Likewise.
61710         * lib/xstrtol.c: Likewise.
61711         * lib/xstrtol.h: Likewise.
61712         * lib/xtime.h: Likewise.
61713         * lib/xvasprintf.c: Likewise.
61714         * lib/xvasprintf.h: Likewise.
61715         * lib/yesno.c: Likewise.
61716         * lib/yesno.h: Likewise.
61717         * posix-modules: Likewise.
61718         * tests/test-alloca-opt.c: Likewise.
61719         * tests/test-arcfour.c: Likewise.
61720         * tests/test-arctwo.c: Likewise.
61721         * tests/test-argmatch.c: Likewise.
61722         * tests/test-argp-2.sh: Likewise.
61723         * tests/test-argp.c: Likewise.
61724         * tests/test-arpa_inet.c: Likewise.
61725         * tests/test-array_list.c: Likewise.
61726         * tests/test-array_oset.c: Likewise.
61727         * tests/test-atexit.c: Likewise.
61728         * tests/test-avltree_list.c: Likewise.
61729         * tests/test-avltree_oset.c: Likewise.
61730         * tests/test-avltreehash_list.c: Likewise.
61731         * tests/test-base64.c: Likewise.
61732         * tests/test-binary-io.c: Likewise.
61733         * tests/test-byteswap.c: Likewise.
61734         * tests/test-c-ctype.c: Likewise.
61735         * tests/test-c-strcasecmp.c: Likewise.
61736         * tests/test-c-strcasestr.c: Likewise.
61737         * tests/test-c-strncasecmp.c: Likewise.
61738         * tests/test-c-strstr.c: Likewise.
61739         * tests/test-canonicalize-lgpl.c: Likewise.
61740         * tests/test-canonicalize.c: Likewise.
61741         * tests/test-carray_list.c: Likewise.
61742         * tests/test-ceilf.c: Likewise.
61743         * tests/test-ceill.c: Likewise.
61744         * tests/test-count-one-bits.c: Likewise.
61745         * tests/test-crc.c: Likewise.
61746         * tests/test-dirname.c: Likewise.
61747         * tests/test-fbufmode.c: Likewise.
61748         * tests/test-fcntl.c: Likewise.
61749         * tests/test-fflush.c: Likewise.
61750         * tests/test-floorf.c: Likewise.
61751         * tests/test-floorl.c: Likewise.
61752         * tests/test-fopen.c: Likewise.
61753         * tests/test-fprintf-posix.c: Likewise.
61754         * tests/test-fprintf-posix.h: Likewise.
61755         * tests/test-fpurge.c: Likewise.
61756         * tests/test-freadable.c: Likewise.
61757         * tests/test-freadahead.c: Likewise.
61758         * tests/test-freading.c: Likewise.
61759         * tests/test-freopen.c: Likewise.
61760         * tests/test-frexp.c: Likewise.
61761         * tests/test-frexpl.c: Likewise.
61762         * tests/test-fseek.c: Likewise.
61763         * tests/test-fseeko.c: Likewise.
61764         * tests/test-fseterr.c: Likewise.
61765         * tests/test-fstrcmp.c: Likewise.
61766         * tests/test-ftell.c: Likewise.
61767         * tests/test-ftello.c: Likewise.
61768         * tests/test-fwritable.c: Likewise.
61769         * tests/test-fwriting.c: Likewise.
61770         * tests/test-getaddrinfo.c: Likewise.
61771         * tests/test-getpass.c: Likewise.
61772         * tests/test-gettimeofday.c: Likewise.
61773         * tests/test-hmac-md5.c: Likewise.
61774         * tests/test-hmac-sha1.c: Likewise.
61775         * tests/test-iconv.c: Likewise.
61776         * tests/test-iconvme.c: Likewise.
61777         * tests/test-inttypes.c: Likewise.
61778         * tests/test-isnan.c: Likewise.
61779         * tests/test-isnanf.c: Likewise.
61780         * tests/test-isnanl-nolibm.c: Likewise.
61781         * tests/test-isnanl.c: Likewise.
61782         * tests/test-isnanl.h: Likewise.
61783         * tests/test-ldexpl.c: Likewise.
61784         * tests/test-linked_list.c: Likewise.
61785         * tests/test-linkedhash_list.c: Likewise.
61786         * tests/test-locale.c: Likewise.
61787         * tests/test-localename.c: Likewise.
61788         * tests/test-lock.c: Likewise.
61789         * tests/test-lseek.c: Likewise.
61790         * tests/test-malloca.c: Likewise.
61791         * tests/test-math.c: Likewise.
61792         * tests/test-mbscasecmp.c: Likewise.
61793         * tests/test-mbscasestr1.c: Likewise.
61794         * tests/test-mbscasestr2.c: Likewise.
61795         * tests/test-mbscasestr3.c: Likewise.
61796         * tests/test-mbscasestr4.c: Likewise.
61797         * tests/test-mbschr.c: Likewise.
61798         * tests/test-mbscspn.c: Likewise.
61799         * tests/test-mbsncasecmp.c: Likewise.
61800         * tests/test-mbspbrk.c: Likewise.
61801         * tests/test-mbspcasecmp.c: Likewise.
61802         * tests/test-mbsrchr.c: Likewise.
61803         * tests/test-mbsspn.c: Likewise.
61804         * tests/test-mbsstr1.c: Likewise.
61805         * tests/test-mbsstr2.c: Likewise.
61806         * tests/test-mbsstr3.c: Likewise.
61807         * tests/test-md5.c: Likewise.
61808         * tests/test-memmem.c: Likewise.
61809         * tests/test-netinet_in.c: Likewise.
61810         * tests/test-open.c: Likewise.
61811         * tests/test-printf-frexp.c: Likewise.
61812         * tests/test-printf-frexpl.c: Likewise.
61813         * tests/test-printf-posix.c: Likewise.
61814         * tests/test-printf-posix.h: Likewise.
61815         * tests/test-rbtree_list.c: Likewise.
61816         * tests/test-rbtree_oset.c: Likewise.
61817         * tests/test-rbtreehash_list.c: Likewise.
61818         * tests/test-read-file.c: Likewise.
61819         * tests/test-rijndael.c: Likewise.
61820         * tests/test-search.c: Likewise.
61821         * tests/test-signbit.c: Likewise.
61822         * tests/test-sleep.c: Likewise.
61823         * tests/test-snprintf-posix.c: Likewise.
61824         * tests/test-snprintf-posix.h: Likewise.
61825         * tests/test-snprintf.c: Likewise.
61826         * tests/test-sprintf-posix.c: Likewise.
61827         * tests/test-sprintf-posix.h: Likewise.
61828         * tests/test-stat-time.c: Likewise.
61829         * tests/test-stdbool.c: Likewise.
61830         * tests/test-stdint.c: Likewise.
61831         * tests/test-stdio.c: Likewise.
61832         * tests/test-stdlib.c: Likewise.
61833         * tests/test-stpncpy.c: Likewise.
61834         * tests/test-strcasestr.c: Likewise.
61835         * tests/test-striconv.c: Likewise.
61836         * tests/test-striconveh.c: Likewise.
61837         * tests/test-striconveha.c: Likewise.
61838         * tests/test-string.c: Likewise.
61839         * tests/test-sys_select.c: Likewise.
61840         * tests/test-sys_socket.c: Likewise.
61841         * tests/test-sys_stat.c: Likewise.
61842         * tests/test-sys_time.c: Likewise.
61843         * tests/test-sysexits.c: Likewise.
61844         * tests/test-time.c: Likewise.
61845         * tests/test-tls.c: Likewise.
61846         * tests/test-trunc.c: Likewise.
61847         * tests/test-truncf.c: Likewise.
61848         * tests/test-truncl.c: Likewise.
61849         * tests/test-unistd.c: Likewise.
61850         * tests/test-vasnprintf-posix.c: Likewise.
61851         * tests/test-vasnprintf-posix2.c: Likewise.
61852         * tests/test-vasnprintf.c: Likewise.
61853         * tests/test-vasprintf-posix.c: Likewise.
61854         * tests/test-vasprintf.c: Likewise.
61855         * tests/test-verify.c: Likewise.
61856         * tests/test-vfprintf-posix.c: Likewise.
61857         * tests/test-vprintf-posix.c: Likewise.
61858         * tests/test-vsnprintf-posix.c: Likewise.
61859         * tests/test-vsnprintf.c: Likewise.
61860         * tests/test-vsprintf-posix.c: Likewise.
61861         * tests/test-wchar.c: Likewise.
61862         * tests/test-wctype.c: Likewise.
61863         * tests/test-wcwidth.c: Likewise.
61864         * tests/test-xstrtol.c: Likewise.
61865         * tests/test-xvasprintf.c: Likewise.
61866         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61867         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61868         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61869         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61870         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61871         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61872         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61873         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61874         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61875         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61876         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61877         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61878         * tests/uniname/test-uninames.c: Likewise.
61879         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61880         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61881         * tests/unistdio/test-u16-printf1.h: Likewise.
61882         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61883         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61884         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61885         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61886         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61887         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61888         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61889         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61890         * tests/unistdio/test-u32-printf1.h: Likewise.
61891         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61892         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61893         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61894         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61895         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61896         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61897         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61898         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61899         * tests/unistdio/test-u8-printf1.h: Likewise.
61900         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61901         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61902         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61903         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61904         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61905         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61906         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61907         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61908         * tests/unistdio/test-ulc-printf1.h: Likewise.
61909         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61910         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61911         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61912         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61913         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61914         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61915         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61916         * tests/uniwidth/test-u16-width.c: Likewise.
61917         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61918         * tests/uniwidth/test-u32-width.c: Likewise.
61919         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61920         * tests/uniwidth/test-u8-width.c: Likewise.
61921         * tests/uniwidth/test-uc_width.c: Likewise.
61922         * config/srclist-update: Likewise.
61923         (fixlicense): Update to GPLv3+.
61924
61925         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61926         * tests/test-tsearch.c: Change copyright notice.
61927
61928         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61929         * lib/c-strcaseeq.h: Change copyright notice.
61930         * lib/streq.h: Likewise.
61931         * lib/uniconv.h: Likewise.
61932         * lib/uniconv/u-conv-from-enc.h: Likewise.
61933         * lib/uniconv/u-conv-to-enc.h: Likewise.
61934         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61935         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61936         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61937         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61938         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61939         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61940         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61941         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61942         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61943         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61944         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61945         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61946         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61947         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61948         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61949         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61950         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61951         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61952         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61953         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61954         * lib/uniname.h: Likewise.
61955         * lib/uniname/uniname.c: Likewise.
61956         * lib/unistdio.h: Likewise.
61957         * lib/unistdio/u-asnprintf.h: Likewise.
61958         * lib/unistdio/u-asprintf.h: Likewise.
61959         * lib/unistdio/u-printf-args.c: Likewise.
61960         * lib/unistdio/u-printf-args.h: Likewise.
61961         * lib/unistdio/u-printf-parse.h: Likewise.
61962         * lib/unistdio/u-snprintf.h: Likewise.
61963         * lib/unistdio/u-sprintf.h: Likewise.
61964         * lib/unistdio/u-vasprintf.h: Likewise.
61965         * lib/unistdio/u-vsnprintf.h: Likewise.
61966         * lib/unistdio/u-vsprintf.h: Likewise.
61967         * lib/unistdio/u16-asnprintf.c: Likewise.
61968         * lib/unistdio/u16-asprintf.c: Likewise.
61969         * lib/unistdio/u16-printf-parse.c: Likewise.
61970         * lib/unistdio/u16-snprintf.c: Likewise.
61971         * lib/unistdio/u16-sprintf.c: Likewise.
61972         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61973         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61974         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61975         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61976         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61977         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61978         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61979         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61980         * lib/unistdio/u16-vasnprintf.c: Likewise.
61981         * lib/unistdio/u16-vasprintf.c: Likewise.
61982         * lib/unistdio/u16-vsnprintf.c: Likewise.
61983         * lib/unistdio/u16-vsprintf.c: Likewise.
61984         * lib/unistdio/u32-asnprintf.c: Likewise.
61985         * lib/unistdio/u32-asprintf.c: Likewise.
61986         * lib/unistdio/u32-printf-parse.c: Likewise.
61987         * lib/unistdio/u32-snprintf.c: Likewise.
61988         * lib/unistdio/u32-sprintf.c: Likewise.
61989         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61990         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61991         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61992         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61993         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61994         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61995         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61996         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61997         * lib/unistdio/u32-vasnprintf.c: Likewise.
61998         * lib/unistdio/u32-vasprintf.c: Likewise.
61999         * lib/unistdio/u32-vsnprintf.c: Likewise.
62000         * lib/unistdio/u32-vsprintf.c: Likewise.
62001         * lib/unistdio/u8-asnprintf.c: Likewise.
62002         * lib/unistdio/u8-asprintf.c: Likewise.
62003         * lib/unistdio/u8-printf-parse.c: Likewise.
62004         * lib/unistdio/u8-snprintf.c: Likewise.
62005         * lib/unistdio/u8-sprintf.c: Likewise.
62006         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62007         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62008         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62009         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62010         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62011         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62012         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62013         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62014         * lib/unistdio/u8-vasnprintf.c: Likewise.
62015         * lib/unistdio/u8-vasprintf.c: Likewise.
62016         * lib/unistdio/u8-vsnprintf.c: Likewise.
62017         * lib/unistdio/u8-vsprintf.c: Likewise.
62018         * lib/unistdio/ulc-asnprintf.c: Likewise.
62019         * lib/unistdio/ulc-asprintf.c: Likewise.
62020         * lib/unistdio/ulc-printf-parse.c: Likewise.
62021         * lib/unistdio/ulc-snprintf.c: Likewise.
62022         * lib/unistdio/ulc-sprintf.c: Likewise.
62023         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62024         * lib/unistdio/ulc-vasprintf.c: Likewise.
62025         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62026         * lib/unistdio/ulc-vsprintf.c: Likewise.
62027         * lib/unistr.h: Likewise.
62028         * lib/unistr/u-cpy-alloc.h: Likewise.
62029         * lib/unistr/u-cpy.h: Likewise.
62030         * lib/unistr/u-endswith.h: Likewise.
62031         * lib/unistr/u-move.h: Likewise.
62032         * lib/unistr/u-set.h: Likewise.
62033         * lib/unistr/u-startswith.h: Likewise.
62034         * lib/unistr/u-stpcpy.h: Likewise.
62035         * lib/unistr/u-stpncpy.h: Likewise.
62036         * lib/unistr/u-strcat.h: Likewise.
62037         * lib/unistr/u-strcpy.h: Likewise.
62038         * lib/unistr/u-strcspn.h: Likewise.
62039         * lib/unistr/u-strdup.h: Likewise.
62040         * lib/unistr/u-strlen.h: Likewise.
62041         * lib/unistr/u-strncat.h: Likewise.
62042         * lib/unistr/u-strncpy.h: Likewise.
62043         * lib/unistr/u-strnlen.h: Likewise.
62044         * lib/unistr/u-strpbrk.h: Likewise.
62045         * lib/unistr/u-strspn.h: Likewise.
62046         * lib/unistr/u-strstr.h: Likewise.
62047         * lib/unistr/u-strtok.h: Likewise.
62048         * lib/unistr/u16-check.c: Likewise.
62049         * lib/unistr/u16-chr.c: Likewise.
62050         * lib/unistr/u16-cmp.c: Likewise.
62051         * lib/unistr/u16-cpy-alloc.c: Likewise.
62052         * lib/unistr/u16-cpy.c: Likewise.
62053         * lib/unistr/u16-endswith.c: Likewise.
62054         * lib/unistr/u16-mblen.c: Likewise.
62055         * lib/unistr/u16-mbsnlen.c: Likewise.
62056         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62057         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62058         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62059         * lib/unistr/u16-mbtouc.c: Likewise.
62060         * lib/unistr/u16-mbtoucr.c: Likewise.
62061         * lib/unistr/u16-move.c: Likewise.
62062         * lib/unistr/u16-next.c: Likewise.
62063         * lib/unistr/u16-prev.c: Likewise.
62064         * lib/unistr/u16-set.c: Likewise.
62065         * lib/unistr/u16-startswith.c: Likewise.
62066         * lib/unistr/u16-stpcpy.c: Likewise.
62067         * lib/unistr/u16-stpncpy.c: Likewise.
62068         * lib/unistr/u16-strcat.c: Likewise.
62069         * lib/unistr/u16-strchr.c: Likewise.
62070         * lib/unistr/u16-strcmp.c: Likewise.
62071         * lib/unistr/u16-strcpy.c: Likewise.
62072         * lib/unistr/u16-strcspn.c: Likewise.
62073         * lib/unistr/u16-strdup.c: Likewise.
62074         * lib/unistr/u16-strlen.c: Likewise.
62075         * lib/unistr/u16-strmblen.c: Likewise.
62076         * lib/unistr/u16-strmbtouc.c: Likewise.
62077         * lib/unistr/u16-strncat.c: Likewise.
62078         * lib/unistr/u16-strncmp.c: Likewise.
62079         * lib/unistr/u16-strncpy.c: Likewise.
62080         * lib/unistr/u16-strnlen.c: Likewise.
62081         * lib/unistr/u16-strpbrk.c: Likewise.
62082         * lib/unistr/u16-strrchr.c: Likewise.
62083         * lib/unistr/u16-strspn.c: Likewise.
62084         * lib/unistr/u16-strstr.c: Likewise.
62085         * lib/unistr/u16-strtok.c: Likewise.
62086         * lib/unistr/u16-to-u32.c: Likewise.
62087         * lib/unistr/u16-to-u8.c: Likewise.
62088         * lib/unistr/u16-uctomb-aux.c: Likewise.
62089         * lib/unistr/u16-uctomb.c: Likewise.
62090         * lib/unistr/u32-check.c: Likewise.
62091         * lib/unistr/u32-chr.c: Likewise.
62092         * lib/unistr/u32-cmp.c: Likewise.
62093         * lib/unistr/u32-cpy-alloc.c: Likewise.
62094         * lib/unistr/u32-cpy.c: Likewise.
62095         * lib/unistr/u32-endswith.c: Likewise.
62096         * lib/unistr/u32-mblen.c: Likewise.
62097         * lib/unistr/u32-mbsnlen.c: Likewise.
62098         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62099         * lib/unistr/u32-mbtouc.c: Likewise.
62100         * lib/unistr/u32-mbtoucr.c: Likewise.
62101         * lib/unistr/u32-move.c: Likewise.
62102         * lib/unistr/u32-next.c: Likewise.
62103         * lib/unistr/u32-prev.c: Likewise.
62104         * lib/unistr/u32-set.c: Likewise.
62105         * lib/unistr/u32-startswith.c: Likewise.
62106         * lib/unistr/u32-stpcpy.c: Likewise.
62107         * lib/unistr/u32-stpncpy.c: Likewise.
62108         * lib/unistr/u32-strcat.c: Likewise.
62109         * lib/unistr/u32-strchr.c: Likewise.
62110         * lib/unistr/u32-strcmp.c: Likewise.
62111         * lib/unistr/u32-strcpy.c: Likewise.
62112         * lib/unistr/u32-strcspn.c: Likewise.
62113         * lib/unistr/u32-strdup.c: Likewise.
62114         * lib/unistr/u32-strlen.c: Likewise.
62115         * lib/unistr/u32-strmblen.c: Likewise.
62116         * lib/unistr/u32-strmbtouc.c: Likewise.
62117         * lib/unistr/u32-strncat.c: Likewise.
62118         * lib/unistr/u32-strncmp.c: Likewise.
62119         * lib/unistr/u32-strncpy.c: Likewise.
62120         * lib/unistr/u32-strnlen.c: Likewise.
62121         * lib/unistr/u32-strpbrk.c: Likewise.
62122         * lib/unistr/u32-strrchr.c: Likewise.
62123         * lib/unistr/u32-strspn.c: Likewise.
62124         * lib/unistr/u32-strstr.c: Likewise.
62125         * lib/unistr/u32-strtok.c: Likewise.
62126         * lib/unistr/u32-to-u16.c: Likewise.
62127         * lib/unistr/u32-to-u8.c: Likewise.
62128         * lib/unistr/u32-uctomb.c: Likewise.
62129         * lib/unistr/u8-check.c: Likewise.
62130         * lib/unistr/u8-chr.c: Likewise.
62131         * lib/unistr/u8-cmp.c: Likewise.
62132         * lib/unistr/u8-cpy-alloc.c: Likewise.
62133         * lib/unistr/u8-cpy.c: Likewise.
62134         * lib/unistr/u8-endswith.c: Likewise.
62135         * lib/unistr/u8-mblen.c: Likewise.
62136         * lib/unistr/u8-mbsnlen.c: Likewise.
62137         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62138         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62139         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62140         * lib/unistr/u8-mbtouc.c: Likewise.
62141         * lib/unistr/u8-mbtoucr.c: Likewise.
62142         * lib/unistr/u8-move.c: Likewise.
62143         * lib/unistr/u8-next.c: Likewise.
62144         * lib/unistr/u8-prev.c: Likewise.
62145         * lib/unistr/u8-set.c: Likewise.
62146         * lib/unistr/u8-startswith.c: Likewise.
62147         * lib/unistr/u8-stpcpy.c: Likewise.
62148         * lib/unistr/u8-stpncpy.c: Likewise.
62149         * lib/unistr/u8-strcat.c: Likewise.
62150         * lib/unistr/u8-strchr.c: Likewise.
62151         * lib/unistr/u8-strcmp.c: Likewise.
62152         * lib/unistr/u8-strcpy.c: Likewise.
62153         * lib/unistr/u8-strcspn.c: Likewise.
62154         * lib/unistr/u8-strdup.c: Likewise.
62155         * lib/unistr/u8-strlen.c: Likewise.
62156         * lib/unistr/u8-strmblen.c: Likewise.
62157         * lib/unistr/u8-strmbtouc.c: Likewise.
62158         * lib/unistr/u8-strncat.c: Likewise.
62159         * lib/unistr/u8-strncmp.c: Likewise.
62160         * lib/unistr/u8-strncpy.c: Likewise.
62161         * lib/unistr/u8-strnlen.c: Likewise.
62162         * lib/unistr/u8-strpbrk.c: Likewise.
62163         * lib/unistr/u8-strrchr.c: Likewise.
62164         * lib/unistr/u8-strspn.c: Likewise.
62165         * lib/unistr/u8-strstr.c: Likewise.
62166         * lib/unistr/u8-strtok.c: Likewise.
62167         * lib/unistr/u8-to-u16.c: Likewise.
62168         * lib/unistr/u8-to-u32.c: Likewise.
62169         * lib/unistr/u8-uctomb-aux.c: Likewise.
62170         * lib/unistr/u8-uctomb.c: Likewise.
62171         * lib/unitypes.h: Likewise.
62172         * lib/uniwidth.h: Likewise.
62173         * lib/uniwidth/cjk.h: Likewise.
62174         * lib/uniwidth/u16-strwidth.c: Likewise.
62175         * lib/uniwidth/u16-width.c: Likewise.
62176         * lib/uniwidth/u32-strwidth.c: Likewise.
62177         * lib/uniwidth/u32-width.c: Likewise.
62178         * lib/uniwidth/u8-strwidth.c: Likewise.
62179         * lib/uniwidth/u8-width.c: Likewise.
62180         * lib/uniwidth/width.c: Likewise.
62181
62182 2007-10-07  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62185         The file is still under LGPL (see modules/inttypes).
62186
62187 2007-10-06  Bruno Haible  <bruno@clisp.org>
62188
62189         * modules/trunc (Dependencies): Add 'extensions'.
62190         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62191         Reported by Ben Pfaff <blp@gnu.org>.
62192
62193 2007-10-06  Bruno Haible  <bruno@clisp.org>
62194
62195         * modules/freopen-tests: New file.
62196         * tests/test-freopen.c: New file.
62197
62198         * modules/fopen-tests: New file.
62199         * tests/test-fopen.c: New file.
62200
62201         * modules/fopen: New file.
62202         * lib/fopen.c: New file.
62203         * m4/fopen.m4: New file.
62204         * modules/freopen: New file.
62205         * lib/freopen.c: New file.
62206         * m4/freopen.m4: New file.
62207         * lib/stdio.in.h (fopen, freopen): New declarations.
62208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62209         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62210         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62211         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62212         * doc/functions/fopen.texi: Mention the 'fopen' module.
62213         * doc/functions/freopen.texi: Mention the 'freopen' module.
62214
62215 2007-10-06  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/open-tests: New file.
62218         * tests/test-open.c: New file.
62219
62220         * modules/open: New file.
62221         * lib/open.c: New file.
62222         * m4/open.m4: New file.
62223         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62224         lib/open.c does.
62225         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62226         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62227         macros.
62228         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62229         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62230         REPLACE_OPEN.
62231         * doc/functions/open.texi: Mention the 'open' module.
62232
62233 2007-10-04  Bruno Haible  <bruno@clisp.org>
62234
62235         * modules/ceill-tests: New file.
62236         * tests/test-ceill.c: New file.
62237
62238         * modules/ceill: New file.
62239         * lib/ceill.c: Replace entire file.
62240         * m4/ceill.m4: New file.
62241         * lib/math.in.h (ceill): Replace declaration.
62242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62243         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62244         * doc/functions/ceill.texi: Mention the 'ceill' module.
62245         * modules/mathl (Files): Remove lib/ceill.c.
62246         (Depends-on): Add ceill.
62247
62248 2007-10-04  Bruno Haible  <bruno@clisp.org>
62249
62250         * modules/ceilf-tests: New file.
62251         * tests/test-ceilf.c: New file.
62252
62253         * modules/ceilf: New file.
62254         * lib/ceil.c: New file.
62255         * lib/ceilf.c: New file.
62256         * m4/ceilf.m4: New file.
62257         * lib/math.in.h (ceilf): New declaration.
62258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62259         HAVE_DECL_CEILF.
62260         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62261         HAVE_DECL_CEILF.
62262         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62263
62264 2007-10-04  Bruno Haible  <bruno@clisp.org>
62265
62266         * modules/floorl-tests: New file.
62267         * tests/test-floorl.c: New file.
62268
62269         * modules/floorl: New file.
62270         * lib/floorl.c: Replace entire file.
62271         * m4/floorl.m4: New file.
62272         * lib/math.in.h (floorl): Replace declaration.
62273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62274         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62275         * doc/functions/floorl.texi: Mention the 'floorl' module.
62276         * modules/mathl (Files): Remove lib/floorl.c.
62277         (Depends-on): Add floorl.
62278
62279 2007-10-04  Bruno Haible  <bruno@clisp.org>
62280
62281         * modules/floorf-tests: New file.
62282         * tests/test-floorf.c: New file.
62283
62284         * modules/floorf: New file.
62285         * lib/floor.c: New file.
62286         * lib/floorf.c: New file.
62287         * m4/floorf.m4: New file.
62288         * lib/math.in.h (floorf): New declaration.
62289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62290         HAVE_DECL_FLOORF.
62291         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62292         HAVE_DECL_FLOORF.
62293         * doc/functions/floorf.texi: Mention the 'floorf' module.
62294
62295 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62296             Bruno Haible  <bruno@clisp.org>
62297
62298         Advertise for the Git server instead of the CVS server.
62299         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62300         repository instead of the CVS one.
62301         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62302         about all VCS systems generically.
62303         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62304
62305 2007-10-04  Bruno Haible  <bruno@clisp.org>
62306
62307         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62308         means.
62309         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62310
62311 2007-10-04  Bruno Haible  <bruno@clisp.org>
62312
62313         * modules/truncl-tests: New file.
62314         * tests/test-truncl.c: New file.
62315
62316         * modules/truncl: New file.
62317         * lib/truncl.c: New file.
62318         * m4/truncl.m4: New file.
62319         * lib/math.in.h (truncl): New declaration.
62320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62321         HAVE_DECL_TRUNCL.
62322         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62323         HAVE_DECL_TRUNCL.
62324         * doc/functions/truncl.texi: Mention the 'truncl' module.
62325
62326 2007-10-04  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/truncf-tests: New file.
62329         * tests/test-truncf.c: New file.
62330
62331         * modules/truncf: New file.
62332         * lib/trunc.c: Make paramerizable through USE_* macros.
62333         * lib/truncf.c: New file.
62334         * m4/truncf.m4: New file.
62335         * lib/math.in.h (truncf): New declaration.
62336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62337         HAVE_DECL_TRUNCF.
62338         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62339         HAVE_DECL_TRUNCF.
62340         * doc/functions/truncf.texi: Mention the 'truncf' module.
62341
62342 2007-10-03  Bruno Haible  <bruno@clisp.org>
62343
62344         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62345         augmentation also for tests modules.
62346         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62347         * modules/atexit-tests (Makefile.am): Likewise.
62348         * modules/binary-io-tests (Makefile.am): Likewise.
62349         * modules/c-strcase-tests (Makefile.am): Likewise.
62350         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62351         * modules/canonicalize-tests (Makefile.am): Likewise.
62352         * modules/closein-tests (Makefile.am): Likewise.
62353         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62354         * modules/freadahead-tests (Makefile.am): Likewise.
62355         * modules/fseek-tests (Makefile.am): Likewise.
62356         * modules/fseeko-tests (Makefile.am): Likewise.
62357         * modules/ftell-tests (Makefile.am): Likewise.
62358         * modules/ftello-tests (Makefile.am): Likewise.
62359         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62360         * modules/isnanl-tests (Makefile.am): Likewise.
62361         * modules/lseek-tests (Makefile.am): Likewise.
62362         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62363         * modules/mbscasestr-tests (Makefile.am): Likewise.
62364         * modules/mbschr-tests (Makefile.am): Likewise.
62365         * modules/mbscspn-tests (Makefile.am): Likewise.
62366         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62367         * modules/mbspbrk-tests (Makefile.am): Likewise.
62368         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62369         * modules/mbsrchr-tests (Makefile.am): Likewise.
62370         * modules/mbsspn-tests (Makefile.am): Likewise.
62371         * modules/mbsstr-tests (Makefile.am): Likewise.
62372         * modules/printf-posix-tests (Makefile.am): Likewise.
62373         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62374         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62375         * modules/tsearch-tests (Makefile.am): Likewise.
62376         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62377         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62378         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62379         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62380         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62381         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62382         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62383         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62384         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62385         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62386         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62387         * modules/xstrtol-tests (Makefile.am): Likewise.
62388         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62389         * modules/yesno-tests (Makefile.am): Likewise.
62390
62391 2007-10-03  Bruno Haible  <bruno@clisp.org>
62392
62393         * modules/trunc-tests: New file.
62394         * tests/test-trunc.c: New file.
62395
62396         * modules/trunc: New file.
62397         * lib/trunc.c: New file.
62398         * m4/trunc.m4: New file.
62399         * lib/math.in.h (trunc): New declaration.
62400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62401         HAVE_DECL_TRUNC.
62402         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62403         HAVE_DECL_TRUNC.
62404         * doc/functions/trunc.texi: Mention the 'trunc' module.
62405
62406 2007-10-03  Bruno Haible  <bruno@clisp.org>
62407
62408         * tests/test-fpending.c: New file, mostly copied
62409         from coreutils/lib/t-fpending.c.
62410         * modules/fpending-tests: New file.
62411
62412 2007-10-03  Bruno Haible  <bruno@clisp.org>
62413
62414         Port the stdio extensions to QNX (untested).
62415         * lib/fseterr.c (fseterr): Add support for QNX.
62416         * lib/fbufmode.c (fbufmode): Likewise.
62417         * lib/freadable.c (freadable): Likewise.
62418         * lib/fwritable.c (fwritable): Likewise.
62419         * lib/freading.c (freading): Likewise.
62420         * lib/fwriting.c (fwriting): Likewise.
62421         * lib/freadahead.c (freadahed): Likewise.
62422         * lib/fpurge.c (fpurge): Likewise.
62423         * lib/fseeko.c (rpl_fseeko): Likewise.
62424
62425 2007-10-03  Bruno Haible  <bruno@clisp.org>
62426             Jim Meyering  <jim@meyering.net>
62427             Eric Blake  <ebb9@byu.net>
62428
62429         * doc/relocatable.texi: Use @command instead of @program.
62430
62431 2007-10-02  Jim Meyering  <jim@meyering.net>
62432
62433         Perform one more "_.h" -> ".in.h" substitution.
62434         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62435         instead of unistd_.h here, too.
62436
62437 2007-10-01  Bruno Haible  <bruno@clisp.org>
62438
62439         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62440         Needed for the alloca-opt module.
62441
62442 2007-09-30  Bruno Haible  <bruno@clisp.org>
62443
62444         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62445         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62446         alloca_.h.
62447         * lib/argz.in.h: Renamed from lib/argz_.h.
62448         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62449         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62450         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62451         byteswap_.h.
62452         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62453         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62454         dirent_.h.
62455         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62456         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62457         fcntl_.h.
62458         * lib/float.in.h: Renamed from lib/float_.h.
62459         * modules/float (Files, Makefile.am): Use float.in.h instead of
62460         float_.h.
62461         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62462         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62463         fnmatch_.h.
62464         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62465         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62466         getopt_.h.
62467         * lib/glob.in.h: Renamed from lib/glob_.h.
62468         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62469         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62470         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62471         iconv_.h.
62472         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62473         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62474         inttypes_.h.
62475         * lib/locale.in.h: Renamed from lib/locale_.h.
62476         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62477         locale_.h.
62478         * lib/math.in.h: Renamed from lib/math_.h.
62479         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62480         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62481         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62482         of netinet_in_.h. Add dependency.
62483         * lib/poll.in.h: Renamed from lib/poll_.h.
62484         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62485         * lib/search.in.h: Renamed from lib/search_.h.
62486         * modules/search (Files, Makefile.am): Use search.in.h instead of
62487         search_.h.
62488         * lib/signal.in.h: Renamed from lib/signal_.h.
62489         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62490         _signal.h.
62491         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62492         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62493         stdbool_.h.
62494         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62495         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62496         stdint_.h.
62497         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62498         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62499         stdio_.h.
62500         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62501         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62502         stdlib_.h.
62503         * lib/string.in.h: Renamed from lib/string_.h.
62504         * modules/string (Files, Makefile.am): Use string.in.h instead of
62505         string_.h.
62506         * doc/gnulib-tool.texi (Initial import): Update.
62507         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62508         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62509         of sys_select_.h. Add dependency.
62510         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62511         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62512         of sys_socket_.h.
62513         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62514         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62515         sys_stat_.h.
62516         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62517         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62518         sys_time_.h.
62519         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62520         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62521         sysexits_.h.
62522         * lib/time.in.h: Renamed from lib/time_.h.
62523         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62524         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62525         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62526         unistd_.h.
62527         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62528         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62529         wchar_.h.
62530         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62531         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62532         wctype_.h.
62533         * build-aux/bootstrap (slurp): Update.
62534         * lib/.cppi-disable: Update.
62535
62536 2007-09-30  Bruno Haible  <bruno@clisp.org>
62537
62538         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62539         Needed on BeOS.
62540
62541 2007-09-30  Bruno Haible  <bruno@clisp.org>
62542
62543         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62544
62545 2007-09-29  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62548
62549 2007-09-29  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62552         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62553         * build-aux/install-reloc: Compile also areadlink.c.
62554         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62555
62556 2007-09-29  Bruno Haible  <bruno@clisp.org>
62557
62558         * gnulib-tool (func_emit_initmacro_done): Indentation.
62559
62560 2007-09-29  Bruno Haible  <bruno@clisp.org>
62561
62562         * README: Add CVS checkout update instructions.
62563         Info from Bob Proulx <bob@proulx.com>.
62564
62565 2007-09-28  Eric Blake  <ebb9@byu.net>
62566
62567         Provide move-if-change.
62568         * build-aux/move-if-change: New file, based on best practice
62569         rather than any canonical upstream location.
62570
62571 2007-09-28  Jim Meyering  <jim@meyering.net>
62572
62573         Fix canonicalize loop-detection corner case.
62574         Do not attempt to stat the symlink values stored via seen_triple.
62575         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62576         on linux-2.6.18, (but not 2.6.22).
62577         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62578         triple_compare.  The former compares dev,ino,filename, while the latter
62579         would actually stat dirname(filename) when dev and ino were equal.
62580         * lib/hash-triple.c: Install <string.h>.
62581         (STREQ): Define.
62582         (triple_compare_ino_str): New function.
62583         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62584
62585 2007-09-28  Eric Blake  <ebb9@byu.net>
62586
62587         Enforce that AC_REPLACE_FUNCS files exist.
62588         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62589         override check for typos.
62590
62591         Fix test-closein on Solaris 10.
62592         * tests/test-closein.c (main): Don't assume stdin can be inherited
62593         closed on all systems.
62594         * tests/test-closein.sh: Likewise.
62595         Reported by Piotr Tarnowski.
62596
62597 2007-09-28  Jim Meyering  <jim@meyering.net>
62598
62599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62600
62601 2007-09-27  Jim Meyering  <jim@meyering.net>
62602
62603         canonicalize: Avoid a false-positive cycle failure.
62604         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62605         Sort.  Remove cycle-check.
62606         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62607         not cycle-check.h.
62608         (seen_triple): New function.
62609         (canonicalize_filename_mode): Use it instead of cycle-check.
62610         * tests/test-canonicalize.c: Add a test for this bug.
62611         * tests/test-canonicalize.sh: Set up and run the test.
62612
62613         New module, file-set, from coreutils.
62614         * modules/file-set: Define it.
62615         * lib/file-set.c, lib/file-set.h: Implement.
62616
62617         New module, hash-triple, from coreutils.
62618         * modules/hash-triple: Define it.
62619         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62620
62621 2007-09-25  Eric Blake  <ebb9@byu.net>
62622
62623         Fix strerror on Interix.
62624         * lib/string_.h (strerror): Declare replacement.
62625         * doc/functions/strerror.texi (strerror): Document the Interix
62626         shortcoming.
62627         * modules/string (Makefile.am): Support new hooks.
62628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62629         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62630         gl_FUNC_STRERROR_SEPARATE.
62631         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62632         * lib/strerror.c (rpl_strerror): Provide replacement.
62633         * modules/strerror (Depends-on): Add string.
62634         (configure.ac): Detect use of module.
62635         * tests/test-strerror.c: New file.
62636         * modules/strerror-tests: New test module.
62637         * modules/argp (Depends-on): Add strerror.
62638         * modules/error (Depends-on): Likewise.
62639         Reported by Martin Koeppe.
62640
62641 2007-09-24  Bruno Haible  <bruno@clisp.org>
62642
62643         * README: Update git instructions.
62644
62645 2007-09-24  Eric Blake  <ebb9@byu.net>
62646
62647         Revert fpending breakage from 2007-09-08.
62648         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62649         __fpending.c.
62650
62651 2007-09-24  Jim Meyering  <jim@meyering.net>
62652
62653         filenamecat.c: Add a test.
62654         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62655         showing how the function works when DIR is the empty string.
62656
62657 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62658
62659         * tests/test-canonicalize.sh: Turn on executable bit.
62660
62661 2007-09-19  Eric Blake  <ebb9@byu.net>
62662
62663         * README: Update CVS instructions.
62664
62665 2007-09-18  Bruno Haible  <bruno@clisp.org>
62666
62667         * modules/areadlink: New file.
62668         * lib/areadlink.h (areadlink): New declaration.
62669         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62670
62671 2007-09-17  Jim Meyering  <jim@meyering.net>
62672
62673         * lib/savewd.c (ESTALE) [!defined]: Define.
62674         Reported to be required on Interix by Martin Koeppe.
62675
62676 2007-09-17  Bruno Haible  <bruno@clisp.org>
62677
62678         * gnulib-tool (func_version): Use $version.
62679
62680 2007-09-16  Bruno Haible  <bruno@clisp.org>
62681
62682         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62683         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62684         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62685         Reported by Greg Schafer <gschafer@zip.com.au>.
62686
62687 2007-09-15  Bruno Haible  <bruno@clisp.org>
62688
62689         * gnulib-tool (sed): Try a little harder to make bash understand the
62690         alias.
62691         Reported by Bruce Korb <bruce.korb@gmail.com>.
62692
62693 2007-09-13  Eric Blake  <ebb9@byu.net>
62694
62695         * ChangeLog: Remove conflict markers.
62696
62697 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62698
62699         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62700         Reported by Bruno Haible <bruno@clisp.org>.
62701
62702 2007-09-12  Bruno Haible  <bruno@clisp.org>
62703
62704         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62705         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62706         is not defined.
62707
62708 2007-09-12  Eric Blake  <ebb9@byu.net>
62709
62710         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62712         Autoconf definition.
62713         * modules/euidaccess (Depends-on): Add extensions, for
62714         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62715         * modules/fnmatch (Depends-on): Likewise.
62716         * modules/getaddrinfo (Depends-on): Likewise.
62717         * modules/getdelim (Depends-on): Likewise.
62718         * modules/getline (Depends-on): Likewise.
62719         * modules/getsubopt (Depends-on): Likewise.
62720         * modules/gettext (Depends-on): Likewise.
62721         * modules/group-member (Depends-on): Likewise.
62722         * modules/mbchar (Depends-on): Likewise.
62723         * modules/memmem (Depends-on): Likewise.
62724         * modules/mempcpy (Depends-on): Likewise.
62725         * modules/memrchr (Depends-on): Likewise.
62726         * modules/pagealign_alloc (Depends-on): Likewise.
62727         * modules/readutmp (Depends-on): Likewise.
62728         * modules/stpcpy (Depends-on): Likewise.
62729         * modules/stpncpy (Depends-on): Likewise.
62730         * modules/strchrnul (Depends-on): Likewise.
62731         * modules/strndup (Depends-on): Likewise.
62732         * modules/strsep (Depends-on): Likewise.
62733         * modules/strverscmp (Depends-on): Likewise.
62734         * modules/vasprintf (Depends-on): Likewise.
62735         * modules/wcwidth (Depends-on): Likewise.
62736         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62737         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62738         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62742         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62743         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62744         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62745         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62747         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62750         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62751         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62752         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62753         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62755         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62757         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62758         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62759         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62760         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62762         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62763         so that lock.m4 can be used in gettext without extensions module.
62764
62765 2007-09-11  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/isc-posix.m4: Remove file.
62768         Suggested by Eric Blake.
62769
62770 2007-09-11  Eric Blake  <ebb9@byu.net>
62771
62772         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62773
62774 2007-09-10  Bruno Haible  <bruno@clisp.org>
62775
62776         * posix-modules: Fix typo in error message.
62777         Reported by Matt <mkraai@beckman.com>.
62778
62779 2007-09-09  Bruno Haible  <bruno@clisp.org>
62780
62781         * doc/functions/getdelim.texi: Update list of platforms lacking the
62782         function.
62783         * doc/functions/getline.texi: Likewise.
62784
62785 2007-09-09  Jim Meyering  <jim@meyering.net>
62786
62787         * lib/hash.c (hash_initialize): Detect calloc failure.
62788         Reported by Bruno Haible.
62789
62790 2007-09-09  Bruno Haible  <bruno@clisp.org>
62791
62792         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62793         malloc or realloc fails.
62794
62795 2007-09-09  Bruno Haible  <bruno@clisp.org>
62796
62797         * modules/getcwd (Depends-on): Add malloc-posix.
62798         * modules/glob (Depends-on): Likewise.
62799         * modules/putenv (Depends-on): Likewise.
62800         * modules/strdup (Depends-on): Likewise.
62801         * modules/getdelim (Depends-on): Add realloc-posix.
62802         * modules/read-file (Depends-on): Likewise.
62803
62804 2007-09-09  Bruno Haible  <bruno@clisp.org>
62805
62806         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62807         (gl_FUNC_MALLOC_POSIX): Require it.
62808         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62809         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62810         * modules/realloc (Files): Add m4/malloc.m4.
62811         * modules/calloc (Files): Likewise.
62812
62813 2007-09-09  Bruno Haible  <bruno@clisp.org>
62814
62815         * modules/malloc-posix: New file.
62816         * modules/malloc (Depends-on): Add malloc-posix.
62817         * lib/malloc.c: Include errno.h.
62818         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62819         and a POSIX-compatible malloc into a single function. Set ENOMEM
62820         when returning NULL.
62821         * m4/malloc.m4: New file.
62822         * doc/functions/malloc.texi: Mention the malloc-posix module.
62823         * lib/stdlib_.h (malloc): New declaration.
62824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62825         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62826         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62827         and HAVE_MALLOC_POSIX.
62828
62829 2007-09-09  Bruno Haible  <bruno@clisp.org>
62830
62831         * modules/realloc-posix: New file.
62832         * modules/realloc (Depends-on): Add realloc-posix.
62833         * lib/realloc.c: Include errno.h.
62834         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62835         and a POSIX-compatible realloc into a single function. Set ENOMEM
62836         when returning NULL.
62837         * m4/realloc.m4: New file.
62838         * doc/functions/realloc.texi: Mention the realloc-posix module.
62839         * lib/stdlib_.h (realloc): New declaration.
62840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62841         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62842         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62843         and HAVE_REALLOC_POSIX.
62844
62845 2007-09-09  Bruno Haible  <bruno@clisp.org>
62846
62847         * modules/calloc-posix: New file.
62848         * modules/calloc (Depends-on): Add calloc-posix.
62849         * lib/calloc.c: Include errno.h.
62850         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62851         and a POSIX-compatible calloc into a single function. Set ENOMEM
62852         when returning NULL.
62853         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62854         * doc/functions/calloc.texi: Mention the calloc-posix module.
62855         * lib/stdlib_.h (calloc): New declaration.
62856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62857         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62858         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62859         and HAVE_CALLOC_POSIX.
62860
62861 2007-09-09  Bruno Haible  <bruno@clisp.org>
62862
62863         Allow for modules to show an arbitrary notice.
62864         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62865         * gnulib-tool: New option --extract-notice.
62866         (func_usage): Document it.
62867         (sed_extract_prog): Update.
62868         (func_get_notice): New function.
62869         (func_modules_notice): New function.
62870         (func_import, func_create_testdir): Invoke it.
62871         Suggested by Jim Meyering.
62872
62873 2007-09-09  Bruno Haible  <bruno@clisp.org>
62874
62875         * gnulib-tool: New options --verbose, --quiet.
62876         (func_usage): Document them.
62877         (verbose): New variable.
62878         (func_execute_command): New function.
62879         (func_import): Don't show the module list and the file list if
62880         $verbose < 0.
62881         (func_create_testdir): Likewise. Use func_execute_command.
62882         (func_create_megatestdir): Use func_execute_command.
62883
62884 2007-09-08  Bruno Haible  <bruno@clisp.org>
62885
62886         * gnulib-tool (func_import): Prefer rsync over wget when available,
62887         for fetching the PO files.
62888
62889 2007-09-08  Bruno Haible  <bruno@clisp.org>
62890
62891         * posix-modules: New file. Portions copied from gnulib-tool.
62892         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62893
62894 2007-09-08  Jim Meyering  <jim@meyering.net>
62895
62896         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62897         * lib/fpending.h: Rename from __fpending.h.
62898         * lib/fpending.c: Rename from __fpending.c.
62899         Include "fpending.h", not "__fpending.h".
62900         * lib/__fpending.h, lib/__fpending.c: Remove files.
62901         * modules/fpending (Files): Reflect new file names.
62902         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62903
62904 2007-09-08  Bruno Haible  <bruno@clisp.org>
62905
62906         * m4/inttypes-h.m4: Remove stub file.
62907
62908 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62909
62910         * doc/headers/stdint.texi: Discuss #include_next issue.
62911
62912 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62913
62914         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62915
62916 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62917
62918         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62919         in variable name.
62920
62921 2007-09-03  Jim Meyering  <jim@meyering.net>
62922
62923         New module: git-version-gen.
62924         * modules/git-version-gen: New file.
62925
62926         Import changes from coreutils for bootstrap script.
62927
62928         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62929
62930         bootstrap: uses rsync to download the .po files
62931         * build-aux/bootstrap (po_download_command_format): New global.
62932         (download_po_files): Use rsync.
62933         (update_po_files): Don't remove .po files after download,
62934         so future rsync runs can take advantage of the copies.
62935
62936         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62937
62938         Solve the unnecessary-.po-file-regeneration problem once and for all.
62939         * build-aux/bootstrap (download_po_files): New function, renamed from
62940         get_translations.  Now, downloads, but doesn't update LINGUAS.
62941         (update_po_files): New function.
62942
62943         bootstrap: Ignore more.
62944         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62945         uniwidth to e.g., lib/.gitignore.
62946         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62947
62948         * build-aux/bootstrap: New setting: vc_ignore.
62949         (insert_sorted_if_absent): Create $file if absent.
62950         Adapt to new, possibly empty, list: $vc_ignore.
62951
62952         bootstrap: generate more ignorable names
62953         * build-aux/bootstrap (slurp): When generating ignorable names,
62954         also map .sin to .sed, .gperf to .c, and .y to .c.
62955
62956 2007-09-03  Jim Meyering  <jim@meyering.net>
62957
62958         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62959         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62960
62961 2007-09-02  Bruno Haible  <bruno@clisp.org>
62962
62963         Fix mis-recognition of 'mcs' on QNX 6.
62964         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62965         output contains the string "Mono".
62966         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62967         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62968
62969 2007-09-01  Bruno Haible  <bruno@clisp.org>
62970
62971         Fix collision between uniwidth/* and linebreak modules.
62972         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62973         u32_width): Remove declarations.
62974         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62975         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62976         streq3, streq2, streq1, streq0): Remove functions.
62977         (STREQ): Remove macro.
62978         (is_cjk_encoding): Remove function.
62979         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62980         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62981         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62982         * NEWS: Document the change.
62983
62984 2007-09-01  Bruno Haible  <bruno@clisp.org>
62985
62986         * lib/streq.h: Add double-inclusion guard.
62987
62988 2007-09-01  Karl Berry  <karl@gnu.org>
62989
62990         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62991
62992 2007-08-28  Jim Meyering  <jim@meyering.net>
62993
62994         Rename mreadlink_with_size to areadlink_with_size.
62995         * NEWS: Document the change.
62996         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62997         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62998         * lib/mreadlink.h: Rename this to...
62999         * lib/areadlink.h: ...this.
63000         * modules/mreadlink-with-size: Rename this to...
63001         * modules/areadlink-with-size: ...this.
63002         * lib/canonicalize.c: Reflect the renaming.
63003         * modules/canonicalize: Likewise.
63004
63005 2007-08-26  Bruno Haible  <bruno@clisp.org>
63006
63007         * gnulib-tool (func_import): When deciding which files to remove,
63008         consider also dangling symbolic links.
63009         Reported by Eric Blake.
63010
63011 2007-08-26  Bruno Haible  <bruno@clisp.org>
63012
63013         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63014
63015 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63016
63017         * lib/readline.c: Don't include getline.h, the prototype is now
63018         found in stdio.h.
63019
63020 2007-08-23  Jim Meyering  <jim@meyering.net>
63021
63022         Getdelim touchup.
63023         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63024         around the funlockfile call, since funlockfile never sets errno.
63025         Don't set errno upon failed realloc.
63026
63027 2007-08-22  Eric Blake  <ebb9@byu.net>
63028
63029         Getline touchups.
63030         * lib/getdelim.c (getdelim): Revert regression that required *n to
63031         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63032         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63033         getdelim, rather than whether implementation is missing.
63034         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63035         * lib/stdio_.h (getline): Also declare if replacement is
63036         required.
63037         * doc/functions/getdelim.texi: New file.
63038         * doc/functions/getline.texi: Likewise.
63039         * doc/gnulib.texi (Function Substitutes): Add new files.
63040         Reported by Bruno Haible.
63041
63042 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63043
63044         * users.txt: Add Guile.
63045
63046 2007-08-22  Eric Blake  <ebb9@byu.net>
63047
63048         * tests/test-getdelim.c (main): Use remove, not unlink.
63049         * tests/test-getline.c (main): Likewise.
63050
63051         Move getline and getdelim into stdio.h, per POSIX 200x.
63052         * modules/getline (Files): Remove getline.h.
63053         (Depends-on): Add stdio.
63054         (configure.ac): Add module indicator.
63055         * modules/getdelim (Files): Remove getdelim.h.
63056         (Depends-on): Add stdio.
63057         (configure.ac): Add module indicator.
63058         * modules/stdio (Makefile.am): Work with new indicators.
63059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63061         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63062         * lib/getdelim.h: Delete.
63063         * lib/getline.h: Delete.
63064         * lib/stdio_.h (getdelim, getline): Declare.
63065         * modules/getdelim-tests: New module.
63066         * modules/getline-tests: Likewise.
63067         * tests/test-getdelim.c: New file.
63068         * tests/test-getline.c: Likewise.
63069         * NEWS: Document the change.
63070         * lib/getline.c: Update choice of header.
63071         * lib/csharpcomp.c: Likewise.
63072         * lib/getpass.c: Likewise.
63073         * lib/javacomp.c: Likewise.
63074         * lib/javaversion.c: Likewise.
63075         * lib/yesno.c: Likewise.
63076         * lib/getdelim.c: Likewise.
63077         (getdelim): Set errno on failure, and avoid memory leak.
63078
63079 2007-08-19  Bruno Haible  <bruno@clisp.org>
63080
63081         * modules/closein (Depends-on): Add freadahead.
63082         * lib/closein.c: Include freadahead.h.
63083         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63084         is zero.
63085
63086 2007-08-19  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/freadahead-tests: New file.
63089         * tests/test-freadahead.sh: New file.
63090         * tests/test-freadahead.c: New file.
63091
63092         * modules/freadahead: New file.
63093         * lib/freadahead.h: New file.
63094         * lib/freadahead.c: New file.
63095         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63096         fbufmode, fpurge, freadable, fwritable.
63097
63098 2007-08-19  Eric Blake  <ebb9@byu.net>
63099
63100         Test yesno in combination with closein.
63101         * lib/yesno.c (yesno): Document use of stdin.
63102         * modules/yesno-tests (Files): New module.
63103         * tests/test-yesno.c (main): New file.
63104         * tests/test-yesno.sh: Likewise.
63105
63106 2007-08-19  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63109         * lib/fseeko.c (rpl_fseeko): Likewise.
63110         * lib/fseterr.c (fseterr): Likewise.
63111
63112 2007-08-19  Bruno Haible  <bruno@clisp.org>
63113
63114         * tests/test-lseek.c (main): Disable a test for BeOS.
63115         * doc/functions/lseek.texi: Document the BeOS bug.
63116
63117 2007-08-19  Bruno Haible  <bruno@clisp.org>
63118             Eric Blake  <ebb9@byu.net>
63119
63120         * lib/lseek.c: Include <sys/stat.h>.
63121         (rpl_lseek): Add workaround code also for Unix platforms.
63122         Needed for BeOS.
63123         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63124         * doc/functions/lseek.texi: Document BeOS definiency.
63125
63126 2007-08-18  Bruno Haible  <bruno@clisp.org>
63127
63128         * modules/fstrcmp-tests: New file.
63129         * tests/test-fstrcmp.c: New file.
63130
63131 2007-08-18  Bruno Haible  <bruno@clisp.org>
63132
63133         * modules/fstrcmp: New file, from GNU gettext with modifications.
63134         * lib/fstrcmp.h: New file, from GNU gettext.
63135         * lib/fstrcmp.c: New file, from GNU gettext.
63136         * MODULES.html.sh (String handling): Add fstrcmp.
63137
63138 2007-08-18  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63141         'bool'.
63142         (diag, compareseq): Remove const from the ctxt argument.
63143         (USE_HEURISTIC): Undefine at the end.
63144
63145 2007-08-18  Jim Meyering  <jim@meyering.net>
63146
63147         New file: lib/idcache.h
63148         * NEWS: Mention the addition.
63149         * modules/idcache (Files): Add lib/idcache.h
63150         * lib/idcache.c: Include "idcache.h".
63151         Don't include <sys/types.h>.
63152         Add a FIXME comment.
63153         Move file-scoped "static" declarations to the top.
63154         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63155
63156 2007-08-17  Bruno Haible  <bruno@clisp.org>
63157         and Paul Eggert  <eggert@cs.ucla.edu>
63158
63159         * MODULES.html.sh: Add diffseq.
63160         * modules/diffseq: New file.
63161         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63162         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63163
63164 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         Import changes from coreutils for bootstrap script.
63167
63168         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63169
63170         * build-aux/bootstrap (slurp): Work even in environments where
63171         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63172         current code does not slurp files whose names start with ".", and
63173         this looks like it might be a troublesome area.
63174
63175         2007-07-11  Jim Meyering  <jim@meyering.net>
63176
63177         If there's a GPL vN copyright comment, require that N == 3.
63178
63179         2007-07-08  Jim Meyering  <jim@meyering.net>
63180
63181         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63182         * build-aux/bootstrap (mam_template): Move definition out of loop.
63183
63184         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63185
63186         * build-aux/bootstrap (symlink_to_dir): Rename function from
63187         symlink_to_gnulib.  Add a directory parameter.  Update all
63188         callers.
63189         (cp_mark_as_generated): Also check for -- and link to -- files in
63190         gl/.
63191
63192         2007-07-08  Jim Meyering  <jim@meyering.net>
63193
63194         Adapt to deeper hierarchy in gnulib.
63195         * build-aux/bootstrap (symlink_to_dir): If the destination
63196         directory doesn't exist, create it. This is required at least for
63197         "lib/uniwidth/cjk.h".
63198
63199         2007-05-15  Jim Meyering  <jim@meyering.net>
63200
63201         * build-aux/bootstrap: Now that generated Makefile.am files
63202         are no longer under version control, they must be created at
63203         bootstrap time.
63204
63205 2007-08-14  Ben Pfaff  <blp@gnu.org>
63206
63207         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63208
63209 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63210
63211         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63212         given the changes below.
63213         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63214         even on hosts that have padding bits beyond the supported 64.
63215
63216 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63219         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63220         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63221         depends on it.
63222         (xstrtol_error): Remove.
63223         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63224         but with a different signature.
63225         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63226         * lib/xstrtol-error.c: Include exitfail.h.
63227         (xstrtol_fatal): New function, with a different signature from the
63228         old xstrtol_error, so that the caller need not worry about passing
63229         in an exit status, or about storage management of the option argument.
63230         (xstrtol_error): Now a static function.  Redo signature to
63231         implement xstrtol_fatal.  Output the correct number of hyphens in
63232         front of the option so that the caller need not worry about
63233         storage management.
63234         (N_): New macro.
63235         (_): Remove; not used now.
63236         * modules/xstrtol: Depend on getopt.
63237         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63238         of old STRTOL_FATAL_ERROR macro.
63239         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63240         of test program.
63241         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63242         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63243
63244 2007-08-08  Eric Blake  <ebb9@byu.net>
63245
63246         * lib/xstrtol-error.c: Add missing include.
63247
63248         Move xstrtol messages into gnulib domain, when --pobase is used.
63249         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63250         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63251         * modules/xstrtol (Files): Distribute new file.
63252         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63253         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63254         * tests/test-xstrtol.c: ...into new file.
63255         * tests/test-xstrtoul.c: Also test xstrtoul.
63256         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63257         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63258         * tests/test-xstrtol.sh: Drive the tests.
63259         * tests/test-xstrtoimax.sh: Likewise.
63260         * tests/test-xstrtoumax.sh: Likewise.
63261         * modules/xstrtol-tests: New module.
63262         * modules/xstrtoimax-tests: Likewise.
63263         * modules/xstrtoumax-tests: Likewise.
63264
63265 2007-08-08  Jim Meyering  <jim@meyering.net>
63266
63267         New function: mfile_name_concat.
63268         * lib/filenamecat.c (mfile_name_concat): New function, just like
63269         file_name_concat, but return NULL upon failure rather than exiting
63270         with a diagnostic.
63271         * lib/filenamecat.h: Declare it.
63272
63273 2007-08-07  Bruno Haible  <bruno@clisp.org>
63274
63275         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63276         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63277         warning from gcc.
63278         Reported by Eric Blake.
63279
63280 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63281
63282         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63283         * modules/crypto/arcfour (License): Likewise.
63284         * modules/crypto/des-tests (License): Likewise.
63285         * modules/crypto/gc-arctwo-tests (License): Likewise.
63286         * modules/crypto/gc-des-tests (License): Likewise.
63287         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63288         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63289         * modules/crypto/gc-md2-tests (License): Likewise.
63290         * modules/crypto/gc-md4-tests (License): Likewise.
63291         * modules/crypto/gc-md5-tests (License): Likewise.
63292         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63293         * modules/crypto/gc-rijndael-tests (License): Likewise.
63294         * modules/crypto/gc-sha1-tests (License): Likewise.
63295         * modules/crypto/gc-tests (License): Likewise.
63296         * modules/crypto/hmac-md5 (License): Likewise.
63297         * modules/crypto/hmac-sha1 (License): Likewise.
63298         * modules/crypto/md2-tests (License): Likewise.
63299         * modules/crypto/md4-tests (License): Likewise.
63300         * modules/crypto/md5 (License): Likewise.
63301         * modules/crypto/rijndael (License): Likewise.
63302         * modules/crypto/sha1 (License): Likewise.
63303         * modules/memxor (License): Likewise.
63304
63305 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63306         and Bruno Haible  <bruno@clisp.org>
63307
63308         * NEWS: Describe interface changes to human, xstrtol.
63309         * lib/human.h: Include <xstrtol.h>.
63310         (human_options): Return enum strtol_error, not int.  Remove
63311         bool arg; take int * instead.
63312         * lib/human.c: Don't include "gettext.h".
63313         (_): Remove; no longer used.
63314         Don't include <xstrtol.h>, since human.h does it.
63315         (human_options): Adjust to abovementioned interface changes.
63316         Do not report error to stderr; that's now the caller's
63317         responsibility.
63318         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63319         interface change.
63320         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63321         Str, Argument_type_string.  All uses changed.  Put " argument"
63322         in diagnostics to make them clearer.  Change wording of suffix
63323         message for clarity.
63324         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63325         Argument_type_string.
63326         (STRTOL_FATAL_WARN): Remove; no longer used.
63327         * modules/human (Depends-on): Remove gettext-h.
63328
63329 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63330
63331         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63332
63333 2007-07-31  Bruno Haible  <bruno@clisp.org>
63334
63335         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63336         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63337         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63338
63339 2007-07-31  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63342         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63343
63344 2007-07-30  Bruno Haible  <bruno@clisp.org>
63345
63346         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63347         * modules/c-ctype (License): Likewise.
63348         * modules/c-strcase (License): Likewise.
63349         * modules/check-version (License): Likewise.
63350         * modules/iconv (License): Likewise.
63351         * modules/iconv_open (License): Likewise.
63352         * modules/read-file (License): Likewise.
63353         * modules/striconv (License): Likewise.
63354         * modules/strverscmp (License): Likewise.
63355         * modules/vasprintf (License): Likewise.
63356         * modules/crypto/des (License): Likewise.
63357         * modules/crypto/gc (License): Likewise.
63358         * modules/crypto/gc-arcfour (License): Likewise.
63359         * modules/crypto/gc-arctwo (License): Likewise.
63360         * modules/crypto/gc-des (License): Likewise.
63361         * modules/crypto/gc-hmac-md5 (License): Likewise.
63362         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63363         * modules/crypto/gc-md2 (License): Likewise.
63364         * modules/crypto/gc-md4 (License): Likewise.
63365         * modules/crypto/gc-md5 (License): Likewise.
63366         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63367         * modules/crypto/gc-random (License): Likewise.
63368         * modules/crypto/gc-rijndael (License): Likewise.
63369         * modules/crypto/gc-sha1 (License): Likewise.
63370         * modules/crypto/md2 (License): Likewise.
63371         * modules/crypto/md4 (License): Likewise.
63372
63373 2007-07-30  Jim Meyering  <jim@meyering.net>
63374
63375         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63376         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63377         it has valid stat data.  This bug would cause du not to count the
63378         sizes of inaccessible directories.
63379         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63380         in <http://bugzilla.redhat.com/250077>.
63381
63382 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63383             Bruno Haible  <bruno@clisp.org>
63384
63385         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63386         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63387         #include_next, gives a diagnostic about it, but reports no error in
63388         the exit code.
63389         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63390
63391 2007-07-24  Ben Pfaff  <blp@gnu.org>
63392
63393         Improve name: "count-one-bits" is better than "popcount".
63394         * MODULES.html.sh: Update name.
63395         * lib/popcount.h: Renamed lib/count-one-bits.h.
63396         (popcount): Renamed count_one_bits.
63397         (popcountl): Renamed count_one_bits_l.
63398         (popcountll): Renamed count_one_bits_ll.
63399         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63400         * modules/popcount: Renamed module/count-one-bits.
63401         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63402         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63403
63404 2007-07-23  Ben Pfaff  <blp@gnu.org>
63405
63406         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63407         better code generation, and add U to large constants to avoid
63408         warnings, in non-GCC case.
63409         Suggested by Bruno Haible.
63410
63411 2007-07-23  Ben Pfaff  <blp@gnu.org>
63412
63413         * lib/popcount.h: Use verify_true instead of if...abort.
63414         * modules/popcount: Depend on verify module.
63415         Suggested by Jim Meyering.
63416
63417 2007-07-23  Bruno Haible  <bruno@clisp.org>
63418
63419         * gnulib-tool (func_import): Create a .cvsignore file also when the
63420         directory is not yet in CVS but the toplevel directory is. When
63421         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63422         Reported by Karl Berry.
63423
63424 2007-07-22  Ben Pfaff  <blp@gnu.org>
63425
63426         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63427         case.
63428         Suggested by Eric Blake.
63429
63430 2007-07-22  Ben Pfaff  <blp@gnu.org>
63431
63432         New module: popcount.
63433         * MODULES.html.sh: Add popcount.
63434         * modules/popcount: New file.
63435         * modules/popcount-tests: New file.
63436         * tests/test-popcount.c: New file.
63437         * lib/popcount.h: New file.
63438         * m4/popcount.m4: New file.
63439
63440 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * build-aux/announce-gen: Update to GPLv3.
63443
63444         * build-aux/config.guess: Update from config.
63445
63446 2007-07-21  Bruno Haible  <bruno@clisp.org>
63447
63448         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63449         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63450
63451 2007-07-20  Jim Meyering  <jim@meyering.net>
63452
63453         * check-module: Diagnose a self-dependency.
63454
63455 2007-07-19  Bruno Haible  <bruno@clisp.org>
63456
63457         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63458         empty.
63459         Reported by Eric Blake.
63460
63461 2007-07-18  Bruno Haible  <bruno@clisp.org>
63462
63463         * gnulib-tool: New options --po-base, --po-domain.
63464         (func_usage): Document them.
63465         (pobase, po_domain): New variables.
63466         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63467         DEFAULT_TEXT_DOMAIN.
63468         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63469         (func_import): Consider pobase and po_domain. Create a po/ directory.
63470         (func_create_testdir): Set pobase and po_domain to empty.
63471         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63472         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63473
63474 2007-07-18  Bruno Haible  <bruno@clisp.org>
63475
63476         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63477         EXTRA_DIST augmentation for files in build-aux/.
63478
63479 2007-07-16  Bruno Haible  <bruno@clisp.org>
63480
63481         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63482         * modules/getdelim (License): Likewise.
63483
63484 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63485
63486         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63487         * modules/d-type (License): Likewise.
63488         * modules/extensions (License): Likewise.
63489         * modules/fnmatch (License): Likewise.
63490         * modules/fseeko (License): Likewise.
63491         * modules/getaddrinfo (License): Likewise.
63492         * modules/getline (License): Likewise.
63493         * modules/getlogin_r (License): Likewise.
63494         * modules/getpass (License): Likewise.
63495         * modules/gettimeofday (License): Likewise.
63496         * modules/glob (License): Likewise.
63497         * modules/inet_ntop (License): Likewise.
63498         * modules/malloc (License): Likewise.
63499         * modules/malloca (License): Likewise.
63500         * modules/memmem (License): Likewise.
63501         * modules/mempcpy (License): Likewise.
63502         * modules/memset (License): Likewise.
63503         * modules/minmax (License): Likewise.
63504         * modules/mktime (License): Likewise.
63505         * modules/netinet_in (License): Likewise.
63506         * modules/pathmax (License): Likewise.
63507         * modules/poll (License): Likewise.
63508         * modules/regex (License): Likewise.
63509         * modules/snprintf (License): Likewise.
63510         * modules/stdbool (License): Likewise.
63511         * modules/stdint (License): Likewise.
63512         * modules/stdio (License): Likewise.
63513         * modules/strcase (License): Likewise.
63514         * modules/strcasestr (License): Likewise.
63515         * modules/strdup (License): Likewise.
63516         * modules/string (License): Likewise.
63517         * modules/strndup (License): Likewise.
63518         * modules/strnlen (License): Likewise.
63519         * modules/strpbrk (License): Likewise.
63520         * modules/strptime (License): Likewise.
63521         * modules/strsep (License): Likewise.
63522         * modules/sys_select (License): Likewise.
63523         * modules/sys_socket (License): Likewise.
63524         * modules/sys_stat (License): Likewise.
63525         * modules/sys_time (License): Likewise.
63526         * modules/time (License): Likewise.
63527         * modules/time_r (License): Likewise.
63528         * modules/timegm (License): Likewise.
63529         * modules/unistd (License): Likewise.
63530         * modules/vsnprintf (License): Likewise.
63531         * modules/wctype (License): Likewise.
63532
63533 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63534
63535         * modules/argz (License): LGPLv2+.
63536
63537 2007-07-15  Karl Berry  <karl@gnu.org>
63538
63539         * doc/gnulib.texi: revise node structure per new fdl.texi.
63540
63541 2007-07-14  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63544         the output file.
63545         * lib/uniname/uninames.h: Regenerated.
63546
63547 2007-07-14  Karl Berry  <karl@gnu.org>
63548
63549         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63550         omitting sectioning and index commands.
63551
63552 2007-07-13  Bruno Haible  <bruno@clisp.org>
63553
63554         New gnulib-tool option --more-symlinks.
63555         * gnulib-tool (func_usage): Document --more-symlinks.
63556         (do_copyrights): New variable.
63557         Recognize option --more-symlinks.
63558         (func_import): Don't add a copyright notice transform to
63559         sed_transform_lib_file if do_copyrights is empty.
63560
63561 2007-07-13  Bruno Haible  <bruno@clisp.org>
63562
63563         * lib/vasnprintf.c (decimal_point_char): Define also if
63564         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63565         && !NEED_PRINTF_DIRECTIVE_A.
63566         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63567         Gary V. Vaughan <gary@gnu.org>.
63568
63569 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         * lib/inttypes_.h: Undo previous change, since it was fixed
63572         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63573
63574 2007-07-13  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63577         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63578
63579 2007-07-13  Jim Meyering  <jim@meyering.net>
63580
63581         df: Don't fail for Tru64's "file-on-file mount".
63582         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63583         so we fall through and use statfs instead.  Details here:
63584         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63585         Reported by Albert Chin.
63586
63587 2007-07-13  Bruno Haible  <bruno@clisp.org>
63588
63589         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63590         * modules/configmake (License): Likewise.
63591         * modules/gettext (License): Likewise.
63592         * modules/gettext-h (License): Likewise.
63593         * modules/include_next (License): Likewise.
63594         * modules/link-warning (License): Likewise.
63595         * modules/localcharset (License): Likewise.
63596         * modules/localename (License): Likewise.
63597         * modules/lock (License): Likewise.
63598         * modules/relocatable-lib-lgpl (License): Likewise.
63599         * modules/size_max (License): Likewise.
63600         * modules/vasnprintf (License): Likewise.
63601         * modules/wchar (License): Likewise.
63602         * modules/xsize (License): Likewise.
63603
63604 2007-07-13  Bruno Haible  <bruno@clisp.org>
63605
63606         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63607         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63608
63609 2007-07-12  Bruno Haible  <bruno@clisp.org>
63610
63611         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63612         in the modules files.
63613
63614 2007-07-11  Karl Berry  <karl@gnu.org>
63615
63616         * MODULES.html.sh (func_module): use
63617          sed -e '\|^'"${includefile}"'$|d'
63618          instead of /.../d, to avoid errors on $includefile's containing /.
63619
63620 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63621
63622         * gnulib-tool (func_import): Avoid duplication of --avoid
63623         statements
63624         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63625         names to `_' in variable names.
63626
63627 2007-07-10  Eric Blake  <ebb9@byu.net>
63628
63629         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63630         * NEWS: Document this change.
63631
63632 2007-07-08  Bruno Haible  <bruno@clisp.org>
63633
63634         Update to Unicode 5.0.
63635         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63636         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63637         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63638         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63639         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63640         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63641         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63642         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63643         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63644         U+10A3F, U+1D242..U+1D244.
63645         (nonspacing_table_ind): Update.
63646         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63647         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63648
63649 2007-07-08  Bruno Haible  <bruno@clisp.org>
63650
63651         Update to Unicode 5.0.
63652         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63653         code transform. Extend the name index field of unicode_name_to_code and
63654         unicode_code_to_name from 16 to 24 bits.
63655         * lib/uniname/uniname.c (unicode_character_name,
63656         unicode_name_character): Add the range 0x12xxx to the code transform.
63657         * lib/uniname/uninames.h: Regenerated.
63658         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63659
63660 2007-07-07  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/wcwidth-tests: New file.
63663         * tests/test-wcwidth.c: New file.
63664
63665         Work around MacOS X wcwidth() bug.
63666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63667         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63668         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63669         original wcwidth in non-UTF-8 locales.
63670         * modules/wcwidth (Depends-on): Add localcharset, streq,
63671         uniwidth/width.
63672         * doc/functions/wcwidth.texi: Update.
63673
63674 2007-07-07  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63677         (wcwidth): New declaration.
63678         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63679         macros.
63680         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63681         here. Prepare for creating <wchar.h> unconditionally.
63682         * modules/wchar (Depends-on): Add link-warning.
63683         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63684         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63685         * lib/wcwidth.h: Remove file.
63686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63687         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63688         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63689         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63690         (Include): Replace wcwidth.h with <wchar.h>.
63691         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63692         * lib/mbchar.h: Don't include wcwidth.h.
63693         * lib/mbswidth.c: Likewise.
63694         * NEWS: Mention the change.
63695
63696 2007-07-07  Bruno Haible  <bruno@clisp.org>
63697
63698         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63699         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63700         definition with an external declaration.
63701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63702         defined as a function. Remove AC_C_INLINE requirement.
63703         * modules/wcwidth (Files): Add lib/wcwidth.c.
63704         (Makefile.am): Remove redundant statement.
63705
63706 2007-07-07  Bruno Haible  <bruno@clisp.org>
63707
63708         * MODULES.html.sh (Unicode string functions): Add the new modules.
63709
63710         * tests/uniwidth/test-u32-strwidth.c: New file.
63711         * modules/uniwidth/u32-strwidth-tests: New file.
63712
63713         * lib/uniwidth/u32-strwidth.c: New file.
63714         * modules/uniwidth/u32-strwidth: New file.
63715
63716         * tests/uniwidth/test-u16-strwidth.c: New file.
63717         * modules/uniwidth/u16-strwidth-tests: New file.
63718
63719         * lib/uniwidth/u16-strwidth.c: New file.
63720         * modules/uniwidth/u16-strwidth: New file.
63721
63722         * tests/uniwidth/test-u8-strwidth.c: New file.
63723         * modules/uniwidth/u8-strwidth-tests: New file.
63724
63725         * lib/uniwidth/u8-strwidth.c: New file.
63726         * modules/uniwidth/u8-strwidth: New file.
63727
63728         * tests/uniwidth/test-u32-width.c: New file.
63729         * modules/uniwidth/u32-width-tests: New file.
63730
63731         * lib/uniwidth/u32-width.c: New file.
63732         * modules/uniwidth/u32-width: New file.
63733
63734         * tests/uniwidth/test-u16-width.c: New file.
63735         * modules/uniwidth/u16-width-tests: New file.
63736
63737         * lib/uniwidth/u16-width.c: New file.
63738         * modules/uniwidth/u16-width: New file.
63739
63740         * tests/uniwidth/test-u8-width.c: New file.
63741         * modules/uniwidth/u8-width-tests: New file.
63742
63743         * lib/uniwidth/u8-width.c: New file.
63744         * modules/uniwidth/u8-width: New file.
63745
63746         * tests/uniwidth/test-uc_width.c: New file.
63747         * modules/uniwidth/width-tests: New file.
63748
63749         * lib/uniwidth/width.c: New file, from GNU libiconv.
63750         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63751         * modules/uniwidth/width: New file.
63752
63753         * lib/uniwidth.h: New file, from GNU libiconv.
63754         * modules/uniwidth/base: New file.
63755
63756 2007-07-07  Bruno Haible  <bruno@clisp.org>
63757
63758         * lib/uniname.h: New file, from GNU gettext.
63759         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63760         * lib/uniname/uninames.h: New file, from GNU gettext.
63761         * lib/uniname/uniname.c: New file, from GNU gettext.
63762         * tests/uniname/test-uninames.sh: New file.
63763         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63764         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63765         * modules/uniname/base: New file.
63766         * modules/uniname/uniname: New file.
63767         * modules/uniname/uniname-tests: New file.
63768         * MODULES.html.sh (Unicode string functions): Add the new modules.
63769
63770 2007-07-06  Bruno Haible  <bruno@clisp.org>
63771
63772         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63773
63774 2007-07-06  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63777         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63778         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63779         include <sys/time.h>.
63780         Reported by Eric Blake.
63781
63782 2007-07-06  Eric Blake  <ebb9@byu.net>
63783
63784         Fix testing canonicalize on cygwin.
63785         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63786         Revert patch from 2007-06-19.
63787         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63788         canonicalize module is also in use.
63789         * tests/test-canonicalize.c: New file.
63790         * tests/test-canonicalize.sh: Likewise.
63791         * modules/canonicalize-tests: Likewise.
63792
63793 2007-07-06  Jim Meyering  <jim@meyering.net>
63794
63795         * lib/getugroups.c (getugroups): Detect getgrent failure.
63796         Adjust comment to reflect reality: this function may return -1.
63797
63798 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63799
63800         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63801         the new TP address.
63802         (usage): Fix typo
63803         (gnulib_mk): New variable.
63804
63805 2007-07-05  Jim Meyering  <jim@meyering.net>
63806
63807         Don't let endgrent clobber errno, no matter how improbable.
63808         * lib/getugroups.c (getugroups): Save and restore errno around
63809         endgrent call.
63810
63811         Close the group DB even when failing with 2^31 or more members.
63812         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63813
63814 2007-07-04  Jim Meyering  <jim@meyering.net>
63815
63816         * lib/getugroups.h: New file.
63817         * lib/getugroups.c: Include "getugroups.h".
63818         Remove uses of "register" keyword.
63819         Move local variable, "cp", down into scope where used.
63820         Give "username" parameter the "const" attribute.
63821         * modules/getugroups (Files): Add lib/getugroups.h
63822
63823 2007-07-04  Karl Berry  <karl@gnu.org>
63824
63825         * MODULES.html.sh (func_all_modules): Complete rename of
63826         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63827
63828 2007-07-02  Bruno Haible  <bruno@clisp.org>
63829
63830         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63831         mode, when inttypes.h comes from gnulib.
63832         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63833
63834 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63835
63836         * NEWS: Mention lgpl module name change.
63837
63838         * modules/lgpl-2.1: Renamed from lgpl.
63839
63840         * NEWS: Mention gpl module name change.
63841
63842         * modules/gpl-3.0: New file, based on gpl-2.0.
63843
63844         * modules/gpl-2.0: Renamed from gpl.
63845
63846         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63847         doc/gpl-2.0.texi.
63848
63849 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63852         #define __STDC_LIMIT_MACROS temporarily while including
63853         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63854         Problem reported by Joel E. Denny in
63855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63856
63857 2007-07-01  Bruno Haible  <bruno@clisp.org>
63858
63859         * lib/unistdio.h: New file.
63860         * lib/unistdio/u-asnprintf.h: New file.
63861         * lib/unistdio/u-asprintf.h: New file.
63862         * lib/unistdio/u-printf-args.c: New file.
63863         * lib/unistdio/u-printf-args.h: New file.
63864         * lib/unistdio/u-printf-parse.h: New file.
63865         * lib/unistdio/u-snprintf.h: New file.
63866         * lib/unistdio/u-sprintf.h: New file.
63867         * lib/unistdio/u-vasprintf.h: New file.
63868         * lib/unistdio/u-vsnprintf.h: New file.
63869         * lib/unistdio/u-vsprintf.h: New file.
63870         * lib/unistdio/ulc-asnprintf.c: New file.
63871         * lib/unistdio/ulc-asprintf.c: New file.
63872         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63873         * lib/unistdio/ulc-printf-parse.c: New file.
63874         * lib/unistdio/ulc-snprintf.c: New file.
63875         * lib/unistdio/ulc-sprintf.c: New file.
63876         * lib/unistdio/ulc-vasnprintf.c: New file.
63877         * lib/unistdio/ulc-vasprintf.c: New file.
63878         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63879         * lib/unistdio/ulc-vsnprintf.c: New file.
63880         * lib/unistdio/ulc-vsprintf.c: New file.
63881         * lib/unistdio/u8-asnprintf.c: New file.
63882         * lib/unistdio/u8-asprintf.c: New file.
63883         * lib/unistdio/u8-printf-parse.c: New file.
63884         * lib/unistdio/u8-snprintf.c: New file.
63885         * lib/unistdio/u8-sprintf.c: New file.
63886         * lib/unistdio/u8-vasnprintf.c: New file.
63887         * lib/unistdio/u8-vasprintf.c: New file.
63888         * lib/unistdio/u8-vsnprintf.c: New file.
63889         * lib/unistdio/u8-vsprintf.c: New file.
63890         * lib/unistdio/u8-u8-asnprintf.c: New file.
63891         * lib/unistdio/u8-u8-asprintf.c: New file.
63892         * lib/unistdio/u8-u8-snprintf.c: New file.
63893         * lib/unistdio/u8-u8-sprintf.c: New file.
63894         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63895         * lib/unistdio/u8-u8-vasprintf.c: New file.
63896         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63897         * lib/unistdio/u8-u8-vsprintf.c: New file.
63898         * lib/unistdio/u16-asnprintf.c: New file.
63899         * lib/unistdio/u16-asprintf.c: New file.
63900         * lib/unistdio/u16-printf-parse.c: New file.
63901         * lib/unistdio/u16-snprintf.c: New file.
63902         * lib/unistdio/u16-sprintf.c: New file.
63903         * lib/unistdio/u16-vasnprintf.c: New file.
63904         * lib/unistdio/u16-vasprintf.c: New file.
63905         * lib/unistdio/u16-vsnprintf.c: New file.
63906         * lib/unistdio/u16-vsprintf.c: New file.
63907         * lib/unistdio/u16-u16-asnprintf.c: New file.
63908         * lib/unistdio/u16-u16-asprintf.c: New file.
63909         * lib/unistdio/u16-u16-snprintf.c: New file.
63910         * lib/unistdio/u16-u16-sprintf.c: New file.
63911         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63912         * lib/unistdio/u16-u16-vasprintf.c: New file.
63913         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63914         * lib/unistdio/u16-u16-vsprintf.c: New file.
63915         * lib/unistdio/u32-asnprintf.c: New file.
63916         * lib/unistdio/u32-asprintf.c: New file.
63917         * lib/unistdio/u32-printf-parse.c: New file.
63918         * lib/unistdio/u32-snprintf.c: New file.
63919         * lib/unistdio/u32-sprintf.c: New file.
63920         * lib/unistdio/u32-vasnprintf.c: New file.
63921         * lib/unistdio/u32-vasprintf.c: New file.
63922         * lib/unistdio/u32-vsnprintf.c: New file.
63923         * lib/unistdio/u32-vsprintf.c: New file.
63924         * lib/unistdio/u32-u32-asnprintf.c: New file.
63925         * lib/unistdio/u32-u32-asprintf.c: New file.
63926         * lib/unistdio/u32-u32-snprintf.c: New file.
63927         * lib/unistdio/u32-u32-sprintf.c: New file.
63928         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63929         * lib/unistdio/u32-u32-vasprintf.c: New file.
63930         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63931         * lib/unistdio/u32-u32-vsprintf.c: New file.
63932         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63933         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63934         * tests/unistdio/test-ulc-printf1.h: New file.
63935         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63936         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63937         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63938         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63939         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63940         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63941         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63942         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63943         * tests/unistdio/test-u8-asnprintf1.c: New file.
63944         * tests/unistdio/test-u8-asnprintf1.h: New file.
63945         * tests/unistdio/test-u8-printf1.h: New file.
63946         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63947         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63948         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63949         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63950         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63951         * tests/unistdio/test-u8-vasprintf1.c: New file.
63952         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63953         * tests/unistdio/test-u8-vsprintf1.c: New file.
63954         * tests/unistdio/test-u16-asnprintf1.c: New file.
63955         * tests/unistdio/test-u16-asnprintf1.h: New file.
63956         * tests/unistdio/test-u16-printf1.h: New file.
63957         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63958         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63959         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63960         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63961         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63962         * tests/unistdio/test-u16-vasprintf1.c: New file.
63963         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63964         * tests/unistdio/test-u16-vsprintf1.c: New file.
63965         * tests/unistdio/test-u32-asnprintf1.c: New file.
63966         * tests/unistdio/test-u32-asnprintf1.h: New file.
63967         * tests/unistdio/test-u32-printf1.h: New file.
63968         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63969         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63970         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63971         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63972         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63973         * tests/unistdio/test-u32-vasprintf1.c: New file.
63974         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63975         * tests/unistdio/test-u32-vsprintf1.c: New file.
63976         * modules/unistdio/base: New file.
63977         * modules/unistdio/u-printf-args: New file.
63978         * modules/unistdio/ulc-asnprintf: New file.
63979         * modules/unistdio/ulc-asprintf: New file.
63980         * modules/unistdio/ulc-fprintf: New file.
63981         * modules/unistdio/ulc-printf-parse: New file.
63982         * modules/unistdio/ulc-snprintf: New file.
63983         * modules/unistdio/ulc-sprintf: New file.
63984         * modules/unistdio/ulc-vasnprintf: New file.
63985         * modules/unistdio/ulc-vasprintf: New file.
63986         * modules/unistdio/ulc-vfprintf: New file.
63987         * modules/unistdio/ulc-vsnprintf: New file.
63988         * modules/unistdio/ulc-vsprintf: New file.
63989         * modules/unistdio/u8-asnprintf: New file.
63990         * modules/unistdio/u8-asprintf: New file.
63991         * modules/unistdio/u8-printf-parse: New file.
63992         * modules/unistdio/u8-snprintf: New file.
63993         * modules/unistdio/u8-sprintf: New file.
63994         * modules/unistdio/u8-vasnprintf: New file.
63995         * modules/unistdio/u8-vasprintf: New file.
63996         * modules/unistdio/u8-vsnprintf: New file.
63997         * modules/unistdio/u8-vsprintf: New file.
63998         * modules/unistdio/u8-u8-asnprintf: New file.
63999         * modules/unistdio/u8-u8-asprintf: New file.
64000         * modules/unistdio/u8-u8-snprintf: New file.
64001         * modules/unistdio/u8-u8-sprintf: New file.
64002         * modules/unistdio/u8-u8-vasnprintf: New file.
64003         * modules/unistdio/u8-u8-vasprintf: New file.
64004         * modules/unistdio/u8-u8-vsnprintf: New file.
64005         * modules/unistdio/u8-u8-vsprintf: New file.
64006         * modules/unistdio/u16-asnprintf: New file.
64007         * modules/unistdio/u16-asprintf: New file.
64008         * modules/unistdio/u16-printf-parse: New file.
64009         * modules/unistdio/u16-snprintf: New file.
64010         * modules/unistdio/u16-sprintf: New file.
64011         * modules/unistdio/u16-vasnprintf: New file.
64012         * modules/unistdio/u16-vasprintf: New file.
64013         * modules/unistdio/u16-vsnprintf: New file.
64014         * modules/unistdio/u16-vsprintf: New file.
64015         * modules/unistdio/u16-u16-asnprintf: New file.
64016         * modules/unistdio/u16-u16-asprintf: New file.
64017         * modules/unistdio/u16-u16-snprintf: New file.
64018         * modules/unistdio/u16-u16-sprintf: New file.
64019         * modules/unistdio/u16-u16-vasnprintf: New file.
64020         * modules/unistdio/u16-u16-vasprintf: New file.
64021         * modules/unistdio/u16-u16-vsnprintf: New file.
64022         * modules/unistdio/u16-u16-vsprintf: New file.
64023         * modules/unistdio/u32-asnprintf: New file.
64024         * modules/unistdio/u32-asprintf: New file.
64025         * modules/unistdio/u32-printf-parse: New file.
64026         * modules/unistdio/u32-snprintf: New file.
64027         * modules/unistdio/u32-sprintf: New file.
64028         * modules/unistdio/u32-vasnprintf: New file.
64029         * modules/unistdio/u32-vasprintf: New file.
64030         * modules/unistdio/u32-vsnprintf: New file.
64031         * modules/unistdio/u32-vsprintf: New file.
64032         * modules/unistdio/u32-u32-asnprintf: New file.
64033         * modules/unistdio/u32-u32-asprintf: New file.
64034         * modules/unistdio/u32-u32-snprintf: New file.
64035         * modules/unistdio/u32-u32-sprintf: New file.
64036         * modules/unistdio/u32-u32-vasnprintf: New file.
64037         * modules/unistdio/u32-u32-vasprintf: New file.
64038         * modules/unistdio/u32-u32-vsnprintf: New file.
64039         * modules/unistdio/u32-u32-vsprintf: New file.
64040         * modules/unistdio/ulc-asnprintf-tests: New file.
64041         * modules/unistdio/ulc-vasnprintf-tests: New file.
64042         * modules/unistdio/ulc-vasprintf-tests: New file.
64043         * modules/unistdio/ulc-vsnprintf-tests: New file.
64044         * modules/unistdio/ulc-vsprintf-tests: New file.
64045         * modules/unistdio/u8-asnprintf-tests: New file.
64046         * modules/unistdio/u8-vasnprintf-tests: New file.
64047         * modules/unistdio/u8-vasprintf-tests: New file.
64048         * modules/unistdio/u8-vsnprintf-tests: New file.
64049         * modules/unistdio/u8-vsprintf-tests: New file.
64050         * modules/unistdio/u16-asnprintf-tests: New file.
64051         * modules/unistdio/u16-vasnprintf-tests: New file.
64052         * modules/unistdio/u16-vasprintf-tests: New file.
64053         * modules/unistdio/u16-vsnprintf-tests: New file.
64054         * modules/unistdio/u16-vsprintf-tests: New file.
64055         * modules/unistdio/u32-asnprintf-tests: New file.
64056         * modules/unistdio/u32-vasnprintf-tests: New file.
64057         * modules/unistdio/u32-vasprintf-tests: New file.
64058         * modules/unistdio/u32-vsnprintf-tests: New file.
64059         * modules/unistdio/u32-vsprintf-tests: New file.
64060         * MODULES.html.sh (Unicode string functions): Add the new modules.
64061
64062 2007-07-01  Bruno Haible  <bruno@clisp.org>
64063
64064         * lib/sprintf.c (sprintf): Limit the available length estimation,
64065         to avoid address wraparound.
64066         * lib/vsprintf.c (vsprintf): Likewise.
64067         * modules/sprintf-posix (Dependencies): Add stdint.
64068         * modules/vsprintf-posix (Dependencies): Likewise.
64069
64070 2007-07-01  Bruno Haible  <bruno@clisp.org>
64071
64072         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64073         Windows PATH as well. Conservative double-quoting. Comments.
64074
64075 2007-07-01  Bruno Haible  <bruno@clisp.org>
64076             Eric Blake  <ebb9@byu.net>
64077             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64078
64079         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64080         empty components in $PATH, denoting '.'.
64081
64082 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64083
64084         * gnulib-tool: Fix indentation.
64085         (func_create_megatestdir): Likewise.
64086         Report by Bruno Haible.
64087
64088 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64089
64090         Sync from Automake.
64091         * build-aux/gnupload: Fix shell portability issues with for loops.
64092         Report by Karl Berry.
64093
64094 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64095
64096         * build-aux/maint.mk (POURL): Use translationproject.org.
64097
64098 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64099             Bruno Haible  <bruno@clisp.org>
64100
64101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64102         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64103         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64104         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64105         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64106
64107 2007-06-27  Bruno Haible  <bruno@clisp.org>
64108
64109         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64110         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64111
64112 2007-06-26  Karl Berry  <karl@gnu.org>
64113
64114         * MODULES.html.sh: remove xreadlink-with-size.
64115
64116 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64119         method that I hope also handles the double-include problem noted
64120         by Bruno Haible in
64121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64122
64123 2007-06-23  Bruno Haible  <bruno@clisp.org>
64124
64125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64126         Don't let the 'mostlyclean' target fail if the last subdirectory could
64127         not be removed.
64128         Reported by Karl Berry.
64129
64130 2007-06-23  Bruno Haible  <bruno@clisp.org>
64131
64132         * gnulib-tool (echo): Add a speedier workaround for ksh.
64133         * tests/test-echo.sh: Likewise.
64134
64135 2007-06-23  Bruno Haible  <bruno@clisp.org>
64136
64137         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64138         * tests/test-echo.sh: Likewise.
64139
64140 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64141
64142         * gnulib-tool (IFS): Initialize early, so we don't set it to
64143         empty later.
64144         (self_abspathname): Rewrite algorithm to set it, reindent.
64145         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64146         (func_create_megatestdir): Merge some sed scripts.
64147
64148 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64149
64150         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64151         exposed by Sun Studio 11 cc on Solaris 8.
64152
64153 2007-06-22  Bruno Haible  <bruno@clisp.org>
64154
64155         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64156         backslashes.
64157         * tests/test-echo.sh: New file.
64158
64159 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64160
64161         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64162         simplify `sed_replace_build_aux' scripts, they are portable but
64163         echoing them with `echo' is not.
64164         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64165
64166 2007-06-21  Karl Berry  <karl@gnu.org>
64167
64168         * config/srclist.txt: guess we can't handle the licenses via
64169         srclist at the moment.
64170
64171 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * MODULES.html.sh: Add include_next.
64174         * modules/include_next: New file.
64175
64176 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64179         INCLUDE_NEXT.
64180         (gl_CHECK_NEXT_HEADERS): New macro.
64181         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64182         the obsolescent gl_ABSOLUTE_HEADER.
64183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64184         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64185         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64186         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64187         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64188         * m4/math_h.m4 (gl_MATH_H): Likewise.
64189         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64190         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64191         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64192         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64193         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64194         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64195         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64200         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64201         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64202         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64203         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64204         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64205         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64206         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64207         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64208         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64209         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64210         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64211         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64212         * lib/float_.h: Likewise.
64213         * lib/inttypes_.h: Likewise.
64214         * lib/math_.h: Likewise.
64215         * lib/search_.h: Likewise.
64216         * lib/signal_.h: Likewise.
64217         * lib/stdint_.h: Likewise.
64218         * lib/stdio_.h: Likewise.
64219         * lib/stdlib_.h: Likewise.
64220         * lib/string_.h: Likewise.
64221         * lib/sys_stat_.h: Likewise.
64222         * lib/sys_time_.h: Likewise.
64223         * lib/time_.h: Likewise.
64224         * lib/unistd_.h: Likewise.
64225         * lib/wchar_.h: Likewise.
64226         * lib/wctype_.h: Likewise.
64227         * lib/dirent_.h: Likewise.
64228         * lib/iconv_.h: Likewise.
64229         * lib/locale_.h: Likewise.
64230         * lib/netinet_in_.h: Likewise.
64231         * lib/sys_select_.h: Likewise.
64232         * lib/sys_socket_.h: Likewise.
64233         * lib/sysexits_.h: Likewise.
64234         * modules/fcntl (Depends-on): Depend on include_next, not
64235         absolute_header.
64236         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64237         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64238         * modules/fchdir: Likewise.
64239         * modules/float: Likewise.
64240         * modules/iconv_open: Likewise.
64241         * modules/inttypes: Likewise.
64242         * modules/locale: Likewise.
64243         * modules/math: Likewise.
64244         * modules/netinet_in: Likewise.
64245         * modules/search: Likewise.
64246         * modules/signal: Likewise.
64247         * modules/stdint: Likewise.
64248         * modules/stdio: Likewise.
64249         * modules/stdlib: Likewise.
64250         * modules/string: Likewise.
64251         * modules/sys_select: Likewise.
64252         * modules/sys_socket: Likewise.
64253         * modules/sys_stat: Likewise.
64254         * modules/sys_time: Likewise.
64255         * modules/sysexits: Likewise.
64256         * modules/time: Likewise.
64257         * modules/unistd: Likewise.
64258         * modules/wchar: Likewise.
64259         * modules/wctype: Likewise.
64260         * modules/sys_stat: Change maintainer to "all".
64261         * modules/unistd: Likewise.
64262
64263 2007-06-20  Karl Berry  <karl@gnu.org>
64264
64265         * config/srclist.txt: track www changes in license files.
64266
64267 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64268
64269         * build-aux/bootstrap: Remove stray dot.
64270         Make sure build_aux settings are honored when linking
64271         gnulib_extra_files.
64272
64273 2007-06-19  Eric Blake  <ebb9@byu.net>
64274
64275         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64276         Allow compilation on cygwin.
64277
64278 2007-06-19  Jim Meyering  <jim@meyering.net>
64279
64280         xreadlink-with-size: Remove module.  No longer used.
64281         Ex-callers now use xreadlink or mreadlink-with-size.
64282         * modules/xreadlink-with-size: Remove module.
64283         * lib/xreadlink-with-size.c: Remove file.
64284         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64285         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64286         just before the function definition *is* accurate.
64287
64288         Eliminate one way canonicalize_filename_mode could exit.
64289         * lib/canonicalize.c (canonicalize_filename_mode):
64290         Use mreadlink_with_size, not xreadlink_with_size.
64291
64292 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         Detect porting problems to FreeBSD/arm, which has time_t wider than
64295         long int.  Original problem reported for GNU diff by Xin Li in
64296         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64297         * modules/getdate (Depends-on): Add intprops, verify.
64298         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64299         is an integer type no wider than long int.
64300
64301 2007-06-18  Jim Meyering  <jim@meyering.net>
64302
64303         New module: mreadlink-with-size.
64304         * MODULES.html.sh: Add mreadlink-with-size.
64305         * modules/mreadlink-with-size: New module
64306         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64307         not xreadlink-with-size.
64308         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64309
64310 2007-06-16  Bruno Haible  <bruno@clisp.org>
64311
64312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64313         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64314         Reported by Gary V. Vaughan <gary@gnu.org>.
64315
64316 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         Revamp lchown so that it lives in unistd.h where it belongs.
64319         * lib/lchown.h: Remove.
64320         * lib/dirchownmod.c: Don't include lib/lchown.h.
64321         * lib/fchownat.c: Likewise.
64322         * lib/openat.c: Likewise.
64323         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64324         does not follow symlinks.
64325         (EOPNOTSUPP): Define if not defined.
64326         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64327         is defined to 0.
64328         (lchown): New decl.
64329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64330         Do not check for lchown decl.
64331         Set REPLACE_LCHOWN.
64332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64333         REPLACE_LCHOWN.
64334         * modules/chown: Make it clear it follows symlinks.
64335         * modules/lchown: Make it clear it doesn't follow symlinks.
64336         (Files): Remove lib/lchown.h
64337         (Depends-on): Add unistd.
64338         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64339         (Include): Include <unistd.h>, not "lchown.h".
64340         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64341         REPLACE_LCHOWN.
64342
64343 2007-06-15  Jim Meyering  <jim@meyering.net>
64344
64345         Change license (GPL to LGPL) of fsusage and dependents.
64346         * modules/fsusage (License): Change to LGPL.
64347         * modules/full-read (License): Likewise.
64348         * modules/full-write (License): Likewise.
64349         * modules/safe-read (License): Likewise.
64350         * modules/safe-write (License): Likewise.
64351
64352 2007-06-14  Ben Pfaff  <blp@gnu.org>
64353
64354         Missing part of allocsa -> malloca transition.
64355         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64356         gl_MALLOCA.
64357
64358 2007-06-12  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64361         to ia64, x86_64, i386.
64362         Reported by Eric Blake.
64363
64364 2007-06-12  Bruno Haible  <bruno@clisp.org>
64365
64366         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64367         cross-compiling to x86_64.
64368
64369 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64372         glitch reported by Ralf Wildenhues in
64373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64374
64375         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64376         Vin Shelton.
64377
64378 2007-06-11  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64381         replacement string.
64382         Reported by Eric Blake.
64383
64384 2007-06-10  Bruno Haible  <bruno@clisp.org>
64385
64386         Prepare vasnprintf code for use with Unicode strings.
64387         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64388         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64389         TYPE_U32_STRING.
64390         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64391         a_u32_string variants.
64392         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64393         * lib/printf-args.c: Don't include config.h and the specification
64394         header if PRINTF_FETCHARGS is already defined.
64395         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64396         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64397         TYPE_U16_STRING, TYPE_U32_STRING.
64398         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64399         u16_directive, u16_directives, u32_directive, u32_directives): New
64400         types.
64401         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64402         New declarations.
64403         * lib/printf-parse.c: Don't include config.h and the specification
64404         header if PRINTF_PARSE is already defined. Eliminate the set of
64405         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64406         them now. Include c-ctype.h.
64407         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64408         directive and CHAR_T_ONLY_ASCII.
64409         * lib/vasnprintf.c: Don't include config.h and the specification header
64410         if VASNPRINTF is already defined.
64411         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64412         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64413         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64414         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64415         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64416         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64417         code accordingly.
64418         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64419         pad_ourselves also in this case, with the 'c' and 's' directives, and
64420         with a different notion of "width".
64421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64422
64423 2007-06-10  Bruno Haible  <bruno@clisp.org>
64424
64425         * modules/unistr/u32-mbsnlen: New file.
64426         * lib/unistr/u32-mbsnlen.c: New file.
64427
64428         * modules/unistr/u16-mbsnlen: New file.
64429         * lib/unistr/u16-mbsnlen.c: New file.
64430
64431         * modules/unistr/u8-mbsnlen: New file.
64432         * lib/unistr/u8-mbsnlen.c: New file.
64433
64434         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64435         declarations.
64436
64437 2007-06-10  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/string_.h (mbsnlen): New declaration.
64440         * lib/mbsnlen.c: New file.
64441         * m4/mbsnlen.m4: New file.
64442         * modules/mbsnlen: New file.
64443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64444         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64445         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64446
64447 2007-06-10  Bruno Haible  <bruno@clisp.org>
64448
64449         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64450
64451 2007-06-10  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64454         * lib/mbuiter.h: Likewise.
64455
64456 2007-06-10  Bruno Haible  <bruno@clisp.org>
64457
64458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64459         declaration.
64460
64461 2007-06-10  Karl Berry  <karl@gnu.org>
64462
64463         * config/srclist.txt: remove gettext entries, Bruno prefers
64464         to update individually.
64465
64466 2007-06-10  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64469         'maxlen'. Ensure only length + width bytes are allocated, not
64470         length + 1 + width.
64471
64472 2007-06-09  Bruno Haible  <bruno@clisp.org>
64473
64474         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64475         (CHAR_T): Remove macro.
64476         (VASNPRINTF): Update.
64477
64478 2007-06-09  Bruno Haible  <bruno@clisp.org>
64479
64480         * MODULES.html.sh (Unicode string functions): Add the new modules.
64481
64482         * modules/uniconv/u32-conv-to-enc: New file.
64483         * lib/uniconv/u32-conv-to-enc.c: New file.
64484         * modules/uniconv/u32-conv-to-enc-tests: New file.
64485         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64486
64487         * modules/uniconv/u16-conv-to-enc: New file.
64488         * lib/uniconv/u16-conv-to-enc.c: New file.
64489         * lib/uniconv/u-conv-to-enc.h: New file.
64490         * modules/uniconv/u16-conv-to-enc-tests: New file.
64491         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64492
64493         * modules/uniconv/u8-conv-to-enc: New file.
64494         * lib/uniconv/u8-conv-to-enc.c: New file.
64495         * modules/uniconv/u8-conv-to-enc-tests: New file.
64496         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64497
64498         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64499         u32_conv_to_encoding): New declarations.
64500
64501 2007-06-09  Bruno Haible  <bruno@clisp.org>
64502
64503         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64504
64505 2007-06-09  Bruno Haible  <bruno@clisp.org>
64506
64507         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64508         * modules/malloca: Renamed from modules/allocsa, updated.
64509         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64510         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64511         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64512         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64513         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64514         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64515         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64516         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64517         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64518         * modules/c-strcasestr (Depends-on): Update.
64519         * lib/c-strcasestr.c: Update.
64520         * modules/c-strstr (Depends-on): Update.
64521         * lib/c-strstr.c: Update.
64522         * modules/canonicalize-lgpl (Depends-on): Update.
64523         * lib/canonicalize-lgpl.c: Update.
64524         * modules/clean-temp (Depends-on): Update.
64525         * lib/clean-temp.c: Update.
64526         * modules/csharpcomp (Depends-on): Update.
64527         * lib/csharpcomp.c: Update.
64528         * modules/csharpexec (Depends-on): Update.
64529         * lib/csharpexec.c: Update.
64530         * modules/javacomp (Depends-on): Update.
64531         * lib/javacomp.c: Update.
64532         * modules/javaexec (Depends-on): Update.
64533         * lib/javaexec.c: Update.
64534         * modules/mbscasestr (Depends-on): Update.
64535         * lib/mbscasestr.c: Update.
64536         * modules/mbsstr (Depends-on): Update.
64537         * lib/mbsstr.c: Update.
64538         * modules/setenv (Depends-on): Update.
64539         * lib/setenv.c: Update.
64540         * modules/strcasestr (Depends-on): Update.
64541         * lib/strcasestr.c: Update.
64542         * modules/striconveha (Depends-on): Update.
64543         * lib/striconveha.c: Update.
64544         * modules/relocatable-prog-wrapper (Files): Update.
64545         * lib/relocwrapper.c: Update.
64546         * build-aux/install-reloc: Update.
64547         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64548
64549 2007-06-08  Bruno Haible  <bruno@clisp.org>
64550
64551         Port to uClibc.
64552         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64553         * lib/fpurge.c (fpurge): Likewise.
64554         * lib/freading.c (freading): Likewise.
64555         * lib/fseeko.c (rpl_fseeko): Likewise.
64556         * lib/fseterr.c (fseterr): Likewise.
64557         * lib/fwriting.c (fwriting): Likewise.
64558         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64559
64560 2007-06-08  Bruno Haible  <bruno@clisp.org>
64561
64562         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64563         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64564         * modules/gettext (Files): Add m4/intlmacosx.m4.
64565
64566 2007-06-07  Bruno Haible  <bruno@clisp.org>
64567
64568         * modules/localename-tests: New file.
64569         * tests/test-localename.c: New file.
64570
64571         New module 'localename'.
64572         * lib/localename.h: New file.
64573         * lib/localename.c: New file, from GNU gettext.
64574         * m4/localename.m4: New file.
64575         * modules/localename: New file.
64576
64577 2007-06-07  Bruno Haible  <bruno@clisp.org>
64578
64579         Work around the lack of <wchar.h> on some builds of uClibc.
64580         * doc/headers/wchar.texi: Update.
64581         * lib/wchar_.h: Include <wchar.h> only if it exists.
64582         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64583         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64584         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64585         doesn't exist.
64586         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64587         * modules/mbfile (Depends-on): Add wchar.
64588         * modules/mbiter (Depends-on): Likewise.
64589         * modules/mbuiter (Depends-on): Likewise.
64590         Reported by Simon Josefsson.
64591
64592 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         Work around problem reported by Steven M. Schweda in
64595         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64596         Tru64 5.1B with the Compaq compiler environment installed declares
64597         an 'isblank' function but does not define it in the C library.
64598         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64599         * lib/regex_internal.h (isblank): Likewise.
64600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64601         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64602
64603 2007-06-05  Bruno Haible  <bruno@clisp.org>
64604
64605         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64606         ia64.
64607         * modules/printf-safe: New file.
64608         * modules/fprintf-posix (Depends-on): Add printf-safe.
64609         * modules/printf-posix (Depends-on): Likewise.
64610         * modules/snprintf-posix (Depends-on): Likewise.
64611         * modules/sprintf-posix (Depends-on): Likewise.
64612         * modules/vasnprintf-posix (Depends-on): Likewise.
64613         * modules/vasprintf-posix (Depends-on): Likewise.
64614         * modules/vfprintf-posix (Depends-on): Likewise.
64615         * modules/vprintf-posix (Depends-on): Likewise.
64616         * modules/vsnprintf-posix (Depends-on): Likewise.
64617         * modules/vsprintf-posix (Depends-on): Likewise.
64618         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64619         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64620         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64621         "no" on i386, x86_64, ia64.
64622         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64623         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64624         on i386, x86_64, ia64.
64625         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64626         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64627         on i386, x86_64, ia64.
64628         * tests/test-vasnprintf-posix.c: Include float.h.
64629         (LDBL80_WORDS): New macro.
64630         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64631         on i386, x86_64, ia64.
64632         * tests/test-vasprintf-posix.c: Include float.h.
64633         (LDBL80_WORDS): New macro.
64634         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64635         on i386, x86_64, ia64.
64636         * tests/test-snprintf-posix.c: Include float.h.
64637         * tests/test-sprintf-posix.c: Likewise.
64638         * tests/test-vsnprintf-posix.c: Likewise.
64639         * tests/test-vsprintf-posix.c: Likewise.
64640
64641 2007-06-05  Bruno Haible  <bruno@clisp.org>
64642
64643         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64644         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64645         non-IEEE numbers on i386, x86_64, ia64.
64646         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64647         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64648         * tests/test-isnanl.h: Include float.h.
64649         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64650
64651 2007-06-05  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64654         also the %a / %A. Handle the %a / %A code before this extra handling.
64655
64656 2007-06-05  Bruno Haible  <bruno@clisp.org>
64657
64658         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64659         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64660
64661 2007-06-05  Bruno Haible  <bruno@clisp.org>
64662
64663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64664         typo in variable name.
64665
64666 2007-06-05  Eric Blake  <ebb9@byu.net>
64667
64668         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64669         Reported by Simon Josefsson.
64670
64671 2007-06-04  Bruno Haible  <bruno@clisp.org>
64672
64673         Avoid test failures on some PowerPC platforms.
64674         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64675         Define differently for PowerPC.
64676         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64677         Reported by Gary V. Vaughan <gary@gnu.org>.
64678
64679 2007-06-02  Bruno Haible  <bruno@clisp.org>
64680
64681         Fix test-stdint failure on FreeBSD/ia64.
64682         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64683         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64684         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64685         * doc/headers/stdint.texi: Update.
64686
64687 2007-06-01  Bruno Haible  <bruno@clisp.org>
64688
64689         * tests/test-binary-io.c (main): Pass a third argument to open().
64690         Reported by Gary V. Vaughan <gary@gnu.org>.
64691
64692 2007-06-01  Bruno Haible  <bruno@clisp.org>
64693
64694         * doc/functions/frexpl.texi: Update for mingw.
64695
64696 2007-06-01  Bruno Haible  <bruno@clisp.org>
64697
64698         * tests/test-lseek.c (main): Disable test of errno for invalid third
64699         argument.
64700         * doc/functions/lseek.texi: Update.
64701         Reported by Gary V. Vaughan <gary@gnu.org>.
64702
64703 2007-05-28  Bruno Haible  <bruno@clisp.org>
64704
64705         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64706
64707 2007-05-31  Eric Blake  <ebb9@byu.net>
64708
64709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64710         cross compiling.
64711
64712 2007-05-30  Eric Blake  <ebb9@byu.net>
64713         and Bruno Haible  <bruno@clisp.org>
64714
64715         Work around mingw test failures exposed by m4-1.4.9b.
64716         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64717         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64718         moment.
64719
64720 2007-05-30  Bruno Haible  <bruno@clisp.org>
64721
64722         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64723         assuming that they are closed. Needed on HP-UX 11.
64724
64725 2007-05-29  Bruno Haible  <bruno@clisp.org>
64726
64727         Fix a problem with #include_next.
64728         * lib/dirent_.h: Split the double-inclusion guard.
64729         * lib/fcntl_.h: Likewise.
64730         * lib/float_.h: Likewise.
64731         * lib/iconv_.h: Likewise.
64732         * lib/inttypes_.h: Likewise.
64733         * lib/locale_.h: Likewise.
64734         * lib/math_.h: Likewise.
64735         * lib/netinet_in_.h: Likewise.
64736         * lib/search_.h: Likewise.
64737         * lib/signal_.h: Likewise.
64738         * lib/stdint_.h: Likewise.
64739         * lib/stdio_.h: Likewise.
64740         * lib/stdlib_.h: Likewise.
64741         * lib/string_.h: Likewise.
64742         * lib/sys_select_.h: Likewise.
64743         * lib/sys_socket_.h: Likewise.
64744         * lib/sys_stat_.h: Likewise.
64745         * lib/sys_time_.h: Likewise.
64746         * lib/sysexits_.h: Likewise.
64747         * lib/time_.h: Likewise.
64748         * lib/unistd_.h: Likewise.
64749         * lib/wchar_.h: Likewise.
64750         * lib/wctype_.h: Likewise.
64751
64752 2007-05-29  Bruno Haible  <bruno@clisp.org>
64753
64754         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64755         for the moment.
64756
64757 2007-05-29  Bruno Haible  <bruno@clisp.org>
64758
64759         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64760         invocation.
64761         Reported by Eric Blake.
64762
64763 2007-05-29  Bruno Haible  <bruno@clisp.org>
64764
64765         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64766         compiling case.
64767
64768 2007-05-29  Eric Blake  <ebb9@byu.net>
64769             Bruno Haible  <bruno@clisp.org>
64770
64771         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64772         cross compiles.
64773
64774 2007-05-28  Eric Blake  <ebb9@byu.net>
64775
64776         * modules/closein-tests (test_closein_LDADD): Support test on
64777         cygwin with libtool.
64778
64779 2007-05-28  Bruno Haible  <bruno@clisp.org>
64780
64781         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64782         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64783         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64784         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64785         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64786         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64787         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64788         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64789         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64790
64791 2007-05-28  Eric Blake  <ebb9@byu.net>
64792
64793         Unconditionally include <config.h> in unit tests.
64794         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64795         * tests/test-allocsa.c, tests/test-arcfour.c,
64796         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64797         tests/test-array_list.c, tests/test-array_oset.c,
64798         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64799         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64800         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64801         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64802         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64803         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64804         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64805         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64806         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64807         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64808         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64809         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64810         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64811         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64812         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64813         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64814         test-md5.c, test-memmem.c, test-printf-posix.c,
64815         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64816         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64817         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64818         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64819         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64820         test-vasnprintf-posix2.c, test-vasnprintf.c,
64821         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64822         test-vfprintf-posix.c, test-vprintf-posix.c,
64823         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64824         test-xvasprintf.c: Likewise.
64825
64826 2007-05-28  Bruno Haible  <bruno@clisp.org>
64827
64828         * gnulib-tool (func_import): Remember the --with-tests command-line
64829         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64830         Reported by Eric Blake.
64831
64832 2007-05-28  Bruno Haible  <bruno@clisp.org>
64833
64834         * modules/ftell-tests: New file.
64835         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64836         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64837
64838         * lib/ftell.c: New file.
64839         * modules/ftell: New file.
64840         * m4/ftell.m4: New file.
64841         * doc/functions/ftell.texi: Update.
64842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64843         REPLACE_FTELL.
64844         * lib/stdio_.h (rpl_ftell): New declaration.
64845         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64846         REPLACE_FTELL.
64847
64848 2007-05-28  Eric Blake  <ebb9@byu.net>
64849
64850         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64851
64852 2007-05-28  Bruno Haible  <bruno@clisp.org>
64853
64854         * modules/fseek-tests: New file.
64855         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64856         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64857
64858         * lib/fseek.c: New file.
64859         * modules/fseek: New file.
64860         * m4/fseek.m4: New file.
64861         * doc/functions/fseek.texi: Update.
64862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64863         REPLACE_FSEEK.
64864         * lib/stdio_.h (rpl_fseek): New declaration.
64865         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64866         REPLACE_FSEEK.
64867
64868 2007-05-28  Bruno Haible  <bruno@clisp.org>
64869
64870         * lib/stdio_.h (fflush): More comments.
64871
64872 2007-05-28  Bruno Haible  <bruno@clisp.org>
64873
64874         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64875         runtime test.
64876
64877 2007-05-28  Eric Blake  <ebb9@byu.net>
64878
64879         Improve lseek module.
64880         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64881         * lib/unistd_.h (lseek): Scale back link warning message.
64882         * tests/test-lseek.c: Beef up test.
64883         * tests/test-lseek.sh: Exercise more facets of lseek.
64884         Reported by Bruno Haible.
64885
64886 2007-05-28  Bruno Haible  <bruno@clisp.org>
64887
64888         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64889         to define.
64890
64891 2007-05-27  Bruno Haible  <bruno@clisp.org>
64892
64893         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64894
64895 2007-05-27  Bruno Haible  <bruno@clisp.org>
64896
64897         * modules/openmp: New file.
64898         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64899         Noah Misch.
64900
64901 2007-05-26  Bruno Haible  <bruno@clisp.org>
64902
64903         * modules/chdir-long (Depends-on): Add fchdir.
64904         * modules/chdir-safer (Depends-on): Likewise.
64905         * modules/fts (Depends-on): Likewise.
64906         * modules/fts-lgpl (Depends-on): Likewise.
64907         * modules/openat (Depends-on): Likewise.
64908         * modules/savewd (Depends-on): Likewise.
64909
64910 2007-05-24  Eric Blake  <ebb9@byu.net>
64911
64912         Fix lseek on mingw.
64913         * modules/lseek: New module.
64914         * m4/lseek.m4: New file.
64915         * lib/lseek.c: New file.
64916         * modules/lseek-tests: New file.
64917         * tests/test-lseek.c: New file.
64918         * tests/test-lseek.sh: New file.
64919         * MODULES.html.sh: Document lseek module.
64920         * modules/fflush (Depends-on): Add lseek, fseeko.
64921         * modules/fseeko (Depends-on): Likewise.
64922         * modules/ftello (Depends-on): Likewise.
64923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64924         broken.
64925         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64926         broken.
64927         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64928         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64929         * lib/ftello.c (rpl_ftello): Likewise.
64930         * tests/test-fseeko.c (main): Test this.
64931         * tests/test-fseeko.sh: Likewise.
64932         * tests/test-ftello.c (main): Likewise.
64933         * tests/test-ftello.sh: Likewise.
64934         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64935         implies replacing fseek.
64936         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64937         HAVE_FTELLO.
64938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64939         * modules/unistd (Makefile.am): Likewise.
64940         * lib/unistd_.h (lseek): Declare a replacement.
64941         * doc/functions/lseek.texi (lseek): Document this fix.
64942         * doc/functions/fseek.texi (fseek): Likewise.
64943         * doc/functions/ftell.texi (ftell): Likewise.
64944
64945 2007-05-24  Bruno Haible  <bruno@clisp.org>
64946
64947         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64948         in the printed representation of a NaN.
64949         * tests/test-vasprintf-posix.c (test_function): Likewise.
64950         * tests/test-snprintf-posix.h (test_function): Likewise.
64951         * tests/test-sprintf-posix.h (test_function): Likewise.
64952         Reported by Eric Blake.
64953
64954 2007-05-23  Eric Blake  <ebb9@byu.net>
64955
64956         Fix fseeko/ftello on cygwin 1.5.24.
64957         * doc/functions/fseeko.texi (fseeko): Document the fix.
64958         * doc/functions/ftello.texi (ftello): Document the fix.
64959         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64960         * doc/functions/stdout.text (stdout): New file.
64961         * doc/functions/stderr.text (stderr): New file.
64962         * doc/gnulib.texi (Function Substitutes): Use new files.
64963         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64964         prior to 1.7.0.
64965         * tests/test-ftello.c (main): Likewise for ftello.
64966         * tests/test-fseeko.sh: New file.
64967         * tests/test-ftello.sh: New file.
64968         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64969         with seekable stdin.
64970         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64972         (gl_REPLACE_FSEEKO): New macro.
64973         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64974         * modules/fseeko (Files): Distribute fseeko.c.
64975         * modules/ftello (Files): Distribute ftello.c.
64976         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64977         mode.
64978         * lib/ftello.c (rpl_ftello): New file.
64979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64980         fseeko, ftello.
64981         (gl_STDIN_LARGE_OFFSET): New macro.
64982         * modules/stdio (Makefile.am): Perform the replacement.
64983         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64984
64985 2007-05-23  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64988         GNULIB_POSIXCHECK is defined.
64989
64990 2007-05-21  Bruno Haible  <bruno@clisp.org>
64991
64992         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64993         Check also the output for NaN arguments. When cross-compiling, guess
64994         no on IRIX.
64995         * lib/vasnprintf.c: Update comments.
64996         * tests/test-vasnprintf-posix.c (strisnan): New function.
64997         (test_function): Use it.
64998         * tests/test-vasprintf-posix.c (strisnan): New function.
64999         (test_function): Use it.
65000         * tests/test-snprintf-posix.h (strisnan): New function.
65001         (test_function): Use it.
65002         * tests/test-sprintf-posix.h (strisnan): New function.
65003         (test_function): Use it.
65004         Reported by Eric Blake.
65005
65006 2007-05-20  Bruno Haible  <bruno@clisp.org>
65007
65008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65009         numbers that fails on BeOS.
65010         * doc/functions/frexpl.texi: Update.
65011
65012 2007-05-20  Jim Meyering  <jim@meyering.net>
65013
65014         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65015         forced upon us by glibc-2.6.
65016
65017 2007-05-20  Bruno Haible  <bruno@clisp.org>
65018
65019         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65020         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65021         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65022         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65023         NEED_PRINTF_INFINITE.
65024         (is_infinitel): New function.
65025         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65027         gl_PREREQ_VASNPRINTF_INFINITE.
65028         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65030         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65031         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65032         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65033         gl_PREREQ_VASNPRINTF_INFINITE.
65034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65041         * doc/functions/fprintf.texi: Update.
65042         * doc/functions/printf.texi: Update.
65043         * doc/functions/snprintf.texi: Update.
65044         * doc/functions/sprintf.texi: Update.
65045         * doc/functions/vfprintf.texi: Update.
65046         * doc/functions/vprintf.texi: Update.
65047         * doc/functions/vsnprintf.texi: Update.
65048         * doc/functions/vsprintf.texi: Update.
65049
65050 2007-05-20  Bruno Haible  <bruno@clisp.org>
65051
65052         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65053         was not found in libc.
65054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65055
65056 2007-05-20  Bruno Haible  <bruno@clisp.org>
65057
65058         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65059         printed as "-nan" instead of "nan".
65060         * tests/test-vasprintf-posix.c (test_function): Likewise.
65061         * tests/test-snprintf-posix.h (test_function): Likewise.
65062         * tests/test-sprintf-posix.h (test_function): Likewise.
65063         Needed for HP-UX 11.
65064
65065 2007-05-20  Jim Meyering  <jim@meyering.net>
65066
65067         Fix buggy test for the fchownat-deref bug.
65068         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65069         symlink required for the run-test.  Without it, this test would
65070         always declare that fchownat doesn't work, and client code would
65071         unnecessarily use the replacement function with fixed libc.
65072         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65073         Reported by Greg Schafer.
65074
65075 2007-05-19  Bruno Haible  <bruno@clisp.org>
65076
65077         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65078         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65079         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65080         Needed for IRIX 6.5 and Solaris 2.5.1.
65081
65082 2007-05-19  Bruno Haible  <bruno@clisp.org>
65083
65084         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65085         (test_function): Skip tests involving -0.0 on platforms where
65086         -0.0 = 0.0.
65087         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65088         (test_function): Skip tests involving -0.0 on platforms where
65089         -0.0 = 0.0.
65090         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65091         (test_function): Skip tests involving -0.0 on platforms where
65092         -0.0 = 0.0.
65093         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65094         (test_function): Skip tests involving -0.0 on platforms where
65095         -0.0 = 0.0.
65096         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65097         tests.
65098         * tests/test-printf-posix.h (test_function): Likewise.
65099         * tests/test-printf-posix.output: Remove all -0.0 related results.
65100         Needed for IRIX 6.5.
65101
65102 2007-05-19  Bruno Haible  <bruno@clisp.org>
65103
65104         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65105         printed as "nan0x7fffffff" instead of "nan".
65106         * tests/test-vasprintf-posix.c (test_function): Likewise.
65107         * tests/test-snprintf-posix.h (test_function): Likewise.
65108         * tests/test-sprintf-posix.h (test_function): Likewise.
65109         * tests/test-fprintf-posix.h (NaN): Remove macro.
65110         (test_function): Remove all NaN related tests.
65111         * tests/test-printf-posix.h (NaN): Remove macro.
65112         (test_function): Remove all NaN related tests.
65113         * tests/test-printf-posix.output: Remove all NaN related results.
65114         Needed for IRIX 6.5.
65115
65116 2007-05-19  Bruno Haible  <bruno@clisp.org>
65117
65118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65120
65121 2007-05-19  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/float_.h: New file.
65124         * m4/float_h.m4: New file.
65125         * modules/float: New file.
65126         * modules/isnanl (Dependencies): Add float.
65127         * modules/isnanl-nolibm (Dependencies): Likewise.
65128         * modules/mathl (Dependencies): Likewise.
65129         * modules/printf-frexpl (Dependencies): Likewise.
65130         * modules/signbit (Dependencies): Likewise.
65131         * modules/vasnprintf (Dependencies): Likewise.
65132         * doc/headers/float.texi: Update.
65133
65134 2007-05-19  Jim Meyering  <jim@meyering.net>
65135
65136         * lib/utimens.c (gl_futimens): Rename from futimens,
65137         now that glibc-2.6 declares futimens.
65138         * lib/utimens.h: Likewise.
65139
65140 2007-05-19  Bruno Haible  <bruno@clisp.org>
65141
65142         Avoid test failures on mingw.
65143         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65144         * tests/test-printf-posix.sh: Likewise.
65145         * tests/test-vfprintf-posix.sh: Likewise.
65146         * tests/test-vprintf-posix.sh: Likewise.
65147
65148 2007-05-19  Bruno Haible  <bruno@clisp.org>
65149
65150         Fix *printf result for NaN, Inf, -0.0 on mingw.
65151         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65152         * lib/vasnprintf.c: Include math.h and isnan.h.
65153         (is_infinite_or_zero): New function.
65154         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65155         values in the %f, %F, %e, %E, %g, %G directives.
65156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65158         gl_PRINTF_INFINITE and test its result. Invoke
65159         gl_PREREQ_VASNPRINTF_INFINITE.
65160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65167         * doc/functions/fprintf.texi: Update.
65168         * doc/functions/printf.texi: Update.
65169         * doc/functions/snprintf.texi: Update.
65170         * doc/functions/sprintf.texi: Update.
65171         * doc/functions/vfprintf.texi: Update.
65172         * doc/functions/vprintf.texi: Update.
65173         * doc/functions/vsnprintf.texi: Update.
65174         * doc/functions/vsprintf.texi: Update.
65175
65176 2007-05-19  Bruno Haible  <bruno@clisp.org>
65177
65178         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65179         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65180         Instead of multiplying with 10^k, set extra_zeroes to k.
65181         (scale10_round_long_double): Remove function.
65182
65183 2007-05-18  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65186         introduced on 2007-05-06.
65187
65188 2007-05-18  Bruno Haible  <bruno@clisp.org>
65189
65190         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65191         %g directives.
65192         * tests/test-vasprintf-posix.c (test_function): Likewise.
65193         * tests/test-snprintf-posix.h (test_function): Likewise.
65194         * tests/test-sprintf-posix.h (test_function): Likewise.
65195
65196 2007-05-18  Bruno Haible  <bruno@clisp.org>
65197
65198         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65199         (strmatch): New function.
65200         (test_function): Test the %f directive on numbers of various exponents.
65201         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65202         (strmatch): New function.
65203         (test_function): Test the %f directive on numbers of various exponents.
65204         * tests/test-snprintf-posix.h (strmatch): New function.
65205         (test_function): Test the %f directive on numbers of various exponents.
65206         * tests/test-sprintf-posix.h (strmatch): New function.
65207         (test_function): Test the %f directive on numbers of various exponents.
65208         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65209         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65210         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65211         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65212
65213 2007-05-18  Bruno Haible  <bruno@clisp.org>
65214
65215         Add support for 'long double' number output.
65216         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65217         * lib/vasnprintf.c: Include math.h and float+.h.
65218         (mp_limb_t): New type.
65219         (GMP_LIMB_BITS): New macro.
65220         (mp_twolimb_t): New type.
65221         (GMP_TWOLIMB_BITS): New macro.
65222         (mpn_t): New type.
65223         (multiply, divide, convert_to_decimal, decode_long_double,
65224         scale10_round_long_double, scale10_round_decimal_long_double,
65225         floorlog10l): New functions.
65226         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65227         for the %f, %F, %e, %E, %g, %G directives.
65228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65230         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65231         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65239         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65240         * modules/snprintf-posix (Depends-on): Likewise.
65241         * modules/sprintf-posix (Depends-on): Likewise.
65242         * modules/vasnprintf-posix (Depends-on): Likewise.
65243         * modules/vasprintf-posix (Depends-on): Likewise.
65244         * modules/vfprintf-posix (Depends-on): Likewise.
65245         * modules/vsnprintf-posix (Depends-on): Likewise.
65246         * modules/vsprintf-posix (Depends-on): Likewise.
65247         * modules/vasnprintf (Files): Add lib/float+.h.
65248         * doc/functions/fprintf.texi: Update.
65249         * doc/functions/printf.texi: Update.
65250         * doc/functions/snprintf.texi: Update.
65251         * doc/functions/sprintf.texi: Update.
65252         * doc/functions/vfprintf.texi: Update.
65253         * doc/functions/vprintf.texi: Update.
65254         * doc/functions/vsnprintf.texi: Update.
65255         * doc/functions/vsprintf.texi: Update.
65256
65257 2007-05-18  Bruno Haible  <bruno@clisp.org>
65258
65259         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65260
65261 2007-05-18  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65264         for printing 64-bit integers. Needed for mingw.
65265
65266 2007-05-18  Bruno Haible  <bruno@clisp.org>
65267
65268         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65269         gl_FUNC_FREXPL_WORKS.
65270         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65271
65272 2007-05-18  Bruno Haible  <bruno@clisp.org>
65273
65274         * modules/frexpl-nolibm-tests: New file.
65275
65276         * modules/frexpl-nolibm: New file.
65277         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65278
65279 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65282         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65283         GCC 4.2, which otherwise issues a lot of warnings.
65284         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65285         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65286         Likewise.
65287         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65288         * modules/iconv_open (iconv.h): Likewise.
65289         * modules/locale (locale.h): Likewise.
65290         * modules/netinet_in (netinet/in.h): Likewise.
65291         * modules/sys_select (sys_select.h): Likewise.
65292         * modules/sys_socket (sys/socket.h): Likewise.
65293         * modules/sys_stat (sys/stat.h): Likewise.
65294         * modules/sysexits (sysexits.h): Likewise.
65295         * modules/unistd (unistd.h): Likewise.
65296
65297 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65298
65299         * modules/closein-tests (Makefile.am): Distribute
65300         `test-closein.sh'.
65301
65302 2007-05-17  Bruno Haible  <bruno@clisp.org>
65303
65304         * tests/test-printf-posix.output: Renamed from
65305         tests/test-fprintf-posix.out.
65306         * modules/fprintf-posix-tests: Update.
65307         * modules/printf-posix-tests: Update.
65308         * modules/vfprintf-posix-tests: Update.
65309         * modules/vprintf-posix-tests: Update.
65310         * tests/test-fprintf-posix.sh: Update.
65311         * tests/test-printf-posix.sh: Update.
65312         * tests/test-vfprintf-posix.sh: Update.
65313         * tests/test-vprintf-posix.sh: Update.
65314         Reported by Ralf Wildenhues.
65315
65316 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65319         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65320         GCC 4.2, which otherwise issues a lot of warnings.
65321         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65322         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65323         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65324         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65325         it should no longer be needed.
65326         * lib/string_.h: Likewise.
65327         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65328         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65329         * modules/inttypes (inttypes.h): Likewise.
65330         * modules/math (math.h): Likewise.
65331         * modules/search (search.h): Likewise.
65332         * modules/signal (signal.h): Likewise.
65333         * modules/stdint (stdint.h): Likewise.
65334         * modules/stdio (stdio.h): Likewise.
65335         * modules/stdlib (stdlib.h): Likewise.
65336         * modules/string (string.h): Likewise.
65337         * modules/sys_time (sys/time.h): Likewise.
65338         * modules/time (time.h): Likewise.
65339         * modules/wchar (wchar.h): Likewise.
65340         * modules/wctype (wtype.h): Likewise.
65341
65342 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65343
65344         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65345
65346 2007-05-13  Bruno Haible  <bruno@clisp.org>
65347
65348         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65349         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65350         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65351         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65352         (gl_PREREQ_STRTOK_R): Don't require it here.
65353
65354 2007-05-13  Bruno Haible  <bruno@clisp.org>
65355
65356         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65357         when used in C++ mode.
65358
65359 2007-05-12  Bruno Haible  <bruno@clisp.org>
65360
65361         * lib/linebuffer.h: Tweak doc.
65362         * lib/linebuffer.c: Likewise.
65363
65364 2007-05-12  James Youngman  <jay@gnu.org>
65365
65366         * lib/linebuffer.c (readlinebuffer_delim): New function,
65367         like readlinebuffer, but use a caller-specified delimiter.
65368         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65369         as the delimiter.
65370         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65371
65372 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65373
65374         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65375         * modules/openat (Files): Remove openat-die.c.
65376         (Depends-on): Add openat-die.
65377         * modules/openat-die: New module.
65378
65379 2007-05-06  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65382         Update with info about Cygwin.
65383         * doc/functions/fprintf.texi: Update.
65384         * doc/functions/printf.texi: Update.
65385         * doc/functions/snprintf.texi: Update.
65386         * doc/functions/sprintf.texi: Update.
65387         * doc/functions/vfprintf.texi: Update.
65388         * doc/functions/vprintf.texi: Update.
65389         * doc/functions/vsnprintf.texi: Update.
65390         * doc/functions/vsprintf.texi: Update.
65391         Reported by Eric Blake.
65392
65393 2007-05-06  Bruno Haible  <bruno@clisp.org>
65394
65395         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65396         padding ourselves for the floating-point directives.
65397         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65400         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65401         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65409         * tests/test-snprintf-posix.h (test_function): Also check the width
65410         and some flags in the %f directive.
65411         * tests/test-sprintf-posix.h (test_function): Likewise.
65412         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65413         * tests/test-vasprintf-posix.c (test_function): Likewise.
65414         * doc/functions/fprintf.texi: Update.
65415         * doc/functions/printf.texi: Update.
65416         * doc/functions/snprintf.texi: Update.
65417         * doc/functions/sprintf.texi: Update.
65418         * doc/functions/vfprintf.texi: Update.
65419         * doc/functions/vprintf.texi: Update.
65420         * doc/functions/vsnprintf.texi: Update.
65421         * doc/functions/vsprintf.texi: Update.
65422
65423 2007-05-06  Bruno Haible  <bruno@clisp.org>
65424
65425         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65426         pass the ' flag character to sprintf or snprintf.
65427         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65430         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65431         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65439         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65440         flag.
65441         * tests/test-sprintf-posix.h (test_function): Likewise.
65442         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65443         * tests/test-vasprintf-posix.c (test_function): Likewise.
65444         * doc/functions/fprintf.texi: Update.
65445         * doc/functions/printf.texi: Update.
65446         * doc/functions/snprintf.texi: Update.
65447         * doc/functions/sprintf.texi: Update.
65448         * doc/functions/vfprintf.texi: Update.
65449         * doc/functions/vprintf.texi: Update.
65450         * doc/functions/vsnprintf.texi: Update.
65451         * doc/functions/vsprintf.texi: Update.
65452
65453 2007-05-01  Bruno Haible  <bruno@clisp.org>
65454
65455         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65456
65457 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65458
65459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65460         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65461
65462 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65465         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65467
65468 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65469
65470         * lib/argp-help.c (struct hol_entry): New member `ord'.
65471         (HOL_ENTRY_PTRCMP): Use ord for comparison
65472         (hol_sort): Initialize ord.
65473
65474 2007-05-01  Bruno Haible  <bruno@clisp.org>
65475
65476         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65477         Reported by Eric Blake.
65478         * doc/gnulib.texi (Function Substitutes): Update.
65479
65480 2007-05-01  Bruno Haible  <bruno@clisp.org>
65481
65482         * doc/functions.texi: Remove file, now redundant through
65483         doc/functions/*.texi.
65484
65485 2007-05-01  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/argp (Depends-on): Add sleep.
65488
65489 2007-05-01  Bruno Haible  <bruno@clisp.org>
65490
65491         * modules/sleep-tests: New file.
65492         * tests/test-sleep.c: New file.
65493
65494         * modules/sleep: New file.
65495         * lib/sleep.c: New file.
65496         * m4/sleep.m4: New file.
65497         * lib/unistd_.h (sleep): New declaration.
65498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65499         HAVE_SLEEP.
65500         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65501         * doc/functions/sleep.texi: Document the sleep module.
65502
65503 2007-05-01  Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/sigprocmask.h: Remove file.
65506         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65507         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65508         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65509         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65510         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65511         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65512         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65513         HAVE_SIGSET_T as a shell variable.
65514         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65515         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65516         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65517         (Depends-on): Add signal. Remove verify.
65518         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65519         (Include): Mention <signal.h> instead of sigprocmask.h.
65520         * NEWS: Mention the change.
65521         * lib/fatal-signal.c: Don't include sigprocmask.h.
65522
65523 2007-05-01  Bruno Haible  <bruno@clisp.org>
65524
65525         * modules/signal: New file.
65526         * lib/signal_.h: New file.
65527         * m4/signal_h.m4: New file.
65528
65529 2007-05-01  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65532         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65533         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65534         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65535
65536 2007-05-01  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65539         configure time.
65540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65541         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65542         * modules/sys_stat (Makefile.am): Substitute their values into
65543         sys/stat.h.
65544
65545 2007-05-01  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65548         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65549         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65550
65551 2007-05-01  Bruno Haible  <bruno@clisp.org>
65552
65553         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65554         'assert' module here.
65555
65556 2007-05-01  Bruno Haible  <bruno@clisp.org>
65557
65558         * doc/functions/*.texi: New files.
65559         * doc/functions/google-ranking.txt: New file.
65560         * doc/gnulib.texi (Function Substitutes): New chapter.
65561         (ctime, inet_ntoa): Remove sections.
65562         * doc/ctime.texi: Remove file.
65563         * doc/inet_ntoa.texi: Remove file.
65564         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65565         dependencies.
65566         (%.info): New rule, specifying a --reference-limit.
65567
65568 2007-05-01  Bruno Haible  <bruno@clisp.org>
65569
65570         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65571
65572 2007-05-01  Bruno Haible  <bruno@clisp.org>
65573
65574         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65575         the portability of 'mkdir' to mingw systems.
65576
65577 2007-05-01  Bruno Haible  <bruno@clisp.org>
65578
65579         * doc/headers/google-ranking.txt: New file.
65580
65581 2007-04-30  Eric Blake  <ebb9@byu.net>
65582
65583         Prefer fseeko to fseek.
65584         * modules/getpass (Depends-on): Add fseeko.
65585         * lib/getpass.c (getpass): Use fseeko, not fseek.
65586
65587 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65588
65589         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65590         assumes the sorting is stable, while most qsort implementations
65591         are not.  Use argument addresses to ensure they never compare as
65592         equal.
65593
65594         * tests/test-argp-2.sh (usage-indent test): Fix output
65595         (func_compare): Restore diff options
65596         * tests/test-argp.c: Restore #include "progname.h"
65597
65598 2007-04-29  Bruno Haible  <bruno@clisp.org>
65599
65600         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65601         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65602         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65604         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65605         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65606         (TESTS, check_PROGRAMS): Add test-snprintf.
65607         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65608         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65609         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65610         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65611         assertions that fail on HP-UX, OSF/1, or IRIX.
65612         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65613
65614 2007-04-29  Bruno Haible  <bruno@clisp.org>
65615
65616         * MODULES.html.sh (posix_functions): Remove 'contents'.
65617
65618 2007-04-29  Karl Berry  <karl@gnu.org>
65619
65620         * config/srclist.txt (gendocs_template_min): new entry.
65621
65622 2007-04-29  Bruno Haible  <bruno@clisp.org>
65623
65624         Work around fpurge bug on BSD systems.
65625         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65627         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65628         fpurge to rpl_fpurge if the system already has this function.
65629         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65630         the case where the system already has this function. Correct invariants
65631         on BSD systems.
65632         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65633         BSD systems.
65634
65635 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65636
65637         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65638         proposed by Sven Verdoolaege.
65639
65640         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65641         options.
65642         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65643         (usage and help tests): Update
65644
65645 2007-04-29  Bruno Haible  <bruno@clisp.org>
65646
65647         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65648         Print more information in case of failure. Disable a test on BeOS.
65649
65650 2007-04-29  Bruno Haible  <bruno@clisp.org>
65651
65652         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65653         This helps debugging on systems on which no gdb is available.
65654
65655 2007-04-29  Bruno Haible  <bruno@clisp.org>
65656
65657         * lib/freading.h: Improve comments.
65658         * lib/fwriting.h: Likewise.
65659         * tests/test-freading.c (main): Don't check freading immediately after
65660         repositioning. Needed for glibc.
65661
65662 2007-04-29  Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/freading.c (freading): Trivial simplification.
65665
65666 2007-04-28  Bruno Haible  <bruno@clisp.org>
65667
65668         * tests/test-fwriting.c (main): Also test the interaction between
65669         fflush and fwriting.
65670         * modules/fwriting-tests (Depends-on): Add fflush.
65671
65672         * tests/test-freading.c (main): Also test the interaction between
65673         fflush and freading.
65674         * modules/freading-tests (Depends-on): Add fflush.
65675
65676 2007-04-28  Bruno Haible  <bruno@clisp.org>
65677
65678         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65679         fseeko and ftello.
65680         Suggested by Eric Blake.
65681
65682 2007-04-28  Jim Meyering  <jim@meyering.net>
65683
65684         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65685         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65686         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65687
65688 2007-04-27  Eric Blake  <ebb9@byu.net>
65689
65690         * doc/headers/assert.texi (assert.h): Document assert module use.
65691
65692 2007-04-27  Bruno Haible  <bruno@clisp.org>
65693
65694         * doc/headers/*.texi: New files.
65695         * doc/gnulib.texi (Header File Substitutes): New chapter.
65696         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65697         dependencies.
65698         (standards.info ,standards.html, standards.dvi): Update dependencies.
65699         (mostlyclean, clean): New targets.
65700
65701 2007-04-27  Bruno Haible  <bruno@clisp.org>
65702
65703         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65704         * modules/sysexits (Files, Makefile.am): Update.
65705
65706         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65707         * modules/sys_socket (Files, Makefile.am): Update.
65708
65709         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65710         * modules/sys_stat (Files, Makefile.am): Update.
65711
65712 2007-04-27  Eric Blake  <ebb9@byu.net>
65713
65714         * lib/freading.h: Improve comments.
65715         * lib/fwriting.h: Likewise.
65716         * lib/fflush.c: Likewise.
65717
65718         Fix closein for mingw.
65719         * modules/closein-tests: Add tests for closein.
65720         * tests/test-closein.c: New file.
65721         * tests/test-closein.sh: Likewise.
65722         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65723         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65724
65725 2007-04-27  Bruno Haible  <bruno@clisp.org>
65726
65727         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65728         version is < 6.
65729         * lib/math_.h [__DECC]: Likewise.
65730         * lib/stdio_.h [__DECC]: Likewise.
65731         * lib/stdlib_.h [__DECC]: Likewise.
65732         * lib/string_.h [__DECC]: Likewise.
65733         * lib/time_.h [__DECC]: Likewise.
65734         * lib/wchar_.h [__DECC]: Likewise.
65735         * lib/wctype_.h [__DECC]: Likewise.
65736
65737 2007-04-27  Bruno Haible  <bruno@clisp.org>
65738
65739         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65740
65741 2007-04-27  Bruno Haible  <bruno@clisp.org>
65742
65743         * lib/fflush.c: Add comments.
65744         * modules/fpurge-tests (Depends-on): Add fflush.
65745         * modules/freadable-tests (Depends-on): Likewise.
65746         * modules/fwritable-tests (Depends-on): Likewise.
65747
65748 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65749
65750         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65751         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65752         Report by Bruno Haible <bruno@clisp.org>.
65753
65754 2007-04-26  Eric Blake  <ebb9@byu.net>
65755
65756         Fix fflush on mingw.
65757         * modules/fflush (Depends-on): Add freading.
65758         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65759         but unread data.
65760
65761 2007-04-26  Eric Blake  <ebb9@byu.net>
65762         and Bruno Haible  <bruno@clisp.org>
65763
65764         Implement freading and fwriting.
65765         * lib/freading.c: New file.
65766         * lib/freading.h: Likewise.
65767         * m4/freading.m4: Likewise.
65768         * modules/freading: Likewise.
65769         * modules/freading-tests: Likewise.
65770         * tests/test-freading.c: Likewise.
65771         * lib/fwriting.c: New file.
65772         * lib/fwriting.h: Likewise.
65773         * m4/fwriting.m4: Likewise.
65774         * modules/fwriting: Likewise.
65775         * modules/fwriting-tests: Likewise.
65776         * tests/test-fwriting.c: Likewise.
65777         * MODULES.html.sh (File stream based Input/Output): Mention them.
65778
65779 2007-04-26  Bruno Haible  <bruno@clisp.org>
65780
65781         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65782         'long' when we assume it.
65783         Suggested by Eric Blake.
65784
65785 2007-04-26  Bruno Haible  <bruno@clisp.org>
65786
65787         Ensure fseeko, ftello are declared on glibc systems.
65788         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65789         * modules/fseeko (configure.ac-early): Likewise.
65790         * modules/ftello (configure.ac-early): Likewise.
65791         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65792         AC_FUNC_FSEEKO for this.
65793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65794         (gl_CHECK_FSEEKO): Remove macro.
65795
65796 2007-04-26  Bruno Haible  <bruno@clisp.org>
65797
65798         * tests/test-fflush.c (main): Also check the ftell result after
65799         fflush and fseek/fseeko.
65800         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65801         file descriptor position cache in the stream.
65802         * lib/fseeko.c (rpl_fseeko): Likewise.
65803
65804 2007-04-26  Bruno Haible  <bruno@clisp.org>
65805
65806         * modules/fflush-tests (Depends-on): Add fseeko.
65807
65808 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65809             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65810
65811         * lib/argz_.h: ensure error_t definition is obtained in same
65812         mechanism system argz.h would have.
65813         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65814         argz facilities are known bad.  Err on the side of caution if
65815         cross-compiling.
65816
65817 2007-04-25  Eric Blake  <ebb9@byu.net>
65818
65819         * lib/fpurge.c (includes): Use stdlib.h for free.
65820         * tests/test-fflush.c (main): Also test fflush-fseeko.
65821
65822 2007-04-25  Bruno Haible  <bruno@clisp.org>
65823
65824         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65825         * lib/fseeko.c: New file.
65826         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65827         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65828         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65829         gl_FUNC_FSEEKO.
65830         (gl_FUNC_FSEEKO): Invoke it.
65831         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65832         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65833         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65834
65835 2007-04-25  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/fflush (Depends-on): Add ftello.
65838
65839 2007-04-25  Bruno Haible  <bruno@clisp.org>
65840
65841         * modules/ftello-tests: New file.
65842         * tests/test-ftello.c: New file.
65843
65844         * modules/ftello: New file.
65845         * m4/ftello.m4: New file.
65846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65847         HAVE_FTELLO.
65848         * lib/stdio_.h (ftello): New declaration.
65849         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65850         HAVE_FTELLO.
65851
65852 2007-04-25  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/fseeko-tests: New file.
65855         * tests/test-fseeko.c: New file.
65856
65857         * modules/fseeko: New file.
65858         * m4/fseeko.m4: New file.
65859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65860         HAVE_FSEEKO.
65861         * lib/stdio_.h (fseeko): New declaration.
65862         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65863         HAVE_FSEEKO.
65864
65865 2007-04-25  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65868
65869 2007-04-25  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65872         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65873         * tests/test-unistd.c: Likewise.
65874         * tests/test-fcntl.c: Likewise.
65875
65876 2007-04-23  Eric Blake  <ebb9@byu.net>
65877
65878         * lib/fflush.c: Fix missing include.
65879         Reported by Bruno Haible.
65880
65881 2007-04-23  Bruno Haible  <bruno@clisp.org>
65882
65883         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65884         Reported by Eric Blake.
65885
65886 2007-04-23  Bruno Haible  <bruno@clisp.org>
65887
65888         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65889
65890 2007-04-23  Bruno Haible  <bruno@clisp.org>
65891
65892         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65893
65894 2007-04-23  Bruno Haible  <bruno@clisp.org>
65895
65896         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65897         Needed on HP-UX 11.
65898
65899 2007-04-16  Eric Blake  <ebb9@byu.net>
65900
65901         Make fflush rely on fpurge.
65902         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65903         open coding all variants.
65904         * modules/fflush (Depends-on): Add fpurge and unistd.
65905         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65907
65908         Fix --with-tests compilation on cygwin.
65909         * modules/argmatch-tests (Makefile.am): List gnulib library first
65910         in LDADD.
65911         * modules/argp-tests (Makefile.am): Likewise.
65912         * modules/array-list-tests (Makefile.am): Likewise.
65913         * modules/array-oset-tests (Makefile.am): Likewise.
65914         * modules/avltree-list-tests (Makefile.am): Likewise.
65915         * modules/avltree-oset-tests (Makefile.am): Likewise.
65916         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65917         * modules/carray-list-tests (Makefile.am): Likewise.
65918         * modules/dirname-tests (Makefile.am): Likewise.
65919         * modules/frexp-tests (Makefile.am): Likewise.
65920         * modules/isnanl-tests (Makefile.am): Likewise.
65921         * modules/linked-list-tests (Makefile.am): Likewise.
65922         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65923         * modules/lock-tests (Makefile.am): Likewise.
65924         * modules/rbtree-list-tests (Makefile.am): Likewise.
65925         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65926         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65927         * modules/tls-tests (Makefile.am): Likewise.
65928         * modules/tsearch-tests (Makefile.am): Likewise.
65929         * modules/xvasprintf-tests (Makefile.am): Likewise.
65930
65931         Fix fpurge for cygwin.
65932         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65933         value.
65934         * modules/fpurge-tests (Depends-on): Clean up trash.
65935
65936 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65937
65938         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65939
65940         * m4/autobuild.m4: Re-indent.
65941
65942 2007-04-13  Bruno Haible  <bruno@clisp.org>
65943
65944         * modules/fpurge-tests: New file.
65945         * tests/test-fpurge.c: New file.
65946
65947         * modules/fpurge: New file.
65948         * lib/fpurge.h: New file.
65949         * lib/fpurge.c: New file.
65950         * m4/fpurge.m4: New file.
65951
65952 2007-04-13  Bruno Haible  <bruno@clisp.org>
65953
65954         * modules/fbufmode-tests: New file.
65955         * tests/test-fbufmode.c: New file.
65956
65957         * modules/fbufmode: New file.
65958         * lib/fbufmode.h: New file.
65959         * lib/fbufmode.c: New file.
65960         * m4/fbufmode.m4: New file.
65961
65962 2007-04-13  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/fwritable-tests: New file.
65965         * tests/test-fwritable.c: New file.
65966
65967         * modules/fwritable: New file.
65968         * lib/fwritable.h: New file.
65969         * lib/fwritable.c: New file.
65970         * m4/fwritable.m4: New file.
65971
65972 2007-04-13  Bruno Haible  <bruno@clisp.org>
65973
65974         * modules/freadable-tests: New file.
65975         * tests/test-freadable.c: New file.
65976
65977         * modules/freadable: New file.
65978         * lib/freadable.h: New file.
65979         * lib/freadable.c: New file.
65980         * m4/freadable.m4: New file.
65981
65982 2007-04-13  Bruno Haible  <bruno@clisp.org>
65983
65984         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65985         MOSTLYCLEANFILES.
65986
65987 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65990         gzip bootstrap.conf to avoid dragging in i18n machinery.
65991         (gnulib_tool_option): Use it.
65992
65993 2007-04-13  Bruno Haible  <bruno@clisp.org>
65994
65995         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65996         %F directives.
65997         * tests/test-vasprintf-posix.c (test_function): Likewise.
65998         * tests/test-snprintf-posix.h (test_function): Likewise.
65999         * tests/test-sprintf-posix.h (test_function): Likewise.
66000         * tests/test-fprintf-posix.h (test_function): Likewise.
66001         * tests/test-printf-posix.h (test_function): Likewise.
66002         * tests/test-fprintf-posix.out: Likewise.
66003
66004 2007-04-13  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66007         * modules/tls-tests (configure.ac): Likewise.
66008         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66009
66010 2007-04-13  Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/tls.c (glthread_tls_get): Fix return type.
66013         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66014
66015 2007-04-12  Eric Blake  <ebb9@byu.net>
66016
66017         * modules/gettime (Depends-on): Remove gettime.
66018         Reported by Dmitry V. Levin.
66019
66020 2007-04-12  Bruno Haible  <bruno@clisp.org>
66021
66022         * modules/fflush (Include): Mention <stdio.h>.
66023         * modules/strtoimax (Include): Mention <inttypes.h>.
66024         * modules/strtoumax (Include): Likewise.
66025
66026 2007-04-12  Eric Blake  <ebb9@byu.net>
66027
66028         * .cvsignore: New file.
66029         * .gitignore: Likewise.
66030
66031 2007-04-12  Bruno Haible  <bruno@clisp.org>
66032
66033         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66034         not before, since $(LDADD) often contains libgnu.a.
66035         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66036         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66037         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66038         Needed on Cygwin.
66039
66040 2007-04-12  Eric Blake  <ebb9@byu.net>
66041
66042         Work around glibc's failure to flush stdin on fclose.
66043         * lib/closein.c (close_stdin): Flush stdin before closing.
66044
66045         Work around glibc's failure to reset seekable stdin on exit.
66046         * modules/closein: New module.
66047         * lib/closein.c: New file.
66048         * lib/closein.h: Likewise.
66049         * m4/closein.m4: Likewise.
66050         * MODULES.html.sh (File stream based Input/Output): Document it.
66051
66052 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66053
66054         * gnulib-tool: Rename generated 'autobuild' script to
66055         'do-autobuild' in --create-megatestdir output.
66056
66057         * doc/gnulib.texi (Build robot for gnulib): Fix.
66058
66059 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66060
66061         * modules/sysexits (Depends-on): Add absolute-header.
66062
66063 2007-04-12  Eric Blake  <ebb9@byu.net>
66064
66065         No need to preserve errno on success.
66066         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66067         Reported by Bruno Haible.
66068
66069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66070
66071         * MODULES.html.sh (Support for maintaining and releasing
66072         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66073
66074 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66075
66076         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66077
66078 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66079
66080         * modules/autobuild: New module.
66081
66082         * m4/autobuild.m4: New file.
66083
66084 2007-04-11  Bruno Haible  <bruno@clisp.org>
66085
66086         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66087         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66090         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66091         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66092         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66094         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66095         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66097         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66098         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66100         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66101         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66103         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66104         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66106         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66107         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66109         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66110         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66112         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66113         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66114         Reported by Eric Blake.
66115
66116 2007-04-11  Bruno Haible  <bruno@clisp.org>
66117
66118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66119
66120 2007-04-10  Bruno Haible  <bruno@clisp.org>
66121
66122         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66123         for NaN and Infinity. Needed on FreeBSD 6.1.
66124         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66125         regarding results for "%010a" of Infinity and NaN.
66126         * tests/test-vasprintf-posix.c (test_function): Likewise.
66127         * tests/test-snprintf-posix.h (test_function): Likewise.
66128         * tests/test-sprintf-posix.h (test_function): Likewise.
66129         * tests/test-fprintf-posix.h (test_function): Likewise.
66130         * tests/test-printf-posix.h (test_function): Likewise.
66131         * tests/test-fprintf-posix.out: Likewise.
66132
66133 2007-04-10  Bruno Haible  <bruno@clisp.org>
66134
66135         * modules/locale-tests: New file.
66136         * tests/test-locale.c: New file.
66137
66138         * modules/locale: New file.
66139         * lib/locale_.h: New file.
66140         * m4/locale_h.m4: New file.
66141
66142 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66143             Bruno Haible  <bruno@clisp.org>
66144
66145         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66146         be determined, test for availability of the copysignf, copysign,
66147         copysignl functions.
66148         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66149         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66150         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66151
66152 2007-04-09  Eric Blake  <ebb9@byu.net>
66153
66154         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66155         * modules/stdio (Makefile.am): Support fflush.
66156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66157         * modules/fflush: New file.
66158         * lib/fflush.c: Likewise.
66159         * m4/fflush.m4: Likewise.
66160         * modules/fflush-tests: New test.
66161         * tests/test-fflush.c: Likewise.
66162         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66163
66164 2007-04-06  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66167         (VASNPRINTF): Use signbit for faster determination whether to print a
66168         minus sign.
66169         * modules/vasnprintf (Files): Remove lib/float+.h.
66170         * modules/fprintf-posix (Depends-on): Add signbit.
66171         * modules/snprintf-posix (Depends-on): Likewise.
66172         * modules/sprintf-posix (Depends-on): Likewise.
66173         * modules/vasnprintf-posix (Depends-on): Likewise.
66174         * modules/vasprintf-posix (Depends-on): Likewise.
66175         * modules/vfprintf-posix (Depends-on): Likewise.
66176         * modules/vsnprintf-posix (Depends-on): Likewise.
66177         * modules/vsprintf-posix (Depends-on): Likewise.
66178
66179 2007-04-06  Bruno Haible  <bruno@clisp.org>
66180
66181         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66182         * tests/test-frexpl.c (main): Likewise.
66183         * tests/test-ldexpl.c (main): Likewise.
66184         * modules/frexp-tests (Depends-on): Add signbit.
66185         * modules/frexpl-tests (Depdends-on): Likewise.
66186         * modules/ldexpl-tests (Depdends-on): Likewise.
66187
66188 2007-04-06  Bruno Haible  <bruno@clisp.org>
66189
66190         * modules/signbit-tests: New file.
66191         * tests/test-signbit.c: New file.
66192
66193         * modules/signbit: New file.
66194         * lib/signbitf.c: New file.
66195         * lib/signbitd.c: New file.
66196         * lib/signbitl.c: New file.
66197         * m4/signbit.m4: New file.
66198         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66199         (signbit): New macro.
66200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66201         REPLACE_SIGNBIT.
66202         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66203         REPLACE_FREXPL into math.h.
66204
66205 2007-04-06  Bruno Haible  <bruno@clisp.org>
66206
66207         * modules/isnanf-nolibm-tests: New file.
66208         * tests/test-isnanf.c: New file.
66209
66210         * modules/isnanf-nolibm: New file.
66211         * lib/isnanf.h: New file.
66212         * lib/isnanf.c: New file.
66213         * lib/isnan.c: Consider the USE_FLOAT macro.
66214         * m4/isnanf.m4: New file.
66215
66216 2007-04-06  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66219         (Link): New section.
66220
66221         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66222
66223 2007-04-06  Bruno Haible  <bruno@clisp.org>
66224
66225         Assume the 'long double' type.
66226         * m4/longdouble.m4: Remove file.
66227         * config/srclist.txt: Don't mention longdouble.m4.
66228         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66229         * lib/float+.h: Likewise.
66230         * lib/frexp.c: Likewise.
66231         * lib/printf-args.h: Likewise.
66232         * lib/printf-args.c: Likewise.
66233         * lib/printf-frexp.c: Likewise.
66234         * lib/printf-parse.c: Likewise.
66235         * lib/vasnprintf.c: Likewise.
66236         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66237         * m4/intl.m4: Likewise.
66238         * m4/isnanl.m4: Likewise.
66239         * m4/printf.m4: Likewise.
66240         * m4/printf-frexpl.m4: Likewise.
66241         * m4/vasnprintf.m4: Likewise.
66242         * modules/allocsa (Files): Remove m4/longdouble.m4.
66243         * modules/gettext (Files): Likewise.
66244         * modules/relocatable-prog-wrapper (Files): Likewise.
66245         * modules/vasnprintf (Files): Likewise.
66246         * modules/isnanl (Files): Likewise.
66247         (Include): Simplify.
66248         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66249         (Include): Simplify.
66250         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66251         (Include): Simplify.
66252         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66253         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66254         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66255         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66256         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66257         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66258         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66259         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66260         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66261         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66262         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66263         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66264         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66265         * tests/test-isnanl.c: Likewise.
66266         * tests/test-snprintf-posix.h: Likewise.
66267         * tests/test-sprintf-posix.h: Likewise.
66268         * tests/test-vasnprintf-posix.c: Likewise.
66269         * tests/test-vasnprintf-posix2.c: Likewise.
66270         * tests/test-vasprintf-posix.c: Likewise.
66271
66272 2007-04-06  Bruno Haible  <bruno@clisp.org>
66273
66274         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66275         * lib/math_.h [__DECC]: Include the overridden include file through
66276         #include_next, outside the double-inclusion guard.
66277         * lib/stdio_.h [__DECC]: Likewise.
66278         * lib/stdlib_.h [__DECC]: Likewise.
66279         * lib/string_.h [__DECC]: Likewise.
66280         * lib/time_.h [__DECC]: Likewise.
66281         * lib/wchar_.h [__DECC]: Likewise.
66282         * lib/wctype_.h [__DECC]: Likewise.
66283         * lib/inttypes_.h [__DECC]: Likewise.
66284         Reported by Albert Chin <china@thewrittenword.com> in
66285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66286
66287 2007-04-04  Eric Blake  <ebb9@byu.net>
66288
66289         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66290         1.5.x.
66291
66292 2007-04-04  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66295         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66296
66297 2007-04-04  Bruno Haible  <bruno@clisp.org>
66298
66299         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66300         results for "%010a" of Infinity and NaN.
66301         * tests/test-vasprintf-posix.c (test_function): Likewise.
66302         * tests/test-snprintf-posix.h (test_function): Likewise.
66303         * tests/test-sprintf-posix.h (test_function): Likewise.
66304         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66305         * tests/test-printf-posix.h (test_function): Likewise.
66306         * tests/test-fprintf-posix.out: Update.
66307         Needed for FreeBSD 6.1.
66308
66309 2007-04-04  Bruno Haible  <bruno@clisp.org>
66310
66311         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66312         directly used by the gnulib modules nor by gnulib-tool.
66313
66314 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66315
66316         * DEPENDENCIES: Give overall description of version dependency
66317         desirability.  Use more-typical names for apps.
66318         Add shell, coreutils, diffutils, grep, tar, gzip.
66319
66320 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66321
66322         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66323
66324 2007-04-04  Karl Berry  <karl@gnu.org>
66325
66326         * MODULES.html.sh (func_module): missing '.
66327
66328 2007-04-03  Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/argmatch-tests (Makefile.am): New variable
66331         test_argmatch_LDADD.
66332         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66333         * modules/array-list-tests (Makefile.am): New variable
66334         test_array_list_LDADD.
66335         * modules/array-oset-tests (Makefile.am): New variable
66336         test_array_oset_LDADD.
66337         * modules/avltree-list-tests (Makefile.am): New variable
66338         test_avltree_list_LDADD.
66339         * modules/avltree-oset-tests (Makefile.am): New variable
66340         test_avltree_oset_LDADD.
66341         * modules/avltreehash-list-tests (Makefile.am): New variable
66342         test_avltreehash_list_LDADD.
66343         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66344         test_canonicalize_lgpl_LDADD.
66345         * modules/carray-list-tests (Makefile.am): New variable
66346         test_carray_list_LDADD.
66347         * modules/dirname-tests (Makefile.am): New variable
66348         test_dirname_LDADD.
66349         * modules/linked-list-tests (Makefile.am): New variable
66350         test_linked_list_LDADD.
66351         * modules/linkedhash-list-tests (Makefile.am): New variable
66352         test_linkedhash_list_LDADD.
66353         * modules/rbtree-list-tests (Makefile.am): New variable
66354         test_rbtree_list_LDADD.
66355         * modules/rbtree-oset-tests (Makefile.am): New variable
66356         test_rbtree_oset_LDADD.
66357         * modules/rbtreehash-list-tests (Makefile.am): New variable
66358         test_rbtreehash_list_LDADD.
66359         * modules/xvasprintf-tests (Makefile.am): New variable
66360         test_xvasprintf_LDADD.
66361         Reported by Eric Blake.
66362
66363 2007-04-03  Eric Blake  <ebb9@byu.net>
66364
66365         * DEPENDENCIES: Weaken m4 requirements.
66366
66367 2007-04-03  Bruno Haible  <bruno@clisp.org>
66368
66369         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66370         * modules/isnanl-tests (configure.ac): Likewise.
66371
66372 2007-04-03  Ben Pfaff  <blp@gnu.org>
66373
66374         * modules/iconv_open: Add $(srcdir)/ to source directory
66375         references in Makefile fragments that call gperf, to fix VPATH
66376         builds.
66377
66378 2007-04-03  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66381         * lib/ldexpl.c: Undo last change.
66382
66383 2007-04-03  Bruno Haible  <bruno@clisp.org>
66384
66385         * modules/printf-frexpl (Depends-on): Undo last change.
66386         (Files): Add m4/ldexpl.m4.
66387
66388 2007-04-03  Bruno Haible  <bruno@clisp.org>
66389
66390         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66391         * modules/isnanl (Link): New section.
66392
66393         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66394         * modules/frexp (Link): New section.
66395
66396         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66397         * modules/frexpl (Link): New section.
66398
66399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66400         * modules/ldexpl (Link): New section.
66401
66402 2007-04-03  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/TEMPLATE-EXTENDED: New file.
66405         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66406
66407 2007-04-03  Bruno Haible  <bruno@clisp.org>
66408
66409         * DEPENDENCIES: New file.
66410         Suggested by Simon Josefsson.
66411
66412 2007-04-03  Bruno Haible  <bruno@clisp.org>
66413
66414         * doc/gnulib.texi: Escape @.
66415
66416 2007-04-03  James Youngman  <jay@gnu.org>
66417         and Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66420         birthtime on all systems that have birthtime, not just those which
66421         use st_birthtimensec rather than st_birthtim.  Putting zero in
66422         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66423         that the birth time is not available for files on an NFS mount.
66424
66425 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66426
66427         * modules/memxor: Move back from crypto/, suggested by Bruno.
66428         * modules/crypto/hmac-sha1: Fix memxor dependency.
66429
66430         * modules/crypto/gc: Moved from ../.
66431
66432 2007-04-02  Eric Blake  <ebb9@byu.net>
66433
66434         * lib/ldexpl.c (includes): Avoid libm.
66435
66436         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66437
66438 2007-04-02  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66441         on IRIX.
66442
66443 2007-04-02  Bruno Haible  <bruno@clisp.org>
66444
66445         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66446         x86 or x86_64 platforms running MacOS X.
66447         Reported by Ryan Schmidt <@ryandesign.com>.
66448
66449 2007-04-02  Bruno Haible  <bruno@clisp.org>
66450
66451         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66452         i386.
66453
66454 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66455
66456         * modules/crypto/arcfour: Moved from ../.
66457         * modules/crypto/arcfour-tests: Moved from ../.
66458         * modules/crypto/arctwo: Moved from ../.
66459         * modules/crypto/arctwo-tests: Moved from ../.
66460         * modules/crypto/des: Moved from ../.
66461         * modules/crypto/des-tests: Moved from ../.
66462         * modules/crypto/gc-arcfour: Moved from ../.
66463         * modules/crypto/gc-arcfour-tests: Moved from ../.
66464         * modules/crypto/gc-arctwo: Moved from ../.
66465         * modules/crypto/gc-arctwo-tests: Moved from ../.
66466         * modules/crypto/gc-des: Moved from ../.
66467         * modules/crypto/gc-des-tests: Moved from ../.
66468         * modules/crypto/gc-hmac-md5: Moved from ../.
66469         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66470         * modules/crypto/gc-hmac-sha1: Moved from ../.
66471         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66472         * modules/crypto/gc-md2: Moved from ../.
66473         * modules/crypto/gc-md2-tests: Moved from ../.
66474         * modules/crypto/gc-md4: Moved from ../.
66475         * modules/crypto/gc-md4-tests: Moved from ../.
66476         * modules/crypto/gc-md5: Moved from ../.
66477         * modules/crypto/gc-md5-tests: Moved from ../.
66478         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66479         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66480         * modules/crypto/gc-random: Moved from ../.
66481         * modules/crypto/gc-rijndael: Moved from ../.
66482         * modules/crypto/gc-rijndael-tests: Moved from ../.
66483         * modules/crypto/gc-sha1: Moved from ../.
66484         * modules/crypto/gc-sha1-tests: Moved from ../.
66485         * modules/crypto/gc-tests: Moved from ../.
66486         * modules/crypto/hmac-md5: Moved from ../.
66487         * modules/crypto/hmac-md5-tests: Moved from ../.
66488         * modules/crypto/hmac-sha1: Moved from ../.
66489         * modules/crypto/hmac-sha1-tests: Moved from ../.
66490         * modules/crypto/md2: Moved from ../.
66491         * modules/crypto/md2-tests: Moved from ../.
66492         * modules/crypto/md4: Moved from ../.
66493         * modules/crypto/md4-tests: Moved from ../.
66494         * modules/crypto/md5: Moved from ../.
66495         * modules/crypto/md5-tests: Moved from ../.
66496         * modules/crypto/memxor: Moved from ../.
66497         * modules/crypto/rijndael: Moved from ../.
66498         * modules/crypto/rijndael-tests: Moved from ../.
66499         * modules/crypto/sha1: Moved from ../.
66500
66501 2007-03-30  James Youngman  <jay@gnu.org>
66502
66503         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66504         rename() to change the ctime of a file (because ctime is unaffected
66505         by rename on jfs2 on AIX 5.1).
66506         (main): Start by doing cleanup, in case a previous run failed leaving
66507         test files behind.
66508
66509 2007-03-31  Bruno Haible  <bruno@clisp.org>
66510
66511         Support old proprietary implementations of iconv.
66512         * modules/iconv_open: New file.
66513         * lib/iconv_.h: New file.
66514         * m4/iconv_h.m4: New file.
66515         * lib/iconv_open.c: New file.
66516         * lib/iconv_open-aix.gperf: New file.
66517         * lib/iconv_open-hpux.gperf: New file.
66518         * lib/iconv_open-irix.gperf: New file.
66519         * lib/iconv_open-osf.gperf: New file.
66520         * m4/iconv_open.m4: New file.
66521         * modules/linebreak (Depends-on): Add iconv_open.
66522         * modules/striconv (Depends-on): Likewise.
66523         * modules/striconveh (Depends-on): Likewise.
66524         * modules/unicodeio (Depends-on): Likewise.
66525         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66526         (iconv_t)(-1).
66527         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66528         conversion if cd is (iconv_t)(-1).
66529         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66530         is not possible.
66531
66532 2007-03-31  Bruno Haible  <bruno@clisp.org>
66533
66534         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66535         work on Solaris either. Protect also second use of "autodetect_jp".
66536
66537 2007-03-31  Bruno Haible  <bruno@clisp.org>
66538
66539         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66540         the function is not present.
66541
66542 2007-03-31  Bruno Haible  <bruno@clisp.org>
66543
66544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66545         the function is not present.
66546
66547 2007-03-31  Bruno Haible  <bruno@clisp.org>
66548
66549         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66550         a bug in HP-UX iconv_open().
66551
66552 2007-03-31  Bruno Haible  <bruno@clisp.org>
66553
66554         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66555         (Mathematics <math.h>): New section, add fpieee.
66556         (Input/output <stdio.h>): Add fseterr.
66557         (Mathematics <math.h>): New section, add printf-frexp.
66558         (Container data structures): Add sublist.
66559         (Core language properties): Add fpucw, inline.
66560         (Functions for greatest-width integer types <inttypes.h>): Add
66561         imaxabs, imaxdiv, inttypes.
66562         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66563         isnanl-nolibm, ldexp.
66564         (Mathematics <math.h>): New section, add printf-frexpl.
66565         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66566         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66567         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66568         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66569         (Unicode string functions): Add unistr/u*-mbtoucr.
66570         (Java): Add javacomp-script, javaexec-script.
66571         (C#): Add csharpcomp-script, csharpexec-script.
66572         (Support for building libraries and executables): Add havelib,
66573         relocatable-*.
66574         (Support for maintaining and releasing projects): Renamed from
66575         'Support for maintaining and release projects'. Add announce-gen.
66576
66577 2007-03-31  Bruno Haible  <bruno@clisp.org>
66578
66579         * README: Talk primarily about git.
66580         (git and CVS): Renamed from CVS.
66581         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66582         gnulib is available through git.
66583         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66584
66585 2007-03-30  Bruno Haible  <bruno@clisp.org>
66586
66587         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66588         * lib/poll_.h: Likewise.
66589         * lib/stat_.h: Likewise.
66590         * lib/sys_time_.h: Likewise.
66591         * lib/sysexit_.h: Likewise.
66592         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66593         * lib/stdbool_.h: Likewise.
66594         * lib/byteswap_.h: Add double-inclusion guard.
66595
66596 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66597
66598         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66599
66600 2007-03-30  Karl Berry  <karl@gnu.org>
66601
66602         * config/srclist-update: double space after USA in the license
66603         substitution, since that's how it's usually (?) written.
66604
66605 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66606
66607         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66608         reported by Bruno Haible.
66609
66610 2007-03-29  Bruno Haible  <bruno@clisp.org>
66611
66612         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66613         a bug in AIX iconv().
66614
66615 2007-03-29  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/ldexpl-tests: New file.
66618         * tests/test-ldexpl.c: New file.
66619
66620 2007-03-29  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/ldexpl.c: Include fpucw.h.
66623         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66624         multiplication.
66625         * modules/ldexpl (Depends-on): Add fpucw.
66626
66627 2007-03-29  Bruno Haible  <bruno@clisp.org>
66628
66629         * modules/ldexpl: New file.
66630         * m4/ldexpl.m4: New file.
66631         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66632         set.
66633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66634         REPLACE_LDEXPL.
66635         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66636         REPLACE_LDEXPL.
66637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66638         gl_FUNC_LDEXPL_WORKS.
66639         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66640         * modules/mathl (Files): Remove lib/ldexpl.c.
66641         (Depends-on): Add ldexpl.
66642
66643 2007-03-29  Bruno Haible  <bruno@clisp.org>
66644
66645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66646
66647 2007-03-29  Bruno Haible  <bruno@clisp.org>
66648
66649         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66650         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66651         and possibly also HP-UX.
66652         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66653         work on AIX, IRIX, HP-UX, OSF/1.
66654         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66655         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66656         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66657         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66658         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66659         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66660
66661 2007-03-29  Bruno Haible  <bruno@clisp.org>
66662
66663         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66664
66665 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66666
66667         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66668         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66669
66670 2007-03-29  Eric Blake  <ebb9@byu.net>
66671
66672         * lib/acl-internal.h: Remove redundant include.
66673         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66674         Cygwin when a file is locked.
66675
66676 2007-03-29  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66679         file.
66680         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66681
66682 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66685         try to remove a parent directory if the child couldn't be removed
66686         (except for the first rmdir, which could fail because the child
66687         doesn't exist).  Problem reported by Jeff Blaine in
66688         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66689
66690 2007-03-28  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/striconveh.c (utf8conv_carefully): New function.
66693         (mem_cd_iconveh_internal): Invoke it.
66694
66695 2007-03-28  Bruno Haible  <bruno@clisp.org>
66696
66697         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66698         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66699         input.
66700         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66701         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66702         unistr/u8-uctomb.
66703
66704 2007-03-28  Bruno Haible  <bruno@clisp.org>
66705
66706         * modules/unistr/u8-mbtoucr: New file.
66707         * lib/unistr/u8-mbtoucr.c: New file.
66708         * modules/unistr/u16-mbtoucr: New file.
66709         * lib/unistr/u16-mbtoucr.c: New file.
66710         * modules/unistr/u16-mbtoucr: New file.
66711         * lib/unistr/u16-mbtoucr.c: New file.
66712         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66713
66714 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66715             Bruno Haible  <bruno@clisp.org>
66716
66717         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66718         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66719         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66720
66721         * m4/stdio_h.m4: Add stubs for vasprintf too.
66722
66723         * modules/stdio: Support vasprintf in sed command.
66724
66725         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66726         vasprintf.h.  Add stdio module indicator.
66727
66728         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66729         vasprintf.h.
66730
66731         * lib/vasprintf.h: File removed.
66732
66733         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66734         * lib/vasprintf.c: Ditto.
66735         * lib/xvasprintf.c: Ditto.
66736         * tests/test-vasprintf-posix.c: Ditto.
66737         * tests/test-vasprintf.c: Ditto.
66738
66739 2007-03-27  Bruno Haible  <bruno@clisp.org>
66740
66741         Make vasnprintf multithread-safe.
66742         * lib/vasnprintf.c (decimal_point_char): New function.
66743         (VASNPRINTF): Use it.
66744         Suggested by Simon Josefsson.
66745
66746 2007-03-27  Eric Blake  <ebb9@byu.net>
66747
66748         Support sub-second birthtime on cygwin.
66749         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66750         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66751         (get_stat_birthtime): Also work with st_birthtim.
66752
66753 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66756         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66757         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66758         (get_stat_birthtime_ns): Simplify compile-time tests.
66759         (get_stat_birthtime): Change the API to look like
66760         get_stat_mtime etc., except return a negative tv_nsec on error.
66761         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66762         Don't check for "spare" fields.
66763         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66764         or for struct stat.st_birthtime, as these tests aren't used.
66765         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66766
66767 2007-03-27  Bruno Haible  <bruno@clisp.org>
66768
66769         * lib/stat-time.h: Include <sys/stat.h>.
66770
66771 2007-03-27  James Youngman  <jay@gnu.org>
66772
66773         * lib/stat-time.h (get_stat_birthtime): New function for
66774           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66775         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66776           and its variants.
66777         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66778         * modules/stat-time-test: New file.
66779         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66780
66781 2007-03-26  Bruno Haible  <bruno@clisp.org>
66782
66783         Better support of signalling NaNs.
66784         * lib/atanl.c: Include isnanl.h.
66785         (atanl): Perform test for NaN at the beginning of the function and
66786         through a call to isnanl.
66787         * lib/cosl.c: Include isnanl.h.
66788         (cosl): Perform test for NaN at the beginning of the function and
66789         through a call to isnanl.
66790         * lib/ldexpl.c: Include isnanl.h.
66791         (ldexpl): Perform test for NaN through a call to isnanl.
66792         * lib/logl.c: Include isnanl.h.
66793         (logl): Perform test for NaN at the beginning of the function and
66794         through a call to isnanl.
66795         * lib/sinl.c: Include isnanl.h.
66796         (sinl): Perform test for NaN at the beginning of the function and
66797         through a call to isnanl.
66798         * lib/sqrtl.c: Include isnanl.h.
66799         (sqrtl): Perform test for NaN at the beginning of the function and
66800         through a call to isnanl.
66801         * lib/tanl.c: Include isnanl.h.
66802         (tanl): Perform test for NaN at the beginning of the function and
66803         through a call to isnanl.
66804         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66805         * modules/mathl (Depends-on): Add isnanl.
66806
66807 2007-03-26  Eric Blake  <ebb9@byu.net>
66808
66809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66810         regression in logic sense of previous patch.
66811
66812 2007-03-26  Bruno Haible  <bruno@clisp.org>
66813
66814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66815         unportable shell command "if ! ...".
66816         Reported by Ralf Wildenhues.
66817
66818 2007-03-25  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66821         <sysexits.h> file, and only add EX_CONFIG.
66822         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66823         absolute file name and whether it is sufficient. Substitute also
66824         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66825         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66826         ABSOLUTE_SYSEXITS_H into sysexits.h.
66827
66828 2007-03-25  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66831         hints is NULL.
66832
66833 2007-03-25  Bruno Haible  <bruno@clisp.org>
66834
66835         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66836         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66837
66838 2007-03-25  Bruno Haible  <bruno@clisp.org>
66839
66840         * lib/vasnprintf.c: Include langinfo.h.
66841         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66842         multithread-safe.
66843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66852         Reported by Simon Josefsson.
66853
66854 2007-03-25  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66857         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66858         * modules/vasnprintf (Depends-on): Add stdint.
66859
66860 2007-03-25  Bruno Haible  <bruno@clisp.org>
66861
66862         * modules/fpieee: New file.
66863         * m4/fpieee.m4: New file.
66864         * modules/isnan-nolibm (Depends-on): Add fpieee.
66865         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66866         * modules/isnanl (Depends-on): Add fpieee.
66867
66868 2007-03-25  Bruno Haible  <bruno@clisp.org>
66869
66870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66871
66872 2007-03-25  Bruno Haible  <bruno@clisp.org>
66873
66874         Avoid test failures on IRIX 6.5.
66875         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66876         (main): Use it.
66877         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66878         macros.
66879         (main): Use them.
66880
66881 2007-03-25  Bruno Haible  <bruno@clisp.org>
66882
66883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66884         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66885         exists but doesn't work.
66886         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66887         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66889         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66890         math.h.
66891
66892 2007-03-25  Bruno Haible  <bruno@clisp.org>
66893
66894         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66895         returns inf. Needed on IRIX 6.5.
66896
66897 2007-03-25  Bruno Haible  <bruno@clisp.org>
66898
66899         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66900         (main): Use isnanl instead of x != x idiom.
66901         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66902
66903         * tests/test-frexp.c: Include isnan.h.
66904         (main): Use isnan instead of x != x idiom.
66905         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66906
66907 2007-03-25  Bruno Haible  <bruno@clisp.org>
66908
66909         * tests/test-frexp.c (NaN): New function/macro.
66910         (main): Use it instead of 0.0 / 0.0.
66911         * tests/test-isnan.c (NaN): New function/macro.
66912         (main): Use it instead of 0.0 / 0.0.
66913         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66914         (test_function): Use it instead of 0.0 / 0.0.
66915         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66916         (test_function): Use it instead of 0.0 / 0.0.
66917         * tests/test-snprintf-posix.h (NaN): New function/macro.
66918         (test_function): Use it instead of 0.0 / 0.0.
66919         * tests/test-sprintf-posix.h (NaN): New function/macro.
66920         (test_function): Use it instead of 0.0 / 0.0.
66921         * tests/test-fprintf-posix.h (NaN): New function/macro.
66922         (test_function): Use it instead of 0.0 / 0.0.
66923         * tests/test-printf-posix.h (NaN): New function/macro.
66924         (test_function): Use it instead of 0.0 / 0.0.
66925
66926         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66927
66928 2007-03-25  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66931
66932 2007-03-25  Bruno Haible  <bruno@clisp.org>
66933
66934         * lib/regexec.c (merge_state_with_log): Make static.
66935
66936 2007-03-25  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/trigl.c (kernel_rem_pio2): Make static.
66939
66940 2007-03-25  Bruno Haible  <bruno@clisp.org>
66941
66942         * lib/sincosl.c (sincosl_table): Make static.
66943
66944 2007-03-25  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66947         if the compiler does not support C99.
66948
66949 2007-03-25  Bruno Haible  <bruno@clisp.org>
66950
66951         * modules/time (Makefile.am): Ensure all rule action lines start with a
66952         tab.
66953
66954 2007-03-24  Bruno Haible  <bruno@clisp.org>
66955
66956         * modules/tsearch-tests: New file.
66957         * tests/test-tsearch.sh: New file.
66958         * tests/test-tsearch.c: New file, mostly copied from glibc.
66959
66960         * modules/search-tests: New file.
66961         * tests/test-search.c: New file.
66962
66963         * modules/search: New file.
66964         * lib/search_.h: New file, incorporating lib/tsearch.h.
66965         * m4/search_h.m4: New file.
66966         * lib/tsearch.h: Remove file.
66967         * lib/tsearch.c: Include search.h instead of tsearch.h.
66968         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66969         HAVE_TSEARCH.
66970         * modules/tsearch (Files): Remove lib/tsearch.h.
66971         (Depends-on): Add search.
66972         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66973         (Include): Change tsearch.h into search.h.
66974
66975 2007-03-24  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/fpucw: New file.
66978         * lib/fpucw.h: New file.
66979         * lib/frexp.c: Include fpucw.h.
66980         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66981         (FUNC): Use them.
66982         * lib/printf-frexp.c: Include fpucw.h.
66983         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66984         (FUNC): Use them.
66985         * lib/vasnprintf.c: Include fpucw.h.
66986         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66987         'long double' calculations.
66988         * tests/test-frexpl.c: Include fpucw.h.
66989         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66990         * tests/test-printf-frexpl.c: Include fpucw.h.
66991         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66992         * modules/frexpl (Depends-on): Add fpucw.
66993         * modules/printf-frexpl (Depends-on): Likewise.
66994         * modules/fprintf-posix (Depends-on): Likewise.
66995         * modules/snprintf-posix (Depends-on): Likewise.
66996         * modules/sprintf-posix (Depends-on): Likewise.
66997         * modules/vasnprintf-posix (Depends-on): Likewise.
66998         * modules/vasprintf-posix (Depends-on): Likewise.
66999         * modules/vfprintf-posix (Depends-on): Likewise.
67000         * modules/vsnprintf-posix (Depends-on): Likewise.
67001         * modules/vsprintf-posix (Depends-on): Likewise.
67002         * modules/frexpl-tests (Depends-on): Likewise.
67003         * modules/printf-frexpl-tests (Depends-on): Likewise.
67004
67005 2007-03-24  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/float+.h: New file.
67008         * lib/isnan.c: Include float+.h.
67009         (SIZE): New macro.
67010         (FUNC): Compare only SIZE bytes of the value.
67011         * lib/vasnprintf.c: Include float+.h.
67012         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67013         SIZEOF_LDBL or SIZEOF_DBL bytes.
67014         * modules/isnan-nolibm (Files): Add lib/float+.h.
67015         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67016         * modules/isnanl (Files): Add lib/float+.h.
67017         * modules/vasnprintf (Files): Add lib/float+.h.
67018
67019 2007-03-24  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67022         include isnanl-nolibm.h.
67023
67024 2007-03-24  Bruno Haible  <bruno@clisp.org>
67025
67026         * tests/test-read-file.c (main): Don't produce spurious output for
67027         expected situations. Make the test fail if it encountered unexpected
67028         results.
67029
67030 2007-03-24  Bruno Haible  <bruno@clisp.org>
67031
67032         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67033         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67034
67035 2007-03-24  Bruno Haible  <bruno@clisp.org>
67036
67037         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67038
67039 2007-03-24  Bruno Haible  <bruno@clisp.org>
67040
67041         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67042         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67043
67044         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67045         * modules/utf8-ucs4: Turn into a symbolic link to module
67046         unistr/u8-mbtouc.
67047
67048         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67049         utf8-ucs4-unsafe.
67050         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67051         unistr/u8-mbtouc-unsafe.
67052
67053         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67054         * modules/utf16-ucs4: Turn into a symbolic link to module
67055         unistr/u16-mbtouc.
67056
67057         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67058         utf16-ucs4-unsafe.
67059         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67060         unistr/u16-mbtouc-unsafe.
67061
67062         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67063         * modules/ucs4-utf8: Turn into a symbolic link to module
67064         unistr/u8-ubtomb.
67065
67066         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67067         * modules/ucs4-utf16: Turn into a symbolic link to module
67068         unistr/u16-ubtomb.
67069
67070 2007-03-24  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67073         Enable the function only if HAVE_INLINE.
67074         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67075         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67076         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67077         Enable the function only if HAVE_INLINE.
67078         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67079         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67080         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67081         Enable the function only if HAVE_INLINE.
67082         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67083         Enable the function only if HAVE_INLINE.
67084         * modules/utf8-ucs4: Update.
67085         * modules/utf8-ucs4-unsafe: Update.
67086         * modules/utf16-ucs4: Update.
67087         * modules/utf16-ucs4-unsafe: Update.
67088         * modules/ucs4-utf8: Update.
67089         * modules/ucs4-utf16: Update.
67090
67091 2007-03-24  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/utf8-ucs4.h: Remove file.
67094         * lib/utf8-ucs4-unsafe.h: Remove file.
67095         * lib/utf16-ucs4.h: Remove file.
67096         * lib/utf16-ucs4-unsafe.h: Remove file.
67097         * lib/ucs4-utf8.h: Remove file.
67098         * lib/ucs4-utf16.h: Remove file.
67099         * lib/unistr.h: Include their previous contents.
67100         * m4/utf-ucs4.m4: Remove file.
67101         * m4/ucs4-utf.m4: Remove file.
67102         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67103         (Depends-on): Add unistr/base.
67104         (configure.ac): Remove gl_UTF_UCS4.
67105         (Makefile.am): Update.
67106         (Include): Change to unistr.h.
67107         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67108         (Depends-on): Add unistr/base.
67109         (configure.ac): Remove gl_UTF_UCS4.
67110         (Makefile.am): Update.
67111         (Include): Change to unistr.h.
67112         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67113         (Depends-on): Add unistr/base.
67114         (configure.ac): Remove gl_UTF_UCS4.
67115         (Makefile.am): Update.
67116         (Include): Change to unistr.h.
67117         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67118         (Depends-on): Add unistr/base.
67119         (configure.ac): Remove gl_UTF_UCS4.
67120         (Makefile.am): Update.
67121         (Include): Change to unistr.h.
67122         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67123         (Depends-on): Add unistr/base.
67124         (configure.ac): Remove gl_UCS4_UTF.
67125         (Makefile.am): Update.
67126         (Include): Change to unistr.h.
67127         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67128         (Depends-on): Add unistr/base.
67129         (configure.ac): Remove gl_UCS4_UTF.
67130         (Makefile.am): Update.
67131         (Include): Change to unistr.h.
67132         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67133         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67134         utf8-ucs4-unsafe.h.
67135         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67136         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67137         utf16-ucs4-unsafe.h.
67138         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67139         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67140         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67141         * lib/unistr/u8-strchr.c: Likewise.
67142         * lib/unistr/u8-strrchr.c: Likewise.
67143         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67144         * lib/unistr/u16-strchr.c: Likewise.
67145         * lib/unistr/u16-strrchr.c: Likewise.
67146         * lib/striconveh.c: Update.
67147         * lib/linebreak.c: Update.
67148
67149 2007-03-24  Bruno Haible  <bruno@clisp.org>
67150
67151         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67152         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67153
67154 2007-03-22  Bruno Haible  <bruno@clisp.org>
67155
67156         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67157
67158 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         * MODULES.html.sh (File system functions): New module write-any-file.
67161         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67162         * m4/write-any-file.m4: New files.
67163
67164 2007-03-23  Eric Blake  <ebb9@byu.net>
67165
67166         * gnulib-tool: Rearrange space-tab sequences, since some editors
67167         like to eat them.
67168
67169 2007-03-23  Eric Blake  <ebb9@byu.net>
67170
67171         * lib/version-etc.c (version_etc_va): Update license wording to
67172         be more concise.  Recommended by Richard Stallman.
67173
67174 2007-03-22  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/poll.c (MSG_PEEK): New fallback definition.
67177
67178 2007-03-22  Bruno Haible  <bruno@clisp.org>
67179
67180         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67181         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67182         (main): Update.
67183         Fixes a compilation error on BeOS.
67184
67185 2007-03-22  Bruno Haible  <bruno@clisp.org>
67186
67187         * modules/frexpl-tests: New file.
67188         * tests/test-frexpl.c: New file.
67189
67190         * modules/frexpl: New file.
67191         * m4/frexpl.m4: New file.
67192         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67193         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67195         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67196         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67197         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67198
67199 2007-03-22  Bruno Haible  <bruno@clisp.org>
67200
67201         * lib/frexpl.c: Share code with lib/frexp.c.
67202         * modules/mathl (Files): Add lib/frexp.c.
67203         (Depends-on): Add isnanl-nolibm.
67204
67205 2007-03-22  Bruno Haible  <bruno@clisp.org>
67206
67207         * modules/printf-frexp (Files): Add m4/frexp.m4.
67208         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67209         only if the found frexp function actually works.
67210
67211 2007-03-22  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/frexp.c: Remove older implementation that uses divisions.
67214
67215 2007-03-21  Bruno Haible  <bruno@clisp.org>
67216
67217         * modules/frexp-tests: New file.
67218         * tests/test-frexp.c: New file.
67219
67220         * modules/frexp: New file.
67221         * lib/frexp.c: New file.
67222         * m4/frexp.m4: New file.
67223         * lib/math_.h (frexp): New declaration.
67224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67225         REPLACE_FREXP.
67226         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67227
67228 2007-03-21  Bruno Haible  <bruno@clisp.org>
67229
67230         * modules/isnanl-tests: New file.
67231         * tests/test-isnanl.c: New file.
67232
67233         * modules/isnanl: New file.
67234         * lib/isnanl.h: New file.
67235         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67236         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67237         gl_FUNC_ISNANL_WORKS.
67238         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67239         New macros.
67240
67241 2007-03-21  Bruno Haible  <bruno@clisp.org>
67242
67243         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67244         lib/isnanl.h.
67245         (Include): Update.
67246         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67247         * lib/vasnprintf.c: Update.
67248         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67249         tests/test-isnanl.h, remove tests/test-isnanl.c.
67250         (Makefile.am): Update.
67251         * tests/test-isnanl-nolibm.c: New file.
67252         * tests/test-isnanl.h: New file.
67253         * tests/test-isnanl.c: Remove file.
67254
67255 2007-03-21  Jim Meyering  <jim@meyering.net>
67256
67257         When trying to open ".", treat ESTALE like EACCES.
67258         * lib/savewd.c (savewd_save): Resort to forking not just upon
67259         failure with EACCES, but also when errno is ESTALE.
67260
67261 2007-03-20  Bruno Haible  <bruno@clisp.org>
67262
67263         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67264         Needed on AIX 5.1. Reported by Matthew Woehlke.
67265
67266 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         Suggestions by Bruno Haible:
67269         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67270         our own.
67271         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67272         * modules/acl (Depends-on): Add gettext.
67273
67274 2007-03-19  Bruno Haible  <bruno@clisp.org>
67275
67276         * modules/iconvme: Remove file.
67277         * lib/iconvme.h: Remove file.
67278         * lib/iconvme.c: Remove file.
67279         * m4/iconvme.m4: Remove file.
67280
67281 2007-03-19  Bruno Haible  <bruno@clisp.org>
67282
67283         * doc/relocatable-maint.texi: Break long shell script line.
67284         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67285
67286 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67287
67288         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67289         handle file_has_acl.
67290         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67291         * lib/acl.c: Move header inclusions and related macro defns into
67292         lib/acl-internal.h.
67293         (S_ISLNK): Remove defn, since that's now done for us.
67294         (file_has_acl): Move to lib/file-has-acl.c.
67295         Call acl_trivial if available.  This is the crucial part of the fix.
67296         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67297         shared within the library.  Rewrite a bit, partly to make it compatible
67298         with the GNU coding style.
67299         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67300         Remove unnecessary double-quotes.
67301         Don't test for acl_to_text; the build will catch that.
67302         Replace acl_entries if it doesn't exist and it is needed.
67303         Check for -lsec and acl_trivial (as used on Solaris 10).
67304         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67305         lib/file-has-acl.c.
67306         (Depends-on): Add sys_stat, for S_ISLNK.
67307
67308 2007-03-19  Ben Pfaff  <blp@gnu.org>
67309
67310         * doc/gnulib.texi: Fix typos.
67311         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67312
67313 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67316         If size is zero here, buf must be zero.
67317
67318 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67319
67320         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67321         <bruno@clisp.org>.
67322
67323 2007-03-18  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67326         Suggested by Eric Blake.
67327
67328 2007-03-18  Ben Pfaff  <blp@gnu.org>
67329
67330         * doc/relocatable.texi: Recommend using as prefix a directory
67331         that does not exist and will never be created.  Based on
67332         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67333         and others.
67334
67335 2007-03-17  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/fchownat.c: Include lchown.h.
67338
67339 2007-03-17  Bruno Haible  <bruno@clisp.org>
67340
67341         Fix endless loop when the given allocated size was > INT_MAX.
67342         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67343         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67344         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67345         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67346         * lib/sprintf.c (sprintf): Likewise.
67347
67348 2007-03-17  Bruno Haible  <bruno@clisp.org>
67349
67350         * tests/test-argp-2.sh (func_compare): Output a context diff.
67351
67352 2007-03-17  Bruno Haible  <bruno@clisp.org>
67353
67354         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67355         locale's decimal-point character.
67356
67357 2007-03-17  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67360         before comparing it. Needed because on some platforms (e.g. x86) a
67361         'long double' occupies less bytes than sizeof (long double).
67362
67363 2007-03-17  Bruno Haible  <bruno@clisp.org>
67364
67365         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67366         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67367         * tests/test-getaddrinfo.c (simple): Likewise.
67368         * tests/test-read-file.c (main): Likewise.
67369
67370 2007-03-17  Bruno Haible  <bruno@clisp.org>
67371
67372         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67373
67374 2007-03-17  Bruno Haible  <bruno@clisp.org>
67375
67376         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67377         unused variable.
67378
67379 2007-03-17  Bruno Haible  <bruno@clisp.org>
67380
67381         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67382         * tests/test-c-strncasecmp.c: Likewise.
67383
67384 2007-03-17  Bruno Haible  <bruno@clisp.org>
67385
67386         * modules/stdlib (Depends-on): Add unistd.
67387         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67388         Needed for MacOS X 10.3.
67389
67390 2007-03-17  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67393
67394 2007-03-17  Bruno Haible  <bruno@clisp.org>
67395
67396         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67397
67398 2007-03-17  Bruno Haible  <bruno@clisp.org>
67399
67400         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67401         to reflect files copied from gnulib (with or without modifications).
67402         Suggested by Jim Meyering.
67403
67404 2007-03-17  Eric Blake  <ebb9@byu.net>
67405
67406         * NEWS: Document stdlib change from 2007-02-18.
67407
67408 2007-03-17  Jim Meyering  <jim@meyering.net>
67409
67410         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67411         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67412         someone uses a name containing shell meta-characters.
67413         Reported by Alfred M. Szmidt.
67414
67415         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67416
67417 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67418
67419         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67420         and copy gettext configuration files only if configure.ac contains
67421         a use of AM_GNU_GETTEXT_VERSION.
67422
67423 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67424
67425         * build-aux/bootstrap (gnulib_name): New variable.
67426         (gnulib_tool_options): Use it.
67427
67428 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67429
67430         * tests/test-des.c: Use new namespace.
67431
67432 2007-03-15  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67435         Reported by James Youngman <jay@gnu.org>.
67436
67437 2007-03-15  Bruno Haible  <bruno@clisp.org>
67438
67439         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67440         declared prototype. Needed with cc on OSF/1 5.1.
67441
67442 2007-03-15  Bruno Haible  <bruno@clisp.org>
67443
67444         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67445         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67446         (struct gl_list_implementation): Add dispose_fn argument to the
67447         'create_empty', 'create' methods.
67448         (struct gl_list_impl_base): Add field 'dispose_fn'.
67449         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67450         argument.
67451         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67452         dispose_fn argument.
67453         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67454         dispose_fn on the dropped values.
67455         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67456         dispose_fn argument.
67457         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67458         dropped values.
67459         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67460         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67461         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67462         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67463         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67464         argument.
67465         (gl_tree_list_free): Call dispose_fn on the dropped values.
67466         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67467         the dropped values.
67468         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67469         Add dispose_fn argument.
67470         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67471         Call dispose_fn on the dropped values.
67472         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67473         Add dispose_fn argument.
67474         (gl_sublist_create): Initialize the 'dispose_fn' field.
67475         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67476         * tests/test-array_list.c (main): Update.
67477         * tests/test-carray_list.c (main): Update.
67478         * tests/test-avltree_list.c (main): Update.
67479         * tests/test-rbtree_list.c (main): Update.
67480         * tests/test-avltreehash_list.c (main): Update.
67481         * tests/test-rbtreehash_list.c (main): Update.
67482         * tests/test-linked_list.c (main): Update.
67483         * tests/test-linkedhash_list.c (main): Update.
67484         * tests/test-array_oset.c (main): Update.
67485
67486 2007-03-15  Bruno Haible  <bruno@clisp.org>
67487
67488         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67489         (gl_oset_create_empty): Add dispose_fn argument.
67490         (struct gl_oset_implementation): Add dispose_fn argument to
67491         'create_empty' method.
67492         (struct gl_oset_impl_base): Add dispose_fn field.
67493         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67494         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67495         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67496         values.
67497         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67498         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67499         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67500         dropped value.
67501         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67502         dropped value.
67503         * tests/test-array_oset.c (main): Update.
67504         * tests/test-avltree_oset.c (main): Update.
67505         * tests/test-rbtree_oset.c (main): Update.
67506         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67507
67508 2007-03-13  Bruno Haible  <bruno@clisp.org>
67509
67510         * tests/test-stdbool.c (i): Update after last patch.
67511
67512 2007-03-12  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67515         the iswprint macro. Needed on Solaris 2.5.1.
67516
67517 2007-03-12  Bruno Haible  <bruno@clisp.org>
67518
67519         * tests/test-printf-frexp.c (main): Declare x as volatile.
67520
67521 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67522
67523         * doc/gnulib.texi (Build robot for gnulib): New section.
67524
67525 2007-03-12  Jim Meyering  <jim@meyering.net>
67526
67527         * build-aux/bootstrap: New file.
67528         * build-aux/bootstrap.conf: New file, from coreutils.
67529
67530 2007-03-11  Bruno Haible  <bruno@clisp.org>
67531
67532         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67533
67534 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67535
67536         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67537         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67538         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67539
67540 2007-03-11  Bruno Haible  <bruno@clisp.org>
67541
67542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67543         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67544
67545 2007-03-11  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67548         formula. Needed for SunPRO C 5.0.
67549
67550 2007-03-11  Bruno Haible  <bruno@clisp.org>
67551
67552         * modules/long-options (Depends-on): Add getopt.
67553
67554 2007-03-11  Bruno Haible  <bruno@clisp.org>
67555
67556         * modules/modechange (Depends-on): Add stdbool.
67557
67558 2007-03-11  Bruno Haible  <bruno@clisp.org>
67559
67560         * modules/i-ring (Depends-on): Add stdbool.
67561
67562 2007-03-11  Bruno Haible  <bruno@clisp.org>
67563
67564         * modules/gc-des (Depends-on): Add stdbool.
67565
67566 2007-03-11  Bruno Haible  <bruno@clisp.org>
67567
67568         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67569
67570 2007-03-11  Bruno Haible  <bruno@clisp.org>
67571
67572         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67573
67574 2007-03-11  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67577
67578 2007-03-11  Bruno Haible  <bruno@clisp.org>
67579
67580         * lib/vasnprintf.c (sprintf): Undefine.
67581
67582 2007-03-11  Bruno Haible  <bruno@clisp.org>
67583
67584         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67585         initializers in SunPRO C and Compaq C compilers.
67586
67587 2007-03-11  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67590         decrementing code ANSI C compliant.
67591
67592 2007-03-11  Bruno Haible  <bruno@clisp.org>
67593
67594         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67595         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67596
67597 2007-03-11  Bruno Haible  <bruno@clisp.org>
67598
67599         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67600         <stdbool.h> substitute doesn't pass.
67601
67602 2007-03-11  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67605
67606 2007-03-11  Bruno Haible  <bruno@clisp.org>
67607
67608         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67609         script, for submission to autobuild.josefsson.org.
67610
67611 2007-03-10  Bruno Haible  <bruno@clisp.org>
67612
67613         * modules/canonicalize-lgpl-tests: New file.
67614         * tests/test-canonicalize-lgpl.sh: New file.
67615         * tests/test-canonicalize-lgpl.c: New file.
67616
67617         * modules/c-strcase-tests: New file.
67618         * tests/test-c-strcase.sh: New file.
67619         * tests/test-c-strcasecmp.c: New file.
67620         * tests/test-c-strncasecmp.c: New file.
67621
67622         * modules/atexit-tests: New file.
67623         * tests/test-atexit.sh: New file.
67624         * tests/test-atexit.c: New file.
67625
67626 2007-03-10  Bruno Haible  <bruno@clisp.org>
67627
67628         * tests/test-binary-io.sh: Use temporary filenames that are not so
67629         likely to clash with those of other tests (in a parallel make).
67630         * tests/test-binary-io.c: Likewise.
67631
67632 2007-03-10  Bruno Haible  <bruno@clisp.org>
67633
67634         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67635         fallback; use #error instead.
67636         Suggested by Simon Josefsson.
67637
67638 2007-03-10  Bruno Haible  <bruno@clisp.org>
67639
67640         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67641         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67642         first and the last.
67643
67644 2007-03-10  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67647
67648 2007-03-10  Bruno Haible  <bruno@clisp.org>
67649
67650         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67651         "make distcheck".
67652         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67653         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67654         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67655
67656 2007-03-10  Bruno Haible  <bruno@clisp.org>
67657
67658         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67659         variable.
67660         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67661         variable.
67662
67663 2007-03-09  Eric Blake  <ebb9@byu.net>
67664         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67665
67666         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67667         types are not being provided by gnulib.
67668         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67669         types are supported.
67670
67671 2007-03-10  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/stdio_.h (__attribute__): New macro.
67674         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67675         vsprintf): Specify __attribute__ __format__ for GCC.
67676         Suggested by Eric Blake.
67677
67678 2007-03-09  Bruno Haible  <bruno@clisp.org>
67679
67680         * modules/printf-posix-tests: New file.
67681         * tests/test-printf-posix.sh: New file.
67682         * tests/test-printf-posix.c: New file.
67683
67684         * modules/printf-posix: New file.
67685         * lib/printf.c: New file.
67686         * m4/printf-posix-rpl.m4: New file.
67687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67688         REPLACE_PRINTF.
67689         * lib/stdio_.h (printf): New declaration.
67690         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67691         ____strfmon____): New macros.
67692         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67693         REPLACE_PRINTF.
67694
67695 2007-03-09  Bruno Haible  <bruno@clisp.org>
67696
67697         * tests/test-vasnprintf-posix2.sh: New file.
67698         * tests/test-vasnprintf-posix2.c: New file.
67699         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67700         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67701         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67702
67703         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67704         a locale dependent decimal point, rather than always '.'.
67705
67706 2007-03-09  Eric Blake  <ebb9@byu.net>
67707
67708         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67709         spite of platforms like Tandem/NSK that define it to -1.
67710
67711 2007-03-08  Bruno Haible  <bruno@clisp.org>
67712
67713         * modules/vprintf-posix-tests: New file.
67714         * tests/test-vprintf-posix.sh: New file.
67715         * tests/test-vprintf-posix.c: New file.
67716         * tests/test-printf-posix.h: New file.
67717
67718         * modules/vprintf-posix: New file.
67719         * lib/vprintf.c: New file.
67720         * m4/vprintf-posix.m4: New file.
67721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67722         REPLACE_VPRINTF.
67723         * lib/stdio_.h (vprintf): New declaration.
67724         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67725         REPLACE_VPRINTF.
67726
67727 2007-03-08  Bruno Haible  <bruno@clisp.org>
67728
67729         * modules/fprintf-posix-tests: New file.
67730         * tests/test-fprintf-posix.sh: New file.
67731         * tests/test-fprintf-posix.c: New file.
67732
67733         * modules/fprintf-posix: New file.
67734         * lib/fprintf.c: New file.
67735         * m4/fprintf-posix.m4: New file.
67736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67737         REPLACE_FPRINTF.
67738         * lib/stdio_.h (fprintf): New declaration.
67739         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67740         REPLACE_FPRINTF.
67741
67742 2007-03-08  Bruno Haible  <bruno@clisp.org>
67743
67744         * modules/vfprintf-posix-tests: New file.
67745         * tests/test-vfprintf-posix.sh: New file.
67746         * tests/test-vfprintf-posix.c: New file.
67747         * tests/test-fprintf-posix.h: New file.
67748         * tests/test-fprintf-posix.out: New file.
67749
67750         * modules/vfprintf-posix: New file.
67751         * lib/vfprintf.c: New file.
67752         * m4/vfprintf-posix.m4: New file.
67753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67754         REPLACE_VFPRINTF.
67755         * lib/stdio_.h (vfprintf): New declaration.
67756         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67757         REPLACE_VFPRINTF.
67758
67759 2007-03-08  Bruno Haible  <bruno@clisp.org>
67760
67761         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67762
67763 2007-03-08  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67766         instead of 'expr' invocations.
67767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67772         Suggested by Paul Eggert.
67773
67774 2007-03-08  Bruno Haible  <bruno@clisp.org>
67775
67776         * modules/fseterr-tests: New file.
67777         * tests/test-fseterr.c: New file.
67778
67779         * modules/fseterr: New file.
67780         * lib/fseterr.h: New file.
67781         * lib/fseterr.c: New file.
67782
67783 2007-03-08  Bruno Haible  <bruno@clisp.org>
67784
67785         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67786         * lib/getopt_.h: Likewise.
67787         * lib/mbswidth.h: Likewise.
67788         * lib/setenv.h: Likewise.
67789         * lib/vasnprintf.h: Likewise.
67790         * lib/vasprintf.h: Likewise.
67791         * lib/verror.h: Likewise.
67792         * lib/xsetenv.h: Likewise.
67793         * lib/xvasprintf.h: Likewise.
67794
67795 2007-03-08  Jim Meyering  <jim@meyering.net>
67796
67797         * users.txt: Add parted.
67798
67799         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67800
67801 2007-03-07  Bruno Haible  <bruno@clisp.org>
67802
67803         * m4/printf.m4: Make the shell script snippets copy&pastable.
67804
67805 2007-03-02  Bruno Haible  <bruno@clisp.org>
67806
67807         * lib/netinet_in_.h: New file.
67808         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67809         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67810         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67811         (Depends-on): Add absolute-header.
67812         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67813         into netinet/in.h.
67814
67815 2007-03-03  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/sys_select_.h: New file.
67818         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67819         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67820         * modules/sys_select (Files): Add lib/sys_select_.h.
67821         (Depends-on): Add absolute-header.
67822         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67823         into sys/select.h.
67824
67825 2007-03-02  Bruno Haible  <bruno@clisp.org>
67826
67827         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67828         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67829         values.
67830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67831         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67832         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67833         * modules/sys_socket (Depends-on): Add absolute-header.
67834         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67835         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67836         (Include): Remove requirement of inclusion of <sys/types.h>.
67837
67838 2007-03-02  Bruno Haible  <bruno@clisp.org>
67839
67840         * lib/byteswap_.h (bswap_32): Fix formula.
67841
67842 2007-03-06  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/sprintf-posix-tests: New file.
67845         * tests/test-sprintf-posix.c: New file.
67846
67847         * modules/sprintf-posix: New file.
67848         * lib/sprintf.c: New file.
67849         * m4/sprintf-posix.m4: New file.
67850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67851         REPLACE_SPRINTF.
67852         * lib/stdio_.h (sprintf): New declaration.
67853         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67854         REPLACE_SPRINTF.
67855
67856 2007-03-06  Bruno Haible  <bruno@clisp.org>
67857
67858         * modules/vsprintf-posix-tests: New file.
67859         * tests/test-vsprintf-posix.c: New file.
67860         * tests/test-sprintf-posix.h: New file.
67861
67862         * modules/vsprintf-posix: New file.
67863         * lib/vsprintf.c: New file.
67864         * m4/vsprintf-posix.m4: New file.
67865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67866         REPLACE_VSPRINTF.
67867         * lib/stdio_.h (vsprintf): New declaration.
67868         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67869         REPLACE_VSPRINTF.
67870
67871 2007-03-06  Bruno Haible  <bruno@clisp.org>
67872
67873         * modules/vsnprintf (Depend-on): Remove minmax.
67874
67875 2007-03-06  Bruno Haible  <bruno@clisp.org>
67876
67877         * modules/snprintf-posix-tests: New file.
67878         * tests/test-snprintf-posix.c: New file.
67879
67880         * modules/snprintf-posix: New file.
67881         * m4/snprintf-posix.m4: New file.
67882         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67883         gl_FUNC_SNPRINTF.
67884         (gl_FUNC_SNPRINTF): Invoke it.
67885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67886         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67887         is set.
67888         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67889
67890 2007-03-06  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/vsnprintf-posix-tests: New file.
67893         * tests/test-vsnprintf-posix.c: New file.
67894         * tests/test-snprintf-posix.h: New file.
67895
67896         * modules/vsnprintf-posix: New file.
67897         * m4/vsnprintf-posix.m4: New file.
67898         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67899         gl_FUNC_VSNPRINTF.
67900         (gl_FUNC_VSNPRINTF): Invoke it.
67901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67902         * lib/stdio_.h (vsnprintf): Define as a replacement if
67903         REPLACE_VSNPRINTF is set.
67904         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67905
67906 2007-03-06  Bruno Haible  <bruno@clisp.org>
67907
67908         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67910
67911 2007-03-06  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67914         (asinl): Declare also if HAVE_DECL_ASINL is set.
67915         (atanl): Declare also if HAVE_DECL_ATANL is set.
67916         (ceill): Declare also if HAVE_DECL_CEILL is set.
67917         (cosl): Declare also if HAVE_DECL_COSL is set.
67918         (expl): Declare also if HAVE_DECL_EXPL is set.
67919         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67920         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67921         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67922         (logl): Declare also if HAVE_DECL_LOGL is set.
67923         (sinl): Declare also if HAVE_DECL_SINL is set.
67924         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67925         (tanl): Declare also if HAVE_DECL_TANL is set.
67926         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67929         declaration of frexpl, ldexpl.
67930         * modules/printf-frexpl (Depends-on): Add math.
67931         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67932
67933 2007-03-05  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67936         frexpl and ldexpl are declared.
67937         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67938
67939 2007-03-05  Bruno Haible  <bruno@clisp.org>
67940
67941         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67942         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67943
67944 2007-03-05  Bruno Haible  <bruno@clisp.org>
67945
67946         * lib/stdio_.h: Include <stddef.h>.
67947
67948 2007-03-05  Bruno Haible  <bruno@clisp.org>
67949
67950         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67951
67952 2007-03-05  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67955         NetBSD 4, from Ralf Wildenhues.
67956
67957 2007-03-04  Bruno Haible  <bruno@clisp.org>
67958
67959         * lib/vasprintf.h: Update #if logic for the case when the functions
67960         exist but are overridden.
67961
67962 2007-03-04  Bruno Haible  <bruno@clisp.org>
67963
67964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67965         implementations: glibc-2.4 and MacOS X 10.3.
67966         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67967         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67968         * tests/test-vasprintf-posix.c (test_function): Likewise.
67969
67970 2007-03-04  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/vasprintf-posix-tests: New file.
67973         * tests/test-vasprintf-posix.c: New file.
67974
67975         * modules/vasprintf-posix: New file.
67976         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67977         defined.
67978         * m4/vasprintf-posix.m4: New file.
67979         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67980         gl_FUNC_VASPRINTF.
67981         (gl_FUNC_VASPRINTF): Invoke it.
67982         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67983         here.
67984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67985
67986 2007-03-04  Bruno Haible  <bruno@clisp.org>
67987
67988         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67989         REPLACE_GETTIMEOFDAY.
67990         * modules/sys_time (Makefile.am): Likewise.
67991         * m4/sys_time_h.m4: Likewise.
67992         * m4/gettimeofday.m4: Likewise.
67993
67994 2007-03-04  Bruno Haible  <bruno@clisp.org>
67995
67996         * modules/vasnprintf-posix-tests: New file.
67997         * tests/test-vasnprintf-posix.c: New file.
67998
67999         * modules/vasnprintf-posix: New file.
68000         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68001         printf-frexpl.h.
68002         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68003         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68004         REPLACE_VASNPRINTF is defined.
68005         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68006         gl_FUNC_VASNPRINTF.
68007         (gl_FUNC_VASNPRINTF): Invoke it.
68008         * m4/vasnprintf-posix.m4: New file.
68009         * m4/printf.m4: New file.
68010
68011 2007-03-04  Bruno Haible  <bruno@clisp.org>
68012
68013         Compile progreloc.c only if --enable-relocatable is specified.
68014         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68015         if --enable-relocatable was specified.
68016         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68017         lib_SOURCES.
68018
68019 2007-03-04  Jim Meyering  <jim@meyering.net>
68020
68021         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68022         Use it consistently, rather than enumerating errno constants.
68023
68024 2007-03-04  Bruno Haible  <bruno@clisp.org>
68025
68026         * modules/xvasprintf-tests: New file.
68027         * tests/test-xvasprintf.c: New file.
68028
68029         * modules/vasprintf-tests: New file.
68030         * tests/test-vasprintf.c: New file.
68031
68032         * modules/vasnprintf-tests: New file.
68033         * tests/test-vasnprintf.c: New file.
68034
68035         * modules/vsnprintf-tests: New file.
68036         * tests/test-vsnprintf.c: New file.
68037
68038         * modules/snprintf-tests: New file.
68039         * tests/test-snprintf.c: New file.
68040
68041 2007-03-04  Bruno Haible  <bruno@clisp.org>
68042
68043         Compile relocatable.c only if --enable-relocatable is specified.
68044         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68045         gl_RELOCATABLE_LIBRARY.
68046         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68047         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68048         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68049         gl_RELOCATABLE_LIBRARY.
68050         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68051         (Makefile.am): Remove lib_SOURCES.
68052         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68053         gl_RELOCATABLE_LIBRARY.
68054         (Makefile.am): Remove lib_SOURCES.
68055         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68056         always.
68057         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68058         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68059
68060 2007-03-04  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/argmatch-tests: New file.
68063         * tests/test-argmatch.c: New file.
68064
68065         * tests/test-allocsa.c (main): Halve the number of loop runs.
68066
68067         * modules/alloca-opt-tests: New file.
68068         * tests/test-alloca-opt.c: New file.
68069
68070 2007-03-04  Jim Meyering  <jim@meyering.net>
68071
68072         Work around difference between Linux ACLs and Solaris 10 ZFS.
68073         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68074         for EINVAL.
68075
68076 2007-03-03  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/relocatable-prog (Depends-on): Add back progreloc's
68079         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68080
68081 2007-03-03  Bruno Haible  <bruno@clisp.org>
68082
68083         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68084         * modules/relocatable-lib: New file.
68085
68086 2007-03-03  Bruno Haible  <bruno@clisp.org>
68087
68088         * modules/relocatable-prog: Renamed from modules/relocatable.
68089         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68090
68091 2007-03-03  Bruno Haible  <bruno@clisp.org>
68092
68093         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68094         m4/relocatable-lib.m4.
68095         (Depends-on): Remove 'relocatable'.
68096         (configure.ac): Add gl_RELOCATABLE_NOP.
68097
68098 2007-03-03  Bruno Haible  <bruno@clisp.org>
68099
68100         * modules/relocatable-prog-wrapper: New file.
68101         * modules/relocatable (Depends-on): Add it. Remove all other
68102         dependencies except progname.
68103         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68104
68105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68106         (gl_FUNC_STRERROR): Nop.
68107         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68108
68109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68110         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68111
68112         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68113         (gl_FUNC_READLINK): Update.
68114
68115         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68116
68117 2007-03-03  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68120         * modules/xreadlink (Depends-on): Add unistd.
68121         * modules/xreadlink-with-size (Depends-on): Likewise.
68122
68123 2007-03-03  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68126         extracted from gt_FUNC_SETENV.
68127         (gt_FUNC_SETENV): Remove macro.
68128         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68129         remove gt_FUNC_SETENV.
68130
68131 2007-03-03  Bruno Haible  <bruno@clisp.org>
68132
68133         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68134         ENABLE_RELOCATABLE here.
68135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68136
68137 2007-03-03  Bruno Haible  <bruno@clisp.org>
68138
68139         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68140         * tests/test-rbtreehash_list.c: Include progname.h.
68141         (main): Call set_program_name.
68142
68143         * modules/rbtree-oset-tests (Depends-on): Add progname.
68144         * tests/test-rbtree_oset.c: Include progname.h.
68145         (main): Call set_program_name.
68146
68147         * modules/rbtree-list-tests (Depends-on): Add progname.
68148         * tests/test-rbtree_list.c: Include progname.h.
68149         (main): Call set_program_name.
68150
68151         * modules/linked-list-tests (Depends-on): Add progname.
68152         * tests/test-linked_list.c: Include progname.h.
68153         (main): Call set_program_name.
68154
68155 2007-03-03  Bruno Haible  <bruno@clisp.org>
68156
68157         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68158         All uses of __restrict changed to _Restrict_.
68159         * lib/glob_.h (__restrict): Remove macro.
68160
68161 2007-03-02  Bruno Haible  <bruno@clisp.org>
68162
68163         * modules/gettext (configure.ac): Require gettext infrastructure
68164         from version 0.16.1.
68165
68166 2007-03-02  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/linkedhash-list-tests (Depends-on): Add progname.
68169         * tests/test-linkedhash_list.c: Include progname.h.
68170         (main): Call set_program_name.
68171
68172         * modules/carray-list-tests (Depends-on): Add progname.
68173         * tests/test-carray_list.c: Include progname.h.
68174         (main): Call set_program_name.
68175
68176         * modules/avltreehash-list-tests (Depends-on): Add progname.
68177         * tests/test-avltreehash_list.c: Include progname.h.
68178         (main): Call set_program_name.
68179
68180         * modules/avltree-oset-tests (Depends-on): Add progname.
68181         * tests/test-avltree_oset.c: Include progname.h.
68182         (main): Call set_program_name.
68183
68184         * modules/avltree-list-tests (Depends-on): Add progname.
68185         * tests/test-avltree_list.c: Include progname.h.
68186         (main): Call set_program_name.
68187
68188         * modules/array-oset-tests (Depends-on): Add progname.
68189         * tests/test-array_oset.c: Include progname.h.
68190         (main): Call set_program_name.
68191
68192         * modules/array-list-tests (Depends-on): Add progname.
68193         * tests/test-array_list.c: Include progname.h.
68194         (main): Call set_program_name.
68195
68196         * modules/argp-tests (Depends-on): Add progname.
68197         * tests/test-argp.c: Include argp.h first. Include progname.h.
68198         (main): Call set_program_name.
68199
68200 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         * doc/gnulib-tool.texi (Initial import): Reword description of
68203         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68204         limited effect even if defined after the first system include.
68205
68206 2007-03-01  Bruno Haible  <bruno@clisp.org>
68207
68208         * build-aux/config.libpath: Update to libtool-1.5.22.
68209         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68210
68211 2007-03-01  Bruno Haible  <bruno@clisp.org>
68212
68213         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68214         foo_CFLAGS.
68215         Reported by Ralf Wildenhues.
68216
68217 2007-03-01  Bruno Haible  <bruno@clisp.org>
68218
68219         * build-aux/install-reloc: Remove object files left over by some
68220         compilers.
68221         Reported by Ralf Wildenhues.
68222
68223 2007-03-01  Bruno Haible  <bruno@clisp.org>
68224
68225         * build-aux/install-reloc: Break long lines.
68226
68227 2007-03-01  Bruno Haible  <bruno@clisp.org>
68228
68229         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68230         Reported by Ralf Wildenhues.
68231
68232 2007-03-01  Bruno Haible  <bruno@clisp.org>
68233
68234         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68235         include ordering constraints.
68236
68237 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68240         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68241         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68242         as another example.
68243         * lib/time_.h: Fix misspelling.
68244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68245         Require gl_HEADER_TIME_H_DEFAULTS.
68246         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68247         * m4/time_r.m4 (gl_TIME_R): Likewise.
68248         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68249
68250 2007-03-01  Bruno Haible  <bruno@clisp.org>
68251
68252         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68253         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68254
68255 2007-03-01  Jim Meyering  <jim@meyering.net>
68256
68257         * modules/xreadlink (Maintainer): Add my name.
68258         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68259
68260 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68261             Bruno Haible  <bruno@clisp.org>
68262
68263         * build-aux/install-reloc: Compile also c-ctype.c.
68264         * build-aux/relocatable.sh.in: New file.
68265         * doc/relocatable.texi: New file.
68266         * doc/relocatable-maint.texi: New file.
68267         * doc/gnulib.texi: Include relocatable-maint.texi.
68268         * lib/progreloc.c: Include unistd.h unconditionally.
68269         * lib/relocwrapper.c: Include unistd.h unconditionally.
68270         Include c-ctype.h.
68271         (add_dotbin): Use c_tolower.
68272         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68273         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68274         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68275         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68276         to m4/relocatable-lib.m4.
68277         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68278         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68279         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68280         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68281         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68282         * modules/relocatable: New file.
68283         * modules/relocatable-lib: New file.
68284         * modules/relocatable-script: New file.
68285
68286 2007-02-28  Bruno Haible  <bruno@clisp.org>
68287
68288         Import --enable-relocatable infrastructure.
68289         * build-aux/config.libpath: New file, from GNU gettext.
68290         * build-aux/install-reloc: New file, from GNU gettext.
68291         * build-aux/reloc-ldflags: New file, from GNU gettext.
68292         * lib/relocatable.h: New file, from GNU gettext.
68293         * lib/relocatable.c: New file, from GNU gettext.
68294         * lib/relocwrapper.c: New file, from GNU gettext.
68295         * m4/relocatable.m4: New file, from GNU gettext.
68296
68297 2007-02-28  Bruno Haible  <bruno@clisp.org>
68298
68299         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68300
68301         * modules/xreadlink: New file, from GNU gettext with modifications.
68302         * lib/xreadlink.c: New file, from GNU gettext.
68303         * lib/xreadlink.h: Add comments.
68304         (xreadlink): New declaration.
68305
68306         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68307         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68308         lib/xreadlink-with-size.c.
68309         (configure.ac): Remove gl_XREADLINK invocation.
68310         (Makefile.am): Augment lib_SOURCES.
68311         * m4/xreadlink.m4: Remove file.
68312         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68313         (xreadlink_with_size): Renamed from xreadink.
68314         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68315         * modules/canonicalize (Depends-on): Replace xreadlink with
68316         xreadlink-with-size.
68317         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68318
68319 2007-02-25  Jim Meyering  <jim@meyering.net>
68320
68321         * build-aux/announce-gen: When complaining about excess arguments,
68322         list them.
68323
68324 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * README: Document signed integer overflow situation more
68327         accurately.
68328
68329 2007-02-25  Bruno Haible  <bruno@clisp.org>
68330
68331         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68332         'a' or 'A' conversion.
68333
68334 2007-02-25  Bruno Haible  <bruno@clisp.org>
68335
68336         * modules/filename: Renamed from modules/pathname.
68337         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68338         lib/concatpath.c with lib/concat-filename.c.
68339         (Makefile.am): Update.
68340         (Include): Replace pathname.h with filename.h.
68341         * lib/filename.h: Renamed from lib/pathname.h.
68342         (concatenated_filename): Renamed from concatenated_pathname.
68343         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68344         (concatenated_filename): Renamed from concatenated_pathname.
68345         * lib/findprog.c: Include filename.h instead of pathname.h.
68346         (find_in_path): Update.
68347         * lib/javacomp.c: Include filename.h instead of pathname.h.
68348         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68349         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68350         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68351         is_oldgcj_14_13_usable, is_javac_usable): Update.
68352         * lib/javaexec.c: Include filename.h instead of pathname.h.
68353         (execute_java_class): Update.
68354         * modules/findprog: Update.
68355         * modules/javacomp: Update.
68356         * modules/javaexec: Update.
68357         * MODULES.html.sh (File system functions): Add 'filename', remove
68358         'pathname'.
68359
68360 2007-02-25  Bruno Haible  <bruno@clisp.org>
68361
68362         * modules/printf-frexpl-tests: New file.
68363         * tests/test-printf-frexpl.c: New file.
68364
68365         * modules/printf-frexpl: New file.
68366         * lib/printf-frexpl.h: New file.
68367         * lib/printf-frexpl.c: New file.
68368         * m4/printf-frexpl.m4: New file.
68369
68370 2007-02-25  Bruno Haible  <bruno@clisp.org>
68371
68372         * modules/printf-frexp-tests: New file.
68373         * tests/test-printf-frexp.c: New file.
68374
68375         * modules/printf-frexp: New file.
68376         * lib/printf-frexp.h: New file.
68377         * lib/printf-frexp.c: New file.
68378         * m4/printf-frexp.m4: New file.
68379
68380 2007-02-25  Bruno Haible  <bruno@clisp.org>
68381
68382         Assume automake >= 1.10 for the tests.
68383         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68384         * modules/arctwo-tests: Likewise.
68385         * modules/argp-tests: Likewise.
68386         * modules/avltree-list-tests: Likewise.
68387         * modules/avltree-oset-tests: Likewise.
68388         * modules/avltreehash-list-tests: Likewise.
68389         * modules/carray-list-tests: Likewise.
68390         * modules/crc-tests: Likewise.
68391         * modules/des-tests: Likewise.
68392         * modules/gc-arcfour-tests: Likewise.
68393         * modules/gc-arctwo-tests: Likewise.
68394         * modules/gc-des-tests: Likewise.
68395         * modules/gc-hmac-md5-tests: Likewise.
68396         * modules/gc-hmac-sha1-tests: Likewise.
68397         * modules/gc-md2-tests: Likewise.
68398         * modules/gc-md4-tests: Likewise.
68399         * modules/gc-md5-tests: Likewise.
68400         * modules/gc-pbkdf2-sha1-tests: Likewise.
68401         * modules/gc-rijndael-tests: Likewise.
68402         * modules/gc-sha1-tests: Likewise.
68403         * modules/gc-tests: Likewise.
68404         * modules/getaddrinfo-tests: Likewise.
68405         * modules/hmac-md5-tests: Likewise.
68406         * modules/hmac-sha1-tests: Likewise.
68407         * modules/linked-list-tests: Likewise.
68408         * modules/linkedhash-list-tests: Likewise.
68409         * modules/lock-tests: Likewise.
68410         * modules/md2-tests: Likewise.
68411         * modules/md4-tests: Likewise.
68412         * modules/md5-tests: Likewise.
68413         * modules/rbtree-list-tests: Likewise.
68414         * modules/rbtree-oset-tests: Likewise.
68415         * modules/rbtreehash-list-tests: Likewise.
68416         * modules/read-file-tests: Likewise.
68417         * modules/rijndael-tests: Likewise.
68418         * modules/stdint-tests: Likewise.
68419         * modules/tls-tests: Likewise.
68420
68421 2007-02-24  Bruno Haible  <bruno@clisp.org>
68422
68423         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68424         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68425         function; instead check whether isnan with a double argument links.
68426         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68427         function; instead check whether isnan with a 'long double' argument
68428         links.
68429         Reported by Eric Blake <ebb9@byu.net>.
68430
68431 2007-02-24  Bruno Haible  <bruno@clisp.org>
68432
68433         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68434         defined.
68435         * lib/isnanl.c: Remove all code. Just include isnan.c.
68436         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68437
68438 2007-02-25  Jim Meyering  <jim@meyering.net>
68439
68440         Avoid conflicting types for 'unsetenv' on FreeBSD.
68441         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68442         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68443         in stdlib.h.
68444
68445 2007-02-24  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/isnanl-nolibm-tests: New file.
68448         * tests/test-isnanl.c: New file.
68449
68450         * modules/isnanl-nolibm: New file.
68451         * lib/isnanl.h: New file.
68452         * lib/isnanl.c: New file.
68453         * m4/isnanl.m4: New file.
68454
68455 2007-02-24  Bruno Haible  <bruno@clisp.org>
68456
68457         * modules/isnan-nolibm-tests: New file.
68458         * tests/test-isnan.c: New file.
68459
68460         * modules/isnan-nolibm: New file.
68461         * lib/isnan.h: New file.
68462         * lib/isnan.c: New file.
68463         * m4/isnan.m4: New file.
68464
68465 2007-02-24  Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68468         assume that an exponent fits in 20 bits.
68469
68470 2007-02-24  Jim Meyering  <jim@meyering.net>
68471
68472         * m4/regex.m4: Update the description of the configure-time option,
68473         --without-included-regex, to state accurately what the defaults are,
68474         and perhaps to give people an idea why using this option is risky.
68475
68476 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68479         loops on small arguments.  This attempts to avoid the problem
68480         Bruno Haible reported for AIX 4.3.2 in
68481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68482
68483 2007-02-23  Bruno Haible  <bruno@clisp.org>
68484
68485         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68486         Needed for help2man.
68487
68488 2007-02-23  Karl Berry  <karl@gnu.org>
68489
68490         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68491         exists, foo.h should be cvs-ignored, not committed.
68492
68493 2007-02-23  Eric Blake  <ebb9@byu.net>
68494
68495         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68496         * lib/stat-time.h (includes): Likewise.
68497         * lib/utimecmp.c (includes): Likewise.
68498         * lib/utimens.h (includes): Likewise.
68499         * lib/getdate.y (includes): Also include "timespec.h" for use
68500         internal to the module.
68501         * modules/utimens (Depends-on): Revert yesterday's patch.
68502         * modules/nanosleep (Depends-on): Add missing dependency.
68503
68504 2007-02-22  Bruno Haible  <bruno@clisp.org>
68505
68506         * lib/glob.c: Don't include getlogin_r.h.
68507
68508 2007-02-22  Jim Meyering  <jim@meyering.net>
68509
68510         * modules/utimens (Depends-on): Add timespec, required for
68511         utimens.h's inclusion of timespec.h.
68512
68513 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68516         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68517         Schwab in
68518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68519         I'll try to think of a better way to fix the Solaris problem.
68520
68521         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68522         like glibc; on Solaris 10, it fails with errno == EINVAL.
68523         POSIX says the behavior is unspecified if the first argument is NULL,
68524         so play it safe and never pass NULL to the system getcwd.
68525
68526 2007-02-21  Jim Meyering  <jim@meyering.net>
68527
68528         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68529         of gettimeofday.  It would conflict with the one now always
68530         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68531         an IRIX 6.5 build failure.
68532
68533 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68534
68535         Minor fixups to port to Solaris 10 with Sun C 5.8.
68536         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68537         * modules/getcwd (Depends-on): Add dirfd.
68538         * lib/putenv.c (putenv): #undef it.
68539         (rpl_putenv): New decl.
68540         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68541
68542 2007-02-20  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/stdio-tests: New file.
68545         * tests/test-stdio.c: New file.
68546
68547         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68548         (Depends-on): Add stdio.
68549         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68550         (Include): Use <stdio.h> instead of vsnprintf.h.
68551         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68552         HAVE_DECL_VSNPRINTF.
68553         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68554
68555         * modules/snprintf (Files): Remove lib/snprintf.h.
68556         (Depends-on): Add stdio.
68557         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68558         (Include): Use <stdio.h> instead of snprintf.h.
68559         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68560         HAVE_DECL_SNPRINTF.
68561         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68562         * lib/getaddrinfo.c: Likewise.
68563
68564         * modules/stdio: New file.
68565         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68566         * lib/snprintf.h: Remove file.
68567         * lib/vsnprintf.h: Remove file.
68568         * lib/.cppi-disable: Remove snprintf.h.
68569         * m4/stdio_h.m4: New file.
68570         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68571
68572 2007-02-20  Jim Meyering  <jim@meyering.net>
68573
68574         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68575         used by e.g., mingw.  From Bruno Haible.
68576
68577 2007-02-19  Bruno Haible  <bruno@clisp.org>
68578
68579         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68580         warnings.
68581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68582
68583 2007-02-19  Bruno Haible  <bruno@clisp.org>
68584
68585         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68586         from mingw users.
68587
68588 2007-02-19  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68591         warnings.
68592         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68593
68594 2007-02-19  Jim Meyering  <jim@meyering.net>
68595
68596         Don't use FD after a successful "fdopendir (fd)".
68597         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68598         Reset it by calling dirfd on the just-obtained DIR*.
68599
68600         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68601         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68602
68603 2007-02-18  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/readlink.c: Include <unistd.h>.
68606         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68607         HAVE_READLINK.
68608         * modules/readlink (Depends-on): Add unistd.
68609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68610         (Include): Add <unistd.h>.
68611
68612         * lib/getlogin_r.h: Remove file.
68613         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68614         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68615         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68616         HAVE_DECL_GETLOGIN_R.
68617         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68619         (Include): Use <unistd.h> instead of getlogin_r.h.
68620
68621         * lib/getcwd.h: Remove file.
68622         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68623         * lib/xgetcwd.c: Likewise.
68624         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68625         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68626         * modules/getcwd (Files): Remove lib/getcwd.h.
68627         (Depends-on): Add unistd.
68628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68629         (Include): Use <unistd.h> instad of getcwd.h.
68630
68631         * lib/ftruncate.c: Include <unistd.h> first.
68632         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68633         Set HAVE_FTRUNCATE.
68634         * modules/ftruncate (Depends-on): Add unistd.
68635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68636
68637         * lib/fchdir.c: Include <unistd.h> first.
68638         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68639         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68640         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68641         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68642         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68643
68644         * lib/dup2.c: Include <unistd.h> first.
68645         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68646         HAVE_DUP2.
68647         * modules/dup2 (Depends-on): Add unistd.
68648         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68649
68650         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68651         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68652         REPLACE_CHOWN. Don't define chown as a macro here.
68653         * modules/chown (Depends-on): Add unistd.
68654         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68655
68656         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68657         Add definition for GL_LINK_WARNING.
68658         (chown, dup2): New declarations.
68659         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68660         link warning.
68661         (ftruncate): New declaration.
68662         (getcwd): New declaration, taken from old getcwd.h.
68663         (getlogin_r): New declaration, taken from old getlogin_r.h.
68664         (readlink): New declaration.
68665         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68666         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68667         (gl_PREREQ_UNISTD): Remove macro.
68668         (gl_UNISTD_MODULE_INDICATOR): New macro.
68669         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68670         many new variables. Don't set UNISTD_H.
68671         * modules/unistd (Description): Change.
68672         (Depends-on): Add link-warning.
68673         (configure.ac): Update.
68674         (Makefile.am): Create unistd.h always. Substitute many new variables
68675         into it.
68676
68677 2007-02-18  Bruno Haible  <bruno@clisp.org>
68678
68679         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68680         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68681         HAVE_GETSUBOPT.
68682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68683         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68684         * lib/getsubopt.h: Remove file.
68685         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68686         (Depends-on): Add stdlib.
68687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68688         (Includes): Use <stdlib.h> instead of getsubopt.h.
68689         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68690         Set HAVE_GETSUBOPT.
68691         * lib/getsubopt.c: Don't include getsubopt.h.
68692
68693 2007-02-18  Bruno Haible  <bruno@clisp.org>
68694
68695         * modules/fchdir (Depends-on): Add dup2.
68696
68697 2007-02-18  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/stdlib_.h: Handle glibc's special invocation convention
68700         specially.
68701
68702 2007-02-18  Bruno Haible  <bruno@clisp.org>
68703
68704         * modules/stdlib-tests: New file.
68705         * tests/test-stdlib.c: New file.
68706
68707         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68708         (Depends-on): Add stdlib.
68709         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68710         (Includes): Use <stdlib.h> instead of mkstemp.h.
68711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68712         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68713         * lib/mkstemp.c: Don't include mkstemp.h.
68714         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68715         * lib/stdlib--.h: Don't include mkstemp.h.
68716
68717         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68718         (Depends-on): Add stdlib.
68719         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68720         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68721         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68722         HAVE_MKDTEMP.
68723         * lib/mkdtemp.c: Don't include mkdtemp.h.
68724         * lib/clean-temp.c: Don't include mkdtemp.h.
68725
68726         * modules/exit (Files): Remove lib/exit.h.
68727         (Depends-on): Add stdlib.
68728         (Makefile.am): Remove lib_SOURCES.
68729         (Include): Use <stdlib.h> instead of exit.h.
68730         * lib/argmatch.c: Don't include exit.h.
68731         * lib/execute.c: Likewise.
68732         * lib/pagealign_alloc.c: Likewise.
68733         * lib/pipe.c: Likewise.
68734         * lib/wait-process.c: Likewise.
68735         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68736         * lib/exitfail.c: Likewise.
68737         * lib/savewd.c: Likewise.
68738         * lib/xsetenv.c: Likewise.
68739
68740         * modules/stdlib: New file.
68741         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68742         and extra comments about mkstemp().
68743         * lib/exit.h: Remove file.
68744         * lib/mkdtemp.h: Remove file.
68745         * lib/mkstemp.h: Remove file.
68746         * m4/stdlib_h.m4: New file.
68747         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68748
68749 2007-02-18  Bruno Haible  <bruno@clisp.org>
68750
68751         * modules/math-tests: New file.
68752         * tests/test-math.c: New file.
68753
68754         * modules/math: New file.
68755         * modules/mathl (Files): Remove lib/mathl.h.
68756         (Depends-on): Add math.
68757         (Makefile.am): Don't mention mathl.h.
68758         (Include): Use <math.h> instead of mathl.h.
68759         * lib/math_.h: New file.
68760         * lib/mathl.h: Remove file.
68761         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68762         mathl.h.
68763         * lib/asinl.c: Likewise.
68764         * lib/atanl.c: Likewise.
68765         * lib/ceill.c: Likewise.
68766         * lib/cosl.c: Likewise.
68767         * lib/expl.c: Likewise.
68768         * lib/floorl.c: Likewise.
68769         * lib/frexpl.c: Likewise.
68770         * lib/ldexpl.c: Likewise.
68771         * lib/logl.c: Likewise.
68772         * lib/sincosl.c: Likewise.
68773         * lib/sinl.c: Likewise.
68774         * lib/sqrtl.c: Likewise.
68775         * lib/tanl.c: Likewise.
68776         * lib/trigl.c: Likewise.
68777         * m4/math_h.m4: New file.
68778         * MODULES.html.sh (Mathematics): Add math.
68779
68780 2007-02-17  Bruno Haible  <bruno@clisp.org>
68781
68782         * modules/wctype-tests: New file.
68783         * tests/test-wctype.c: New file.
68784
68785         * modules/wchar-tests: New file.
68786         * tests/test-wchar.c: New file.
68787
68788         * modules/unistd-tests: New file.
68789         * tests/test-unistd.c: New file.
68790
68791         * modules/time-tests: New file.
68792         * tests/test-time.c: New file.
68793
68794         * modules/sysexits-tests: New file.
68795         * tests/test-sysexits.c: New file.
68796
68797         * modules/sys_time-tests: New file.
68798         * tests/test-sys_time.c: New file.
68799
68800         * modules/sys_stat-tests: New file.
68801         * tests/test-sys_stat.c: New file.
68802
68803         * modules/sys_socket-tests: New file.
68804         * tests/test-sys_socket.c: New file.
68805
68806         * modules/sys_select-tests: New file.
68807         * tests/test-sys_select.c: New file.
68808
68809         * modules/string-tests: New file.
68810         * tests/test-string.c: New file.
68811
68812         * modules/stdbool-tests: New file.
68813         * tests/test-stdbool.c: New file.
68814
68815         * modules/netinet_in-tests: New file.
68816         * tests/test-netinet_in.c: New file.
68817
68818         * modules/inttypes-tests: New file.
68819         * tests/test-inttypes.c: New file.
68820
68821         * modules/fcntl-tests: New file.
68822         * tests/test-fcntl.c: New file.
68823
68824         * modules/byteswap-tests: New file.
68825         * tests/test-byteswap.c: New file.
68826
68827         * modules/arpa_inet-tests: New file.
68828         * tests/test-arpa_inet.c: New file.
68829
68830 2007-02-17  Bruno Haible  <bruno@clisp.org>
68831
68832         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68833         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68834         if the corresponding module is not enabled. Emit link warnings if
68835         the function is used nevertheless.
68836         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68837         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68838         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68839         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68840         * modules/inttypes (Depends-on): Add link-warning.
68841         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68842         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68843         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68844         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68845         * modules/imaxdiv (configure.ac): Likewise.
68846         * modules/strtoimax (configure.ac): Likewise.
68847         * modules/strtoumax (configure.ac): Likewise.
68848
68849 2007-02-17  Bruno Haible  <bruno@clisp.org>
68850
68851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68852         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68853         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68854         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68855
68856 2007-02-17  Bruno Haible  <bruno@clisp.org>
68857
68858         * modules/link-warning: New file.
68859         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68860         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68861         * modules/string (Depends-on): Add link-warning.
68862         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68863         string.h.
68864         * MODULES.html.sh (Support for building libraries and executables): Add
68865         link-warning.
68866
68867 2007-02-17  Bruno Haible  <bruno@clisp.org>
68868
68869         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68870         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68871         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68872         long lines.
68873
68874 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68875             Bruno Haible  <bruno@clisp.org>
68876
68877         * modules/tmpfile: New file.
68878         * lib/tmpfile.c: New file.
68879         * m4/tmpfile.m4: New file.
68880         * MODULES.html.sh (func_all_modules): New section "Input/output".
68881
68882 2007-02-15  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68885         (supports_delete_on_close): New function.
68886         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68887
68888 2007-02-14  Bruno Haible  <bruno@clisp.org>
68889
68890         * modules/mbspcasecmp-tests: New file.
68891         * tests/test-mbspcasecmp.sh: New file.
68892         * tests/test-mbspcasecmp.c: New file.
68893
68894         New module mbspcasecmp.
68895         * modules/mbspcasecmp: New file.
68896         * lib/mbspcasecmp.c: New file.
68897         * lib/string_.h (strncasecmp): Change warning message.
68898         (mbspcasecmp): New declaration.
68899         * m4/mbspcasecmp.m4: New file.
68900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68901         GNULIB_MBSPCASECMP.
68902         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68903         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68904
68905 2007-02-14  Bruno Haible  <bruno@clisp.org>
68906
68907         * modules/mbsncasecmp-tests: New file.
68908         * tests/test-mbsncasecmp.sh: New file.
68909         * tests/test-mbsncasecmp.c: New file.
68910
68911         New module mbsncasecmp.
68912         * modules/mbsncasecmp: New file.
68913         * lib/mbsncasecmp.c: New file.
68914         * lib/string_.h (mbsncasecmp): New declaration.
68915         * m4/mbsncasecmp.m4: New file.
68916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68917         GNULIB_MBSNCASECMP.
68918         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68919         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68920
68921 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68922
68923         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68924         Verify that it doesn't overlap with our flags.
68925         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68926         do not have the desired effect in multibyte locales; instead, use
68927         mbscasecmp.
68928         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68929         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68930         we don't require GNU fnmatch ourselves (if our users require it, they
68931         should do so explicitly).
68932
68933         Fix regex code so it doesn't rely on strcasecmp.
68934         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68935         Otherwise, include gnulib's langinfo.h.
68936         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68937         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68938         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68939         * modules/regex (FILES): Remove m4/codeset.m4.
68940         (Depends-on): Add localcharset.  Remove strcase.
68941
68942 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68943
68944         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68945         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68946
68947 2007-02-13  Bruno Haible  <bruno@clisp.org>
68948
68949         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68951
68952 2007-02-12  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68955         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68956         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68957         time warning rather than a link error.
68958
68959 2007-02-12  Bruno Haible  <bruno@clisp.org>
68960
68961         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68962         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68963         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68964
68965 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68968         args, not 2.
68969
68970 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         New module 'time', so that apps can include <time.h> as per
68973         POSIX and GNU instead of separate include files like time_r.h
68974         and timegm.h.  This implementation tries out a simpler approach
68975         for replacing decls in standard include files (as compared to
68976         the string module), somewhat as an experiment.
68977
68978         * config/srclist.txt: Comment out mktime.c for now.
68979         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68980         since it doesn't apply any more.  Use generic wording instead.
68981         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68982         'time'.
68983         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68984         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68985         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68986         Don't include <sys/types.h>; no longer needed since we assume C89.
68987         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68988         * lib/strftime.c: Likewise.
68989         * lib/time_r.c: Likewise.
68990         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68991         * lib/nanosleep.c: Include <time.h> first, to check interface.
68992         * lib/strptime.c: Likewise.
68993         * lib/time_r.c: Likewise.
68994         * lib/timegm.c: Likewise.
68995         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68996         needed.
68997         * lib/timegm.c: Don't include timegm.h; no longer needed.
68998         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68999         time.h now handles any problems in that area.
69000         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69001         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69002         that time.h defines struct timespec.
69003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69004         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69005         handles that.
69006         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69007         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69008         needed.  Set REPLACE_LOCALTIME.
69009         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69010         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69011         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69012         nanosleep; time_h.m4 now does that.  Don't require
69013         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69014         module handles this now.
69015         * modules/getdate (Depends-on): Remove timespec.  Add time.
69016         * modules/nanosleep (Depends-on): Likewise.
69017         * modules/stat-time (Depends-on): Likewise.
69018         * modules/nanosleep (Include): Include time.h, not timespec.h.
69019         * modules/strptime (Files): Remove lib/strptime.h.
69020         (Depends-on): Add extensions, time.
69021         (Include): Include time.h, not strptime.h.
69022         * modules/time_r (Files): Remove lib/time_r.h.
69023         (Depends-on): Add time.
69024         (Include): Include time.h, not time_r.h.
69025         * modules/timegm: Likewise.
69026         * modules/timespec (Description): Now does timespec-related decls
69027         of our own, instead of struct timespec itself.
69028         (Depends-on): Add time; remove extensions.
69029         (Maintainer): Add self.
69030         * modules/utimecmp (Depends-on): Add time; remove timespec.
69031         * modules/utimens (Depends-on): Likewise.
69032         * modules/xnanosleep (Depends-on): Likewise.
69033
69034 2007-02-11  Bruno Haible  <bruno@clisp.org>
69035
69036         * lib/c-strstr.c: Include allocsa.h.
69037         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69038         * lib/c-strcasestr.c: Include allocsa.h.
69039         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69040         * lib/strcasestr.c: Include allocsa.h.
69041         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69042         * lib/mbsstr.c: Include allocsa.h.
69043         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69044         allocsa/freesa instead of malloc/free.
69045         * lib/mbscasestr.c: Include allocsa.h.
69046         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69047         allocsa/freesa instead of malloc/free.
69048         * modules/c-strstr (Depends-on): Add allocsa.
69049         * modules/c-strcasestr (Depends-on): Likewise.
69050         * modules/strcasestr (Depends-on): Likewise.
69051         * modules/mbsstr (Depends-on): Likewise.
69052         * modules/mbscasestr (Depends-on): Likewise.
69053
69054 2007-02-11  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69057
69058         * modules/mbsspn-tests: New file.
69059         * tests/test-mbsspn.sh: New file.
69060         * tests/test-mbsspn.c: New file.
69061
69062 2007-02-11  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69065
69066         * modules/mbspbrk-tests: New file.
69067         * tests/test-mbspbrk.sh: New file.
69068         * tests/test-mbspbrk.c: New file.
69069
69070 2007-02-11  Bruno Haible  <bruno@clisp.org>
69071
69072         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69073         unneeded cast.
69074
69075         * modules/mbscspn-tests: New file.
69076         * tests/test-mbscspn.sh: New file.
69077         * tests/test-mbscspn.c: New file.
69078
69079 2007-02-11  Bruno Haible  <bruno@clisp.org>
69080
69081         * modules/mbscasecmp-tests: New file.
69082         * tests/test-mbscasecmp.sh: New file.
69083         * tests/test-mbscasecmp.c: New file.
69084
69085 2007-02-11  Bruno Haible  <bruno@clisp.org>
69086
69087         Ensure O(n) worst-case complexity of mbscasestr.
69088         * lib/mbscasestr.c: Include stdbool.h.
69089         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69090         functions.
69091         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69092         the bookkeeping indicates that it's worth it.
69093         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69094
69095         * modules/mbscasestr-tests: New file.
69096         * tests/test-mbscasestr1.c: New file.
69097         * tests/test-mbscasestr2.sh: New file.
69098         * tests/test-mbscasestr2.c: New file.
69099         * tests/test-mbscasestr3.sh: New file.
69100         * tests/test-mbscasestr3.c: New file.
69101         * tests/test-mbscasestr4.sh: New file.
69102         * tests/test-mbscasestr4.c: New file.
69103         * m4/locale-tr.m4: New file.
69104
69105 2007-02-11  Bruno Haible  <bruno@clisp.org>
69106
69107         Ensure O(n) worst-case complexity of mbsstr.
69108         * lib/mbsstr.c: Include stdbool.h.
69109         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69110         functions.
69111         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69112         bookkeeping indicates that it's worth it.
69113         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69114
69115         * modules/mbsstr-tests: New file.
69116         * tests/test-mbsstr1.c: New file.
69117         * tests/test-mbsstr2.sh: New file.
69118         * tests/test-mbsstr2.c: New file.
69119         * tests/test-mbsstr3.sh: New file.
69120         * tests/test-mbsstr3.c: New file.
69121         * m4/locale-fr.m4: New file.
69122
69123 2007-02-11  Bruno Haible  <bruno@clisp.org>
69124
69125         * lib/mbsrchr.c (mbsrchr): Fix bug.
69126
69127         * modules/mbsrchr-tests: New file.
69128         * tests/test-mbsrchr.sh: New file.
69129         * tests/test-mbsrchr.c: New file.
69130
69131 2007-02-11  Bruno Haible  <bruno@clisp.org>
69132
69133         * lib/mbschr.c (mbschr): Fix bug.
69134
69135         * modules/mbschr-tests: New file.
69136         * tests/test-mbschr.sh: New file.
69137         * tests/test-mbschr.c: New file.
69138         * m4/locale-zh.m4: New file.
69139
69140 2007-02-11  Bruno Haible  <bruno@clisp.org>
69141
69142         Support for copying multibyte string iterators.
69143         * lib/mbiter.h: Include <string.h>.
69144         (mbiter_multi_copy): New function.
69145         (mbi_copy): New macro.
69146         * lib/mbuiter.h: Include <string.h>.
69147         (mbuiter_multi_copy): New function.
69148         (mbui_copy): New macro.
69149
69150 2007-02-11  Bruno Haible  <bruno@clisp.org>
69151
69152         New module mbslen.
69153         * modules/mbslen: New file.
69154         * lib/mbslen.c: New file.
69155         * lib/string_.h (mbslen): New declaration.
69156         * m4/mbslen.m4: New file.
69157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69158         GNULIB_MBSLEN.
69159         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69160         * MODULES.html.sh (Internationalization functions): Add mbslen.
69161
69162 2007-02-11  Bruno Haible  <bruno@clisp.org>
69163
69164         Ensure O(n) worst-case complexity of strcasestr substitute.
69165         * lib/strcasestr.c: Include stdbool.h.
69166         (knuth_morris_pratt): New function.
69167         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69168         bookkeeping indicates that it's worth it.
69169         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69170
69171         * modules/strcasestr-tests: New file.
69172         * tests/test-strcasestr.c: New file.
69173
69174 2007-02-11  Bruno Haible  <bruno@clisp.org>
69175
69176         Ensure O(n) worst-case complexity of c_strcasestr.
69177         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69178         (knuth_morris_pratt): New function.
69179         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69180         the bookkeeping indicates that it's worth it.
69181         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69182
69183         * modules/c-strcasestr-tests: New file.
69184         * tests/test-c-strcasestr.c: New file.
69185
69186 2007-02-11  Bruno Haible  <bruno@clisp.org>
69187
69188         Ensure O(n) worst-case complexity of c_strstr.
69189         * lib/c-strstr.c: Include stdbool.h, string.h.
69190         (knuth_morris_pratt): New function.
69191         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69192         bookkeeping indicates that it's worth it.
69193         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69194
69195         * lib/c-strstr.c: Complete rewrite for maintainability.
69196
69197         * modules/c-strstr-tests: New file.
69198         * tests/test-c-strstr.c: New file.
69199
69200 2007-02-11  Bruno Haible  <bruno@clisp.org>
69201
69202         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69203         5.2.1 and earlier, whereby \055 was treated just like the range
69204         delimiter '-'.
69205         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69206
69207 2007-02-08  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/regex (Depends-on): Add stdbool.
69210         Reported by Dalibor Topic <robilad@kaffe.org>.
69211
69212 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69215         Prefer returning from main to exiting from it.
69216         Remove unnecessary parens after sizeof.
69217
69218 2007-02-05  Bruno Haible  <bruno@clisp.org>
69219
69220         New module mbssep.
69221         * modules/mbssep: New file.
69222         * lib/mbssep.c: New file.
69223         * lib/string_.h (strsep): Add a conditional link warning.
69224         (mbssep): New declaration.
69225         * m4/mbssep.m4: New file.
69226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69227         GNULIB_MBSSEP.
69228         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69229         * MODULES.html.sh (Internationalization functions): Add mbssep.
69230
69231 2007-02-05  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69234         Optimize search in case of 1 delimiter.
69235
69236 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69237
69238         * lib/acl.h: Include sys/types.h before sys/acl.h.
69239
69240 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69241
69242         Merge upstream fix for glibc bugzilla #3957:
69243
69244         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69245
69246         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69247         bit for RE_HAT_LISTS_NOT_NEWLINE.
69248         (build_charclass_op): Remove bogus comment.
69249
69250 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69251
69252         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69253
69254 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69255
69256         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69257         * lib/memmem.c [!defined _LIBC]: Include config.h.
69258
69259 2007-02-04  Bruno Haible  <bruno@clisp.org>
69260
69261         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69262         warning message.
69263
69264 2007-02-04  Bruno Haible  <bruno@clisp.org>
69265
69266         New module mbstok_r.
69267         * modules/mbstok_r: New file.
69268         * lib/mbstok_r.c: New file.
69269         * lib/string_.h (strtok_r): Change argument names to match the
69270         comments. Add a conditional link warning.
69271         (mbstok_r): New declaration.
69272         * m4/mbstok_r.m4: New file.
69273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69274         GNULIB_MBSTOK_R.
69275         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69276         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69277
69278 2007-02-04  Bruno Haible  <bruno@clisp.org>
69279
69280         New module mbsspn.
69281         * modules/mbsspn: New file.
69282         * lib/mbsspn.c: New file.
69283         * lib/string_.h (strspn): Add a conditional link warning.
69284         (mbsspn): New declaration.
69285         * m4/mbsspn.m4: New file.
69286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69287         GNULIB_MBSSPN.
69288         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69289         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69290
69291 2007-02-04  Bruno Haible  <bruno@clisp.org>
69292
69293         New module mbspbrk.
69294         * modules/mbspbrk: New file.
69295         * lib/mbspbrk.c: New file.
69296         * lib/string_.h (strpbrk): Add a conditional link warning.
69297         (mbspbrk): New declaration.
69298         * m4/mbspbrk.m4: New file.
69299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69300         GNULIB_MBSPBRK.
69301         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69302         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69303
69304 2007-02-04  Bruno Haible  <bruno@clisp.org>
69305
69306         New module mbscspn.
69307         * modules/mbscspn: New file.
69308         * lib/mbscspn.c: New file.
69309         * lib/string_.h (strcspn): Add a conditional link warning.
69310         (mbscspn): New declaration.
69311         * m4/mbscspn.m4: New file.
69312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69313         GNULIB_MBSCSPN.
69314         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69315         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69316
69317 2007-02-04  Bruno Haible  <bruno@clisp.org>
69318
69319         New module mbscasestr, reduced goal of strcasestr.
69320         * modules/mbscasestr: New file.
69321         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69322         (mbscasestr): Renamed from strcasestr.
69323         * lib/strcasestr.c: Don't include mbuiter.h.
69324         (strcasestr): Remove support for multibyte locales.
69325         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69326         Change the conditional link warning.
69327         (mbscasestr): New declaration.
69328         * m4/mbscasestr.m4: New file.
69329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69330         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69331         REPLACE_STRCASESTR.
69332         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69334         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69335         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69336         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69337         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69338         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69339         (Depends-on): Remove mbuiter.
69340         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69341
69342 2007-02-04  Bruno Haible  <bruno@clisp.org>
69343
69344         Simplify handling of strncasecmp.
69345         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69346         the conditional link warning.
69347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69348         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69349         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69350         * modules/strcase (configure.ac): Don't invoke
69351         gl_STRING_MODULE_INDICATOR.
69352         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69353
69354 2007-02-04  Bruno Haible  <bruno@clisp.org>
69355
69356         New module mbscasecmp, reduced goal of strcasecmp.
69357         * modules/mbscasecmp: New file.
69358         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69359         (mbscasecmp): Renamed from strcasecmp.
69360         * lib/strcasecmp.c: Don't include mbuiter.h.
69361         (strcasecmp): Remove support for multibyte locales.
69362         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69363         Change the conditional link warning.
69364         (mbscasecmp): New declaration.
69365         * m4/mbscasecmp.m4: New file.
69366         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69367         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69368         REPLACE_STRCASECMP.
69369         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69371         GNULIB_MBSCASECMP.
69372         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69373         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69374         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69375         (Depends-on): Remove mbuiter.
69376         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69377
69378 2007-02-04  Bruno Haible  <bruno@clisp.org>
69379
69380         New module mbsstr. Remove module strstr.
69381         * modules/mbsstr: New file.
69382         * modules/strstr: Remove file.
69383         * lib/mbsstr.c: Renamed from lib/strstr.c.
69384         (mbsstr): Renamed from strstr.
69385         * lib/string_.h (strstr): Remove declaration. Change the conditional
69386         link warning.
69387         (mbsstr): New declaration.
69388         * m4/mbsstr.m4: New file.
69389         * m4/strstr.m4: Remove file.
69390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69391         REPLACE_STRSTR.
69392         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69393         Don't initialize GNULIB_STRSTR.
69394         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69395         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69396         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69397         (Support for systems lacking ANSI C 89): Remove strstr.
69398
69399 2007-02-04  Bruno Haible  <bruno@clisp.org>
69400
69401         New module mbsrchr.
69402         * modules/mbsrchr: New file.
69403         * lib/mbsrchr.c: New file.
69404         * lib/string_.h (strrchr): Add a conditional link warning.
69405         (mbsrchr): New declaration.
69406         * m4/mbsrchr.m4: New file.
69407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69408         GNULIB_MBSRCHR.
69409         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69410         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69411
69412 2007-02-04  Bruno Haible  <bruno@clisp.org>
69413
69414         New module mbschr.
69415         * modules/mbschr: New file.
69416         * lib/mbschr.c: New file.
69417         * lib/string_.h (strchr): Add a conditional link warning.
69418         (mbschr): New declaration.
69419         * m4/mbschr.m4: New file.
69420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69421         GNULIB_MBSCHR.
69422         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69423         * MODULES.html.sh (Internationalization functions): Add mbschr.
69424
69425 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69428
69429         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69430
69431 2007-02-04  Bruno Haible  <bruno@clisp.org>
69432
69433         New module description section 'configure.ac-early'.
69434         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69435         (func_get_autoconf_early_snippet): New function.
69436         (func_import, func_create_testdir): Use it. Remove special cases for
69437         modules 'extensions' and 'lock'.
69438         * modules/extensions (configure.ac-early): Require
69439         gl_USE_SYSTEM_EXTENSIONS.
69440         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69441
69442 2007-02-04  Bruno Haible  <bruno@clisp.org>
69443
69444         Make use of gcj-4.3's -fsource and -ftarget option.
69445         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69446         and if so try the options -fsource and -ftarget.
69447         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69448         source_version, ftarget_option, target_version arguments.
69449         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69450         (is_envjavac_oldgcj_14_14_usable): Renamed from
69451         is_envjavac_gcj_14_14_usable.
69452         (is_envjavac_oldgcj_14_13_usable): Renamed from
69453         is_envjavac_gcj_14_13_usable.
69454         (is_gcj_present): Update.
69455         (is_gcj_43, is_gcj43_usable): New functions.
69456         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69457         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69458         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69459         try the options -fsource and -ftarget.
69460
69461 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69464         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69465         larger value.
69466
69467 2007-02-03  Jim Meyering  <jim@meyering.net>
69468
69469         Give tools a better chance to allocate space for very large buffers.
69470         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69471
69472         Make pwd and readlink work also when run with an unreadable parent dir
69473         on systems with openat support.
69474         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69475         provided getcwd function, even when we have openat support.
69476         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69477
69478 2007-02-02  Bruno Haible  <bruno@clisp.org>
69479
69480         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69481         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69482         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69483         portability problems if one of these functions is only used on specific
69484         platforms.
69485         Reported by Paul Eggert.
69486
69487 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69488
69489         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69490         is causing more trouble than it's curing.
69491         * lib/regex_internal.h (__mempcpy): Remove.
69492         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69493         (and make the code a tad smaller to boot).
69494         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69495
69496 2007-02-02  Jim Meyering  <jim@meyering.net>
69497
69498         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69499         section, not in the Makefile.am: one.
69500
69501 2007-02-02  Eric Blake  <ebb9@byu.net>
69502
69503         * lib/strchrnul.c: Always include config.h first.
69504
69505         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69506         gnulib strstr is not necessary here.
69507
69508 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69509
69510         * m4/socklen.m4: Fix typo.
69511
69512 2007-02-02  Eric Blake  <ebb9@byu.net>
69513
69514         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69515         * modules/netinet_in (Makefile.am): Likewise.
69516
69517 2007-02-01  Bruno Haible  <bruno@clisp.org>
69518
69519         * lib/string_.h (GL_LINK_WARNING): New macro.
69520         (strcasecmp, strstr, strcasestr): If provided by the system,
69521         conditionally define as a macro that leads to a warning instead of to
69522         an error.
69523         (strncasecmp): Conditionally define as a macro that leads to a warning.
69524
69525 2007-02-01  Karl Berry  <karl@gnu.org>
69526
69527         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69528
69529 2007-02-01  Bruno Haible  <bruno@clisp.org>
69530
69531         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69532         renamings.
69533
69534 2007-02-01  Eric Blake  <ebb9@byu.net>
69535
69536         * modules/regex (Depends-on): Revert dependence on mempcpy.
69537         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69538         module's definition of mempcpy.
69539         Reported by Paul Eggert.
69540
69541 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69544         the symbol XYZ before redefining it.  This fixes a problem with
69545         programs that don't use XYZ, when compiled on systems that define
69546         XYZ to something else.
69547
69548 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69551         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69552         writeable to group or other and (2) is intended to have a special
69553         mode bit that is set or cleared.  In such a case, the directory
69554         should be neither group- nor other-writeable until the special
69555         mode bits are right.
69556
69557 2007-01-31  Eric Blake  <ebb9@byu.net>
69558
69559         * modules/mountlist (Depends-on): Add strstr.
69560
69561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69562         bug.
69563         * modules/string (Makefile.am): Remove redundant replacement.
69564         * modules/regex (Depends-on): Add mempcpy.
69565
69566 2007-01-31  Bruno Haible  <bruno@clisp.org>
69567
69568         New module description field 'Link'.
69569         * gnulib-tool (func_usage): Document --extract-link-directive.
69570         (sed_extract_prog): Recognize 'Link' directive.
69571         (func_get_link_directive): New function.
69572         (func_import): Show summary of link directives.
69573         Handle --extract-link-directive option.
69574         * modules/acl (Link): New section.
69575         * modules/clock-time (Link): New section.
69576         * modules/euidaccess (Link): New section.
69577         * modules/gettext (Link): New section.
69578         * modules/iconv (Link): New section.
69579         * modules/lock (Link): New section.
69580         * modules/nanosleep (Link): New section.
69581         * modules/readline (Link): New section.
69582
69583 2007-01-27  Bruno Haible  <bruno@clisp.org>
69584
69585         Enforce the use of gnulib modules for unportable <string.h> functions.
69586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69587         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69588         (gl_HEADER_STRING_H_BODY): Require it.
69589         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69590         the symbol XYZ to one that gives a link error.
69591         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69592         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69593         * modules/mempcpy (configure.ac): Likewise.
69594         * modules/memrchr (configure.ac): Likewise.
69595         * modules/stpcpy (configure.ac): Likewise.
69596         * modules/stpncpy (configure.ac): Likewise.
69597         * modules/strcase (configure.ac): Likewise.
69598         * modules/strcasestr (configure.ac): Likewise.
69599         * modules/strchrnul (configure.ac): Likewise.
69600         * modules/strdup (configure.ac): Likewise.
69601         * modules/strndup (configure.ac): Likewise.
69602         * modules/strnlen (configure.ac): Likewise.
69603         * modules/strpbrk (configure.ac): Likewise.
69604         * modules/strsep (configure.ac): Likewise.
69605         * modules/strstr (configure.ac): Likewise.
69606         * modules/strtok_r (configure.ac): Likewise.
69607
69608 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69609
69610         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69611
69612 2007-01-30  Jim Meyering  <jim@meyering.net>
69613
69614         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69615
69616 2007-01-29  Bruno Haible  <bruno@clisp.org>
69617
69618         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69619         * lib/execute.c: Likewise.
69620         * lib/pipe.c: Likewise.
69621         * lib/printf-args.h: Likewise.
69622         * lib/printf-args.c: Likewise.
69623         * lib/printf-parse.c: Likewise.
69624         * lib/vasnprintf.c: Likewise.
69625
69626 2007-01-29  Eric Blake  <ebb9@byu.net>
69627
69628         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69629         declaration.
69630
69631 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         * lib/strptime.h (strptime): Use 'restrict' for args where
69634         POSIX requires this.
69635         * lib/strptime.c (strptime): Likewise.
69636         Change license notice from LGPL to GPL, since gnulib-tool will
69637         change this as needed.
69638         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69639         defined.
69640         Include "strptime.h" first, to check interface.
69641         Do not #undef _LIBC and _NL_CURRENT.
69642         Do not include <stdlib.h>; no longer needed.
69643         Include "time_r.h" and declare ptime_locale_status
69644         only if _LIBC is not defined.
69645         (__P): Remove unused macro.
69646         (match_string): Bring back glibc version, but use it only if _LIBC
69647         is defined.
69648         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69649         Remove unnecessary assertion and abort() call.
69650         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69651         * m4/strptime.m4: Fix serial number comment.
69652         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69653         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69654         (Depends-on): Add time_r.
69655
69656 2007-01-29  Bruno Haible  <bruno@clisp.org>
69657
69658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69659         strptime.
69660         * modules/strptime (Depends-on): Add stdbool.
69661         * lib/strptime.h: Include <time.h> always. Add comments.
69662
69663 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69664
69665         * modules/strptime: New file.
69666         * lib/strptime.h: New file.
69667         * lib/strptime.c: New file.
69668         * m4/strptime.m4: New file.
69669
69670 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * MODULES.html.sh: New module mpsort.
69673         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69674
69675         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69676         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69678         All uses changed.
69679         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69680         All uses changed.
69681         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69682         to _Restrict_.
69683         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69684         the parameter matches the prototype.
69685
69686 2007-01-28  Jim Meyering  <jim@meyering.net>
69687
69688         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69689         sys/time.h here, reverting that part of the previous patch:
69690         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69691
69692 2007-01-28  Bruno Haible  <bruno@clisp.org>
69693
69694         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69695         value of $(SYS_TIME_H).
69696         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69697         remove it conditionally, too. [added by Jim Meyering]
69698         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69700         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69701         GETTIMEOFDAY_REPLACEMENT to 1.
69702
69703 2007-01-28  Bruno Haible  <bruno@clisp.org>
69704
69705         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69706         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69708         Set UNISTD_H instead of UNISTD_H2.
69709         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69710
69711 2007-01-28  Bruno Haible  <bruno@clisp.org>
69712
69713         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69714         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69715
69716 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69717
69718         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69719         (func_create_testdir): Ensure C locale for `grep' and `tr'
69720         character ranges.
69721         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69722         ACLOCAL_AMFLAGS parsing state machine.
69723
69724 2007-01-27  Bruno Haible  <bruno@clisp.org>
69725
69726         * modules/unistr/base: Update.
69727
69728 2007-01-27  Bruno Haible  <bruno@clisp.org>
69729
69730         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69731         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69732         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69733         modules/unistr/u32-mbtouc.
69734         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69735         * lib/unistr.h: Update.
69736         * lib/linebreak.c: Update.
69737         * modules/unistr/u32-mbtouc: Renamed from
69738         modules/unistr/u32-mbtouc-safe.
69739         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69740         * lib/unistr.h: Update.
69741         * lib/unistr/u32-to-u8.c: Update.
69742         * lib/unistr/u32-to-u16.c: Update.
69743
69744 2007-01-27  Bruno Haible  <bruno@clisp.org>
69745
69746         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69747         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69748         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69749         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69750         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69751         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69752         modules/unistr/u16-mbtouc.
69753         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69754         * lib/unistr.h: Update.
69755         * lib/linebreak.c: Update.
69756         * modules/linebreak: Update.
69757         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69758         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69759         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69760         * modules/unistr/u16-mbtouc: Renamed from
69761         modules/unistr/u16-mbtouc-safe.
69762         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69763         * lib/unistr.h: Update.
69764         * lib/unistr/u16-to-u8.c: Update.
69765         * modules/unistr/u16-to-u8: Update.
69766         * lib/unistr/u16-to-u32.c: Update.
69767         * modules/unistr/u16-to-u32: Update.
69768
69769 2007-01-27  Bruno Haible  <bruno@clisp.org>
69770
69771         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69772         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69773         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69774         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69775         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69776         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69777         modules/unistr/u8-mbtouc.
69778         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69779         * lib/unistr.h: Update.
69780         * lib/striconveh.c: Update.
69781         * modules/striconveh: Update.
69782         * lib/linebreak.c: Update.
69783         * modules/linebreak: Update.
69784         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69785         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69786         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69787         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69788         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69789         * lib/unistr.h: Update.
69790         * lib/striconveh.c: Update.
69791         * modules/striconveh: Update.
69792         * lib/unistr/u8-to-u16.c: Update.
69793         * modules/unistr/u8-to-u16: Update.
69794         * lib/unistr/u8-to-u32.c: Update.
69795         * modules/unistr/u8-to-u32: Update.
69796
69797 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69798
69799         Sync from Libtool.
69800         * lib/argz.c: Do not include strings.h nor memory.h, include
69801         string.h unconditionally.  Patch by Simon Josefsson.
69802
69803 2007-01-27  Bruno Haible  <bruno@clisp.org>
69804
69805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69806         from gl_HEADER_STRING_H_BODY.
69807         (gl_HEADER_STRING_H_BODY): Require it.
69808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69809         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69811         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69813         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69815         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69816         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69819         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69820         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69821         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69822         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69823
69824 2007-01-27  Bruno Haible  <bruno@clisp.org>
69825
69826         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69827         check_PROGRAMS into noinst_PROGRAMS.
69828         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69829         check_PROGRAMS in this case.
69830         (func_import): Set for_test to false.
69831         (func_create_testdir): Set for_test to true.
69832
69833 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69834             Bruno Haible  <bruno@clisp.org>
69835
69836         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69837         (Depends-on): Add string.
69838         (Includes): Use <string.h> instead of strcasestr.h.
69839         * modules/string (Makefile.am): Also substitute the value of
69840         REPLACE_STRCASESTR.
69841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69842         assume strcasestr is declared in <string.h> not <strings.h>. Also
69843         set REPLACE_STRCASESTR.
69844         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69845         REPLACE_STRCASESTR.
69846         * lib/strcasestr.h: Remove file.
69847         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69848         * lib/string_.h (strcasestr): New declaration.
69849
69850 2007-01-27  Bruno Haible  <bruno@clisp.org>
69851
69852         * lib/string_.h: Use 'extern'.
69853
69854 2007-01-27  Jim Meyering  <jim@meyering.net>
69855
69856         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69857         of set-but-not-used local, "q".
69858
69859         * lib/mempcpy.c: Include <config.h> before <string.h>.
69860         This fixes a compilation error on HP-UX, due to the system's
69861         "restrict"-using mempcpy prototype.
69862
69863 2007-01-26  Bruno Haible  <bruno@clisp.org>
69864
69865         Small optimization.
69866         * lib/javacomp.c: Include c-strstr.h.
69867          (is_envjavac_gcj): Use c_strstr instead of strstr.
69868         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69869
69870 2007-01-26  Bruno Haible  <bruno@clisp.org>
69871
69872         * MODULES.html.sh (Unicode string functions): Add the new modules.
69873
69874         * modules/uniconv/u32-strconv-to-locale: New file.
69875         * lib/uniconv/u32-strconv-to-locale.c: New file.
69876
69877         * modules/uniconv/u16-strconv-to-locale: New file.
69878         * lib/uniconv/u16-strconv-to-locale.c: New file.
69879
69880         * modules/uniconv/u8-strconv-to-locale: New file.
69881         * lib/uniconv/u8-strconv-to-locale.c: New file.
69882
69883         * modules/uniconv/u32-strconv-from-locale: New file.
69884         * lib/uniconv/u32-strconv-from-locale.c: New file.
69885
69886         * modules/uniconv/u16-strconv-from-locale: New file.
69887         * lib/uniconv/u16-strconv-from-locale.c: New file.
69888
69889         * modules/uniconv/u8-strconv-from-locale: New file.
69890         * lib/uniconv/u8-strconv-from-locale.c: New file.
69891
69892         * modules/uniconv/u32-strconv-to-enc: New file.
69893         * lib/uniconv/u32-strconv-to-enc.c: New file.
69894         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69895         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69896
69897         * modules/uniconv/u16-strconv-to-enc: New file.
69898         * lib/uniconv/u16-strconv-to-enc.c: New file.
69899         * lib/uniconv/u-strconv-to-enc.h: New file.
69900         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69901         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69902
69903         * modules/uniconv/u8-strconv-to-enc: New file.
69904         * lib/uniconv/u8-strconv-to-enc.c: New file.
69905         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69906         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69907
69908         * modules/uniconv/u32-strconv-from-enc: New file.
69909         * lib/uniconv/u32-strconv-from-enc.c: New file.
69910         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69911         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69912
69913         * modules/uniconv/u16-strconv-from-enc: New file.
69914         * lib/uniconv/u16-strconv-from-enc.c: New file.
69915         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69916         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69917
69918         * modules/uniconv/u8-strconv-from-enc: New file.
69919         * lib/uniconv/u8-strconv-from-enc.c: New file.
69920         * lib/uniconv/u-strconv-from-enc.h: New file.
69921         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69922         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69923
69924         * modules/uniconv/u32-conv-from-enc: New file.
69925         * lib/uniconv/u32-conv-from-enc.c: New file.
69926         * modules/uniconv/u32-conv-from-enc-tests: New file.
69927         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69928
69929         * modules/uniconv/u16-conv-from-enc: New file.
69930         * lib/uniconv/u16-conv-from-enc.c: New file.
69931         * lib/uniconv/u-conv-from-enc.h: New file.
69932         * modules/uniconv/u16-conv-from-enc-tests: New file.
69933         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69934
69935         * modules/uniconv/u8-conv-from-enc: New file.
69936         * lib/uniconv/u8-conv-from-enc.c: New file.
69937         * modules/uniconv/u8-conv-from-enc-tests: New file.
69938         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69939
69940         * modules/uniconv/base: New file.
69941         * lib/uniconv.h: New file.
69942
69943 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         * doc/gnulib-tool.texi (Initial import): Update to match current
69946         behavior with strdup module.
69947         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69948         * lib/memmem.h: Remove; all uses removed.  This is now done
69949         by <string.h>.
69950         * lib/mempcpy.h: Likewise.
69951         * lib/memrchr.h: Likewise.
69952         * lib/stpcpy.h: Likewise.
69953         * lib/stpncpy.h: Likewise.
69954         * lib/strcase.h: Likewise.
69955         * lib/strchrnul.h: Likewise.
69956         * lib/strdup.h: Likewise.
69957         * lib/strndup.h: Likewise.
69958         * lib/strnlen.h: Likewise.
69959         * lib/strpbrk.h: Likewise.
69960         * lib/strsep.h: Likewise.
69961         * lib/strstr.h: Likewise.
69962         * lib/strtok_r.h: Likewise.
69963         * lib/string_.h: New file.
69964         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69965         Rely on <string.h> instead.
69966         * lib/canon-host.c: Likewise.
69967         * lib/chdir-long.c: Likewise.
69968         * lib/concatpath.c: Likewise.
69969         * lib/exclude.c: Likewise.
69970         * lib/fchdir.c: Likewise.
69971         * lib/getaddrinfo.c: Likewise.
69972         * lib/getcwd.c: Likewise.
69973         * lib/getsubopt.c: Likewise.
69974         * lib/glob.c: Likewise.
69975         * lib/hard-locale.c: Likewise.
69976         * lib/iconvme.c: Likewise.
69977         * lib/javacomp.c: Likewise.
69978         * lib/mempcpy.c: Likewise.
69979         * lib/memrchr.c: Likewise.
69980         * lib/regex_internal.h: Likewise.
69981         * lib/stpncpy.c: Likewise.
69982         * lib/strcasecmp.c: Likewise.
69983         * lib/strchrnul.c: Likewise.
69984         * lib/strdup.c: Likewise.
69985         * lib/striconv.c: Likewise.
69986         * lib/striconveh.c: Likewise.
69987         * lib/striconveha.c: Likewise.
69988         * lib/strncasecmp.c: Likewise.
69989         * lib/strndup.c: Likewise.
69990         * lib/strnlen.c: Likewise.
69991         * lib/strsep.c: Likewise.
69992         * lib/strstr.c: Likewise.
69993         * lib/strtok_r.c: Likewise.
69994         * lib/userspec.c: Likewise.
69995         * lib/w32spawn.h: Likewise.
69996         * lib/xstrndup.c: Likewise.
69997         * lib/mountlist.c (strstr): Remove decl.
69998         * m4/string_h.m4: New file.
69999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70000         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70001         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70002         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70003         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70004         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70005         Set REPLACE_STRCASECMP if necessary.
70006         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70007         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70008         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70009         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70010         HAVE_DECL_STRDUP if necessary.
70011         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70012         since gl_FUNC_STRNDUP does that now.
70013         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70014         Check for decl here...
70015         (gl_PREREQ_STRNLEN): ... not here.
70016         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70017         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70018         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70019         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70020         necessary.
70021         * modules/string: New file.
70022         * modules/memmem (Files): Remove special-purpose include file.
70023         (Depends-on): Add string.
70024         (Include): Include <string.h>, not the removed file.
70025         * modules/mempcpy: Likewise.
70026         * modules/memrchr: Likewise.
70027         * modules/stpcpy: Likewise.
70028         * modules/stpncpy: Likewise.
70029         * modules/strcase: Likewise.
70030         * modules/strchrnul: Likewise.
70031         * modules/strdup: Likewise.
70032         * modules/strndup: Likewise.
70033         * modules/strnlen: Likewise.
70034         * modules/strpbrk: Likewise.
70035         * modules/strsep: Likewise.
70036         * modules/strstr: Likewise.
70037         * modules/strtok_r: Likewise.
70038         * tests/test-dirname.c: Don't include "strdup.h", since
70039         <string.h> now suffices.
70040         * tests/test-memmem.c: Don't include "memmem.h", since
70041         <string.h> now suffices.
70042
70043 2007-01-25  Bruno Haible  <bruno@clisp.org>
70044
70045         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70046         *resultp is 0.
70047
70048         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70049         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70050         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70051         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70052
70053         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70054         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70055         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70056         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70057         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70058         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70059
70060 2007-01-24  Bruno Haible  <bruno@clisp.org>
70061
70062         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70063         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70064         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70065         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70066         gl_FUNC_FTS_CORE.
70067         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70068         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70069         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70070         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70071         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70072         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70073         gl_FUNC_FCHOWNAT.
70074         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70075         gl_FUNC_STRFTIME.
70076         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70077         Reported by Ralf Wildenhues.
70078
70079 2007-01-24  Bruno Haible  <bruno@clisp.org>
70080
70081         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70082         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70083         gl_GETADDRINFO.
70084         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70085         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70086         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70087
70088 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70089
70090         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70091         Don't use 'exit'; just return from 'main'.
70092         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70093
70094         * lib/fnmatch_.h: Readjust white space and comments to match
70095         glibc, to avoid spurious diffs.
70096
70097 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70100         2004-12-01 change by Jakub Jelinek, since this code won't compile
70101         if !LIBC.  Problem reported by Bob Proulx.
70102
70103 2007-01-23  Bruno Haible  <bruno@clisp.org>
70104
70105         * lib/striconveh.c: Include c-strcaseeq.h.
70106         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70107         * modules/striconveh (Depends-on): Add c-strcaseeq.
70108
70109 2007-01-23  Bruno Haible  <bruno@clisp.org>
70110
70111         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70112
70113         * modules/c-strcaseeq: New file.
70114         * lib/c-strcaseeq.h: New file.
70115
70116         * modules/streq: New file.
70117         * lib/streq.h: New file.
70118
70119 2007-01-23  Bruno Haible  <bruno@clisp.org>
70120
70121         * modules/striconveha-tests: New file.
70122         * tests/test-striconveha.c: New file.
70123
70124         * lib/striconveha.h: Include <stdbool.h>.
70125         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70126         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70127         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70128         (mem_iconveha): New function.
70129         (str_iconveha_notranslit): Renamed from str_iconveha.
70130         (str_iconveha): New function.
70131         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70132         c-strcase.
70133
70134 2007-01-23  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70137         encodings without forgiving before trying any encoding with handler.
70138         (str_iconveha): Try all encodings without forgiving before trying any
70139         encoding with handler.
70140
70141 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70142
70143         Import the following changes from libc.
70144
70145         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70146
70147         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70148
70149         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70150
70151         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70152         normal_bracket label.
70153
70154         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70155
70156         [BZ #361]
70157         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70158         to normal_bracket after fetching the next character.
70159
70160 2007-01-22  Bruno Haible  <bruno@clisp.org>
70161
70162         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70163         argument.
70164         * lib/striconveh.c (iconv_carefully_1): New function.
70165         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70166         argument.
70167         (str_cd_iconveh): Update.
70168         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70169         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70170         * tests/test-striconveh.c (MAGIC): New macro.
70171         (new_offsets): New function.
70172         (main): Test call with and without offsets.
70173
70174 2007-01-22  Bruno Haible  <bruno@clisp.org>
70175
70176         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70177         * modules/sys_select (Makefile.am): Likewise.
70178         * modules/sys_socket (Makefile.am): Likewise.
70179         * modules/sys_time (Makefile.am): Likewise.
70180
70181 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * modules/gettimeofday (License): Change from GPL to LGPL, since
70184         gettimeofday is a library function.
70185
70186 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70187
70188         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70189
70190 2007-01-21  Bruno Haible  <bruno@clisp.org>
70191
70192         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70193
70194 2007-01-21  Bruno Haible  <bruno@clisp.org>
70195
70196         * modules/striconveha: New file.
70197         * lib/striconveha.h: New file.
70198         * lib/striconveha.c: New file.
70199         * MODULES.html.sh (Internationalization functions): Add striconveha.
70200         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70201         string.
70202         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70203
70204 2007-01-21  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70207         * lib/striconveh.c (str_iconveh): Likewise.
70208
70209 2007-01-21  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/striconveh.h (mem_iconveh): New declaration.
70212         * lib/striconveh.c (mem_iconveh): New function.
70213         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70214
70215 2007-01-21  Bruno Haible  <bruno@clisp.org>
70216
70217         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70218
70219         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70220         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70221         original result buffer.
70222         (str_cd_iconveh): Update.
70223         * tests/test-striconveh.c (main): Update.
70224
70225         * lib/striconv.h (mem_cd_iconv): Change specification.
70226         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70227         result buffer.
70228         (str_cd_iconv): Update.
70229         * tests/test-striconv.c (main): Update.
70230
70231 2007-01-21  Bruno Haible  <bruno@clisp.org>
70232
70233         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70234
70235 2007-01-20  Jim Meyering  <jim@meyering.net>
70236
70237         * lib/userspec.c (parse_with_separator): If a user or group string
70238         starts with "+", skip the corresponding name-to-ID look-up, since
70239         such a look-up must fail: user and group names may not include "+".
70240
70241 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70244         since we now assume the sys_time module.
70245         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70246         check for sys/time.h; no longer needed.
70247         * modules/poll (Depends-on): Depend on sys_time.
70248
70249 2007-01-18  Bruno Haible  <bruno@clisp.org>
70250
70251         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70252         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70253
70254         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70255         gettimeofday.
70256
70257         * tests/test-gettimeofday.c: Include <time.h>.
70258         (dummy): Remove variable.
70259
70260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70261         gl_HEADER_SYS_TIME_H.
70262         (gl_HEADER_SYS_TIME_H): New macro.
70263
70264         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70265         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70267         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70268         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70270         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70271         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70272         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70273         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70274         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70275
70276         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70277         last change; it caused a compilation error when cross-compiling to
70278         Cygwin.
70279
70280 2007-01-18  Jim Meyering  <jim@meyering.net>
70281
70282         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70283         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70284         than the race-prone "test -d sys || mkdir sys".
70285         (configure.ac): Use AC_PROG_MKDIR_P.
70286         * modules/sys_select: Likewise.
70287         * modules/sys_socket: Likewise.
70288         * modules/sys_time: Likewise.
70289
70290 2007-01-18  Eric Blake  <ebb9@byu.net>
70291
70292         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70293         replace gettimeofday.
70294         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70295         name, to avoid infinite recursion.
70296
70297 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70298
70299         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70300         module sys_time.
70301         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70302         assume timespec.h defines struct timeval.
70303         * lib/settime.c: Likewise.
70304         * lib/utimens.c: Likewise.
70305         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70306         since we now assume the gettimeofday module.
70307         * lib/tempname.c (__gen_tempname): Likewise.
70308         * lib/gettimeofday.h: Remove.
70309         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70310         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70311         Include <time.h>, for 'time()'.
70312         (localtime_buffer_addr): Also use this workaround if
70313         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70314         to simplify the uses.  All uses changed.
70315         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70316         that #undef is inside {}, and 'const' follows type name consistently.
70317         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70318         (gettimeofday): Do not use the maximum possible value for
70319         tv->tv_usec, since that might break usages other than ls.c.
70320         Instead, we'll leave ls.c alone.  This undoes today's patch
70321         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70322         we've never observed the problem but might as well keep the
70323         canary.
70324         * lib/nanosleep.c: Include timespec.h first, for interface check.
70325         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70326         now assume the sys_time module.
70327         * lib/tempname.c: Likewise.
70328         * lib/timespec.h: Likewise.
70329         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70330         needed.
70331         * lib/strftime.c: Likewise.
70332         * lib/timespec.h: Likewise.
70333         * lib/posixtm.c: Include posixtm.h first, for interface check.
70334         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70335         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70336         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70337         * lib/sys_time_.h: New file.
70338         * lib/timespec.h (struct timespec): Use long int, not long.
70339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70340         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70341         Remove obsolescent call to AC_HEADER_TIME.
70342         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70344         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70345         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70346         Likewise.
70347         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70348         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70350         into the sys_time module.  Check for gettimeofday just once.
70351         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70352         for gettimeofday signature to just check the signature.  Merely
70353         compile it, since linking doesn't test signature.  Improve test for
70354         whether gettimeofday.o is actually needed.
70355         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70356         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70357         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70358         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70359         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70360         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70361         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70362         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70363         than worrying about sys/time.h.
70364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70365         Don't bother worrying about TIME_WITH_SYS_TIME.
70366         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70367         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70368         * m4/sys_time_h.m4: New file.
70369         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70370         Don't include sys/time.h.  Return from main rather than exiting.
70371         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70372         all uses changed.
70373         * modules/gethrxtime (Depends-on): Add sys_time.
70374         * modules/gettime (Depends-on): Likewise.
70375         * modules/gettimeofday (Depends-on): Likewise.
70376         * modules/nanosleep (Depends-on): Likewise.
70377         * modules/settime (Depends-on): Likewise.
70378         * modules/tempname (Depends-on): Likewise.
70379         * modules/utimens (Depends-on): Likewise.
70380         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70381         (Include): Change back to <sys/time.h>.
70382         (Maintainer): Add self.
70383         * modules/sys_time: New file.
70384         * modules/tempname (Depends-on): Add gettimeofday.
70385         * tests/test-gettimeofday.c: Include <sys/time.h>
70386         rather than gettimeofday.h.
70387
70388 2007-01-17  Bruno Haible  <bruno@clisp.org>
70389
70390         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70391         the license default to GPL.
70392         (func_create_testdir): Don't complain if a module is LGPL and its
70393         tests module depends on GPLed modules.
70394
70395 2007-01-17  Bruno Haible  <bruno@clisp.org>
70396
70397         * lib/gettimeofday.c (gettimeofday): Add code for the case
70398         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70399         maximum possible value for tv->tv_usec, rather than the minimum one.
70400
70401 2005-10-08  Martin Lambers  <marlam@marlam.de>
70402 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70403 2007-01-16  Bruno Haible  <bruno@clisp.org>
70404
70405         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70406         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70407         gl_FUNC_GETTIMEOFDAY.
70408         (Include): Add gettimeofday.h.
70409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70410         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70412         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70413         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70414         * lib/gettimeofday.h: New file.
70415         * lib/gettimeofday.c: Include <sys/timeb.h>.
70416         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70417         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70418         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70419         fall back on time().
70420
70421         * tests/test-gettimeofday.c: New file.
70422         * modules/gettimeofday-tests: New file.
70423
70424 2007-01-16  Eric Blake  <ebb9@byu.net>
70425
70426         * modules/fnmatch (Depends-on): Depend on wchar.
70427         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70428         * m4/fnmatch.m4: Likewise.
70429         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70430         * m4/mbchar.m4: Likewise.
70431         * modules/mbswidth (Depends-on): Depend on wchar.
70432         * lib/mbswidth.c: Assume <wchar.h>.
70433         * m4/mbswidth.m4: Likewise.
70434         * modules/quotearg (Depends-on): Depend on wchar.
70435         * lib/quotearg.c: Assume <wchar.h>.
70436         * m4/quotearg.m4: Likewise.
70437         * modules/regex (Depends-on): Depend on wchar.
70438         * lib/regex_internal.h: Assume <wchar.h>.
70439         * m4/regex.m4: Likewise.
70440         * modules/stdint (Depends-on): Depend on wchar.
70441         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70442         * m4/stdint.m4: Likewise.
70443         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70444         * modules/strftime (Depends-on): Depend on wchar.
70445         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70446         * modules/strtol (Depends-on): Depend on wchar.
70447         * lib/strtol.c: Assume <wchar.h>.
70448         * modules/wcwidth (Depends-on): Depend on wchar.
70449         * lib/wcwidth.h: Assume <wchar.h>.
70450         * m4/wcwidth.m4: Likewise.
70451
70452 2007-01-16  Bruno Haible  <bruno@clisp.org>
70453
70454         * modules/csharpexec-script: New, created from...
70455         * modules/csharpexec: ... this.
70456
70457 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70458
70459         * modules/javaexec-script: New, created from...
70460         * modules/javaexec: ... this.
70461
70462 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70463
70464         * modules/poll (Dependencies): Add sys_select.
70465
70466 2007-01-15  Jim Meyering  <jim@meyering.net>
70467
70468         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70469         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70470         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70471         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70472
70473 2007-01-15  Bruno Haible  <bruno@clisp.org>
70474
70475         * modules/striconveh: New file.
70476         * lib/striconveh.h: New file.
70477         * lib/striconveh.c: New file.
70478         * MODULES.html.sh (Internationalization functions): Add striconveh.
70479
70480         * modules/striconveh-tests: New file.
70481         * tests/test-striconveh.c: New file.
70482
70483 2007-01-15  Bruno Haible  <bruno@clisp.org>
70484
70485         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70486         not from GNU libiconv or GNU libc.
70487
70488 2007-01-15  Bruno Haible  <bruno@clisp.org>
70489
70490         * doc/gnulib-intro.texi (Copyright): Explain the different license
70491         terms for module descriptions, autoconf macros, tests, documentation.
70492
70493 2007-01-14  Bruno Haible  <bruno@clisp.org>
70494
70495         * modules/striconv-tests: New file.
70496         * tests/test-striconv.c: New file.
70497
70498 2007-01-14  Bruno Haible  <bruno@clisp.org>
70499
70500         * modules/iconv-tests: New file.
70501         * tests/test-iconv.c: New file.
70502
70503 2007-01-14  Bruno Haible  <bruno@clisp.org>
70504
70505         * gnulib-tool (func_get_license): For test modules, use the license of
70506         the main module.
70507
70508 2007-01-14  Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70511         if iconv is found to exist.
70512
70513 2007-01-14  Bruno Haible  <bruno@clisp.org>
70514
70515         * modules/c-ctype-tests: New file.
70516         * tests/test-c-ctype.c: New file.
70517
70518 2007-01-14  Bruno Haible  <bruno@clisp.org>
70519
70520         * modules/binary-io-tests: New file.
70521         * tests/test-binary-io.sh: New file.
70522         * tests/test-binary-io.c: New file.
70523
70524 2007-01-14  Bruno Haible  <bruno@clisp.org>
70525
70526         * modules/array-oset-tests: New file.
70527         * tests/test-array_oset.c: New file.
70528
70529 2007-01-14  Bruno Haible  <bruno@clisp.org>
70530
70531         * modules/array-list-tests: New file.
70532         * tests/test-array_list.c: New file.
70533
70534 2007-01-14  Bruno Haible  <bruno@clisp.org>
70535
70536         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70537         and make.
70538         Reported by Simon Josefsson in
70539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70540
70541 2007-01-14  Bruno Haible  <bruno@clisp.org>
70542
70543         * modules/allocsa-tests: New file.
70544         * tests/test-allocsa.c: New file.
70545
70546 2007-01-14  Bruno Haible  <bruno@clisp.org>
70547
70548         * modules/fchdir (Depends-on): Add absolute-header.
70549         * modules/unistd (Depends-on): Likewise.
70550
70551 2006-12-30  Bruno Haible  <bruno@clisp.org>
70552
70553         * modules/fchdir: New file.
70554         * modules/unistd (Files): Add lib/unistd_.h.
70555         (Makefile.am): Generate unistd.h from unistd_.h.
70556         * lib/fchdir.c: New file.
70557         * lib/dirent_.h: New file.
70558         * lib/unistd_.h: New file.
70559         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70560         * m4/fchdir.m4: New file.
70561         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70562         (gl_HEADER_UNISTD): Invoke it.
70563         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70564         function.
70565         * lib/backupfile.c (opendir, closedir): Undefine.
70566         * lib/chown.c (open, close): Undefine.
70567         * lib/clean-temp.c (open, close): Undefine.
70568         * lib/copy-file.c (open, close): Undefine.
70569         * lib/execute.c (open, close): Undefine.
70570         * lib/fsusage.c (open, close): Undefine.
70571         * lib/gc-gnulib.c (open, close): Undefine.
70572         * lib/getcwd.c (opendir, closedir): Undefine.
70573         * lib/glob.c (opendir, closedir): Undefine.
70574         * lib/javacomp.c (open, close): Undefine.
70575         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70576         * lib/openat-proc.c (open, close): Undefine.
70577         * lib/pagealign_alloc.c (open, close): Undefine.
70578         * lib/pipe.c (open, close): Undefine.
70579         * lib/progreloc.c (open, close): Undefine.
70580         * lib/savedir.c (opendir, closedir): Undefine.
70581         * lib/utime.c (open, close): Undefine.
70582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70583
70584 2007-01-10  Bruno Haible  <bruno@clisp.org>
70585
70586         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70587
70588 2007-01-12  Eric Blake  <ebb9@byu.net>
70589
70590         Provide a robust <wchar.h>.  Further simplifications are now
70591         possible in other modules, but not included here.
70592         * modules/wchar: New module.
70593         * m4/wchar.m4: New file.
70594         * lib/wchar_.h: Likewise.
70595         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70596         of the new module.
70597         * MODULES.html.sh (Extended multibyte and wide character utilities):
70598         New section.
70599
70600 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70603         to a reasonable default for memory allocation.
70604         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70605         file system that reports garbage st_size values for symlinks.
70606         Problem reported by Liyang Hu.
70607
70608 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70609
70610         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70611         Emacs .#* auto-save files).
70612
70613 2007-01-11  Bruno Haible  <bruno@clisp.org>
70614
70615         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70616         directory.
70617
70618 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70619
70620         Use @...@ consistently in lib/wctype_.h.
70621         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70622         on it being set to 1 or 0.
70623         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70624         go back to AC_SUBSTing it.
70625         * modules/wctype (Makefile.am): Undo previous change.
70626
70627 2007-01-10  Eric Blake  <ebb9@byu.net>
70628
70629         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70630         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70631         * modules/wctype (Makefile.am): Likewise.
70632         Reported by Chris McGuire.
70633
70634 2007-01-10  Jim Meyering  <jim@meyering.net>
70635
70636         fts.c: a small readability/maintainability improvement
70637         * lib/fts.c (fts_read): Make this code slightly more readable and
70638         maintainable by hoisting the "sp->fts_cur = p" assignments to
70639         immediately follow the statements that set P.  Derived from
70640         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70641
70642 2007-01-10  Eric Blake  <ebb9@byu.net>
70643
70644         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70645         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70647         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70648         Reported by Chris McGuire.
70649
70650 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70651
70652         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70653         in sed script.
70654
70655 2007-01-09  Bruno Haible  <bruno@clisp.org>
70656
70657         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70658         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70659         variables.
70660         (func_module): Use them.
70661
70662 2007-01-09  Bruno Haible  <bruno@clisp.org>
70663
70664         * modules/unistr/base: New file.
70665         * lib/unistr.h: New file.
70666
70667         * modules/unistr/u8-to-u16: New file.
70668         * lib/unistr/u8-to-u16.c: New file.
70669
70670         * modules/unistr/u8-to-u32: New file.
70671         * lib/unistr/u8-to-u32.c: New file.
70672
70673         * modules/unistr/u16-to-u8: New file.
70674         * lib/unistr/u16-to-u8.c: New file.
70675
70676         * modules/unistr/u16-to-u32: New file.
70677         * lib/unistr/u16-to-u32.c: New file.
70678
70679         * modules/unistr/u32-to-u8: New file.
70680         * lib/unistr/u32-to-u8.c: New file.
70681
70682         * modules/unistr/u32-to-u16: New file.
70683         * lib/unistr/u32-to-u16.c: New file.
70684
70685         * modules/unistr/u8-check: New file.
70686         * modules/unistr/u16-check: New file.
70687         * modules/unistr/u32-check: New file.
70688         * lib/unistr/u8-check.c: New file.
70689         * lib/unistr/u16-check.c: New file.
70690         * lib/unistr/u32-check.c: New file.
70691
70692         * modules/unistr/u8-chr: New file.
70693         * modules/unistr/u16-chr: New file.
70694         * modules/unistr/u32-chr: New file.
70695         * lib/unistr/u8-chr.c: New file.
70696         * lib/unistr/u16-chr.c: New file.
70697         * lib/unistr/u32-chr.c: New file.
70698
70699         * modules/unistr/u8-cmp: New file.
70700         * modules/unistr/u16-cmp: New file.
70701         * modules/unistr/u32-cmp: New file.
70702         * lib/unistr/u8-cmp.c: New file.
70703         * lib/unistr/u16-cmp.c: New file.
70704         * lib/unistr/u32-cmp.c: New file.
70705
70706         * modules/unistr/u8-cpy: New file.
70707         * modules/unistr/u16-cpy: New file.
70708         * modules/unistr/u32-cpy: New file.
70709         * lib/unistr/u8-cpy.c: New file.
70710         * lib/unistr/u16-cpy.c: New file.
70711         * lib/unistr/u32-cpy.c: New file.
70712         * lib/unistr/u-cpy.h: New file.
70713
70714         * modules/unistr/u8-cpy-alloc: New file.
70715         * modules/unistr/u16-cpy-alloc: New file.
70716         * modules/unistr/u32-cpy-alloc: New file.
70717         * lib/unistr/u8-cpy-alloc.c: New file.
70718         * lib/unistr/u16-cpy-alloc.c: New file.
70719         * lib/unistr/u32-cpy-alloc.c: New file.
70720         * lib/unistr/u-cpy-alloc.h: New file.
70721
70722         * modules/unistr/u8-endswith: New file.
70723         * modules/unistr/u16-endswith: New file.
70724         * modules/unistr/u32-endswith: New file.
70725         * lib/unistr/u8-endswith.c: New file.
70726         * lib/unistr/u16-endswith.c: New file.
70727         * lib/unistr/u32-endswith.c: New file.
70728         * lib/unistr/u-endswith.h: New file.
70729
70730         * modules/unistr/u8-mblen: New file.
70731         * modules/unistr/u16-mblen: New file.
70732         * modules/unistr/u32-mblen: New file.
70733         * lib/unistr/u8-mblen.c: New file.
70734         * lib/unistr/u16-mblen.c: New file.
70735         * lib/unistr/u32-mblen.c: New file.
70736
70737         * modules/unistr/u8-mbtouc: New file.
70738         * modules/unistr/u16-mbtouc: New file.
70739         * modules/unistr/u32-mbtouc: New file.
70740         * lib/unistr/u8-mbtouc.c: New file.
70741         * lib/unistr/u16-mbtouc.c: New file.
70742         * lib/unistr/u32-mbtouc.c: New file.
70743
70744         * modules/unistr/u8-mbtouc-safe: New file.
70745         * modules/unistr/u16-mbtouc-safe: New file.
70746         * modules/unistr/u32-mbtouc-safe: New file.
70747         * lib/unistr/u8-mbtouc-safe.c: New file.
70748         * lib/unistr/u16-mbtouc-safe.c: New file.
70749         * lib/unistr/u32-mbtouc-safe.c: New file.
70750
70751         * modules/unistr/u8-move: New file.
70752         * modules/unistr/u16-move: New file.
70753         * modules/unistr/u32-move: New file.
70754         * lib/unistr/u8-move.c: New file.
70755         * lib/unistr/u16-move.c: New file.
70756         * lib/unistr/u32-move.c: New file.
70757         * lib/unistr/u-move.h: New file.
70758
70759         * modules/unistr/u8-next: New file.
70760         * modules/unistr/u16-next: New file.
70761         * modules/unistr/u32-next: New file.
70762         * lib/unistr/u8-next.c: New file.
70763         * lib/unistr/u16-next.c: New file.
70764         * lib/unistr/u32-next.c: New file.
70765
70766         * modules/unistr/u8-prev: New file.
70767         * modules/unistr/u16-prev: New file.
70768         * modules/unistr/u32-prev: New file.
70769         * lib/unistr/u8-prev.c: New file.
70770         * lib/unistr/u16-prev.c: New file.
70771         * lib/unistr/u32-prev.c: New file.
70772
70773         * modules/unistr/u8-set: New file.
70774         * modules/unistr/u16-set: New file.
70775         * modules/unistr/u32-set: New file.
70776         * lib/unistr/u8-set.c: New file.
70777         * lib/unistr/u16-set.c: New file.
70778         * lib/unistr/u32-set.c: New file.
70779         * lib/unistr/u-set.h: New file.
70780
70781         * modules/unistr/u8-startswith: New file.
70782         * modules/unistr/u16-startswith: New file.
70783         * modules/unistr/u32-startswith: New file.
70784         * lib/unistr/u8-startswith.c: New file.
70785         * lib/unistr/u16-startswith.c: New file.
70786         * lib/unistr/u32-startswith.c: New file.
70787         * lib/unistr/u-startswith.h: New file.
70788
70789         * modules/unistr/u8-stpcpy: New file.
70790         * modules/unistr/u16-stpcpy: New file.
70791         * modules/unistr/u32-stpcpy: New file.
70792         * lib/unistr/u8-stpcpy.c: New file.
70793         * lib/unistr/u16-stpcpy.c: New file.
70794         * lib/unistr/u32-stpcpy.c: New file.
70795         * lib/unistr/u-stpcpy.h: New file.
70796
70797         * modules/unistr/u8-stpncpy: New file.
70798         * modules/unistr/u16-stpncpy: New file.
70799         * modules/unistr/u32-stpncpy: New file.
70800         * lib/unistr/u8-stpncpy.c: New file.
70801         * lib/unistr/u16-stpncpy.c: New file.
70802         * lib/unistr/u32-stpncpy.c: New file.
70803         * lib/unistr/u-stpncpy.h: New file.
70804
70805         * modules/unistr/u8-strcat: New file.
70806         * modules/unistr/u16-strcat: New file.
70807         * modules/unistr/u32-strcat: New file.
70808         * lib/unistr/u8-strcat.c: New file.
70809         * lib/unistr/u16-strcat.c: New file.
70810         * lib/unistr/u32-strcat.c: New file.
70811         * lib/unistr/u-strcat.h: New file.
70812
70813         * modules/unistr/u8-strchr: New file.
70814         * modules/unistr/u16-strchr: New file.
70815         * modules/unistr/u32-strchr: New file.
70816         * lib/unistr/u8-strchr.c: New file.
70817         * lib/unistr/u16-strchr.c: New file.
70818         * lib/unistr/u32-strchr.c: New file.
70819
70820         * modules/unistr/u8-strcmp: New file.
70821         * modules/unistr/u16-strcmp: New file.
70822         * modules/unistr/u32-strcmp: New file.
70823         * lib/unistr/u8-strcmp.c: New file.
70824         * lib/unistr/u16-strcmp.c: New file.
70825         * lib/unistr/u32-strcmp.c: New file.
70826
70827         * modules/unistr/u8-strcpy: New file.
70828         * modules/unistr/u16-strcpy: New file.
70829         * modules/unistr/u32-strcpy: New file.
70830         * lib/unistr/u8-strcpy.c: New file.
70831         * lib/unistr/u16-strcpy.c: New file.
70832         * lib/unistr/u32-strcpy.c: New file.
70833         * lib/unistr/u-strcpy.h: New file.
70834
70835         * modules/unistr/u8-strcspn: New file.
70836         * modules/unistr/u16-strcspn: New file.
70837         * modules/unistr/u32-strcspn: New file.
70838         * lib/unistr/u8-strcspn.c: New file.
70839         * lib/unistr/u16-strcspn.c: New file.
70840         * lib/unistr/u32-strcspn.c: New file.
70841         * lib/unistr/u-strcspn.h: New file.
70842
70843         * modules/unistr/u8-strdup: New file.
70844         * modules/unistr/u16-strdup: New file.
70845         * modules/unistr/u32-strdup: New file.
70846         * lib/unistr/u8-strdup.c: New file.
70847         * lib/unistr/u16-strdup.c: New file.
70848         * lib/unistr/u32-strdup.c: New file.
70849         * lib/unistr/u-strdup.h: New file.
70850
70851         * modules/unistr/u8-strlen: New file.
70852         * modules/unistr/u16-strlen: New file.
70853         * modules/unistr/u32-strlen: New file.
70854         * lib/unistr/u8-strlen.c: New file.
70855         * lib/unistr/u16-strlen.c: New file.
70856         * lib/unistr/u32-strlen.c: New file.
70857         * lib/unistr/u-strlen.h: New file.
70858
70859         * modules/unistr/u8-strmblen: New file.
70860         * modules/unistr/u16-strmblen: New file.
70861         * modules/unistr/u32-strmblen: New file.
70862         * lib/unistr/u8-strmblen.c: New file.
70863         * lib/unistr/u16-strmblen.c: New file.
70864         * lib/unistr/u32-strmblen.c: New file.
70865
70866         * modules/unistr/u8-strmbtouc: New file.
70867         * modules/unistr/u16-strmbtouc: New file.
70868         * modules/unistr/u32-strmbtouc: New file.
70869         * lib/unistr/u8-strmbtouc.c: New file.
70870         * lib/unistr/u16-strmbtouc.c: New file.
70871         * lib/unistr/u32-strmbtouc.c: New file.
70872
70873         * modules/unistr/u8-strncat: New file.
70874         * modules/unistr/u16-strncat: New file.
70875         * modules/unistr/u32-strncat: New file.
70876         * lib/unistr/u8-strncat.c: New file.
70877         * lib/unistr/u16-strncat.c: New file.
70878         * lib/unistr/u32-strncat.c: New file.
70879         * lib/unistr/u-strncat.h: New file.
70880
70881         * modules/unistr/u8-strncmp: New file.
70882         * modules/unistr/u16-strncmp: New file.
70883         * modules/unistr/u32-strncmp: New file.
70884         * lib/unistr/u8-strncmp.c: New file.
70885         * lib/unistr/u16-strncmp.c: New file.
70886         * lib/unistr/u32-strncmp.c: New file.
70887
70888         * modules/unistr/u8-strncpy: New file.
70889         * modules/unistr/u16-strncpy: New file.
70890         * modules/unistr/u32-strncpy: New file.
70891         * lib/unistr/u8-strncpy.c: New file.
70892         * lib/unistr/u16-strncpy.c: New file.
70893         * lib/unistr/u32-strncpy.c: New file.
70894         * lib/unistr/u-strncpy.h: New file.
70895
70896         * modules/unistr/u8-strnlen: New file.
70897         * modules/unistr/u16-strnlen: New file.
70898         * modules/unistr/u32-strnlen: New file.
70899         * lib/unistr/u8-strnlen.c: New file.
70900         * lib/unistr/u16-strnlen.c: New file.
70901         * lib/unistr/u32-strnlen.c: New file.
70902         * lib/unistr/u-strnlen.h: New file.
70903
70904         * modules/unistr/u8-strpbrk: New file.
70905         * modules/unistr/u16-strpbrk: New file.
70906         * modules/unistr/u32-strpbrk: New file.
70907         * lib/unistr/u8-strpbrk.c: New file.
70908         * lib/unistr/u16-strpbrk.c: New file.
70909         * lib/unistr/u32-strpbrk.c: New file.
70910         * lib/unistr/u-strpbrk.h: New file.
70911
70912         * modules/unistr/u8-strrchr: New file.
70913         * modules/unistr/u16-strrchr: New file.
70914         * modules/unistr/u32-strrchr: New file.
70915         * lib/unistr/u8-strrchr.c: New file.
70916         * lib/unistr/u16-strrchr.c: New file.
70917         * lib/unistr/u32-strrchr.c: New file.
70918
70919         * modules/unistr/u8-strspn: New file.
70920         * modules/unistr/u16-strspn: New file.
70921         * modules/unistr/u32-strspn: New file.
70922         * lib/unistr/u8-strspn.c: New file.
70923         * lib/unistr/u16-strspn.c: New file.
70924         * lib/unistr/u32-strspn.c: New file.
70925         * lib/unistr/u-strspn.h: New file.
70926
70927         * modules/unistr/u8-strstr: New file.
70928         * modules/unistr/u16-strstr: New file.
70929         * modules/unistr/u32-strstr: New file.
70930         * lib/unistr/u8-strstr.c: New file.
70931         * lib/unistr/u16-strstr.c: New file.
70932         * lib/unistr/u32-strstr.c: New file.
70933         * lib/unistr/u-strstr.h: New file.
70934
70935         * modules/unistr/u8-strtok: New file.
70936         * modules/unistr/u16-strtok: New file.
70937         * modules/unistr/u32-strtok: New file.
70938         * lib/unistr/u8-strtok.c: New file.
70939         * lib/unistr/u16-strtok.c: New file.
70940         * lib/unistr/u32-strtok.c: New file.
70941         * lib/unistr/u-strtok.h: New file.
70942
70943         * modules/unistr/u8-uctomb: New file.
70944         * modules/unistr/u16-uctomb: New file.
70945         * modules/unistr/u32-uctomb: New file.
70946         * lib/unistr/u8-uctomb.c: New file.
70947         * lib/unistr/u16-uctomb.c: New file.
70948         * lib/unistr/u32-uctomb.c: New file.
70949
70950         * MODULES.html.sh (Unicode string functions): Add the new modules.
70951
70952 2007-01-08  Bruno Haible  <bruno@clisp.org>
70953
70954         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70955         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70956         subdirectories.
70957
70958 2007-01-08  Karl Berry  <karl@gnu.org>
70959
70960         * doc/error.texi: mention that main() fns must set program_name
70961         when progname is used.
70962
70963 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70966         WCTYPE_H is empty, for the benefit of builds from non-distclean
70967         directories.  Problem reported by Eric Blake in
70968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70969
70970 2007-01-08  Bruno Haible  <bruno@clisp.org>
70971
70972         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70973         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70974         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70975         PROVIDE_CANONICALIZE_FILENAME_MODE.
70976         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70977
70978 2007-01-08  Bruno Haible  <bruno@clisp.org>
70979
70980         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70981         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70982         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70983         * lib/fts.c: Likewise.
70984         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70985
70986 2006-12-25  Bruno Haible  <bruno@clisp.org>
70987
70988         * modules/utf8-ucs4-safe: New file.
70989         * lib/utf8-ucs4-safe.h: New file.
70990         * lib/unistr/utf8-ucs4-safe.c: New file.
70991
70992         * modules/utf16-ucs4-safe: New file.
70993         * lib/utf16-ucs4-safe.h: New file.
70994         * lib/unistr/utf16-ucs4-safe.c: New file.
70995
70996         * MODULES.html.sh (Unicode string functions): Add the new modules.
70997
70998 2007-01-08  Bruno Haible  <bruno@clisp.org>
70999
71000         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71001         (Depends-on): Add unitypes.
71002         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71003         (u8_mbtouc_aux): Move out to separate file.
71004         (u8_mbtouc): Use ucs4_t, uint8_t types.
71005         * lib/unistr/utf8-ucs4.c: New file.
71006
71007         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71008         (Depends-on): Add unitypes.
71009         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71010         (u16_mbtouc_aux): Move out to separate file.
71011         (u16_mbtouc): Use ucs4_t, uint16_t types.
71012         * lib/unistr/utf16-ucs4.c: New file.
71013
71014         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71015         (Depends-on): Add unitypes.
71016         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71017         (u8_uctomb_aux): Move out to separate file.
71018         (u8_uctomb): Use ucs4_t, uint8_t types.
71019         * lib/unistr/ucs4-utf8.c: New file.
71020
71021         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71022         (Depends-on): Add unitypes.
71023         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71024         (u16_uctomb_aux): Move out to separate file.
71025         (u16_uctomb): Use ucs4_t, uint16_t types.
71026         * lib/unistr/ucs4-utf16.c: New file.
71027
71028 2006-12-25  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/unitypes: New file.
71031         * lib/unitypes.h: New file.
71032         * MODULES.html.sh (func_all_modules): New section "Unicode string
71033         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71034         this section. Add unitypes.
71035
71036 2007-01-08  Bruno Haible  <bruno@clisp.org>
71037
71038         Avoid variable names that conflict with those from libtool.
71039         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71040         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71041         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71042         library_names_spec to acl_library_names_spec, hardcode_* to
71043         acl_hardcode_*.
71044         Reported by Ralf Wildenhues.
71045
71046 2007-01-08  Bruno Haible  <bruno@clisp.org>
71047
71048         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71049         definition.
71050         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71051         definition.
71052         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71053         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71054         definition.
71055         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71056         definition.
71057         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71058         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71059         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71060         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71061         definition.
71062         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71063         definition.
71064         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71065         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71066         GC_USE_<algorithm>.
71067         * lib/gc-libgcrypt.c: Likewise.
71068         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71069         * modules/gc-arctwo (configure.ac): Likewise.
71070         * modules/gc-des (configure.ac): Likewise.
71071         * modules/gc-hmac-md5 (configure.ac): Likewise.
71072         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71073         * modules/gc-md2 (configure.ac): Likewise.
71074         * modules/gc-md4 (configure.ac): Likewise.
71075         * modules/gc-md5 (configure.ac): Likewise.
71076         * modules/gc-random (configure.ac): Likewise.
71077         * modules/gc-rijndael (configure.ac): Likewise.
71078         * modules/gc-sha1 (configure.ac): Likewise.
71079
71080 2007-01-08  Bruno Haible  <bruno@clisp.org>
71081
71082         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71083         macro definition.
71084         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71085         definition.
71086         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71087         definition.
71088         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71089         * modules/fcntl-safer (configure.ac): Likewise.
71090         * modules/fopen-safer (configure.ac): Likewise.
71091         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71092         GNULIB_FWRITEERROR macro definition.
71093
71094 2007-01-08  Bruno Haible  <bruno@clisp.org>
71095
71096         * m4/gnulib-common.m4: New file.
71097         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71098         (func_get_filelist): Add m4/gnulib-common.m4.
71099
71100 2007-01-08  Bruno Haible  <bruno@clisp.org>
71101
71102         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71103         command.
71104
71105 2007-01-08  Jim Meyering  <jim@meyering.net>
71106
71107         Use a more robust test for a "can't happen" condition.
71108         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71109         narrowed the st_size value.  Presuming the "can't happen" condition
71110         is true, that narrowing could conceivably convert an invalid st_size
71111         value into a valid one.  Instead, use a change based on Matthew
71112         Woehlke's original patch.
71113
71114         Slight readability improvement: use an assert-like macro
71115         in place of literal "abort ()" uses.
71116         * lib/fts.c (fts_assert): Define.
71117         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71118         Use this macro instead of a bare 'abort'.
71119
71120 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71123         simply work around them.
71124         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71125         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71126         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71127         declaring.
71128         Don't bother to define as macros, since the standard doesn't require it.
71129         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71130         longer worry about IRIX 5.3.
71131         (HAVE_WCTYPE_CTMP_BUG): Remove.
71132
71133 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71134
71135         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71136         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71137         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71138         Problems reported by Georg Schwarz for IRIX 5.3.
71139
71140         * gnulib-tool (autoconf_minversion): Take the maximum version number
71141         found, not the minimum.  Problem reported by James Youngman.
71142
71143 2007-01-03  Karl Berry  <karl@gnu.org>
71144
71145         * doc/error.texi: new file, explaining interaction with progname.
71146         * doc/gnulib.texi: include it.  Update copyright.
71147
71148 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71149
71150         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71151         AC_CANONICAL_HOST, to improve autobuild outputs.
71152
71153 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71154             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71155
71156         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71157         sockets, server sockets, and other file descriptors.  Count errors
71158         to compute the return value.  Reorder the code a bit to be easier
71159         to follow.  Don't set event bits that were not requested (except
71160         POLLERR and POLLHUP).
71161
71162 2007-01-01  Bruno Haible  <bruno@clisp.org>
71163
71164         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71165
71166 2007-01-03  Jim Meyering  <jim@meyering.net>
71167
71168         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71169
71170 2007-01-02  Bruno Haible  <bruno@clisp.org>
71171
71172         * modules/settime (Include): Require timespec.h.
71173         * modules/nanosleep (Include): Likewise.
71174
71175 2007-01-01  Bruno Haible  <bruno@clisp.org>
71176
71177         * gnulib-tool (func_emit_copyright_notice): Bump year.
71178         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71179
71180 2007-01-01  Bruno Haible  <bruno@clisp.org>
71181
71182         Improve support for OpenBSD.
71183         * build-aux/config.rpath (libname_spec): Export.
71184         (library_names_spec): New variable. Export.
71185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71186         library_names_spec from the config.rpath output. Locate shared library
71187         through the name pattern in library_names_spec.
71188
71189 2007-01-01  Eric Blake  <ebb9@byu.net>
71190
71191         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71192
71193 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71196         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71197         assume the C locale, and avoid an "eval" that could cause trouble.
71198         Problem with SORT reported by Bob Proulx.
71199
71200         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71201         Define.  Trivial patch from Henning Nielsen Lund, originally
71202         sent to bug-grep@gnu.org today.
71203
71204 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71207         struct stat.  Problem reported by Henning Nielsen Lund.
71208         * lib/acl.c: Include acl.h first, to check interface.  Don't
71209         bother to include sys/types.h and sys/stat.h again.
71210
71211 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         Import the following change from libc; problem reported by
71214         Sven Verdoolaege.
71215
71216         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71217
71218         [BZ #1373]
71219         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71220
71221 2006-12-28  Jim Meyering  <jim@meyering.net>
71222
71223         * build-aux/announce-gen: Do not assume that the package
71224         builds any of tar.gz, tar.bz2, and .xdelta files.
71225         Suggestion from Simon Josefsson.
71226
71227 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71228
71229         * modules/announce-gen: New file.
71230
71231 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71234         handles its gotchas now.
71235         * lib/mbswidth.c: Likewise.
71236         * lib/wcwidth.h: Likewise.
71237         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71238         and iswcntrl; the wctype module does this stuff now.
71239         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71241         * modules/mbchar (Depends-on): Add wctype.
71242         * modules/mbswidth (Depends-on): Likewise.
71243         * modules/wcwidth (Depends-on): Likewise.
71244
71245 2006-12-27  Eric Blake  <ebb9@byu.net>
71246
71247         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71248         module uses more than what <wctype.h> is required to provide.
71249
71250 2006-12-26  Eric Blake  <ebb9@byu.net>
71251
71252         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71253
71254 2006-12-26  Eric Blake  <ebb9@byu.net>
71255
71256         * modules/absolute-header: New module.
71257         * modules/fcntl (Depends-on): Depend on it.
71258         * modules/inttypes (Depends-on): Likewise.
71259         * modules/stdint (Depends-on): Likewise.
71260         * modules/sys_stat (Depends-on): Likewise.
71261         * modules/wctype (Depends-on): Likewise.
71262         * MODULES.html.sh (Support for building libraries and
71263         executables): Document it.
71264
71265 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * gnulib-tool (SED): Remove, undoing previous change.
71268         The problem was that it broke coreutils on Solaris, because
71269         "sed --posix" leaked into a makefile.
71270         (sed): New alias, if 'alias' and GNU sed.
71271
71272 2006-12-24  Jim Meyering  <jim@meyering.net>
71273
71274         Work around an fchownat bug in glibc-2.4:
71275         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71276         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71277         in spite of the -P option.
71278         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71279         New macros.
71280         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71281         * modules/openat (Files): Add lib/fchownat.c.
71282         * lib/openat.c (fchownat): Don't define here.  Move to...
71283         * lib/fchownat.c: ...this new file.
71284
71285 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71286
71287         Fix bug reported by Bruno Haible in
71288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71289         where quotearg.c didn't compile on Mac OS X 10.2 because it
71290         lacks <wchar.h> and wint_t.
71291         * lib/wctype_.h (__wctype_wint_t): New type.
71292         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71293         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71294         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71295         Arg is now of type __wctype_wint_t, not wint_t.
71296         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71297         substitute HAVE_WINT_T.
71298         * modules/wctype (Files): Add m4/wint_t.m4.
71299         (wctype.h): Substitute HAVE_WINT_T.
71300
71301 2006-12-23  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71304
71305 2006-12-23  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71308         S_ISLNK.
71309         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71310         mingw.
71311
71312 2006-12-22  Bruno Haible  <bruno@clisp.org>
71313
71314         * lib/copy-file.c: Include acl.h.
71315         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71316         Close the file descriptors only after being done with copy_acl.
71317         * modules/copy-file (Depends-on): Add acl.
71318
71319 2006-12-22  Bruno Haible  <bruno@clisp.org>
71320
71321         * gnulib-tool (SED): New variable.
71322         Use $SED instead of sed everywhere.
71323
71324 2006-12-22  Bruno Haible  <bruno@clisp.org>
71325
71326         * modules/no-c++: New file.
71327         * m4/no-c++.m4: New file.
71328         * MODULES.html.sh (Support for building libraries and executables):
71329         Add no-c++.
71330
71331 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71332
71333         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71334         Include <limits.h>, and use its INT_MAX to rewrite the
71335         j loop so that it does not overflow 'int'.  Problem reported by
71336         Ralf Wildenhues in
71337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71338         Play it safe by shifting left by 1 rather than multiplying by 2,
71339         as GCC is less likely to optimize this away when the value
71340         is signed (when it assumes overflow leads to undefined behavior).
71341         Also, don't assume time_t uses two's complement.
71342
71343 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         * MODULES.html.sh: New module wctype.
71346         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71347         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71348         <wctype.h>, since the new wctype module should fix this.
71349         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71350         the wctype module should arrange for it.
71351         * lib/regex_internal.h: Likewise.
71352         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71353         since the wctype module should handle this now.
71354         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71355         * modules/fnmatch (Depends-on): Add wctype.
71356         * modules/quotearg (Depends-on): Likewise.
71357         * modules/regex (Depends-on): Likewise.
71358
71359 2006-12-19  Bruno Haible  <bruno@clisp.org>
71360
71361         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71362         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71363
71364 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71365
71366         * modules/savewd (Depends-on): Fix dependency on fcntl.
71367
71368 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71369
71370         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71371         conforms to C99, rather than relying on the user's environment
71372         setting of STDINT_H.
71373
71374 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71375         and Eric Blake  <ebb9@byu.net>
71376
71377         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71378         This is more consistent with the other defines here.
71379         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71380         Port to z/OS.  Problem reported by Paul Gilmartin.
71381         Change local vars to use gl_ prefix rather than ac_.
71382         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71383         with other defines.
71384         * modules/double-slash-root: New module.
71385         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71386         (Depends-on): Add double-slash-root.
71387         * MODULES.html.sh (File system functions): Mention new module.
71388
71389 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71392         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71393         This is for the benefit of gzip, which doesn't do i18n.
71394
71395 2006-12-12  Jim Meyering  <jim@meyering.net>
71396
71397         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71398         Reported by Andreas Schwab <schwab@suse.de>.
71399
71400 2006-12-12  Bruno Haible  <bruno@clisp.org>
71401
71402         Merge these changes.
71403         2006-09-05  Bruno Haible  <bruno@clisp.org>
71404         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71405         iconv_alloc succeeded.
71406         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71407         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71408         test for " && dest " at the end - dest is always != NULL there. Call
71409         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71410         with 2xNULL arguments, also to flush the state storage. Handle the
71411         IRIX iconv behaviour. Realloc the final result, to throw away unused
71412         memory.
71413
71414 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71417         and fchmodat unconditionally, since glibc 2.4 has them.
71418         Problem reported by Arkadiusz Miskiewicz.
71419
71420 2006-12-10  Bruno Haible  <bruno@clisp.org>
71421
71422         * gnulib-tool (func_import): Show the include files only for those
71423         modules that are copied and specified.
71424         Reported by Karl Berry.
71425
71426 2006-12-08  Jim Meyering  <jim@meyering.net>
71427
71428         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71429         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71430
71431         * build-aux/announce-gen: Add two new options, both optional:
71432         --bootstrap-tools=TOOL_LIST
71433               a comma-separated list of tools, e.g.,
71434               autoconf,automake,bison,gnulib
71435         --gnulib-snapshot-date=DATE
71436               if gnulib is in the bootstrap tool list,
71437               then report this as the snapshot date.
71438               If not specified, use the current date/time.
71439               If you specify a date here, be sure it's UTC.
71440
71441 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71442
71443         * tests/test-argp-2.sh: Fix test to match actual output.
71444         (func_compare): Fix sed script to be portable.
71445
71446 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71449         workaround for this case.  It is not autoconfigured now; offhand
71450         it's hard to see how to autoconfigure it.
71451
71452 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71455         a directory that is about to be chowned.  Such a directory's
71456         initial file permissions should permit the owner only and this
71457         should not be changed until after the chown, since the group and
71458         other bits would be incorrect if they granted permission before
71459         the chown.
71460
71461         Fix porting problem for iswctype reported by Georg Schwarz in:
71462         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71463         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71464         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71466         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71467
71468 2006-12-03  Jim Meyering  <jim@meyering.net>
71469
71470         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71471         p->fts_statp may not yet be defined.
71472         (fts_read): Instead, set it in the caller, once p->fts_statp is
71473         sure to be defined, and corresponds to a top-level directory.
71474         This bug made du -x fail.  Here's the coreutils test case:
71475         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71476         Reported by Mike Frysinger.
71477
71478 2006-12-01  Jim Meyering  <jim@meyering.net>
71479
71480         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71481         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71482         Reported by Simon Josefsson.
71483
71484 2006-11-30  Jim Meyering  <jim@meyering.net>
71485
71486         * m4/warning.m4: Use the all-permissive copyright notice
71487         recommended by RMS (rather than LGPL).
71488         * m4/vararrays.m4: Likewise.
71489         * m4/flexmember.m4: Likewise.
71490
71491 2006-11-29  Bruno Haible  <bruno@clisp.org>
71492
71493         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71494         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71495         using +=.
71496         Reported by Simon Josefsson <simon@josefsson.org>.
71497
71498 2006-11-28  James Youngman <jay@gnu.org>
71499
71500         * README: Advise users that they might find the bug-gnulib@gnu.org
71501         and autotools-announce@gnu.org mailing lists useful.
71502
71503 2006-11-28  Bruno Haible  <bruno@clisp.org>
71504
71505         * m4/ptrdiff_max.m4: Remove file.
71506
71507 2006-11-21  Bruno Haible  <bruno@clisp.org>
71508
71509         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71510         _AC_COMPUTE_INT.
71511         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71512         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71513         _AC_COMPUTE_INT.
71514         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71515         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71516         _AC_COMPUTE_INT.
71517         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71518
71519 2006-11-28  Jim Meyering  <jim@meyering.net>
71520
71521         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71522         warning from "gcc -Wshadow" about shadowing the builtin.
71523
71524 2006-11-27  Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71527         _AC_COMPUTE_INT.
71528         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71529
71530 2006-11-27  Bruno Haible  <bruno@clisp.org>
71531             Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71534
71535 2006-11-26  Bruno Haible  <bruno@clisp.org>
71536
71537         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71538         noinst_LTLIBRARIES.
71539
71540 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71541             Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71544         if compiling with "gcc -ansi".
71545
71546 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         Fix some incompatibilities with gcc -ansi -pedantic.
71549         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71550         if compiling pedantically with GCC, unless it's C99 or later.
71551         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71552         it mishandles gcc -ansi -pedantic as well.
71553         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71554         if gcc -pedantic.
71555         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71556         initializers for struct if -pedantic, unless it's C99 or later.
71557
71558 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71559
71560         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71561         Don't close an fd more than once. Identical atimes indicate
71562         success, not failure.
71563
71564 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71565
71566         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71567
71568 2006-11-23  Jim Meyering  <jim@meyering.net>
71569
71570         * build-aux/announce-gen: New file.  From coreutils.
71571
71572 2006-11-22  Jim Meyering  <jim@meyering.net>
71573
71574         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71575         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71576         (fts_read): Use a temporary to narrow the overused st_size member
71577         before using it in a switch statement.  Reported by Matthew Woehlke.
71578
71579         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71580         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71581
71582 2006-11-20  Bruno Haible  <bruno@clisp.org>
71583
71584         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71585         changequote instead of pairs of brackets.
71586         Reported by Andreas Schwab <schwab@suse.de>.
71587
71588 2006-11-21  Jim Meyering  <jim@meyering.net>
71589
71590         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71591         so as to remain compatible with older compilers.
71592         Patch from Michael Deutschmann.
71593
71594 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * MODULES.html.sh (File system functions): Add openat.
71597
71598         * lib/openat.h (rpl_fstatat): New macro, if
71599         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71600         (fstatat): Define to rpl_fstatat under the same conditions,
71601         unless COMPILING_FSTATAT.
71602         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71603         seems to have the bug.
71604         * lib/fstatat.c: New file.
71605         * modules/openat (Files): Add it.
71606
71607 2006-11-20  Bruno Haible  <bruno@clisp.org>
71608
71609         * Makefile: New file.
71610
71611 2006-11-20  Jim Meyering  <jim@meyering.net>
71612
71613         The beginnings of syntax-related checks for gnulib.
71614         * lib/Makefile: New file.
71615         * lib/t-idcache: New script.  Ensure that the two halves of
71616         idcache.c stay in sync.
71617
71618         * lib/idcache.c: Adjust comments in user- and group- portions to
71619         be more accurate, and to be consistent with one another.
71620
71621 2006-11-20  Jim Meyering  <jim@meyering.net>
71622
71623         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71624         continue using the flexible array member (thus, this module performs
71625         half as many malloc calls), with the addition that...
71626         (getgroup, getuser): Consistently record a non-match via an empty
71627         "name" string, and map an empty string match to a NULL return value.
71628         * modules/idcache (Depends-on): Re-add flexmember.
71629
71630         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71631         (getuidbyname, getgroup, getgidbyname): Likewise.
71632
71633         Use cleaner syntax: NULL rather than 0.
71634         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71635
71636 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71639         It mishandled the case where the group was missing.
71640         Problem reported by Greg Schafer.
71641         * modules/idcache: Likewise.
71642
71643 2006-11-18  Jim Meyering  <jim@meyering.net>
71644
71645         * check-module (%exempt_header): Add exception for some
71646         conditionally-included headers.
71647
71648         * modules/i-ring (Depends-on): Add verify.
71649         (License): Change to LGPL.
71650
71651 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71654         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71655         and inttostr.h.  Use snprintf rather than uinttostr, so that
71656         LGPLed code doesn't depend on GPLed.
71657
71658 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * modules/inline (License): Change from GPL to LGPL.
71661
71662 2006-11-17  Jim Meyering  <jim@meyering.net>
71663
71664         * modules/d-type (License): Switch to LGPL.
71665
71666 2006-11-15  Bruno Haible  <bruno@clisp.org>
71667
71668         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71669
71670 2006-11-15  Eric Blake  <ebb9@byu.net>
71671
71672         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71673         the module dependency.
71674
71675 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71676             Bruno Haible  <bruno@clisp.org>
71677
71678         * gnulib-tool (func_create_testdir): Add license consistency check.
71679
71680 2006-11-15  Eric Blake  <ebb9@byu.net>
71681
71682         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71683         random "(cached)" in configure output.
71684
71685 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71686
71687         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71688         test for conforming inttypes.h is both announced and cached.
71689
71690         * MODULES.html.sh (seen_modules, seen_files): New variables.
71691         (func_module): Rewrite to use a few less gnulib-tool and sed
71692         invocations.  Avoid a couple of quadratic algorithms for ...
71693         (missed_modules, missed_files): ... these, with ...
71694         (func_append, func_tmpdir): ... these new functions, from
71695         gnulib-tool.  Analogously, install traps for cleanup.
71696
71697         * tests/test-gc.c (main): Remove unused variables.
71698         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71699
71700 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * modules/inttostr (License): Change to LGPL.
71703
71704 2006-11-14  Eric Blake  <ebb9@byu.net>
71705
71706         * modules/tempname (License): Change to LGPL.
71707
71708 2006-11-14  Eric Blake  <ebb9@byu.net>
71709
71710         * doc/functions.texi (Function Portability): *printf functions on
71711         Cygwin now understand all POSIX size specifiers.
71712
71713 2006-11-14  Bruno Haible  <bruno@clisp.org>
71714
71715         * modules/c-ctype (License): Change to LGPL.
71716
71717 2006-11-12  Bruno Haible  <bruno@clisp.org>
71718
71719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71720         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71721         for GNOME libraries, for which the include files are installed in
71722         subdirectories of $prefix/include.
71723
71724 2006-11-12  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/lib-link.m4: Require at least autoconf-2.54.
71727         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71728         name to underscores for the --with option.
71729
71730 2006-11-13  Bruno Haible  <bruno@clisp.org>
71731
71732         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71733         the tests directory.
71734         Reported by Ralf Wildenhues.
71735
71736 2006-11-13  Bruno Haible  <bruno@clisp.org>
71737
71738         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71739         (func_emit_initmacro_end): Undo the override here.
71740         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71741         Works around the famous automake error in coreutils.
71742
71743 2006-11-13  Eric Blake  <ebb9@byu.net>
71744
71745         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71746         element, not its node.
71747
71748 2006-11-12  Bruno Haible  <bruno@clisp.org>
71749
71750         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71751         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71752
71753 2006-11-12  Bruno Haible  <bruno@clisp.org>
71754
71755         * gnulib-tool: New option --local-symlink.
71756         (func_usage): Document it.
71757         (lsymbolic): New variable.
71758         (func_import, func_create_testdir): If --symlink was not specified,
71759         test whether --local-symlink was specified and the file comes from
71760         the local_gnulib_dir.
71761
71762 2006-11-12  Bruno Haible  <bruno@clisp.org>
71763
71764         * gnulib-tool (func_ln): New function.
71765         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71766
71767 2006-11-12  Bruno Haible  <bruno@clisp.org>
71768
71769         Finish support for source files in subdirectories.
71770         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71771         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71772         AUTOMAKE_OPTIONS.
71773         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71774
71775 2006-11-12  Bruno Haible  <bruno@clisp.org>
71776
71777         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71778         EXTRA_lib_SOURCES augmentation.
71779         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71780
71781 2006-11-12  Jim Meyering  <jim@meyering.net>
71782
71783         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71784         file descriptors.  This also averts a failure on systems with
71785         native openat support when a traversed directory lacks "x" access.
71786         * lib/fts_.h: Include "i-ring.h"
71787         (struct FTS) [fts_fd_ring]: New member.
71788         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71789         (FCHDIR): Add parentheses.
71790         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71791         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71792         When descending, rather than simply closing the previous
71793         fts_cwd_fd value, push that file descriptor onto the ring.
71794         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71795         (fts_open): Initialize the new fd_ring member.
71796         (fts_close): Clear the ring.
71797         (fts_safe_changedir): When possible, use our new fd_ring to skip
71798         the diropen and fstat and dev/ino comparison that would normally
71799         accompany a virtual `chdir ("..")'.
71800
71801         * modules/fts (Depends-on): Add i-ring.
71802         * modules/i-ring: New module.
71803         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71804         * m4/i-ring.m4: New file.
71805
71806 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71807
71808         * gnulib-tool (func_create_testdir): Fix replacement of
71809         `build-aux' in configure.ac.  Run autotools in gltests
71810         subdirectory.
71811         (func_create_testdir, func_create_megatestdir, test): There is
71812         no need for '--force' in most autotool invocations in a new
71813         tree.  Actually fail the whole test if any of the tools, or the
71814         configure or make stages fail.
71815
71816         Sync from Automake.
71817         * build-aux/gnupload: Revert last change.  Add pointer to upload
71818         instructions of the GNU Maintenance Instructions.
71819         Suggestion by Karl Berry.
71820
71821 2006-11-10  Jim Meyering  <jim@meyering.net>
71822
71823         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71824
71825 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71828         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71829         (bind_textdomain_codeset) [! ENABLE_NLS]:
71830         Evaluate all the arguments.  That way, callers get compatible behavior
71831         if the arguments have side effects.  Also, it avoids some GCC
71832         diagnostics in some cases; Joel E. Denny reported problems when Bison
71833         was configured with --enable-gcc-warnigs.
71834
71835 2006-11-10  Jim Meyering  <jim@meyering.net>
71836
71837         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71838         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71839         account.
71840
71841 2006-11-10  Jim Meyering  <jim@meyering.net>
71842
71843         * modules/inline: New file/module.
71844         * modules/xalloc (Files): Remove m4/inline.m4.
71845         (Depends-on): Add inline, instead.
71846         * modules/oset: Likewise.
71847         * modules/list: Likewise.
71848
71849 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71850
71851         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71852         Problem reported by Matthew Woehlke.
71853
71854 2006-11-09  Bruno Haible  <bruno@clisp.org>
71855
71856         * lib/tempname.c (gen_tempname): Remove variant that invokes
71857         __gen_tempname.
71858         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71859         __gen_tempname.
71860
71861 2006-11-08  Bruno Haible  <bruno@clisp.org>
71862
71863         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71864         to 'yes' instead of 'cross-compiling'.
71865
71866 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71867
71868         * lib/quotearg.h (quotearg_free): New decl.
71869         * lib/quotearg.c (quotearg_free): New function.
71870         (slot0, nslots, slotvec0, slotvec):
71871         Now file-scope so that quotearg_free can get at them.
71872
71873 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71874
71875         Sync from Automake.
71876         * build-aux/gnupload: Add missing 'gnu' to example URL.
71877         Report by Karl Berry.
71878
71879 2006-11-08  Bruno Haible  <bruno@clisp.org>
71880
71881         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71882         Suggested by Paul Eggert.
71883
71884 2006-11-08  Jim Meyering  <jim@meyering.net>
71885
71886         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71887         It's already included if !_LIBC.
71888         (fts_safe_changedir): Add a comment.
71889
71890 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71893         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71894         Matthew Woehlke.
71895
71896         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71897         definitions up, to avoid colliding with change below.
71898         (static_inline) [HAVE_INLINE]: New macro.
71899         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71900         Provide extern decls when !HAVE_INLINE.  Do not define unless
71901         static_inline is defined, either by us or by xmalloc.c.  Use
71902         static_inline rather than static inline.
71903         (XCALLOC): Optimize sizeof(T) = 1 case.
71904         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71905
71906 2006-11-07  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71909         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71910         AC_C_INLINE.
71911         * modules/xalloc (Files): Add m4/inline.m4.
71912
71913 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71914
71915         * README: Fix typo.
71916         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71917         (Miscellanous Notes): ...from this.
71918
71919 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71922         Mention that offsetof should be used instead of sizeof.
71923         From Bruno Haible.
71924
71925 2006-11-07  Bruno Haible  <bruno@clisp.org>
71926
71927         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71928
71929 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71930
71931         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71932         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71933         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71934         (gl_tree_add_before, gl_tree_add_after):
71935         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71936         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71937         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71938         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71939         (gl_linked_add_after, gl_linked_add_at): Likewise.
71940         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71941         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71942         (gl_tree_add_before, gl_tree_add_after): Likewise.
71943         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71944         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71945         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71946
71947 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71948
71949         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71950
71951 2006-11-06  Bruno Haible  <bruno@clisp.org>
71952
71953         * m4/inline.m4: New file.
71954         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71955         * modules/list (Files): Add m4/inline.m4.
71956         * modules/oset (Files): Likewise.
71957
71958 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         * lib/idcache.c: Include <stddef.h>, for offsetof.
71961         (struct userid.name): Change from char * to a flexible array member.
71962         All uses changed.
71963         * modules/idcache (Depends-on): Add flexmember.
71964
71965         * MODULES.html.sh (Core language properties): New module flexmember.
71966         * modules/flexmember, m4/flexmember.m4: New files.
71967
71968         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71969         inline functions that are identical with the old xnmalloc_inline,
71970         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71971         that we can avoid some unnecessary integer multiplications and
71972         divisions in the common case where the element size is known at
71973         compile time.
71974         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71975         needed.
71976         (xnboundedmalloc): Remove.
71977         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71978         arguments, for consistency with rest of this header.
71979         (xcharalloc): Rewrite using XNMALLOC.
71980         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71981         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71982         versions have been moved to lib/xalloc.h and renamed to be the
71983         non-*_inline versions.
71984         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71985         and xnrealloc functions, since those functions are now inline and
71986         now call us.
71987         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71988         renaming described above.
71989         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71990         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71991         captures the dependency in AC_C_INLINE.
71992
71993         New module canonicalize-lgpl, proposed by Charles Wilson in
71994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71995         with a few small changes afterwards.
71996         * MODULES.html.sh (File system functions): New module
71997         canonicalize-lgpl.
71998         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71999         and canonicalize_file_name.
72000         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72001         * modules/canonicalize-lgpl: New files.
72002
72003 2006-11-05  Bruno Haible  <bruno@clisp.org>
72004
72005         * gnulib-tool (func_import, func_create_testdir): Create directories
72006         also for files in subdirectories of lib/.
72007
72008 2006-11-05  Bruno Haible  <bruno@clisp.org>
72009
72010         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72011         ANSI C compliant.
72012
72013 2006-11-03  Bruno Haible  <bruno@clisp.org>
72014
72015         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72016         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72017         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72018         (xnboundedmalloc): New inline function.
72019         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72020         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72021         xmalloc.
72022         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72023         xmalloc.
72024         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72025         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72026         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72027         xmalloc.
72028         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72029         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72030         xmalloc.
72031         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72032         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72033         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72034         xmalloc.
72035         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72036         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72037         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72038         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72039         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72040         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72041         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72042
72043 2006-11-03  Bruno Haible  <bruno@clisp.org>
72044
72045         * lib/c-ctype.h [C++]: Define functions without name mangling.
72046         * lib/fwriteerror.h [C++]: Likewise.
72047         * lib/gcd.h [C++]: Likewise.
72048         * lib/linebreak.h [C++]: Likewise.
72049
72050 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72053         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72054         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72055         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72056         Check for functions and headers just once.
72057         Check for declaration of canonicalize_file_name.
72058         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72059
72060 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72061
72062         * gnulib-tool (func_import): Fix typo in actioncmd.
72063
72064 2006-11-02  Bruno Haible  <bruno@clisp.org>
72065
72066         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72067         newline sequence in the Makefile.am snippet as a space, like "make"
72068         does.
72069         Reported by Roger Persson <perrog@gmail.com>.
72070
72071 2006-11-01  Bruno Haible  <bruno@clisp.org>
72072
72073         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72074         already declared in <string.h>.
72075         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72076
72077 2006-11-01  Bruno Haible  <bruno@clisp.org>
72078
72079         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72080         * lib/strcase.h: Include <string.h>.
72081         (strcasecmp): Define to rpl_strcasecmp here.
72082
72083 2006-11-01  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72086
72087 2006-11-01  Eric Blake  <ebb9@byu.net>
72088
72089         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72090
72091         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72092
72093 2006-10-29  Bruno Haible  <bruno@clisp.org>
72094
72095         Make it compile in C++ mode.
72096         * lib/full-write.c (full_rw): Add a cast.
72097
72098 2006-11-01  Bruno Haible  <bruno@clisp.org>
72099
72100         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72101         be POSIX compliant.
72102         Reported by Roger Persson <perrog@gmail.com>.
72103
72104 2006-11-01  Eric Blake  <ebb9@byu.net>
72105
72106         * lib/getopt_.h: Fix comments.
72107
72108 2006-10-31  Eric Blake  <ebb9@byu.net>
72109
72110         * modules/tmpdir (Depends-on): Add sys_stat.
72111         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72112         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72113         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72114         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72115         tempname.
72116
72117 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         Avoid some C++ diagnostics reported by Bruno Haible.
72120         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72121         xmalloc.
72122         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72123         (struct slotvec): Move to top level.
72124         (quotearg_n_options): Rewrite to avoid xmalloc.
72125         * lib/xalloc.h (xcharalloc): New function.
72126         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72127         [defined __cplusplus]: Add function template that provides result
72128         type propagation.  This part of the change is from Bruno Haible.
72129
72130 2006-10-29  Bruno Haible  <bruno@clisp.org>
72131
72132         Make it compile in C++ mode.
72133         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72134         * lib/strnlen1.c (strnlen1): Cast memchr result.
72135         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72136         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72137         (create_temp_dir): Rename local variable 'template'.
72138         (compile_csharp_using_sscli): Add cast.
72139         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72140         * lib/findprog.c (find_in_path): Likewise.
72141         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72142         * lib/wait-process.c (register_slave_subprocess): Likewise.
72143
72144 2006-10-22  Bruno Haible  <bruno@clisp.org>
72145
72146         * modules/tsearch: New file.
72147         * lib/tsearch.h: New file.
72148         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72149         * m4/tsearch.m4: New file.
72150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72151
72152 2006-10-29  Eric Blake  <ebb9@byu.net>
72153
72154         * lib/arcfour.c: Assume config.h.
72155         * lib/arctwo.c: Likewise.
72156         * lib/base64.c: Likewise.
72157         * lib/check-version.c: Likewise.
72158         * lib/crc.c: Likewise.
72159         * lib/des.c: Likewise.
72160         * lib/gc-gnulib.c: Likewise.
72161         * lib/gc-libgcrypt.c: Likewise.
72162         * lib/gc-pbkdf2-sha1.c: Likewise.
72163         * lib/getaddrinfo.c: Likewise.
72164         * lib/getdelim.c: Likewise.
72165         * lib/getline.c: Likewise.
72166         * lib/hmac-md5.c: Likewise.
72167         * lib/hmac-sha1.c: Likewise.
72168         * lib/iconvme.c: Likewise.
72169         * lib/md2.c: Likewise.
72170         * lib/md4.c: Likewise.
72171         * lib/memxor.c: Likewise.
72172         * lib/read-file.c: Likewise.
72173         * lib/readline.c: Likewise.
72174         * lib/rijndael-alg-fst.c: Likewise.
72175         * lib/rijndael-api-fst.c: Likewise.
72176         * lib/xgetdomainname.c: Likewise.
72177
72178 2006-10-28  Eric Blake  <ebb9@byu.net>
72179
72180         * lib/xstrndup.c: Assume config.h.
72181
72182 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72185         stat-macros.h is now for our own macros, whereas stat_h is for
72186         macros in the <sys/stat.h> name space.
72187         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72188         (STAT_MACROS_H): Remove.
72189         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72190         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72191         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72192         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72193         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72194         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72195         Move these macros to ...
72196         * lib/stat_.h: here.  Don't include stat-macros.h.
72197         * lib/canonicalize.c: Don't include stat-macros.h.
72198         * lib/chown.c: Likewise.
72199         * lib/euidaccess.c: Likewise.
72200         * lib/file-type.c: Likewise.
72201         * lib/filemode.c: Likewise.
72202         * lib/glob.c: Likewise.
72203         * lib/isapipe.c: Likewise.
72204         * lib/lchown.c: Likewise.
72205         * lib/lstat.c: Likewise.
72206         * lib/mkdir-p.c: Likewise.
72207         * lib/rmdir.c: Likewise.
72208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72210         unless mkdir isn't declared, to speed up 'configure'.
72211         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72212         would define all the S_* symbols.
72213         * modules/canonicalize (Depends-on):
72214         Depend on sys_stat, not stat-macros.
72215         * modules/chown: Likewise.
72216         * modules/euidaccess: Likewise.
72217         * modules/filemode: Likewise.
72218         * modules/file-type: Likewise.
72219         * modules/glob: Likewise.
72220         * modules/isapipe: Likewise.
72221         * modules/lchown: Likewise.
72222         * modules/lstat: Likewise.
72223         * modules/mkancesdirs: Likewise.
72224         * modules/rmdir: Likewise.
72225         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72226         * modules/modechange: Likewise.
72227         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72228         (configure.ac): Remove gl_STAT_MACROS.
72229         * modules/sys_stat (Depends-on): Remove stat-macros.
72230
72231 2006-10-27  Bruno Haible  <bruno@clisp.org>
72232
72233         * m4/signed.m4: Remove file.
72234         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72235         invocation.
72236         * modules/vasnprintf (Files): Remove m4/signed.m4.
72237
72238 2006-10-27  Bruno Haible  <bruno@clisp.org>
72239
72240         Update to GNU gettext 0.16.
72241         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72242         m4/inttypes-h.m4, m4/signed.m4.
72243         * m4/gettext.m4: Update to GNU gettext 0.16.
72244         * m4/intl.m4: New file, from GNU gettext.
72245         * m4/intldir.m4: New file, from GNU gettext.
72246         * config/srclist.txt: Update
72247
72248 2006-10-27  Eric Blake  <ebb9@byu.net>
72249
72250         * MODULES.html.sh: Document tempname.
72251         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72252         dependencies.
72253         (Files): Move lib/tempname.c...
72254         * modules/tempname: ...to this new module.
72255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72256         (gl_PREREQ_TEMPNAME): Move...
72257         * m4/tempname.m4: ...to this new file.
72258         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72259         * modules/sys_stat (Depends-on): Add stat-macros.
72260         * lib/stat_.h (includes): Pick up stat macros.
72261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72262         if stat macros are broken.
72263         * lib/tempname.c (includes): No need to include "stat-macros.h".
72264         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72265         (direxists, __path_search) [!_LIBC]: Don't compile these in
72266         gnulib; the tmpdir module covers that.
72267         * lib/tempname.h: New file.
72268
72269 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * COPYING: Explain how gnulib-tool converts licence headers.
72272         Almost all wording by Eric Blake.
72273
72274 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * lib/mbchar.h (is_basic_table): Make read-only.
72277         * lib/mbchar.c (is_basic_table): Likewise.
72278         Reported by John Darrington.
72279
72280 2006-10-25  Bruno Haible  <bruno@clisp.org>
72281
72282         * lib/progname.h (set_program_name): Undefine before defining.
72283
72284 2006-10-25  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72287         false for non-gcc C++ compilers.
72288         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72289
72290 2006-10-24  Bruno Haible  <bruno@clisp.org>
72291
72292         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72293         iconv implementations like Irix iconv.
72294
72295 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * modules/vararrays: New file.
72298         * m4/vararrays.m4: New file, taken from diffutils.
72299         * MODULES.html.sh: New module vararrays.
72300
72301 2006-10-24  Karl Berry  <karl@gnu.org>
72302
72303         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72304         Don't call GNU Unix.
72305
72306 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72307
72308         * users.txt: Add Libtool.
72309
72310         Sync from Libtool:
72311
72312         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72315         to gnulib's policy of including config.h unconditionally.
72316
72317 2006-10-24  Bruno Haible  <bruno@clisp.org>
72318
72319         * modules/wcwidth (Files): Add m4/wint_t.m4.
72320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72321         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72322
72323 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72326         to pacify GCC with some -W flags enabled.  Problem reported by
72327         Bruno Haible.
72328
72329 2006-10-24  Jim Meyering  <jim@meyering.net>
72330
72331         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72332         Reported by Karl Berry.
72333
72334 2006-10-23  Bruno Haible  <bruno@clisp.org>
72335
72336         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72337
72338 2006-10-24  Bruno Haible  <bruno@clisp.org>
72339
72340         * lib/gl_list.h: Use C comment style, not C++ comment style.
72341
72342 2006-10-23  Eric Blake  <ebb9@byu.net>
72343
72344         * lib/getaddrinfo.c (includes): Add missing include.
72345
72346 2006-10-23  Bruno Haible  <bruno@clisp.org>
72347             Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         Ability to rename obstack_free.
72350         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72351         obstack_free.
72352         (obstack_free): Invoke the __obstack_free macro.
72353         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72354
72355 2006-10-23  Bruno Haible  <bruno@clisp.org>
72356             Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72359         __argc, __argv from the declaration. (They are defined as macros on
72360         mingw.)
72361
72362 2006-10-22  Bruno Haible  <bruno@clisp.org>
72363
72364         * doc/gnulib-intro.texi: New file.
72365         * doc/gnulib.texi: Include it.
72366
72367 2006-10-21  Bruno Haible  <bruno@clisp.org>
72368
72369         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72370         "Introduction", "Miscellanous Notes", "Particular Modules".
72371
72372 2006-10-21  Bruno Haible  <bruno@clisp.org>
72373
72374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72375         Change mostlyclean-local rule to avoid sh syntax error from bash
72376         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72377
72378 2006-10-23  Jim Meyering  <jim@meyering.net>
72379
72380         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72381         in place of snprintf.
72382
72383         * modules/inttostr (Files): Add lib/uinttostr.c.
72384         * lib/uinttostr.c (inttostr): New file/function.
72385         * lib/inttostr.h (uinttostr): Declare.
72386         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72387         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72388         Add uinttostr.
72389         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72390
72391 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * lib/canonicalize.c (ELOOP): Define if not already defined.
72394         Problem reported by Bruno Haible in
72395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72396
72397 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72400         Problem reported by Perry Smith and Ville Laurikari.
72401
72402         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72403         uses.
72404
72405 2006-10-19  Bruno Haible  <bruno@clisp.org>
72406
72407         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72408         for mingw.
72409
72410 2006-10-19  Bruno Haible  <bruno@clisp.org>
72411
72412         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72413         Needed for mingw.
72414
72415 2006-10-19  Bruno Haible  <bruno@clisp.org>
72416
72417         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72418
72419 2006-10-19  Bruno Haible  <bruno@clisp.org>
72420
72421         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72422         it.
72423
72424 2006-10-19  Bruno Haible  <bruno@clisp.org>
72425
72426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72427         invocation.
72428
72429 2006-10-19  Bruno Haible  <bruno@clisp.org>
72430
72431         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72432         mountlist by default.
72433
72434 2006-10-16  Bruno Haible  <bruno@clisp.org>
72435
72436         * lib/c-strstr.c: Include c-strstr.h.
72437
72438 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72439
72440         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72441         in a slash.
72442
72443 2006-10-18  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/lock.h [C++]: Wrap definitions in extern "C".
72446
72447 2006-10-18  Bruno Haible  <bruno@clisp.org>
72448
72449         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72450         gl_LIBOBJS list.
72451
72452 2006-10-18  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72455
72456 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * lib/xstrtol.h: Include gettext.h.
72459         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72460         Problem reported by Eric Blake.
72461         * modules/xstrtol (Depends-on): Add gettext-h.
72462
72463 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72464
72465         * lib/strftime.c (advance): New macro.
72466         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72467         incomplete type, so you can't add 0 to it.  Problem and patch
72468         reported by Eelco Dolstra for dietlibc.
72469
72470 2006-10-18  Jim Meyering  <jim@meyering.net>
72471
72472         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72473         type for a local, and rename it: s/up/user_proc/.
72474
72475 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72476
72477         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72478         READ_UTMP_USER_PROCESS.
72479         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72480
72481 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72484         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72485
72486 2006-10-17  Eric Blake  <ebb9@byu.net>
72487
72488         * lib/sigprocmask.c (sigprocmask): Fix typo.
72489
72490         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72491
72492         * modules/clean-temp (Makefile.am): Don't add to make output...
72493         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72494         config.h.
72495
72496 2006-10-17  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72499         differently if DEFAULT_TEXT_DOMAIN is set.
72500
72501 2006-10-16  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/clean-temp.c: Include fwriteerror.h.
72504
72505 2006-10-16  Bruno Haible  <bruno@clisp.org>
72506
72507         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72508
72509 2006-10-16  Bruno Haible  <bruno@clisp.org>
72510
72511         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72512         * lib/sigprocmask.h: Include <sys/types.h>.
72513         (sigset_t): Use the system's definition if present.
72514
72515 2006-10-17  Eric Blake  <ebb9@byu.net>
72516
72517         * lib/xvasprintf.c (includes): Assume config.h.
72518         * lib/xasprintf.c (includes): Likewise.
72519
72520 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72523         at least as wide as intmax_t.
72524
72525 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72526
72527         (Imported from Automake.)
72528         * build-aux/gnupload: Update to version 1.1 of directive file.
72529
72530 2006-10-16  Eric Blake  <ebb9@byu.net>
72531
72532         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72533         match Automake 1.10a.
72534
72535 2006-10-14  Bruno Haible  <bruno@clisp.org>
72536
72537         * modules/sigprocmask: New file.
72538         * lib/sigprocmask.h: New file.
72539         * lib/sigprocmask.c: New file.
72540         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72541         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72542         request sigprocmask.o.
72543         (gl_PREREQ_SIGPROCMASK): New macro.
72544         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72545         (Depends-on): Add sigprocmask.
72546         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72547         gt_SIGNALBLOCKING. Test for 'raise' only once.
72548         * lib/fatal-signal.c: Include sigprocmask.h.
72549         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72550         unblock_fatal_signals): Define always.
72551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72552         sigprocmask.
72553
72554 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         Sync from Automake.
72557         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72558         which incorrectly sets the mode of an existing destination
72559         directory.  In some cases the unpatched install-sh could do the
72560         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72561         system.  We hope this is rare in practice, but it's clearly worth
72562         fixing.  Problem reported by Alex Unleashed in
72563         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72564         Also, don't bother to check for -m bugs unless we're using -m;
72565         suggested by Stepan Kasal.
72566
72567 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72568
72569         Sync from Automake.
72570         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72571         `-c' flag, so they appear at the same position as in %FASTDEP%
72572         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72573         which ignores unknown options only after the first non-option.
72574         Bug report against M4 by Nelson H. F. Beebe.
72575
72576 2006-10-13  Jim Meyering  <jim@meyering.net>
72577
72578         Fix a bug in yesterday's change.
72579         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72580         p->fts_statp->st_dev would be used uninitialized.
72581         Ensures that we always call fts_stat on the very first entry.
72582         Miklos Szeredi reported that find -xdev stopped working.
72583
72584 2006-10-12  Bruno Haible  <bruno@clisp.org>
72585
72586         * gnulib-tool (func_get_automake_snippet): Append an automatically
72587         computed EXTRA_DIST augmentation.
72588         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72589         * modules/alloca-opt (Makefile.am): Likewise.
72590         * modules/allocsa (Makefile.am): Likewise.
72591         * modules/arcfour (Makefile.am): Likewise.
72592         * modules/arctwo (Makefile.am): Likewise.
72593         * modules/argmatch (Makefile.am): Likewise.
72594         * modules/argz (Makefile.am): Likewise.
72595         * modules/atexit (Makefile.am): Likewise.
72596         * modules/backupfile (Makefile.am): Likewise.
72597         * modules/byteswap (Makefile.am): Likewise.
72598         * modules/c-strtod (Makefile.am): Likewise.
72599         * modules/c-strtold (Makefile.am): Likewise.
72600         * modules/calloc (Makefile.am): Likewise.
72601         * modules/canon-host (Makefile.am): Likewise.
72602         * modules/canonicalize (Makefile.am): Likewise.
72603         * modules/chdir-long (Makefile.am): Likewise.
72604         * modules/chdir-safer (Makefile.am): Likewise.
72605         * modules/check-version (Makefile.am): Likewise.
72606         * modules/chown (Makefile.am): Likewise.
72607         * modules/cloexec (Makefile.am): Likewise.
72608         * modules/close-stream (Makefile.am): Likewise.
72609         * modules/closeout (Makefile.am): Likewise.
72610         * modules/crc (Makefile.am): Likewise.
72611         * modules/csharpexec (Makefile.am): Likewise.
72612         * modules/cycle-check (Makefile.am): Likewise.
72613         * modules/des (Makefile.am): Likewise.
72614         * modules/dev-ino (Makefile.am): Likewise.
72615         * modules/dirfd (Makefile.am): Likewise.
72616         * modules/dirname (Makefile.am): Likewise.
72617         * modules/dup2 (Makefile.am): Likewise.
72618         * modules/eealloc (Makefile.am): Likewise.
72619         * modules/error (Makefile.am): Likewise.
72620         * modules/euidaccess (Makefile.am): Likewise.
72621         * modules/exclude (Makefile.am): Likewise.
72622         * modules/exitfail (Makefile.am): Likewise.
72623         * modules/fcntl-safer (Makefile.am): Likewise.
72624         * modules/fcntl (Makefile.am): Likewise.
72625         * modules/file-type (Makefile.am): Likewise.
72626         * modules/fileblocks (Makefile.am): Likewise.
72627         * modules/filemode (Makefile.am): Likewise.
72628         * modules/filenamecat (Makefile.am): Likewise.
72629         * modules/fnmatch (Makefile.am): Likewise.
72630         * modules/fopen-safer (Makefile.am): Likewise.
72631         * modules/fpending (Makefile.am): Likewise.
72632         * modules/fprintftime (Makefile.am): Likewise.
72633         * modules/free (Makefile.am): Likewise.
72634         * modules/fsusage (Makefile.am): Likewise.
72635         * modules/ftruncate (Makefile.am): Likewise.
72636         * modules/fts (Makefile.am): Likewise.
72637         * modules/gc-arcfour (Makefile.am): Likewise.
72638         * modules/gc-des (Makefile.am): Likewise.
72639         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72640         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72641         * modules/gc-md4 (Makefile.am): Likewise.
72642         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72643         * modules/gc-sha1 (Makefile.am): Likewise.
72644         * modules/gc (Makefile.am): Likewise.
72645         * modules/getaddrinfo (Makefile.am): Likewise.
72646         * modules/getcwd (Makefile.am): Likewise.
72647         * modules/getdelim (Makefile.am): Likewise.
72648         * modules/getdomainname (Makefile.am): Likewise.
72649         * modules/getgroups (Makefile.am): Likewise.
72650         * modules/gethostname (Makefile.am): Likewise.
72651         * modules/gethrxtime (Makefile.am): Likewise.
72652         * modules/getline (Makefile.am): Likewise.
72653         * modules/getloadavg (Makefile.am): Likewise.
72654         * modules/getlogin_r (Makefile.am): Likewise.
72655         * modules/getndelim2 (Makefile.am): Likewise.
72656         * modules/getopt (Makefile.am): Likewise.
72657         * modules/getpagesize (Makefile.am): Likewise.
72658         * modules/getpass-gnu (Makefile.am): Likewise.
72659         * modules/getpass (Makefile.am): Likewise.
72660         * modules/getsubopt (Makefile.am): Likewise.
72661         * modules/gettime (Makefile.am): Likewise.
72662         * modules/gettimeofday (Makefile.am): Likewise.
72663         * modules/getugroups (Makefile.am): Likewise.
72664         * modules/getusershell (Makefile.am): Likewise.
72665         * modules/glob (Makefile.am): Likewise.
72666         * modules/group-member (Makefile.am): Likewise.
72667         * modules/hard-locale (Makefile.am): Likewise.
72668         * modules/hash (Makefile.am): Likewise.
72669         * modules/hmac-md5 (Makefile.am): Likewise.
72670         * modules/hmac-sha1 (Makefile.am): Likewise.
72671         * modules/human (Makefile.am): Likewise.
72672         * modules/idcache (Makefile.am): Likewise.
72673         * modules/imaxabs (Makefile.am): Likewise.
72674         * modules/imaxdiv (Makefile.am): Likewise.
72675         * modules/inet_ntop (Makefile.am): Likewise.
72676         * modules/inet_pton (Makefile.am): Likewise.
72677         * modules/intprops (Makefile.am): Likewise.
72678         * modules/inttostr (Makefile.am): Likewise.
72679         * modules/inttypes (Makefile.am): Likewise.
72680         * modules/isapipe (Makefile.am): Likewise.
72681         * modules/javaversion (Makefile.am): Likewise.
72682         * modules/lchmod (Makefile.am): Likewise.
72683         * modules/lchown (Makefile.am): Likewise.
72684         * modules/localcharset (Makefile.am): Likewise.
72685         * modules/long-options (Makefile.am): Likewise.
72686         * modules/lstat (Makefile.am): Likewise.
72687         * modules/malloc (Makefile.am): Likewise.
72688         * modules/mathl (Makefile.am): Likewise.
72689         * modules/mbchar (Makefile.am): Likewise.
72690         * modules/md2 (Makefile.am): Likewise.
72691         * modules/md4 (Makefile.am): Likewise.
72692         * modules/md5 (Makefile.am): Likewise.
72693         * modules/memcasecmp (Makefile.am): Likewise.
72694         * modules/memchr (Makefile.am): Likewise.
72695         * modules/memcmp (Makefile.am): Likewise.
72696         * modules/memcoll (Makefile.am): Likewise.
72697         * modules/memcpy (Makefile.am): Likewise.
72698         * modules/memmem (Makefile.am): Likewise.
72699         * modules/memmove (Makefile.am): Likewise.
72700         * modules/mempcpy (Makefile.am): Likewise.
72701         * modules/memrchr (Makefile.am): Likewise.
72702         * modules/memset (Makefile.am): Likewise.
72703         * modules/memxor (Makefile.am): Likewise.
72704         * modules/mkancesdirs (Makefile.am): Likewise.
72705         * modules/mkdir-p (Makefile.am): Likewise.
72706         * modules/mkdir (Makefile.am): Likewise.
72707         * modules/mkdtemp (Makefile.am): Likewise.
72708         * modules/mkstemp (Makefile.am): Likewise.
72709         * modules/mktime (Makefile.am): Likewise.
72710         * modules/modechange (Makefile.am): Likewise.
72711         * modules/mountlist (Makefile.am): Likewise.
72712         * modules/nanosleep (Makefile.am): Likewise.
72713         * modules/obstack (Makefile.am): Likewise.
72714         * modules/openat (Makefile.am): Likewise.
72715         * modules/pagealign_alloc (Makefile.am): Likewise.
72716         * modules/pathmax (Makefile.am): Likewise.
72717         * modules/physmem (Makefile.am): Likewise.
72718         * modules/poll (Makefile.am): Likewise.
72719         * modules/posixtm (Makefile.am): Likewise.
72720         * modules/posixver (Makefile.am): Likewise.
72721         * modules/putenv (Makefile.am): Likewise.
72722         * modules/quote (Makefile.am): Likewise.
72723         * modules/quotearg (Makefile.am): Likewise.
72724         * modules/raise (Makefile.am): Likewise.
72725         * modules/read-file (Makefile.am): Likewise.
72726         * modules/readline (Makefile.am): Likewise.
72727         * modules/readlink (Makefile.am): Likewise.
72728         * modules/readtokens (Makefile.am): Likewise.
72729         * modules/readutmp (Makefile.am): Likewise.
72730         * modules/realloc (Makefile.am): Likewise.
72731         * modules/regex (Makefile.am): Likewise.
72732         * modules/rename-dest-slash (Makefile.am): Likewise.
72733         * modules/rename (Makefile.am): Likewise.
72734         * modules/rijndael (Makefile.am): Likewise.
72735         * modules/rmdir (Makefile.am): Likewise.
72736         * modules/rpmatch (Makefile.am): Likewise.
72737         * modules/safe-read (Makefile.am): Likewise.
72738         * modules/safe-write (Makefile.am): Likewise.
72739         * modules/same-inode (Makefile.am): Likewise.
72740         * modules/same (Makefile.am): Likewise.
72741         * modules/save-cwd (Makefile.am): Likewise.
72742         * modules/savedir (Makefile.am): Likewise.
72743         * modules/setenv (Makefile.am): Likewise.
72744         * modules/settime (Makefile.am): Likewise.
72745         * modules/sha1 (Makefile.am): Likewise.
72746         * modules/sig2str (Makefile.am): Likewise.
72747         * modules/snprintf (Makefile.am): Likewise.
72748         * modules/stat-macros (Makefile.am): Likewise.
72749         * modules/stat-time (Makefile.am): Likewise.
72750         * modules/stdbool (Makefile.am): Likewise.
72751         * modules/stdint (Makefile.am): Likewise.
72752         * modules/stdlib-safer (Makefile.am): Likewise.
72753         * modules/stpcpy (Makefile.am): Likewise.
72754         * modules/stpncpy (Makefile.am): Likewise.
72755         * modules/strcase (Makefile.am): Likewise.
72756         * modules/strcasestr (Makefile.am): Likewise.
72757         * modules/strchrnul (Makefile.am): Likewise.
72758         * modules/strcspn (Makefile.am): Likewise.
72759         * modules/strdup (Makefile.am): Likewise.
72760         * modules/strerror (Makefile.am): Likewise.
72761         * modules/strftime (Makefile.am): Likewise.
72762         * modules/strndup (Makefile.am): Likewise.
72763         * modules/strnlen (Makefile.am): Likewise.
72764         * modules/strpbrk (Makefile.am): Likewise.
72765         * modules/strsep (Makefile.am): Likewise.
72766         * modules/strstr (Makefile.am): Likewise.
72767         * modules/strtod (Makefile.am): Likewise.
72768         * modules/strtoimax (Makefile.am): Likewise.
72769         * modules/strtok_r (Makefile.am): Likewise.
72770         * modules/strtol (Makefile.am): Likewise.
72771         * modules/strtoll (Makefile.am): Likewise.
72772         * modules/strtoul (Makefile.am): Likewise.
72773         * modules/strtoull (Makefile.am): Likewise.
72774         * modules/strtoumax (Makefile.am): Likewise.
72775         * modules/strverscmp (Makefile.am): Likewise.
72776         * modules/sys_socket (Makefile.am): Likewise.
72777         * modules/sys_stat (Makefile.am): Likewise.
72778         * modules/sysexits (Makefile.am): Likewise.
72779         * modules/time_r (Makefile.am): Likewise.
72780         * modules/timegm (Makefile.am): Likewise.
72781         * modules/timespec (Makefile.am): Likewise.
72782         * modules/tmpfile-safer (Makefile.am): Likewise.
72783         * modules/trim (Makefile.am): Likewise.
72784         * modules/unistd-safer (Makefile.am): Likewise.
72785         * modules/unlinkdir (Makefile.am): Likewise.
72786         * modules/unlocked-io (Makefile.am): Likewise.
72787         * modules/userspec (Makefile.am): Likewise.
72788         * modules/utime (Makefile.am): Likewise.
72789         * modules/utimecmp (Makefile.am): Likewise.
72790         * modules/utimens (Makefile.am): Likewise.
72791         * modules/vasnprintf (Makefile.am): Likewise.
72792         * modules/vasprintf (Makefile.am): Likewise.
72793         * modules/vsnprintf (Makefile.am): Likewise.
72794         * modules/xalloc (Makefile.am): Likewise.
72795         * modules/xgetcwd (Makefile.am): Likewise.
72796         * modules/xnanosleep (Makefile.am): Likewise.
72797         * modules/xreadlink (Makefile.am): Likewise.
72798         * modules/xstrtod (Makefile.am): Likewise.
72799         * modules/xstrtol (Makefile.am): Likewise.
72800         * modules/xstrtold (Makefile.am): Likewise.
72801         * modules/yesno (Makefile.am): Likewise.
72802         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72803
72804 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * modules/error (Makefile.am): Distribute files through
72807         EXTRA_DIST, not lib_SOURCES.
72808
72809 2006-10-12  Eric Blake  <ebb9@byu.net>
72810
72811         * modules/error (Makefile.am): Distribute files in /lib.
72812         * modules/obstack (Makefile.am): Likewise.
72813
72814 2006-10-12  Bruno Haible  <bruno@clisp.org>
72815
72816         * modules/acl (Makefile.am): Distribute all files in lib/ through
72817         EXTRA_DIST.
72818         * modules/arcfour (Makefile.am): Likewise.
72819         * modules/arctwo (Makefile.am): Likewise.
72820         * modules/argmatch (Makefile.am): Likewise.
72821         * modules/argz (Makefile.am): Likewise.
72822         * modules/atexit (Makefile.am): Likewise.
72823         * modules/backupfile (Makefile.am): Likewise.
72824         * modules/c-strtod (Makefile.am): Likewise.
72825         * modules/c-strtold (Makefile.am): Likewise.
72826         * modules/calloc (Makefile.am): Likewise.
72827         * modules/canon-host (Makefile.am): Likewise.
72828         * modules/canonicalize (Makefile.am): Likewise.
72829         * modules/chdir-long (Makefile.am): Likewise.
72830         * modules/chdir-safer (Makefile.am): Likewise.
72831         * modules/check-version (Makefile.am): Likewise.
72832         * modules/chown (Makefile.am): Likewise.
72833         * modules/cloexec (Makefile.am): Likewise.
72834         * modules/close-stream (Makefile.am): Likewise.
72835         * modules/closeout (Makefile.am): Likewise.
72836         * modules/crc (Makefile.am): Likewise.
72837         * modules/cycle-check (Makefile.am): Likewise.
72838         * modules/des (Makefile.am): Likewise.
72839         * modules/dirfd (Makefile.am): Likewise.
72840         * modules/dirname (Makefile.am): Likewise.
72841         * modules/dup2 (Makefile.am): Likewise.
72842         * modules/euidaccess (Makefile.am): Likewise.
72843         * modules/exclude (Makefile.am): Likewise.
72844         * modules/exitfail (Makefile.am): Likewise.
72845         * modules/fcntl-safer (Makefile.am): Likewise.
72846         * modules/file-type (Makefile.am): Likewise.
72847         * modules/fileblocks (Makefile.am): Likewise.
72848         * modules/filemode (Makefile.am): Likewise.
72849         * modules/filenamecat (Makefile.am): Likewise.
72850         * modules/fnmatch (Makefile.am): Likewise.
72851         * modules/fopen-safer (Makefile.am): Likewise.
72852         * modules/fpending (Makefile.am): Likewise.
72853         * modules/fprintftime (Makefile.am): Likewise.
72854         * modules/free (Makefile.am): Likewise.
72855         * modules/fsusage (Makefile.am): Likewise.
72856         * modules/ftruncate (Makefile.am): Likewise.
72857         * modules/fts (Makefile.am): Likewise.
72858         * modules/gc (Makefile.am): Likewise.
72859         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72860         * modules/getaddrinfo (Makefile.am): Likewise.
72861         * modules/getcwd (Makefile.am): Likewise.
72862         * modules/getdelim (Makefile.am): Likewise.
72863         * modules/getdomainname (Makefile.am): Likewise.
72864         * modules/getgroups (Makefile.am): Likewise.
72865         * modules/gethostname (Makefile.am): Likewise.
72866         * modules/gethrxtime (Makefile.am): Likewise.
72867         * modules/getline (Makefile.am): Likewise.
72868         * modules/getloadavg (Makefile.am): Likewise.
72869         * modules/getlogin_r (Makefile.am): Likewise.
72870         * modules/getopt (Makefile.am): Likewise.
72871         * modules/getpass (Makefile.am): Likewise.
72872         * modules/getpass-gnu (Makefile.am): Likewise.
72873         * modules/getsubopt (Makefile.am): Likewise.
72874         * modules/gettime (Makefile.am): Likewise.
72875         * modules/gettimeofday (Makefile.am): Likewise.
72876         * modules/getugroups (Makefile.am): Likewise.
72877         * modules/getusershell (Makefile.am): Likewise.
72878         * modules/glob (Makefile.am): Likewise.
72879         * modules/group-member (Makefile.am): Likewise.
72880         * modules/hard-locale (Makefile.am): Likewise.
72881         * modules/hash (Makefile.am): Likewise.
72882         * modules/hmac-md5 (Makefile.am): Likewise.
72883         * modules/hmac-sha1 (Makefile.am): Likewise.
72884         * modules/human (Makefile.am): Likewise.
72885         * modules/idcache (Makefile.am): Likewise.
72886         * modules/imaxabs (Makefile.am): Likewise.
72887         * modules/imaxdiv (Makefile.am): Likewise.
72888         * modules/inet_ntop (Makefile.am): Likewise.
72889         * modules/inet_pton (Makefile.am): Likewise.
72890         * modules/inttostr (Makefile.am): Likewise.
72891         * modules/isapipe (Makefile.am): Likewise.
72892         * modules/lchown (Makefile.am): Likewise.
72893         * modules/long-options (Makefile.am): Likewise.
72894         * modules/lstat (Makefile.am): Likewise.
72895         * modules/malloc (Makefile.am): Likewise.
72896         * modules/mathl (Makefile.am): Likewise.
72897         * modules/mbchar (Makefile.am): Likewise.
72898         * modules/md2 (Makefile.am): Likewise.
72899         * modules/md4 (Makefile.am): Likewise.
72900         * modules/md5 (Makefile.am): Likewise.
72901         * modules/memcasecmp (Makefile.am): Likewise.
72902         * modules/memchr (Makefile.am): Likewise.
72903         * modules/memcmp (Makefile.am): Likewise.
72904         * modules/memcoll (Makefile.am): Likewise.
72905         * modules/memcpy (Makefile.am): Likewise.
72906         * modules/memmem (Makefile.am): Likewise.
72907         * modules/memmove (Makefile.am): Likewise.
72908         * modules/mempcpy (Makefile.am): Likewise.
72909         * modules/memrchr (Makefile.am): Likewise.
72910         * modules/memset (Makefile.am): Likewise.
72911         * modules/memxor (Makefile.am): Likewise.
72912         * modules/mkancesdirs (Makefile.am): Likewise.
72913         * modules/mkdir (Makefile.am): Likewise.
72914         * modules/mkdir-p (Makefile.am): Likewise.
72915         * modules/mkdtemp (Makefile.am): Likewise.
72916         * modules/mkstemp (Makefile.am): Likewise.
72917         * modules/mktime (Makefile.am): Likewise.
72918         * modules/modechange (Makefile.am): Likewise.
72919         * modules/mountlist (Makefile.am): Likewise.
72920         * modules/nanosleep (Makefile.am): Likewise.
72921         * modules/openat (Makefile.am): Likewise.
72922         * modules/pagealign_alloc (Makefile.am): Likewise.
72923         * modules/physmem (Makefile.am): Likewise.
72924         * modules/poll (Makefile.am): Likewise.
72925         * modules/posixtm (Makefile.am): Likewise.
72926         * modules/posixver (Makefile.am): Likewise.
72927         * modules/putenv (Makefile.am): Likewise.
72928         * modules/quote (Makefile.am): Likewise.
72929         * modules/quotearg (Makefile.am): Likewise.
72930         * modules/raise (Makefile.am): Likewise.
72931         * modules/read-file (Makefile.am): Likewise.
72932         * modules/readline (Makefile.am): Likewise.
72933         * modules/readlink (Makefile.am): Likewise.
72934         * modules/readtokens (Makefile.am): Likewise.
72935         * modules/readutmp (Makefile.am): Likewise.
72936         * modules/realloc (Makefile.am): Likewise.
72937         * modules/regex (Makefile.am): Likewise.
72938         * modules/rename (Makefile.am): Likewise.
72939         * modules/rename-dest-slash (Makefile.am): Likewise.
72940         * modules/rijndael (Makefile.am): Likewise.
72941         * modules/rmdir (Makefile.am): Likewise.
72942         * modules/rpmatch (Makefile.am): Likewise.
72943         * modules/safe-read (Makefile.am): Likewise.
72944         * modules/safe-write (Makefile.am): Likewise.
72945         * modules/same (Makefile.am): Likewise.
72946         * modules/save-cwd (Makefile.am): Likewise.
72947         * modules/savedir (Makefile.am): Likewise.
72948         * modules/setenv (Makefile.am): Likewise.
72949         * modules/settime (Makefile.am): Likewise.
72950         * modules/sha1 (Makefile.am): Likewise.
72951         * modules/sig2str (Makefile.am): Likewise.
72952         * modules/snprintf (Makefile.am): Likewise.
72953         * modules/stdlib-safer (Makefile.am): Likewise.
72954         * modules/stpcpy (Makefile.am): Likewise.
72955         * modules/stpncpy (Makefile.am): Likewise.
72956         * modules/strcase (Makefile.am): Likewise.
72957         * modules/strcasestr (Makefile.am): Likewise.
72958         * modules/strchrnul (Makefile.am): Likewise.
72959         * modules/strcspn (Makefile.am): Likewise.
72960         * modules/strdup (Makefile.am): Likewise.
72961         * modules/strerror (Makefile.am): Likewise.
72962         * modules/strftime (Makefile.am): Likewise.
72963         * modules/strndup (Makefile.am): Likewise.
72964         * modules/strnlen (Makefile.am): Likewise.
72965         * modules/strpbrk (Makefile.am): Likewise.
72966         * modules/strsep (Makefile.am): Likewise.
72967         * modules/strstr (Makefile.am): Likewise.
72968         * modules/strtod (Makefile.am): Likewise.
72969         * modules/strtoimax (Makefile.am): Likewise.
72970         * modules/strtok_r (Makefile.am): Likewise.
72971         * modules/strtol (Makefile.am): Likewise.
72972         * modules/strtoll (Makefile.am): Likewise.
72973         * modules/strtoul (Makefile.am): Likewise.
72974         * modules/strtoull (Makefile.am): Likewise.
72975         * modules/strtoumax (Makefile.am): Likewise.
72976         * modules/strverscmp (Makefile.am): Likewise.
72977         * modules/time_r (Makefile.am): Likewise.
72978         * modules/timegm (Makefile.am): Likewise.
72979         * modules/tmpfile-safer (Makefile.am): Likewise.
72980         * modules/unistd-safer (Makefile.am): Likewise.
72981         * modules/unlinkdir (Makefile.am): Likewise.
72982         * modules/userspec (Makefile.am): Likewise.
72983         * modules/utime (Makefile.am): Likewise.
72984         * modules/utimecmp (Makefile.am): Likewise.
72985         * modules/utimens (Makefile.am): Likewise.
72986         * modules/vasnprintf (Makefile.am): Likewise.
72987         * modules/vasprintf (Makefile.am): Likewise.
72988         * modules/vsnprintf (Makefile.am): Likewise.
72989         * modules/xalloc (Makefile.am): Likewise.
72990         * modules/xgetcwd (Makefile.am): Likewise.
72991         * modules/xnanosleep (Makefile.am): Likewise.
72992         * modules/xreadlink (Makefile.am): Likewise.
72993         * modules/xstrtod (Makefile.am): Likewise.
72994         * modules/xstrtol (Makefile.am): Likewise.
72995         * modules/xstrtold (Makefile.am): Likewise.
72996         * modules/yesno (Makefile.am): Likewise.
72997
72998 2006-10-12  Jim Meyering  <jim@meyering.net>
72999
73000         * m4/getloadavg.m4: Revert the change below.
73001
73002         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73003         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73004         fail with a symlink, which is what coreutils' ./bootstrap now
73005         creates by default.
73006
73007 2006-10-12  Bruno Haible  <bruno@clisp.org>
73008
73009         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73010         mingw.
73011         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73012         MSVC and mingw explicitly.
73013
73014 2006-10-11  Simon Josefsson  <jas@extundo.com>
73015             Bruno Haible  <bruno@clisp.org>
73016
73017         Add support for multiple gnulib-tool invocations in the scope of a
73018         single configure.ac file.
73019         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73020         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73021         with the same contents as the _LIBADD variable.
73022         (func_emit_initmacro_start, func_emit_initmacro_end,
73023         func_emit_initmacro_done): New functions.
73024         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73025         gl_LIBOBJS and gl_LTLIBOBJS.
73026
73027 2006-10-11  Bruno Haible  <bruno@clisp.org>
73028
73029         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73030         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73031         autoreconf. Instead, invoke autopoint explicitly but move back the
73032         *.m4 files from gnulib.
73033
73034 2006-10-11  Bruno Haible  <bruno@clisp.org>
73035
73036         * gnulib-tool (func_usage): Make module names after --create-testdir
73037         optional.
73038         (func_create_testdir): If no module was specified, use nearly all
73039         modules.
73040
73041 2006-10-12  Jim Meyering  <jim@meyering.net>
73042
73043         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73044         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73045         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73046         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73047         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73048         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73049         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73050         (fts_set_stat_required): New function.
73051         (fts_open): Defer the calls to fts_stat, if possible or requested.
73052         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73053         into fts_stat itself.
73054         (fts_read): Perform any required (deferred) fts_stat call.
73055         (fts_build): Likewise, for the directory we're about to open and read.
73056         In the readdir loop, carefully decide whether each entry will require
73057         an eventual call to fts_stat, using dirent.d_type info if available.
73058         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73059         a command line argument into this function.  Update all callers.
73060         Map a return value of FTS_DOT to FTS_D for a command line argument.
73061         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73062         Thanks to Miklos Szeredi for his tenacity and for the initial
73063         bug report about "find" failing on a FUSE-based file system.
73064
73065         * lib/fts.c (fts_open): Use consistent indentation.
73066
73067 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73068
73069         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73070         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73071         reported by Jim Meyering.  All uses of cache variables renamed
73072         to match Autoconf's.
73073         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73074         the other one.
73075
73076         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73077         Fix misspelling in diagnostic.
73078
73079 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73082         defined.  Problem reported by Matthew Woehlke.
73083
73084         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73085         Add support for Tandem NonStop R series.
73086         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73087         Use new macro.
73088
73089         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73090         (has_trailing_slash): Omit size arg; all callers changed.
73091         Omit 'inline', since it doesn't help performance and we'd
73092         need to configure it.
73093         Don't count //, ///, etc. as having a trailing slash.
73094         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73095         (rpl_rename_dest_slash): On failure, use rename's errno rather
73096         than (in some cases) an incorrect or junk errno.
73097         Simplify code by removing need to compute length; this does
73098         cause it to make two passes instead of one over the file name,
73099         but it's worth it.
73100
73101         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73102         change, since Autoconf's version may no longer be appropriate now
73103         that we are using CVS Autoconf's version.  Add support for Tandem.
73104
73105 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73106             Bruno Haible  <bruno@clisp.org>
73107
73108         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73109         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73110         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73111         gl_AC_TYPE_LONG_LONG.
73112
73113         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73114         instead of HAVE_LONG_LONG.
73115         * lib/printf-args.c (printf_fetchargs): Likewise.
73116         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73117         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73118         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73119         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73120         gl_AC_TYPE_LONG_LONG.
73121
73122 2006-10-11  Bruno Haible  <bruno@clisp.org>
73123
73124         * m4/longlong.m4: Add comments.
73125         * m4/ulonglong.m4: Likewise.
73126
73127 2006-10-10  Bruno Haible  <bruno@clisp.org>
73128
73129         Make it possible to #define stpcpy, strdup to aliases.
73130         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73131         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73132
73133 2006-10-10  Bruno Haible  <bruno@clisp.org>
73134
73135         Make it possible to #define gcd to an alias.
73136         * lib/gcd.c: Include config.h.
73137
73138 2006-10-10  Bruno Haible  <bruno@clisp.org>
73139
73140         Make it possible to #define c_isascii to an alias.
73141         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73142         defined. Undefine the macros before defining them, to avoid gcc
73143         warnings.
73144         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73145         define NO_C_CTYPE_MACROS early.
73146
73147 2006-10-10  Bruno Haible  <bruno@clisp.org>
73148
73149         Make it possible to #define set_program_name to an alias.
73150         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73151         ENABLE_RELOCATABLE early.
73152
73153 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73156         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73157         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73158         More generally, don't assume that 64-bit signed int is available
73159         if unsigned int is, and vice versa.
73160         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73161         unsigned symbols, not on their signed counterparts.
73162         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73163         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73164         (UINT64_C, UINTMAX_C):
73165         Likewise.
73166         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73167         unsigned counterparts.
73168         (Have_long_long, Unsigned): New macros.
73169         (Int): Renamed from INT.
73170         (strtoimax): Use the new macros.
73171         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73172         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73173         * modules/inttypes (inttypes.h): Substitute
73174         HAVE_UNSIGNED_LONG_LONG_INT.
73175         * modules/stdint (stdint.h): Likewise.
73176         (Files): Add m4/ulonglong.m4.
73177
73178 2006-10-10  Bruno Haible  <bruno@clisp.org>
73179
73180         Fix a gcc -Wshadow warning.
73181         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73182         to 'bucket'.
73183         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73184         gl_linked_indexof_from_to): Likewise.
73185         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73186         Likewise.
73187         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73188         Likewise.
73189         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73190         Reported by Eric Blake.
73191
73192 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73193
73194         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73195         for NetBSD.  Problem reported by Bruno Haible.
73196
73197 2006-10-09  Jim Meyering  <jim@meyering.net>
73198
73199         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73200         Patch from Bruno Haible.
73201
73202 2006-10-09  Jim Meyering  <jim@meyering.net>
73203
73204         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73205         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73206         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73207
73208 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         Don't include <config.h> twice; this doesn't work in some cases,
73211         e.g., when config.h has "#define intmax_t long long int" and
73212         we include <config.h>, <inttypes.h>, <config.h> in that order.
73213         Problem reported by Matthew Woehlke in:
73214         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73215         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73216         * lib/fts-cycle.c: Don't include config.h.
73217         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73218         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73219         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73220         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73221         inttypes.h.
73222         * lib/xstrtoumax.c: Likewise.
73223         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73224         __strtol and the like, so that this module is more like its siblings.
73225         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73226         Remove; no longer needed now that we assume gnulib inttypes.h.
73227
73228 2006-10-08  Bruno Haible  <bruno@clisp.org>
73229
73230         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73231         option.
73232
73233 2006-10-07  Jim Meyering  <jim@meyering.net>
73234
73235         * modules/inttypes (inttypes.h): Revert what seems to have been
73236         an inadvertent part of today's change: use "|", not "/" in the
73237         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73238
73239 2006-10-07  Bruno Haible  <bruno@clisp.org>
73240
73241         * modules/sublist: New file.
73242
73243 2006-10-07  Bruno Haible  <bruno@clisp.org>
73244
73245         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73246         * modules/argz (argz.h): Likewise.
73247         * modules/arpa_inet (arpa/inet.h): Likewise.
73248         * modules/byteswap (byteswap.h): Likewise.
73249         * modules/configmake (configmake.h): Likewise.
73250         * modules/fcntl (fcntl.h): Likewise.
73251         * modules/fnmatch (fnmatch.h): Likewise.
73252         * modules/getopt (getopt.h): Likewise.
73253         * modules/glob (glob.h): Likewise.
73254         * modules/inttypes (inttypes.h): Likewise.
73255         * modules/netinet_in (netinet/in.h): Likewise.
73256         * modules/poll (poll.h): Likewise.
73257         * modules/stdbool (stdbool.h): Likewise.
73258         * modules/stdint (stdint.h): Likewise.
73259         * modules/sys_select (sys/select.h): Likewise.
73260         * modules/sys_socket (sys/socket.h): Likewise.
73261         * modules/sys_stat (sys/stat.h): Likewise.
73262         * modules/sysexits (sysexits.h): Likewise.
73263         * modules/unistd (unistd.h): Likewise.
73264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73265         Add a "DO NOT EDIT" comment to the generated file.
73266         (func_import): Likewise for gnulib-comp.m4.
73267
73268 2006-10-07  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/gl_sublist.h: New file.
73271         * lib/gl_sublist.c: New file.
73272
73273 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73276         name (relative to the original working directory) and the file
73277         name component (relative to the temporary working directory).  All
73278         callers changed.
73279         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73280         * lib/mkdir-p.c (make_dir_parents): Likewise.
73281         * lib/mkdir-p.h (make_dir_parents): Likewise.
73282
73283 2006-10-06  Eric Blake  <ebb9@byu.net>
73284
73285         Define several macros for use by the clean-temp module.
73286         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73287         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73288         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73289
73290         * lib/clean-temp.h (close_stream_temp): New declaration.
73291         * lib/clean-temp.c (includes): Pull in headers according to what
73292         other modules are in use.
73293         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73294
73295 2006-10-06  Bruno Haible  <bruno@clisp.org>
73296
73297         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73298         instead of fopen, fwriteerror.
73299
73300 2006-10-06  Bruno Haible  <bruno@clisp.org>
73301
73302         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73303         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73304         int.
73305         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73306         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73307         Return an error indicator.
73308         Suggested by Eric Blake.
73309
73310 2006-10-06  Bruno Haible  <bruno@clisp.org>
73311
73312         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73313         Reported by Eric Blake.
73314
73315 2006-10-06  Bruno Haible  <bruno@clisp.org>
73316
73317         * modules/closeout (Description): Mention stderr too.
73318
73319 2006-10-06  Bruno Haible  <bruno@clisp.org>
73320         and Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * lib/closeout.c (close_stdout): Also close stderr.
73323         * lib/closeout.h: Update comment.
73324
73325 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73328         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73329         * lib/dirchownmod.c: Include lchown.h.
73330         * lib/lchown.c: Don't include files that lchown.h now includes.
73331         Don't declare chown, since lchown.h now does that.
73332         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73333         (lchown): Define to rpl_chown if lchown is declared but
73334         does not exist.  Declare using a prototype if lchown is not
73335         declared.  Add a copyright notice.
73336         * lib/mkstemp.h: Include <unistd.h>.
73337         * lib/openat.c: Include lchown.h.
73338
73339         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73340         we now test for that separately.
73341         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73342         rather than O_NOFOLLOW, when testing whether it's possible to
73343         avoid a race condition reliably.
73344         * lib/savewd.c (savewd_chdir): Likewise.
73345
73346         Remove macros that are no longer needed now that stdint.h is
73347         reliable.
73348         * lib/fsusage.c (UINTMAX_MAX): Remove.
73349         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73350         * lib/utimecmp.c (SIZE_MAX): Remove.
73351
73352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73353
73354         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73355         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73356         O_NOATIME works.
73357
73358 2006-10-05  Bruno Haible  <bruno@clisp.org>
73359
73360         * lib/gl_list.h (gl_sortedlist_search_from_to,
73361         gl_sortedlist_indexof_from_to): New declarations.
73362         (gl_list_implementation): New fields sortedlist_search_from_to,
73363         sortedlist_indexof_from_to.
73364         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73365         inline functions.
73366         * lib/gl_list.c (gl_sortedlist_search_from_to,
73367         gl_sortedlist_indexof_from_to): New functions.
73368         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73369         function.
73370         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73371         (gl_array_sortedlist_search_from_to): New function.
73372         (gl_array_list_implementation): Update.
73373         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73374         function.
73375         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73376         (gl_carray_sortedlist_search_from_to): New function.
73377         (gl_carray_list_implementation): Update.
73378         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73379         gl_linked_sortedlist_indexof_from_to): New functions.
73380         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73381         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73382         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73383         gl_tree_sortedlist_indexof_from_to): New functions.
73384         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73385         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73386         Update.
73387         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73388         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73389         Update.
73390
73391 2006-10-05  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73394         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73395         (struct gl_list_implementation): Add fields search_from_to,
73396         indexof_from_to. Remove fields search, indexof.
73397         (gl_list_search): Use the search_from_to method.
73398         (gl_list_search_from, gl_list_search_from_to): New functions.
73399         (gl_list_indexof): Use the indexof_from_to method.
73400         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73401         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73402         (gl_list_search_from, gl_list_search_from_to): New functions.
73403         (gl_list_indexof): Use the indexof_from_to method.
73404         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73405         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73406         gl_array_indexof. Add start_index, end_index arguments.
73407         (gl_array_search_from_to): Renamed from gl_array_search. Add
73408         start_index, end_index arguments.
73409         (gl_array_remove, gl_array_list_implementation): Update.
73410         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73411         gl_carray_indexof. Add start_index, end_index arguments.
73412         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73413         start_index, end_index arguments.
73414         (gl_carray_remove, gl_carray_list_implementation): Update.
73415         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73416         gl_linked_search. Add start_index, end_index arguments.
73417         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73418         start_index, end_index arguments.
73419         (gl_linked_remove): Update.
73420         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73421         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73422         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73423         field to 'size_t'.
73424         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73425         gl_tree_search. Add start_index, end_index arguments.
73426         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73427         start_index, end_index arguments.
73428         (gl_tree_remove): Update.
73429         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73430         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73431         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73432         function.
73433         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73434         gl_tree_search. Add start_index, end_index arguments.
73435         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73436         start_index, end_index arguments.
73437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73438         Update.
73439         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73440
73441 2006-10-05  Bruno Haible  <bruno@clisp.org>
73442
73443         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73444
73445         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73446         fwriteerror_temp): New declarations.
73447         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73448         (descriptors): New variable.
73449         (cleanup): First, close the descriptors.
73450         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73451         fclose_temp, fwriteerror_temp): New functions.
73452
73453 2006-10-04  Jim Meyering  <jim@meyering.net>
73454
73455         * lib/fts.c (fts_open): Tiny comment change.
73456
73457 2006-10-04  Bruno Haible  <bruno@clisp.org>
73458
73459         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73460         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73461         gl_LOCK_BODY.
73462         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73463         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73464         gl_LOCK_EARLY_BODY.
73465         (gl_LOCK): Require gl_LOCK_BODY.
73466
73467 2006-10-04  Bruno Haible  <bruno@clisp.org>
73468
73469         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73470         (gl_oset_search_atleast): New declaration.
73471         (struct gl_oset_implementation): Add field 'search_atleast'.
73472         (gl_oset_search_atleast): New inline function.
73473         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73474         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73475         (gl_array_oset_implementation): Update.
73476         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73477         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73478         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73479
73480 2006-10-04  Bruno Haible  <bruno@clisp.org>
73481
73482         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73483
73484 2006-10-03  Bruno Haible  <bruno@clisp.org>
73485
73486         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73487         from gl_avltreehash_list_implementation.
73488
73489 2006-10-03  Bruno Haible  <bruno@clisp.org>
73490
73491         * lib/gl_oset.c (gl_oset_add): Fix return type.
73492
73493 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73494
73495         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73496
73497 2006-10-02  Eric Blake  <ebb9@byu.net>
73498
73499         * modules/strnlen (Depends-on): Add extensions.
73500
73501 2006-10-02  Eric Blake  <ebb9@byu.net>
73502
73503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73504         definition in 2.60+.
73505
73506 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73507
73508         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73509         checks.
73510
73511 2006-10-02  Bruno Haible  <bruno@clisp.org>
73512
73513         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73514         to the AUTOMAKE_OPTIONS.
73515         Reported by Jim Meyering.
73516
73517 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         Work around bug in Solaris 10 /proc file system:
73520         /proc/self/fd/NNN/.. isn't the parent directory of
73521         the directory whose file descriptor is NNN.  This needs to
73522         be worked around at run time, not compile time, since a
73523         program might be built on Solaris 8, where things work, and
73524         run on Solaris 10.
73525         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73526         to use the following interface instead:
73527         (OPENAT_BUFFER_SIZE): New macro.
73528         (openat_proc_name): New function.
73529         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73530         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73531         Likewise.
73532         * lib/openat-proc.c: New file.
73533         * modules/openat (Files): Add lib/openat-proc.c.
73534         (Depends-on): Add same-inode, stdbool.
73535         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73536
73537 2006-09-29  Bruno Haible  <bruno@clisp.org>
73538
73539         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73540         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73541         argument. Set stdout_closed before testing for ferror, not after.
73542         (fwriteerror, fwriteerror_no_ebadf): New functions.
73543
73544 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73545
73546         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73547
73548 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73549
73550         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73551         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73552
73553 2006-09-28  Jim Meyering  <jim@meyering.net>
73554
73555         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73556         Include <unistd.h>.
73557
73558 2006-09-28  Bruno Haible  <bruno@clisp.org>
73559
73560         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73561         * modules/linkedhash-list (Depends-on): Likewise.
73562         * modules/rbtreehash-list (Depends-on): Likewise.
73563
73564 2006-09-28  Bruno Haible  <bruno@clisp.org>
73565
73566         * lib/strndup.h: Simplify the redefinition of strndup.
73567         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73568         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73569
73570 2006-09-28  Bruno Haible  <bruno@clisp.org>
73571
73572         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73573         * lib/gl_linkedhash_list.c: Likewise.
73574         * lib/gl_rbtreehash_list.c: Likewise.
73575
73576 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73579         getaddrinfo.
73580
73581         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73582         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73583         it causes <stdio_ext.h> to cause a compile-time error.
73584         Problem reported by Nelson H. F. Beebe.
73585         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73586         of HAVE_DECL___PENDING.
73587
73588         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73589         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73590         declaration.
73591
73592 2006-09-27  Jim Meyering  <jim@meyering.net>
73593
73594         This file could end up with a definition for a function
73595         named __strndup, rather than rpl_strndup on a system with
73596         incomplete weak_alias support.
73597         * lib/strndup.c (strndup): Rename from __strndup.
73598         Remove #defines that used to map __strndup to strndup.
73599         Don't use K&R prototypes.
73600         Remove LIBC-related code, since this file is not sync'd with glibc.
73601         * lib/strndup.h: Revamp, accordingly.
73602         * m4/strndup.m4: Modernize.
73603
73604 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73605
73606         * modules/savewd (Depends-on): Add 'raise'.
73607         * lib/savewd.c: Include <signal.h>, for 'raise'.
73608
73609 2006-09-26  Jim Meyering  <jim@meyering.net>
73610
73611         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73612         when we detect Darwin 8.7.0's acl_get_file bug.
73613         Rearrange to perform the new (below) run-test while $LIBS
73614         contains any acl-related library.  Set USE_ACL at the end.
73615         (gl_ACL_GET_FILE): New function.
73616
73617 2006-09-26  Eric Blake  <ebb9@byu.net>
73618
73619         * lib/verror.c: Include <config.h> unconditionally.
73620
73621 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         * modules/clock-time (Maintainer): Add self.
73624         * modules/getlogin_r (Depends-on): Add extensions.
73625
73626 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73627
73628         * modules/clock-time: New module.
73629         * modules/nanosleep (Depends-on): Add clock-time.
73630         * modules/gethrxtime (Depends-on): Likewise.
73631         * modules/gettime (Depends-on): Likewise.
73632         * modules/settime (Depends-on): Likewise.
73633
73634         * modules/fts-lgpl: Depend on openat.
73635         * modules/mkancesdirs: Depend on savewd.
73636         * modules/mkdir-p: Likewise.
73637
73638 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73639
73640         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73641
73642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73643         `gl_have_arbitrary_file_name_length_limit' to
73644         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73645         actually works between configure runs.
73646
73647 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73648             Bruno Haible  <bruno@clisp.org>
73649
73650         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73651
73652 2006-09-25  Jim Meyering  <jim@meyering.net>
73653
73654         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73655         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73656
73657 2006-09-25  Eric Blake  <ebb9@byu.net>
73658
73659         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73660         exec's in 2006-09-18 patch when shuffling fds.
73661
73662 2006-09-25  Bruno Haible  <bruno@clisp.org>
73663
73664         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73665         Reported by Jim Meyering.
73666
73667 2006-09-24  Jim Meyering  <jim@meyering.net>
73668
73669         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73670         compare a pointer against a literal "0".  That caused failures with
73671         at least HP-UX's hpcc.
73672
73673 2006-09-22  Simon Josefsson  <jas@extundo.com>
73674
73675         * modules/gc-sha1:
73676         * modules/gc-md4:
73677         * modules/gc-hmac-sha1:
73678         * modules/gc-hmac-md5:
73679         * modules/gc-des:
73680         * modules/gc-arcfour: Distribute more files.
73681
73682 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73683
73684         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73685         (gl_linked_iterator_from_to): Initialize struct completely.
73686         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73687         (gl_tree_iterator_from_to): Likewise
73688         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73689         * lib/gl_array_list.c [lint] (gl_array_iterator)
73690         (gl_array_iterator_from_to): Likewise.
73691         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73692         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73693         (gl_carray_iterator_from_to): Likewise.
73694
73695         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73696         * lib/md4.c (md4_process_block): Remove unused variable.
73697         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73698         parentheses for clarity.
73699
73700 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73701
73702         * modules/bison-i18n (Depends-on): Add gettext.
73703
73704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73705
73706         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73707         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73708         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73709         also add missing comma that caused broken test.
73710         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73711         stdlib.h, for `abort'.
73712         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73713         variables.
73714         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73715         include unistd.h if present, for `rmdir'.
73716         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73717         variables.
73718         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73719         in the process include standard headers for prototypes.
73720         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73721         gets declared on GNU/Linux.
73722         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73723         unistd.h, for `rmdir'.
73724         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73725
73726         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73727         always true.
73728         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73729
73730         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73731
73732 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73733
73734         * gnulib-tool (func_version): Create output all at once.  This
73735         may help avoid triggering unnecessary SIGPIPEs, and at any
73736         rate it doesn't hurt.
73737
73738 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73739             Bruno Haible  <bruno@clisp.org>
73740
73741         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73742         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73743         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73744
73745         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73746         (gl_FUNC_VASPRINTF): Invoke it.
73747
73748 2006-09-22  Bruno Haible  <bruno@clisp.org>
73749
73750         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73751         getloadavg.c as first argument.
73752
73753 2006-09-22  Bruno Haible  <bruno@clisp.org>
73754
73755         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73756         at the beginning of the gl_INIT macro.
73757         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73758         gl_GETLOADAVG.
73759
73760 2006-09-22  Bruno Haible  <bruno@clisp.org>
73761
73762         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73763         module.
73764         Suggested by Ralf Wildenhues.
73765
73766 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73767
73768         Import this patch from libc:
73769
73770         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73771
73772         * lib/regex_internal.c (re_string_reconstruct): Handle
73773         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73774         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73775         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73776         re_string_context_at.
73777
73778         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73779         now requires it.
73780         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73781         gl_REGEX now does it for us.
73782         (gl_REGEX): Add test taken from
73783         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73784
73785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73786         Check that large offsets work.  Modernize Autoconf usages.
73787         Prefer "yes" to mean a good thing rather than a bad.
73788         Don't put "#define mkstemp" in config.h, as this might interfere
73789         with standard system headers that "#define mkstemp mkstemp64".
73790
73791         * modules/mkstemp (Depends-on): Add extensions, so that
73792         mkstemp is visible on some platforms.
73793         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73794         (Include): Change to "mkstemp.h" from <stdlib.h>.
73795         (Files): Add mkstemp.h.
73796
73797         * lib/mkstemp.h: New file, since some standard headers
73798         #define mkstemp.
73799         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73800         Include "mkstemp.h".
73801         Make the _LIBC code resemble glibc original more,
73802         e.g., use K&R style.
73803         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73804         (mkstemp): Remove, since mkstemp.h does this for us.
73805         * lib/stdlib--.h: Include mkstemp.h.
73806
73807         Import this patch from libc:
73808
73809         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73810
73811         * lib/tempname.c (__gen_tempname): Change attempts_min
73812         into a macro.  Use preprocessor to decide how to initialize
73813         attempts [Coverity CID 67].
73814
73815 2006-09-20  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/mkdtemp.c: Import from libc.
73818         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73819                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73820                 attempts_min into a macro.  Use preprocessor to decide how to
73821                 initialize attempts [Coverity CID 67].
73822         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73823                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73824                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73825
73826 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73827
73828         * gnulib-tool (func_exit): New function, to allow to pass the
73829         exit status portably through the trap.  Use everywhere.
73830         (--help, --version): Signal a write error.
73831         (trap): catch SIGPIPE, for write errors.
73832         Exit at the end of the trap, with the correct exit status.
73833
73834 2006-09-19  Karl Berry  <karl@gnu.org>
73835
73836         * doc/gnulib.texi: note about the license texinfo files.
73837
73838 2006-09-19  Eric Blake  <ebb9@byu.net>
73839
73840         * gnulib-tool: Avoid space-tab.
73841
73842 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73845         that prevented coreutils 6.1 from building.  Problem reported
73846         by Petter Reinholdtsen.
73847
73848 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * gnulib-tool (avoidlist): Fix typo that broke options like
73851         --avoid=lock that are used by coreutils bootstrap.
73852
73853 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73854
73855         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73856         more systematically.
73857
73858 2006-09-18  Jim Meyering  <jim@meyering.net>
73859
73860         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73861
73862 2006-09-18  Bruno Haible  <bruno@clisp.org>
73863
73864         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73865
73866 2006-09-18  Bruno Haible  <bruno@clisp.org>
73867
73868         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73869         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73870         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73871         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73872         * m4/gettext.m4: Require autoconf >= 2.52.
73873         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73874         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73875         of gl_cv_header_inttypes_h.
73876
73877 2006-09-18  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/javaversion.c: Include configmake.h.
73880
73881 2006-09-18  Bruno Haible  <bruno@clisp.org>
73882
73883         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73884         avoid that the while loops be executed in a subshell.
73885
73886 2006-09-18  Bruno Haible  <bruno@clisp.org>
73887
73888         * MODULES.html.sh (func_module): Break long lines.
73889         Suggested by Bruce Korb <bkorb@gnu.org>.
73890
73891 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73892
73893         Speed up by a factor of 1.12.
73894         * gnulib-tool (nl): New variable.
73895         (func_import): Rewrite include directive extraction to only read each
73896         directive once.
73897
73898 2006-09-17  Bruno Haible  <bruno@clisp.org>
73899
73900         * modules/javaversion (Makefile.am): Remove DEFS setting.
73901         (Depends-on): Add configmake, for PKGDATADIR definition.
73902
73903 2006-09-17  Bruno Haible  <bruno@clisp.org>
73904
73905         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73906
73907 2006-09-17  Bruno Haible  <bruno@clisp.org>
73908
73909         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73910         (func_modules_transitive_closure, func_modules_add_dummy,
73911         func_modules_to_filelist, func_import, func_create_testdir,
73912         func_create_megatestdir, ...): Use it wherever possible.
73913         Suggested by Ralf Wildenhues.
73914
73915 2006-09-16  Karl Berry  <karl@gnu.org>
73916
73917         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73918         to avoid sectioning errors.
73919         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73920         [ifinfo]: blank line after @center-ed titles.
73921         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73922         Spell FSF address consistently with others.
73923         (These changes approved by rms.)
73924
73925 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73926
73927         Speed up by a factor of 1.61.
73928         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73929         already checked module names again.
73930
73931 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73932
73933         Speed up by a factor of 1.13.
73934         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73935         for new_files, and the input to func_add_or_update.
73936
73937 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73938
73939         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73940         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73941
73942 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * modules/mkancesdirs (Depends-on): Add fcntl.
73945         * modules/savewd: New file.
73946         * MODULES.html.sh (File system functions): Add savewd.
73947
73948         * modules/configmake (Makefile.am): Add support for the
73949         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73950
73951 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * m4/savewd.m4: New file.
73954
73955 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73956
73957         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73958         (dirchownmod): New arg FD.  All callers changed.
73959         Use FD rather than opening the directory ourself, as opening is
73960         now the caller's responsibility.
73961         * lib/dirchownmod.h: Likewise.
73962         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73963         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73964         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73965         (test_dir): Remove.
73966         (mkancesdirs): Return length of prefix of FILE that has already
73967         been made, or -2 if there is a child doing the work.  Redo
73968         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73969         ".", and treat ".." specially since it might stray back into
73970         already-created areas.  Use a subprocess if necessary.  New arg
73971         WD; all users changed.  MAKE_DIR function should now return 1
73972         if it creates a directory that is not readable.  Return -2 if
73973         a child process is spun off.
73974         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73975         Adjust signature to match code.
73976         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73977         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73978         all users changed.
73979         * lib/savewd.c, lib/savewd.h: New files.
73980
73981 2006-09-15  Jim Meyering  <jim@meyering.net>
73982
73983         * modules/rename-dest-slash: New module.
73984         * MODULES.html.sh (posix_compat): Add it here.
73985
73986         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73987
73988 2006-09-15  Jim Meyering  <jim@meyering.net>
73989
73990         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73991         file.
73992
73993         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73994
73995 2006-09-15  Jim Meyering  <jim@meyering.net>
73996
73997         * lib/rename-dest-slash.c (has_trailing_slash): Use
73998         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73999         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74000         test before testing whether SRC is a directory.
74001         Suggestions from Bruno Haible.
74002
74003         Avoid a warning about an unused variable.
74004         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74005         into the #ifdef block where it's used.
74006
74007         * lib/rename-dest-slash.c: New file.
74008
74009 2006-09-14  Bruno Haible  <bruno@clisp.org>
74010
74011         * lib/allocsa.c: Include <config.h> unconditionally.
74012         * lib/asnprintf.c: Likewise.
74013         * lib/asprintf.c: Likewise.
74014         * lib/c-strcasecmp.c: Likewise.
74015         * lib/c-strcasestr.c: Likewise.
74016         * lib/c-strncasecmp.c: Likewise.
74017         * lib/c-strstr.c: Likewise.
74018         * lib/classpath.c: Likewise.
74019         * lib/clean-temp.c: Likewise.
74020         * lib/concatpath.c: Likewise.
74021         * lib/copy-file.c: Likewise.
74022         * lib/csharpcomp.c: Likewise.
74023         * lib/csharpexec.c: Likewise.
74024         * lib/execute.c: Likewise.
74025         * lib/fatal-signal.c: Likewise.
74026         * lib/findprog.c: Likewise.
74027         * lib/fwriteerror.c: Likewise.
74028         * lib/gl_array_list.c: Likewise.
74029         * lib/gl_array_oset.c: Likewise.
74030         * lib/gl_avltree_list.c: Likewise.
74031         * lib/gl_avltree_oset.c: Likewise.
74032         * lib/gl_avltreehash_list.c: Likewise.
74033         * lib/gl_carray_list.c: Likewise.
74034         * lib/gl_linked_list.c: Likewise.
74035         * lib/gl_linkedhash_list.c: Likewise.
74036         * lib/gl_list.c: Likewise.
74037         * lib/gl_oset.c: Likewise.
74038         * lib/gl_rbtree_list.c: Likewise.
74039         * lib/gl_rbtree_oset.c: Likewise.
74040         * lib/gl_rbtreehash_list.c: Likewise.
74041         * lib/imaxabs.c: Likewise.
74042         * lib/imaxdiv.c: Likewise.
74043         * lib/javacomp.c: Likewise.
74044         * lib/javaexec.c: Likewise.
74045         * lib/javaversion.c: Likewise.
74046         * lib/linebreak.c: Likewise.
74047         * lib/localcharset.c: Likewise.
74048         * lib/lock.c: Likewise.
74049         * lib/mbchar.c: Likewise.
74050         * lib/mbswidth.c: Likewise.
74051         * lib/mkdtemp.c: Likewise.
74052         * lib/pipe.c: Likewise.
74053         * lib/printf-args.c: Likewise.
74054         * lib/printf-parse.c: Likewise.
74055         * lib/progname.c: Likewise.
74056         * lib/progreloc.c: Likewise.
74057         * lib/readlink.c: Likewise.
74058         * lib/sh-quote.c: Likewise.
74059         * lib/stpcpy.c: Likewise.
74060         * lib/stpncpy.c: Likewise.
74061         * lib/strcasecmp.c: Likewise.
74062         * lib/strcasestr.c: Likewise.
74063         * lib/strcspn.c: Likewise.
74064         * lib/striconv.c: Likewise.
74065         * lib/strncasecmp.c: Likewise.
74066         * lib/strnlen1.c: Likewise.
74067         * lib/strstr.c: Likewise.
74068         * lib/strtok_r.c: Likewise.
74069         * lib/tls.c: Likewise.
74070         * lib/tmpdir.c: Likewise.
74071         * lib/unicodeio.c: Likewise.
74072         * lib/unsetenv.c: Likewise.
74073         * lib/vasnprintf.c: Likewise.
74074         * lib/vasprintf.c: Likewise.
74075         * lib/wait-process.c: Likewise.
74076         * lib/xallocsa.c: Likewise.
74077         * lib/xsetenv.c: Likewise.
74078         * lib/xstriconv.c: Likewise.
74079
74080 2006-09-13  Simon Josefsson  <jas@extundo.com>
74081
74082         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74083         that internally, suggested by Ralf Wildenhues
74084         <Ralf.Wildenhues@gmx.de>.
74085
74086 2006-09-13  Simon Josefsson  <jas@extundo.com>
74087
74088         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74089         @LIBOBJS@.
74090         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74091
74092 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74093
74094         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74095         longer worry about uses that don't define HAVE_CONFIG_H.
74096         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74097         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74098         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74099         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74100         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74101         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74102         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74103         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74104         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74105         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74106         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74107         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74108         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74109         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74110         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74111         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74112         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74113         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74114         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74115         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74116         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74117         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74118         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74119         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74120         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74121         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74122         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74123         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74124         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74125         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74126         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74127         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74128         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74129         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74130         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74131         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74132         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74133         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74134         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74135         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74136         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74137         Likewise.
74138
74139 2006-09-13  Eric Blake  <ebb9@byu.net>
74140
74141         * lib/getopt.c: Fix typo in last commit.
74142
74143 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74144
74145         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74146         dgettext.
74147
74148 2006-09-12  Jim Meyering  <jim@meyering.net>
74149
74150         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74151         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74152         Reported by Nelson H. F. Beebe.
74153
74154 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74155
74156         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74157         program_invocation_name and program_invocation_short_name are
74158         initialized.
74159         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74160         and program_invocation_short_name to argp.h, so they are visible
74161         to user programs.
74162         * lib/argp.h: Likewise
74163
74164 2006-09-10  Bruno Haible  <bruno@clisp.org>
74165
74166         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74167         m4/inttypes_h.m4, m4/uintmax_t.m4.
74168
74169 2006-09-10  Bruno Haible  <bruno@clisp.org>
74170
74171         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74172         gl_AC_TYPE_UINTMAX_T.
74173
74174 2006-09-10  Bruno Haible  <bruno@clisp.org>
74175
74176         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74177
74178 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74179
74180         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74181         convention.  Text proposed by Bruno Haible.
74182         (struct argp_option): Document the use of N_() wrappers.
74183
74184         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74185         '\v', and translate the two parts separately, instead of feeding
74186         the whole string to gettext.  This allows to exclude
74187         '\v' from the strings visible to the translator by writing doc
74188         strings as N_("..") "\v" N_("..").
74189
74190 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74191
74192         * config/srclist.txt: Undo latest change; the bug was fixed.
74193
74194 2006-09-09  Bruno Haible  <bruno@clisp.org>
74195
74196         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74197         assignments if building a library without libtool.
74198         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74199         in func_emit_lib_Makefile_am.
74200         (func_import): When building a static library libfoo.a, arrange to
74201         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74202         (func_create_testdir): Likewise.
74203         * modules/gc (configure.ac, Makefile.am): If building statically,
74204         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74205         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74206         * modules/striconv (configure.ac, Makefile.am): Likewise.
74207         Based on a suggestion by Ralf Wildenhues.
74208
74209 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74212         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74213         Also:
74214
74215         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74216         Add year_2050_test to catch glibc bug 2821
74217         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74218
74219         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74220         Prefer #ifdef to #if.
74221
74222         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74223         Return from 'main' instead of calling 'exit'.
74224
74225 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74226
74227         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74228         returned the maximum time_t value rather than (time_t) -1.
74229         Problem originally reported by William Bardwell
74230         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74231
74232         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74233         Moved to here ...
74234         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74235         ... from here.
74236
74237 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74240         2821 is fixed.
74241
74242 2006-09-08  Jim Meyering  <jim@meyering.net>
74243
74244         Don't make generated files read-only.  That would bother too many
74245         people.  However, do retain the ability to work when targets are
74246         read-only: remove the destination and temporary files before writing
74247         them (when generated via sed or echo), or by using the -f option for
74248         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74249         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74250         * modules/byteswap, modules/configmake, modules/fcntl:
74251         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74252         * modules/localcharset, modules/netinet_in, modules/poll:
74253         * modules/stdbool, modules/stdint, modules/sys_select:
74254         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74255
74256 2006-09-08  Jim Meyering  <jim@meyering.net>
74257
74258         Avoid new build failure on FreeBSD 6.0.
74259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74260         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74261         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74262
74263 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74264
74265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74266
74267 2006-09-07  Jim Meyering  <jim@meyering.net>
74268
74269         Fix global typo in last change: use chmod u-w, not chmod u-x.
74270         Spotted by Paul Eggert and Bruce Korb.
74271         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74272         * modules/byteswap, modules/configmake, modules/fcntl:
74273         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74274         * modules/localcharset, modules/netinet_in, modules/poll:
74275         * modules/stdbool, modules/stdint, modules/sys_select:
74276         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74277
74278 2006-09-06  Jim Meyering  <jim@meyering.net>
74279
74280         Make generated files be read-only.
74281         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74282         Ensure that each generated file is now read-only.
74283         * modules/argz: Likewise.
74284         * modules/arpa_inet: Likewise.
74285         * modules/byteswap: Likewise.
74286         * modules/configmake: Likewise.
74287         * modules/fcntl: Likewise.
74288         * modules/fnmatch: Likewise.
74289         * modules/getopt: Likewise.
74290         * modules/glob: Likewise.
74291         * modules/inttypes: Likewise.
74292         * modules/netinet_in: Likewise.
74293         * modules/poll: Likewise.
74294         * modules/stdbool: Likewise.
74295         * modules/stdint: Likewise.
74296         * modules/sys_select: Likewise.
74297         * modules/sys_socket: Likewise.
74298         * modules/sys_stat: Likewise.
74299         * modules/sysexits: Likewise.
74300         * modules/localcharset: Same as above, but continue using temporary
74301         file named "t-$@" (why different?) rather than the "$@-t" used
74302         everywhere else.
74303
74304         * modules/sysexits (Makefile.am): Replace literal occurrences
74305         of "sysexit.h" more readable, and more consistent, "$@".
74306
74307 2006-09-06  Bruno Haible  <bruno@clisp.org>
74308
74309         * modules/striconv: New file.
74310         * modules/xstriconv: New file.
74311         * MODULES.html.sh (Internationalization functions): Add striconv,
74312         xstriconv.
74313
74314 2006-09-06  Bruno Haible  <bruno@clisp.org>
74315
74316         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74317         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74318         not using libtool correctly.
74319
74320 2006-09-06  Bruno Haible  <bruno@clisp.org>
74321
74322         * lib/striconv.h: New file.
74323         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74324         iconvstring.c.
74325         * lib/xstriconv.h: New file.
74326         * lib/xstriconv.c: New file.
74327
74328 2006-09-06  Bruno Haible  <bruno@clisp.org>
74329
74330         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74331         lib_..._LDFLAGS.
74332
74333 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74334
74335         * lib/argz_.h: Sync from Libtool.
74336
74337         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74338                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74339
74340         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74341
74342 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74343
74344         * modules/trim: New file.
74345
74346 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74347
74348         * lib/trim.h: New file.
74349         * lib/trim.c: New file.
74350
74351 2006-09-05  Bruno Haible  <bruno@clisp.org>
74352
74353         * MODULES.html.sh (String handling): Add trim.
74354
74355 2006-09-04  Karl Berry  <karl@gnu.org>
74356
74357         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74358         until next release.
74359
74360 2006-09-03  Bruno Haible  <bruno@clisp.org>
74361
74362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74363         correctly.
74364
74365 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74368         not gl_GETLOADAVG.  Omit unneeded semicolons.
74369         Problems reported by Ralf Wildenhues in
74370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74371         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74372         at the end, which is the usual gnulib style.
74373
74374         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74375         of doing all the work ourselves.
74376         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74377         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74378
74379 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74382         Problem reported by Ralf Wildenhues in
74383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74384
74385         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74386         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74387
74388 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74391         yesterday's patch by changing test -n to test -z.
74392
74393 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74396         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74397         the former is now obsolescent.
74398
74399         * modules/chdir-long (Depends-on): Add fcntl.
74400
74401 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74404         obsolescent, and programs should use gnulib instead.
74405         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74406         but with prefixes changed.
74407
74408 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74411         or stdbool.h, because they might not exist while configuring.
74412
74413         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74414         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74415         does that for us.
74416         (O_DIRECTORY): Remove.
74417
74418 2006-08-31  Eric Blake  <ebb9@byu.net>
74419
74420         * gnulib-tool: Don't let emacs change spaces to TAB.
74421
74422 2006-08-31  Bruno Haible  <bruno@clisp.org>
74423
74424         * gnulib-tool: When calling func_import more than once, do it in a
74425         subshell.
74426         Reported by Eric Blake <ebb9@byu.net>.
74427
74428 2006-08-31  Bruno Haible  <bruno@clisp.org>
74429
74430         * gnulib-tool (nl): Remove variable.
74431         (sed_transform_lib_file): Use more robust test for config-h module.
74432         (func_import): Fix typo in 2006-08-25 patch.
74433
74434 2006-08-31  Bruno Haible  <bruno@clisp.org>
74435
74436         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74437         specified, augment Makefile.am variables instead of assigning them.
74438
74439 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         Work around a bug in both the Linux and SunOS 64-bit kernels:
74442         nanosleep mishandles sleeps for longer than 2**31 seconds.
74443         Problem reported by Frank v Waveren in
74444         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74446         Check for nanosleep bug.
74447         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74448
74449 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         Work around a bug in both the Linux and SunOS 64-bit kernels:
74452         nanosleep mishandles sleeps for longer than 2**31 seconds.
74453         Problem reported by Frank v Waveren in
74454         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74455         * lib/nanosleep.c (BILLION): New constant.
74456         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74457         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74458         implementation.
74459
74460 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * modules/nanosleep (Depends-on): Add gettime.
74463
74464 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74465         and Simon Josefsson  <jas@extundo.com>
74466         and Oskar Liljeblad  <oskar@osk.mine.nu>
74467
74468         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74469         * gnulib-tool (func_import): New license type 'unmodifiable license
74470         text'.
74471         * modules/fdl: Use it.  Longer description.
74472         * module/gpl, module/lgpl: New files.
74473
74474 2006-08-30  Jim Meyering  <jim@meyering.net>
74475
74476         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74477         shadowing the parameter.
74478
74479 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74480
74481         Sync from Libtool:
74482
74483         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74484
74485         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74486         sharing with gnulib.  Report by Eric Blake.
74487
74488 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74489
74490         * modules/isapipe: New file.
74491         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74492
74493 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         * modules/configmake (Makefile.am): Add a comment, and omit
74496         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74497         by Bruno Haible.
74498
74499 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * m4/isapipe.m4: New file.
74502
74503 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * lib/isapipe.c, lib/isapipe.h: New files.
74506
74507 2006-08-29  Jim Meyering  <jim@meyering.net>
74508
74509         * modules/configmake (Makefile.am): Make configmake.h depend on
74510         Makefile.  Otherwise, a stale configmake.h could hang around.
74511
74512 2006-08-29  Eric Blake  <ebb9@byu.net>
74513
74514         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74515         resolution of upstream bug 3044.
74516
74517 2006-08-29  Bruno Haible  <bruno@clisp.org>
74518
74519         * modules/localcharset (Depends-on): Add configmake.
74520         (Makefile.am): Remove setting of LIBDIR through DEFS.
74521
74522 2006-08-29  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74525         defined.
74526
74527 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * modules/fcntl: New file.
74530         * modules/chdir-safer (Depends-on): Add fcntl.
74531         * modules/fts: Likewise.
74532         * modules/mkdir-p: Likewise.
74533
74534         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74535         This undoes the most recent change, since we're now addressing the
74536         problem in a different way.
74537
74538         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74539         into output, since the output might be called Makefile.am even
74540         if $makefile_name is something different.
74541         (func_import): Use $makefile_am rather than
74542         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74543         empty.
74544
74545         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74546
74547 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74548
74549         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74550         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74551         recent change to stdint.m4, since we're now addressing the problem in a
74552         different way.
74553
74554 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * m4/fcntl_h.m4: New file.
74557
74558 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * lib/fcntl_.h: New file.
74561         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74562         the fcntl module.
74563         * lib/dirchownmod.c: Likewise.
74564         * lib/fts.c: Likewise.
74565
74566         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74567         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74568         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74569         just before including <inttypes.h>, to avoid circular inclusion.
74570
74571 2006-08-28  Jim Meyering  <jim@meyering.net>
74572
74573         * doc/visibility.texi: Actually read and correct the grammar of the
74574         sentence affected by yesterday's change.
74575
74576 2006-08-28  Eric Blake  <ebb9@byu.net>
74577
74578         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74579         needs wrapper.
74580
74581 2006-08-28  Eric Blake  <ebb9@byu.net>
74582
74583         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74584
74585 2006-08-28  Eric Blake  <ebb9@byu.net>
74586
74587         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74588
74589 2006-08-28  Bruno Haible  <bruno@clisp.org>
74590
74591         * modules/c-strstr: New file, from GNU gettext.
74592         * MODULES.html.sh (String handling): Add c-strstr.
74593
74594 2006-08-28  Bruno Haible  <bruno@clisp.org>
74595
74596         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74597         macros.
74598         Reported by Eric Blake.
74599
74600 2006-08-28  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74603         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74604         * lib/vasprintf.c: Include errno.h, limits.h.
74605         (EOVERFLOW): New fallback definition.
74606         (vasprintf): Test here whether the string length is > INT_MAX.
74607         * lib/vsnprintf.c: Include errno.h, limits.h.
74608         (EOVERFLOW): New fallback definition.
74609         (vsnprintf): Fix bug when generated string was too long for the buffer.
74610         Test here whether the string length is > INT_MAX.
74611
74612 2006-08-28  Bruno Haible  <bruno@clisp.org>
74613
74614         * lib/inttypes_.h (SCNX*): Remove definitions.
74615         Reported by Eric Blake.
74616
74617 2006-08-28  Bruno Haible  <bruno@clisp.org>
74618
74619         * lib/c-strstr.h: New file, from GNU gettext.
74620         * lib/c-strstr.c: New file, from GNU gettext.
74621
74622 2006-08-28  Bruno Haible  <bruno@clisp.org>
74623
74624         * gnulib-tool: Reorder some statements.
74625
74626 2006-08-28  Bruno Haible  <bruno@clisp.org>
74627
74628         * gnulib-tool: New option --makefile-name.
74629         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74630         $makefile_name.
74631         (func_import): Write $makefile_name to the cache file, and read it from
74632         there unless explicitly specified. Use $makefile_name as file name
74633         instead of Makefile.am. Adjust the recommendations accordingly.
74634
74635 2006-08-28  Bruno Haible  <bruno@clisp.org>
74636
74637         * gnulib-tool (func_verify_module): Check against misapplying patch.
74638
74639 2006-08-28  Bruno Haible  <bruno@clisp.org>
74640
74641         * gnulib-tool (func_relativize, func_relconcat): New functions.
74642         Give an error if --local-dir is given with --update.
74643         Remove trailing slashes from $local_gnulib_dir.
74644         (func_import): Store the relativized $local_gnulib_dir in
74645         gnulib-cache.m4, and read it from there if not specified explicitly.
74646
74647 2006-08-28  Bruno Haible  <bruno@clisp.org>
74648
74649         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74650         is the current directory. Respect also $local_gnulib_dir.
74651
74652 2006-08-28  Bruno Haible  <bruno@clisp.org>
74653             Simon Josefsson  <jas@extundo.com>
74654
74655         BeOS portability.
74656         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74657
74658 2006-08-27  Jim Meyering  <jim@meyering.net>
74659
74660         * doc/visibility.texi: Remove duplicate word: "pointer".
74661
74662 2006-08-26  Bruno Haible  <bruno@clisp.org>
74663
74664         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74665         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74666         (Makefile.am): Create inttypes.h from inttypes_.h.
74667         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74668
74669         * modules/imaxabs: New file.
74670
74671         * modules/imaxdiv: New file.
74672
74673 2006-08-26  Bruno Haible  <bruno@clisp.org>
74674
74675         * m4/inttypes.m4: New file.
74676         * m4/_inttypes_h.m4: Remove file.
74677         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74678         PRI_MACROS_BROKEN.
74679         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74680
74681         * m4/imaxabs.m4: New file.
74682
74683         * m4/imaxdiv.m4: New file.
74684
74685 2006-08-26  Bruno Haible  <bruno@clisp.org>
74686
74687         * lib/inttypes_.h: New file.
74688         * lib/inttypes.h: Remove file.
74689         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74690
74691         * lib/imaxabs.c: New file.
74692
74693         * lib/imaxdiv.c: New file.
74694
74695 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         New config-h module, so that "make" output needn't be cluttered
74698         by -DHAVE_CONFIG_H.
74699         * MODULES.html.sh (Support for building libraries and executables):
74700         Add config-h.
74701         * modules/config-h: New file.
74702         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74703         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74704         the config-h module is used.
74705
74706         New configmake module, so that "make" output needn't be cluttered
74707         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74708         * MODULES.html.sh (Support for building libraries and executables):
74709         Add configmake.
74710         * modules/configmake: New file.
74711
74712 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * m4/config-h.m4: New file.
74715
74716 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * config/srclist.txt: Add elisp-comp.
74719
74720 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74721
74722         * MODULES.html.sh (Support for building libraries and executables):
74723         Add elisp-comp.
74724         * build-aux/elisp-comp: New file.
74725         * modules/elisp-comp: New file.
74726
74727 2006-08-24  Bruno Haible  <bruno@clisp.org>
74728
74729         * gnulib-tool (func_create_testdir): Use non-default values of
74730         sourcebase and m4base.
74731
74732 2006-08-24  Bruno Haible  <bruno@clisp.org>
74733
74734         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74735         HTML structure.
74736
74737 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * modules/openat (Depends-on): Add lchown.
74740
74741 2006-08-23  Bruno Haible  <bruno@clisp.org>
74742
74743         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74744         of gl_LOCK_EARLY instead of gl_LOCK.
74745
74746 2006-08-23  Bruno Haible  <bruno@clisp.org>
74747
74748         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74749         on OSF/1 to no.
74750         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74751
74752 2006-08-23  Bruno Haible  <bruno@clisp.org>
74753
74754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74755         as unusable.
74756
74757         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74758         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74759         (gl_LOCK): New macro.
74760
74761 2006-08-22  Simon Josefsson  <jas@extundo.com>
74762
74763         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74764         to md5 module.
74765
74766 2006-08-22  Simon Josefsson  <jas@extundo.com>
74767
74768         * MODULES.html.sh: Add "Support for maintaining and release
74769         projects".
74770
74771         * build-aux/gnupload: New file, from coreutils.
74772
74773 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         Avoid the need for AC_LIBSOURCES in m4 macros.
74776         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74777         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74778         * modules/check-version (EXTRA_DIST): Add check-version.h.
74779         * modules/crc (EXTRA_DIST): Add crc.h.
74780         * modules/des (EXTRA_DIST): Add des.h.
74781         * modules/gc (EXTRA_DIST): Add gc.h.
74782         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74783         * modules/getline (EXTRA_DIST): Add getline.h.
74784         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74785         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74786         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74787         * modules/md2 (EXTRA_DIST): Add md2.h.
74788         * modules/md4 (EXTRA_DIST): Add md4.h.
74789         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74790         * modules/read-file (EXTRA_DIST): Add read-file.h.
74791         * modules/readline (EXTRA_DIST): Add readline.h.
74792         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74793         rijndael-api-fst.h.
74794
74795 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         * m4/rijndael.m4 (gl_ARCFOUR):
74798         * m4/arctwo.m4 (gl_ARCTWO):
74799         * m4/check-version.m4 (gl_CHECK_VERSION):
74800         * m4/crc.m4 (gl_CRC):
74801         * m4/des.m4 (gl_DES):
74802         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74803         * m4/gc.m4 (gl_GC):
74804         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74805         * m4/getline.m4 (gl_FUNC_GETLINE):
74806         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74807         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74808         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74809         * m4/md2.m4 (gl_MD2):
74810         * m4/md4.m4 (gl_MD4):
74811         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74812         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74813         * m4/readline.m4 (gl_FUNC_READLINE):
74814         * m4/rijndael.m4 (gl_RIJNDAEL):
74815         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74816         to get the necessary .h files and whatnot.
74817
74818 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74821         gnulib rather than the other way around.
74822         * config/srclistvars.sh (COREUTILS): Remove.
74823
74824 2006-08-22  Jim Meyering  <jim@meyering.net>
74825
74826         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74827
74828         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74829
74830 2006-08-22  Eric Blake  <ebb9@byu.net>
74831
74832         * modules/regexprops-generic: New file.
74833         * MODULES.html.sh (Support for building documentation): List it.
74834
74835 2006-08-22  Eric Blake  <ebb9@byu.net>
74836
74837         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74838         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74840         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74841
74842 2006-08-22  Bruno Haible  <bruno@clisp.org>
74843
74844         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74845         and lib_LTLIBRARIES like the other lib_* variables.
74846
74847 2006-08-22  Bruno Haible  <bruno@clisp.org>
74848
74849         * build-aux/x-to-1.in: New file, from GNU gettext.
74850
74851 2006-08-22  Bruno Haible  <bruno@clisp.org>
74852
74853         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74854         <utmpx.h> exists.
74855
74856 2006-08-22  Bruno Haible  <bruno@clisp.org>
74857
74858         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74859         <utmpx.h> exists.
74860
74861 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74862
74863         BeOS portability.
74864         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74865         exist.
74866         Problem reported by Bruno Haible.
74867
74868 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         Avoid the need for AC_LIBSOURCES in m4 macros.
74871         * modules/acl (EXTRA_DIST): Add acl.h.
74872         * modules/argmatch (Files): Add m4/argmatch.m4.
74873         (configure.ac): Add gl_ARGMATCH.
74874         (EXTRA_DIST): Renamed from lib_SOURCES, for
74875         consistency with the other modules.  Remove argmatch.c.
74876         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74877         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74878         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74879         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74880         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74881         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74882         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74883         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74884         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74885         * modules/closeout (EXTRA_DIST): Add closeout.h.
74886         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74887         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74888         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74889         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74890         dirname.h; remove basename.c and stripslash.c.
74891         * modules/exclude (EXTRA_DIST): Add exclude.h.
74892         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74893         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74894         * modules/file-type (EXTRA_DIST): Add file-type.h.
74895         * modules/filemode (EXTRA_DIST): Add filemode.h.
74896         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74897         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74898         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74899         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74900         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74901         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74902         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74903         * modules/getdate (EXTRA_DIST): Add getdate.c.
74904         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74905         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74906         * modules/getpass (EXTRA_DIST): Add getpass.h.
74907         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74908         * modules/group-member (EXTRA_DIST): Add group-member.h.
74909         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74910         * modules/hash (EXTRA_DIST): Add hash.h.
74911         * modules/human (EXTRA_DIST): Add human.h.
74912         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74913         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74914         * modules/lchown (EXTRA_DIST): Add lchown.h.
74915         * modules/long-options (EXTRA_DIST): Add long-options.h.
74916         * modules/lstat (EXTRA_DIST): Add lstat.h.
74917         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74918         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74919         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74920         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74921         * modules/memxor (EXTRA_DIST): Add memxor.h.
74922         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74923         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74924         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74925         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74926         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74927         * modules/physmem (EXTRA_DIST): Add physmem.h.
74928         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74929         * modules/posixver (EXTRA_DIST): Add posixver.h.
74930         * modules/quote (EXTRA_DIST): Add quote.h.
74931         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74932         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74933         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74934         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74935         regex_internal.h regexec.c.
74936         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74937         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74938         * modules/same (EXTRA_DIST): Add same.h.
74939         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74940         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74941         * modules/savedir (EXTRA_DIST): Add savedir.h.
74942         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74943         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74944         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74945         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74946         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74947         * modules/strdup (EXTRA_DIST): Add strdup.h.
74948         * modules/strftime (EXTRA_DIST): Add strftime.h.
74949         * modules/strndup (EXTRA_DIST): Add strndup.h.
74950         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74951         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74952         * modules/time_r (EXTRA_DIST): Add time_r.h.
74953         * modules/timespec (EXTRA_DIST): Add timespec.h.
74954         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74955         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74956         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74957         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74958         * modules/userspec (EXTRA_DIST): Add userspec.h.
74959         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74960         * modules/utimens (EXTRA_DIST): Add utimens.h.
74961         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74962         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74963         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74964         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74965         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74966         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74967         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74968         * modules/yesno (EXTRA_DIST): Add yesno.h.
74969
74970 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74973
74974         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74975         * m4/dev-ino.m4, same-inode.m4: Remove.
74976
74977         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74978         * m4/acl.m4 (AC_FUNC_ACL):
74979         * m4/backupfile.m4 (gl_BACKUPFILE):
74980         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74981         * m4/canon-host.m4 (gl_CANON_HOST):
74982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74983         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74984         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74985         * m4/cloexec.m4 (gl_CLOEXEC):
74986         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74987         * m4/closeout.m4 (gl_CLOSEOUT):
74988         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74989         * m4/dirname.m4 (gl_DIRNAME):
74990         * m4/exclude.m4 (gl_EXCLUDE):
74991         * m4/exitfail.m4 (gl_EXITFAIL):
74992         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74993         * m4/file-type.m4 (gl_FILE_TYPE):
74994         * m4/filemode.m4 (gl_FILEMODE):
74995         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74996         * m4/fpending.m4 (gl_FUNC_FPENDING):
74997         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74998         * m4/fts.m4 (gl_FUNC_FTS):
74999         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75000         * m4/getdate.m4 (gl_GETDATE):
75001         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75002         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75003         * m4/getpass.m4 (gl_FUNC_GETPASS):
75004         * m4/gettime.m4 (gl_GETTIME):
75005         * m4/getugroups.m4 (gl_GETUGROUPS):
75006         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75007         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75008         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75009         * m4/hash.m4 (gl_HASH):
75010         * m4/idcache.m4 (gl_IDCACHE):
75011         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75012         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75013         * m4/long-options.m4 (gl_LONG_OPTIONS):
75014         * m4/lstat.m4 (gl_FUNC_LSTAT):
75015         * m4/md5.m4 (gl_MD5):
75016         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75017         * m4/memcoll.m4 (gl_MEMCOLL):
75018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75020         * m4/memxor.m4 (gl_MEMXOR):
75021         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75022         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75023         * m4/modechange.m4 (gl_MODECHANGE):
75024         * m4/mountlist.m4 (gl_MOUNTLIST):
75025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75026         * m4/openat.m4 (gl_FUNC_OPENAT):
75027         * m4/pathmax.m4 (gl_PATHMAX):
75028         * m4/physmem.m4 (gl_PHYSMEM):
75029         * m4/posixtm.m4 (gl_POSIXTM):
75030         * m4/posixver.m4 (gl_POSIXVER):
75031         * m4/quote.m4 (gl_QUOTE):
75032         * m4/quotearg.m4 (gl_QUOTEARG):
75033         * m4/readtokens.m4 (gl_READTOKENS):
75034         * m4/readutmp.m4 (gl_READUTMP):
75035         * m4/regex.m4 (gl_REGEX):
75036         * m4/safe-read.m4 (gl_SAFE_READ):
75037         * m4/safe-write.m4 (gl_SAFE_WRITE):
75038         * m4/same.m4 (gl_SAME):
75039         * m4/save-cwd.m4 (gl_SAVE_CWD):
75040         * m4/savedir.m4 (gl_SAVEDIR):
75041         * m4/settime.m4 (gl_SETTIME):
75042         * m4/sha1.m4 (gl_SHA1):
75043         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75044         * m4/stat-macros.m4 (gl_STAT_MACROS):
75045         * m4/stat-time.m4 (gl_STAT_TIME):
75046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75047         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75048         * m4/strdup.m4 (gl_FUNC_STRDUP):
75049         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75050         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75051         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75052         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75053         * m4/time_r.m4 (gl_TIME_R):
75054         * m4/timespec.m4 (gl_TIMESPEC):
75055         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75056         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75057         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75058         * m4/userspec.m4 (gl_USERSPEC):
75059         * m4/utimecmp.m4 (gl_UTIMECMP):
75060         * m4/utimens.m4 (gl_UTIMENS):
75061         * m4/xalloc.m4 (gl_XALLOC):
75062         * m4/xgetcwd.m4 (gl_XGETCWD):
75063         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75064         * m4/xreadlink.m4 (gl_XREADLINK):
75065         * m4/xstrtod.m4 (gl_XSTRTOD):
75066         * m4/yesno.m4 (gl_YESNO):
75067         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75068         to get the necessary .h files and whatnot.
75069
75070 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75071             Bruno Haible  <bruno@clisp.org>
75072
75073         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75074         /bin/sh understanding of '!' conditional negation.
75075
75076 2006-08-21  Jim Meyering  <jim@meyering.net>
75077
75078         * modules/openat (Depends-on): Really alphabetize.
75079
75080         * modules/acl (Depends-on): Add error and quote.
75081
75082         * check-module (find_included_lib_files): Add at-func.c to the
75083         ok-to-include-more-than-once white list.
75084
75085         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75086
75087 2006-08-21  Bruno Haible  <bruno@clisp.org>
75088
75089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75090         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75091         Reported by Martin Lambers <marlam@marlam.de>.
75092
75093 2006-08-21  Bruno Haible  <bruno@clisp.org>
75094
75095         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75096         specify an installation location, don't emit a noinst_LIBRARIES or
75097         noinst_LTLIBRARIES assignment.
75098
75099 2006-08-21  Bruno Haible  <bruno@clisp.org>
75100
75101         BeOS portability.
75102         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75103         BeOS has mbrtowc() but no <wctype.h>.
75104
75105 2006-08-21  Bruno Haible  <bruno@clisp.org>
75106
75107         BeOS portability.
75108         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75109         exist.
75110
75111 2006-08-21  Bruno Haible  <bruno@clisp.org>
75112
75113         BeOS portability.
75114         * lib/mbchar.h: Include <wctype.h> only if it exists.
75115
75116 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75117
75118         Remove files that are no longer needed by their respective modules.
75119         * m4/obstack.m4: Remove.
75120         * m4/strerror_r.m4: Remove.
75121         * m4/uint32_t.m4: Remove.
75122         * m4/uintptr_t.m4: Remove.
75123         * m4/ullong_max.m4: Remove.
75124         * m4/xstrtoimax.m4: Remove.
75125         * m4/xstrtoumax.m4: Remove.
75126
75127         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75128         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75129         dependencies now capture this.
75130
75131         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75132         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75133         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75134         * m4/human.m4 (gl_HUMAN): Likewise.
75135         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75136         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75137
75138         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75139
75140         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75141         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75142         stdint.
75143         * m4/human.m4 (gl_HUMAN): Likewise.
75144         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75145         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75146         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75147         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75148         * m4/xstrtol (gl_XSTRTOL): Likewise.
75149
75150         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75151         AC_TYPE_LONG_LONG_INT.
75152         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75153         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75154         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75155         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75156
75157         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75158         on stdbool.
75159
75160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75161         (gl_PREREQ_XSTRTOUL): Remove.
75162
75163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75164
75165         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75166         mode.
75167
75168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         Add and change modules to make it easier for coreutils to use
75171         gnulib-tool.
75172         * modules/backupfile (Files): Remove m4/d-ino.m4.
75173         (Depends-on): Add d-ino.
75174         * modules/cycle-check (Depends-on): Add stdint.
75175         (lib_SOURCES): Add cycle-check.h.
75176         * modules/d-ino: New module.
75177         * modules/d-type: New module.
75178         * modules/error (Files): Remove m4/strerror_r.m4.
75179         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75180         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75181         m4/inttypes_h.m4, m4/uintmax_t.m4.
75182         (Depends-on): Add stdint.
75183         (lib_SOURCES): Add fsusage.h.
75184         * modules/getcwd (Files): Remove d-ino.m4.
75185         (Depends-on): Add d-ino.
75186         * modules/getndelim2 (Depends-on): Add stdint.
75187         * modules/glob (Files): Remove m4/d-type.m4.
75188         (Depends-on): Add d-type.
75189         * modules/host-os: New module.
75190         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75191         m4/inttypes_h.m4, m4/uintmax_t.m4.
75192         * Depends-on: Add stdint.
75193         (lib_SOURCES): Add human.h.
75194         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75195         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75196         m4/uintmax_t.m4, m4/ulonglong.m4.
75197         (Depends-on): Add stdint.
75198         (EXTRA_DIST): Add inttostr.h.
75199         * modules/lchmod: New module.
75200         * modules/link-follow: New module.
75201         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75202         (Depends-on): Add lchmod.
75203         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75204         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75205         (Depends-on): Add stdint.
75206         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75207         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75208         (Depends-on): Add stdint.
75209         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75210         * modules/perl: New module.
75211         * modules/regex (Depends-on): Add stdint.
75212         * modules/rmdir-errno: New module.
75213         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75214         m4/intmax_t.m4.
75215         (Depends-on): Add stdint.
75216         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75217         m4/uintmax_t.m4.
75218         (Depends-on): Add stdint.
75219         * modules/unlink-busy: New module.
75220         * modules/utimecmp (Depends-on): Add stdint.
75221         * modules/uptime: New module.
75222         * modules/winsz-ioctl: New module.
75223         * modules/winsz-termios: New module.
75224         * modules/xnanosleep (Depends-on): Add nanosleep.
75225         * modules/ullong_max: Remove.
75226         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75227         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75228         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75229         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75230         (Depends-on): Add inttypes.
75231         (lib_SOURCES): Add xstrtol.h.
75232         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75233         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75234         * MODULES.html.sh: Move 'assert' into the assert section.
75235         Move 'dummy' into the linking section.
75236         Remove ullong_max.
75237         Add section for compatibility checks for POSIX:2001 functions,
75238         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75239         winsz-ioctl, and winsz-termios into it.
75240         Add lchmod.
75241         Add top-level Misc section and put host-os, perl, and uptime
75242         into it.
75243
75244 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75247         now assume the stdint module.  Do not include inttypes.h.
75248         * lib/fsusage.h: Likewise.
75249         * lib/getndelim2.c: Likewise.
75250         * lib/human.h: Likewise.
75251         * lib/inttostr.h: Likewise.
75252         * lib/obstack.c: Likewise.
75253         * lib/regex_internal.h: Likewise.
75254         * lib/tempname.c: Likewise.
75255         * lib/utimecmp.c: Likewise.
75256         * lib/xstrtol.h: Likewise.
75257
75258         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75259
75260         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75261         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75262         * lib/xtime.h: Likewise.
75263
75264 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * modules/openat (Files): Add lib/fchmodat.c.
75267         Fixes problem reported by Jay Youngman.
75268
75269 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75272         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75273
75274 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75275             Bruno Haible  <bruno@clisp.org>
75276
75277         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75278         and is a script that invokes bison. Tighten the code. Add comments.
75279
75280 2006-08-18  Jim Meyering  <jim@meyering.net>
75281
75282         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75283         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75284         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75285         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75286
75287 2006-08-18  Bruno Haible  <bruno@clisp.org>
75288
75289         * modules/bison-i18n: New file.
75290         * MODULES.html.sh (Internationalization functions): Add it.
75291
75292 2006-08-18  Bruno Haible  <bruno@clisp.org>
75293
75294         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75295         sys/statvfs.h. When getmntinfo was found, check its declaration and
75296         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75297
75298 2006-08-18  Bruno Haible  <bruno@clisp.org>
75299
75300         * m4/bison-i18n.m4: New file, from bison.
75301
75302 2006-08-18  Bruno Haible  <bruno@clisp.org>
75303
75304         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75305         (ME_DUMMY): Treat "kernfs" as a dummy.
75306         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75307
75308 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         Update from coreutils.
75311
75312         2006-08-15  Jim Meyering  <jim@meyering.net>
75313
75314         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75315
75316         2006-01-17  Jim Meyering  <jim@meyering.net>
75317
75318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75319
75320         2006-01-11  Jim Meyering  <jim@meyering.net>
75321
75322         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75323         Check for the lchmod function.
75324
75325 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         Update from coreutils.
75328
75329         * lib/__fpending.h: Add copyright notice.
75330         * lib/fprintftime.h: Likewise.
75331         * lib/savedir.c: Use (C) in copyright notice.
75332         * lib/savedir.h: Likewise.
75333
75334         2006-08-15  Jim Meyering  <jim@meyering.net>
75335
75336         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75337         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75338         in support of the EXPECTED_ERRNO macro.
75339         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75340         definitions.  Instead, define the appropriate symbols and include
75341         "at-func.c".
75342         * lib/mkdirat.c (mkdirat): Likewise.
75343         * lib/fchmodat.c (fchmodat): Likewise.
75344         (ENOSYS): Remove definition.
75345         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75346         it.  Don't include "unistd--.h" -- it wasn't ever used.
75347
75348         2006-01-17  Jim Meyering  <jim@meyering.net>
75349
75350         Rewrite fts.c not to change the current working directory,
75351         by using openat, fstatat, fdopendir, etc..
75352
75353         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75354         (HAVE_OPENAT_SUPPORT): Define.
75355         [_LIBC] (fchdir): Don't undef or define; no longer used.
75356         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75357         Now, this `function' always succeeds, and consumes its file descriptor
75358         parameter -- so callers must not close such FDs.  Update callers.
75359         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75360         (diropen): Add parameter, SP.  Adjust all callers.
75361         Implement using diropen_fd, rather than open.
75362         (fts_open): Initialize new member, fts_cwd_fd.
75363         Remove fts_rft-setting code.
75364         (fts_close): Close fts_cwd_fd, if necessary.
75365         (__opendir2): Define in terms of opendir or opendirat,
75366         depending on whether the FST_NOCHDIR flag is set.
75367         (fts_build): Since fts_safe_changedir consumes its FD, and since
75368         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75369         and close the dup'd file descriptor upon failure.
75370         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75371         (fts_safe_changedir): Tweak semantics to reflect that this function
75372         now calls cwd_advance_fd and hence consumes its FD argument.
75373         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75374         [struct FTS] (fts_rft): Remove now-unused member.
75375         [struct FTS] (fts_cycle.state): Improve comment.
75376
75377         * lib/openat.c (openat_needs_fchdir): New function.
75378         * lib/openat.h (openat_needs_fchdir): Declare it.
75379
75380 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75383         Problem and fix reported by Pádraig Brady in
75384         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75385
75386 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75387
75388         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75389
75390 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75391
75392         * lib/memcoll.c (memcoll): Optimize for the common case where the
75393         arguments are bytewise equal.
75394
75395 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * doc/regexprops-generic.texi: Add a copyright notice.
75398
75399 2006-08-15  Bruno Haible  <bruno@clisp.org>
75400
75401         * modules/tmpdir (License): Change to LGPL.
75402
75403 2006-08-15  Bruno Haible  <bruno@clisp.org>
75404
75405         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75406         module.
75407
75408 2006-08-14  Simon Josefsson  <jas@extundo.com>
75409
75410         * config/srclist.txt: Add gnupload.
75411
75412 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         Change copyright notice from LGPL 2 to GPL 2, since that's the
75415         standard form used in the gnulib repository.
75416         * tests/test-lock.c: Likewise.
75417         * tests/test-stdint.c: Likewise.
75418         * tests/test-tls.c: Likewise.
75419
75420         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75421         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75422         Add copyright notice.
75423
75424         * check-module: Add copyright notice.  Output a copyright
75425         notice if "--version" is specified.
75426         * modules/COPYING: New file.
75427         * tests/test-getaddrinfo.c: Add copyright notice.
75428         * tests/test-verify.c: Likewise.
75429
75430 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         Change copyright notice from LGPL 2 to GPL 2, since that's the
75433         standard form used in the gnulib repository.
75434         * lib/lock.c: LGPL -> GPL.
75435         * lib/lock.h: Likewise.
75436         * lib/strnlen1.c: Likewise.
75437         * lib/strnlen1.h: Likewise.
75438         * lib/tls.c: Likewise.
75439         * lib/tls.h: Likewise.
75440         * lib/tmpdir.c: Likewise.
75441
75442         * lib/TODO: Remove; this belongs only in coreutils.
75443
75444 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75445
75446         Add copyright notices to long-enough files that lack them, since
75447         otherwise the files aren't clearly free.  Use the same notice that
75448         getdate.texi already uses.
75449         * doc/alloca-opt.texi: Add copyright notice.
75450         * doc/alloca.texi: Likewise.
75451         * doc/ctime.texi: Likewise.
75452         * doc/functions.texi: Likewise.
75453         * doc/gcd.texi: Likewise.
75454         * doc/gnulib-tool.texi: Likewise.
75455         * doc/inet_ntoa.texi: Likewise.
75456         * doc/visibility.texi: Likewise.
75457
75458         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75459         * doc/quote.texi: Add copyright notice.
75460
75461         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75462         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75463         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75464         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75465         is now obsolete, and give a pointer to the Sun list.
75466         Add copyright notice.
75467
75468 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         * config/srclistvars.sh: Add copyright notice.
75471
75472 2006-08-14  Eric Blake  <ebb9@byu.net>
75473
75474         Import the following change from libc:
75475
75476         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75477
75478         Upstream bug 2997.
75479         * lib/misc/error.c: Add space between program name and message if file
75480         name is missing.
75481
75482 2006-08-12  Karl Berry  <karl@gnu.org>
75483
75484         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75485         remove, these originate in gnulib now.
75486
75487 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75488
75489         * doc/Makefile (standards.info standards.html standards.dvi):
75490         Also depend on make-stds.texi.
75491
75492 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75495         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75496
75497         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75498         in wchar_t.  Problem reported by Eric Blake.
75499
75500         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75501         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75502         Also, help the compiler to keep LEN in a register.
75503
75504 2006-08-11  Eric Blake  <ebb9@byu.net>
75505
75506         * users.txt: Sort.  Add tar.
75507
75508 2006-08-11  Bruno Haible  <bruno@clisp.org>
75509
75510         * users.txt: New file.
75511
75512 2006-08-11  Bruno Haible  <bruno@clisp.org>
75513
75514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75515         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75516
75517 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * modules/snprintf (Depends-on): Remove minmax.
75520         (Maintainer): Add self and Bruno.
75521
75522 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75523
75524         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75525         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75526         (EOVERFLOW): Define if the system does not.
75527         Do not include "minmax.h"; it wasn't used.
75528         (snprintf): Don't assume size_t promotes to an unsigned type.
75529         Fix bug when generated string was too long for the buffer: the
75530         buffer's contents are supposed to be the initial prefix of the
75531         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75532         exceeds INT_MAX; do the check ourselves.
75533
75534         Import the following changes from libc:
75535
75536         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75537
75538         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75539         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75540         set wc to the byte which couldn't be converted.
75541         (re_string_reconstruct): Don't clear valid_raw_len before calling
75542         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75543         tip_context using re_string_context_at.
75544
75545         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75546
75547         * lib/posix/regex.h: g++ still cannot handled [restrict].
75548
75549         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75550
75551         * lib/posix/regex.h: Remove special handling for VMS.
75552
75553 2006-08-10  Jim Meyering  <jim@meyering.net>
75554
75555         * modules/same-inode: New module.
75556         * modules/dev-ino: New module.
75557         * modules/cycle-check: Depend on these modules, rather than simply
75558         including their .h files.
75559         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75560         required via m4/cycle-check.m4.
75561         * modules/same: Depend on new same-inode module, rather than
75562         including same-inode.h.
75563         * modules/chdir-safer: New file.
75564
75565         * modules/chown (Depends-on): Add stat-macros.
75566
75567 2006-08-10  Jim Meyering  <jim@meyering.net>
75568
75569         * m4/cycle-check.m4: New file.
75570         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75571         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75572
75573 2006-08-10  Eric Blake  <ebb9@byu.net>
75574
75575         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75576         in from original proposal.
75577
75578 2006-08-10  Eric Blake  <ebb9@byu.net>
75579         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75580
75581         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75582         namespace.
75583
75584 2006-08-10  Bruno Haible  <bruno@clisp.org>
75585
75586         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75587         as well.
75588
75589 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75590
75591         Sync from coreutils.
75592
75593         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75594
75595         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75596         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75597
75598 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * modules/restrict: Remove; no longer needed now that we assume
75601         Autoconf 2.59 or later.
75602         * MODULES.html.sh: Remove 'restrict'.
75603         * modules/argp (Depends-on): Remove 'restrict'.
75604         * modules/base64 (Depends-on): Likewise.
75605         * modules/gc (Depends-on): Likewise.
75606         * modules/getaddrinfo (Depends-on): Likewise.
75607         * modules/glob (Depends-on): Likewise.
75608         * modules/inet_ntop (Depends-on): Likewise.
75609         * modules/inet_pton (Depends-on): Likewise.
75610         * modules/memxor (Depends-on): Likewise.
75611         * modules/regex (Depends-on): Likewise.
75612         * modules/strtok_r (Depends-on): Likewise.
75613         * modules/time_r (Depends-on): Likewise.
75614
75615 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75618         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75619         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75620         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75621         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75622         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75623         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75624         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75625
75626         Merge from coreutils.
75627         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75628         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75629         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75630         * m4/time_r.m4 (gl_TIME_R): Likewise.
75631
75632 2006-08-09  Karl Berry  <karl@gnu.org>
75633
75634         * config/srclist.txt: no more gettext-tools, per Bruno.
75635
75636 2006-08-08  Eric Blake  <ebb9@byu.net>
75637
75638         * modules/verror: New module.
75639         * MODULES.html.sh: Document it.
75640
75641 2006-08-08  Eric Blake  <ebb9@byu.net>
75642
75643         * lib/verror.h, lib/verror.c: New files.
75644
75645 2006-08-08  Eric Blake  <ebb9@byu.net>
75646
75647         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75648         verror_at_line output complies with GNU Coding Standards even when
75649         file is NULL.
75650
75651 2006-08-07  Bruno Haible  <bruno@clisp.org>
75652
75653         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75654         versions of AIX.
75655         Reported by Ralf Wildenhues.
75656
75657 2006-08-07  Bruno Haible  <bruno@clisp.org>
75658
75659         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75660         in an AC_DEFUN. Needed so that the autoconf snippets can use
75661         AC_REQUIRE.
75662
75663 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75664
75665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75666         Initialize pkgdata_DATA.
75667         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75668         overriding it.
75669
75670 2006-08-06  Eric Blake  <ebb9@byu.net>
75671
75672         * lib/error.h: Fold in some upstream changes from glibc.
75673         * lib/error.c: Likewise.
75674
75675 2006-08-04  Bruno Haible  <bruno@clisp.org>
75676
75677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75678         Make the mostlyclean-local rule depend on mostlyclean-generic.
75679         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75680
75681 2006-07-31  Bruno Haible  <bruno@clisp.org>
75682
75683         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75684         <stdlib.h>, <string.h>.
75685
75686 2006-07-30  Bruno Haible  <bruno@clisp.org>
75687
75688         * modules/readlink (License): Change to LGPL.
75689
75690 2006-07-30  Bruno Haible  <bruno@clisp.org>
75691
75692         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75693         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75694         set PKGDATADIR to point to it.
75695
75696 2006-07-30  Bruno Haible  <bruno@clisp.org>
75697
75698         * modules/csharpexec (configure.ac): Comment out macro invocation.
75699         * modules/javaexec (configure.ac): Likewise.
75700         * modules/javacomp-script (configure.ac): Likewise.
75701
75702         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75703
75704 2006-07-30  Bruno Haible  <bruno@clisp.org>
75705
75706         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75707         linked-list.
75708
75709 2006-07-30  Bruno Haible  <bruno@clisp.org>
75710
75711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75712
75713 2006-07-30  Bruno Haible  <bruno@clisp.org>
75714
75715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75716         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75717         get removed.
75718
75719 2006-07-29  Bruno Haible  <bruno@clisp.org>
75720
75721         Make it possible for gnulib-tool to work with locally modified or
75722         augmented gnulib repositories.
75723         * gnulib-tool (func_usage): Document --local-dir option.
75724         (local_gnulib_dir): New variable.
75725         Handle --local-dir option.
75726         (func_lookup_file): New function.
75727         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75728         (func_get_description, func_get_filelist, func_get_description,
75729         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75730         func_get_automake_snippet, func_get_include_directive,
75731         func_get_license, func_get_maintainer): Use func_lookup_file.
75732         (func_import, func_create_testdir): Use func_lookup_file.
75733
75734 2006-07-29  Bruno Haible  <bruno@clisp.org>
75735
75736         * modules/setenv (Depends-on): Add unistd.
75737
75738 2006-07-29  Bruno Haible  <bruno@clisp.org>
75739
75740         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75741
75742 2006-07-29  Bruno Haible  <bruno@clisp.org>
75743
75744         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75745
75746 2006-07-29  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool (import, update): If there is no Makefile.am, look at
75749         aclocal.m4, instead of bailing out.
75750
75751 2006-07-29  Bruno Haible  <bruno@clisp.org>
75752
75753         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75754         Categorize the options by when they are useful.
75755
75756 2006-07-29  Bruno Haible  <bruno@clisp.org>
75757
75758         * gnulib-tool (func_usage): Document option --no-libtool.
75759         Handle option --no-libtool.
75760         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75761         for changed semantics of $libtool variable.
75762         (func_import): Likewise. If libtool is not used, show this through
75763         an option --no-libtool.
75764         (func_create_testdir): Update.
75765
75766 2006-07-29  Bruno Haible  <bruno@clisp.org>
75767
75768         * gnulib-tool (func_import): Extend error message about missing
75769         --doc-base.
75770
75771 2006-07-29  Bruno Haible  <bruno@clisp.org>
75772
75773         * gnulib-tool (func_import): Don't create the $docbase directory if
75774         there is no file to store there.
75775
75776 2006-07-29  Bruno Haible  <bruno@clisp.org>
75777
75778         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75779         relevant, look for configure.ac there, not in the current directory.
75780         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75781
75782 2006-07-29  Bruno Haible  <bruno@clisp.org>
75783
75784         * gnulib-tool (SORT): New variable.
75785         (func_usage): Undocument --assume-autoconf option.
75786         Remove --assume-autoconf option handling.
75787         (autoconf_minversion): Determine from the contents of configure.ac.
75788         (func_import): Remove autoconf_minversion handling.
75789         Suggested by Eric Blake.
75790
75791 2006-07-29  Bruno Haible  <bruno@clisp.org>
75792
75793         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75794
75795 2006-07-29  Bruno Haible  <bruno@clisp.org>
75796
75797         * config/srclist.txt (*setenv.[ch]): Remove rules.
75798
75799 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75800
75801         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75802
75803 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75804
75805         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75806         arpa/inet.h.
75807
75808 2006-07-28  Simon Josefsson  <jas@extundo.com>
75809
75810         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75811         * modules/inet_pton (Depends-on): Likewise.
75812
75813 2006-07-28  Simon Josefsson  <jas@extundo.com>
75814
75815         * m4/netinet_in_h.m4: New file.
75816
75817 2006-07-28  Simon Josefsson  <jas@extundo.com>
75818
75819         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75820         #include's.
75821
75822 2006-07-28  Simon Josefsson  <jas@extundo.com>
75823
75824         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75825         #include's.
75826
75827 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75830         setgid on directories only if they set these bits.
75831         * lib/modechange.h: Remove obsolete comment about masks.
75832
75833 2006-07-28  Eric Blake  <ebb9@byu.net>
75834
75835         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75836         macro expansion.
75837
75838 2006-07-28  Bruno Haible  <bruno@clisp.org>
75839
75840         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75841
75842 2006-07-28  Bruno Haible  <bruno@clisp.org>
75843
75844         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75845
75846 2006-07-28  Bruno Haible  <bruno@clisp.org>
75847
75848         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75849         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75850         Define fallbacks.
75851         Avoids link error on FreeBSD 4.x.
75852         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75853
75854         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75855         encoding.
75856         * lib/mbswidth.c (iswcntrl): Likewise.
75857
75858 2006-07-27  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75861         test.
75862
75863 2006-07-27  Bruno Haible  <bruno@clisp.org>
75864
75865         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75866         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75867         defined.
75868
75869 2006-07-26  Eric Blake  <ebb9@byu.net>
75870
75871         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75872
75873 2006-07-26  Eric Blake  <ebb9@byu.net>
75874
75875         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75876         like mingw that lack mkstemp.
75877         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75878         avoid compilation warning on mingw.
75879
75880 2006-07-26  Bruno Haible  <bruno@clisp.org>
75881
75882         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75883         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75884         INT_FAST*_MIN, INTPTR_MIN.
75885
75886 2006-07-25  Bruno Haible  <bruno@clisp.org>
75887
75888         * modules/version-etc (Depends-on): Add stdarg.
75889
75890 2006-07-25  Bruno Haible  <bruno@clisp.org>
75891
75892         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75893         complex commands.
75894
75895 2006-07-25  Bruno Haible  <bruno@clisp.org>
75896
75897         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75898         defined in <stdarg.h> or config.h.
75899
75900 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75903         (gl_STDIO_SAFER): Remove.
75904
75905 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * MODULES.html.sh (File stream based Input/Output):
75908         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75909         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75910         * modules/fopen-safer, modules/tmpfile-safer: New files.
75911         * modules/stdio-safer: Remove.
75912
75913 2006-07-24  Bruno Haible  <bruno@clisp.org>
75914
75915         * modules/tmpdir: New file.
75916         * MODULES.html.sh (File system functions): Add it.
75917
75918 2006-07-24  Bruno Haible  <bruno@clisp.org>
75919
75920         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75921         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75922
75923 2006-07-24  Bruno Haible  <bruno@clisp.org>
75924
75925         * modules/clean-temp: New file.
75926
75927 2006-07-24  Bruno Haible  <bruno@clisp.org>
75928
75929         * m4/tmpdir.m4: New file, from GNU gettext.
75930
75931 2006-07-24  Bruno Haible  <bruno@clisp.org>
75932
75933         * lib/tmpdir.h: New file, from GNU gettext.
75934         * lib/tmpdir.c: New file, from GNU gettext.
75935
75936 2006-07-24  Bruno Haible  <bruno@clisp.org>
75937
75938         * lib/clean-temp.h: New file, from GNU gettext.
75939         * lib/clean-temp.c: New file, from GNU gettext.
75940
75941 2006-07-23  Eric Blake  <ebb9@byu.net>
75942
75943         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75944         (Depends-on): Add binary-io.
75945
75946 2006-07-23  Eric Blake  <ebb9@byu.net>
75947
75948         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75949
75950 2006-07-23  Eric Blake  <ebb9@byu.net>
75951
75952         * lib/tmpfile-safer.c: New file.
75953         * lib/stdio-safer.h (fopen_safer): Add prototype.
75954         * lib/stdio--.h (tmpfile): Make safer.
75955
75956 2006-07-23  Bruno Haible  <bruno@clisp.org>
75957
75958         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75959         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75960         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75961         gl_linked_remove_at): Use it.
75962
75963 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75964         and Simon Josefsson <jas@extundo.com>
75965
75966         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75967
75968         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75969
75970 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75971
75972         * modules/close-stream: New file.
75973         * modules/closeout (Description): Make it clear that it exits
75974         with a diagnostic on error.
75975         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75976         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75977
75978 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * m4/close-stream.m4: New file.
75981
75982 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         * lib/close-stream.c, lib/close-stream.h: New files.
75985
75986 2006-07-22  Bruno Haible  <bruno@clisp.org>
75987
75988         Merge from GNU gettext 0.15.
75989
75990         2006-05-01  Bruno Haible  <bruno@clisp.org>
75991
75992                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75993
75994         2006-07-22  Bruno Haible  <bruno@clisp.org>
75995
75996                 * modules/javaversion: New file.
75997                 * MODULES.html.sh (Java): Add javaversion.
75998
75999         2006-03-12  Bruno Haible  <bruno@clisp.org>
76000
76001                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76002
76003         2005-12-04  Bruno Haible  <bruno@clisp.org>
76004
76005                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76006                 (untested).
76007
76008         2006-06-21  Bruno Haible  <bruno@clisp.org>
76009
76010                 Avoid warnings from recent versions of mcs.
76011                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76012                 -o, -L, -r any more. Use options documented since mcs-1.0
76013                 instead. Similarly for -g.
76014
76015         2005-12-04  Bruno Haible  <bruno@clisp.org>
76016
76017                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76018                 .resources, not .resource.
76019
76020         2005-07-09  Bruno Haible  <bruno@clisp.org>
76021
76022                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76023                 add a .dll suffix.
76024                 Reported by Mark Junker <mjscod@gmx.de>.
76025
76026         2006-07-22  Bruno Haible  <bruno@clisp.org>
76027
76028                 * modules/gettext: Upgrade to gettext-0.15.
76029                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76030                 m4/visibility.m4.
76031                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76032
76033 2006-07-22  Bruno Haible  <bruno@clisp.org>
76034
76035         Merge from GNU gettext 0.15.
76036
76037         2006-03-25  Bruno Haible  <bruno@clisp.org>
76038
76039                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76040
76041         2006-07-21  Bruno Haible  <bruno@clisp.org>
76042
76043                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76044                 "1.1".
76045
76046         2006-05-09  Bruno Haible  <bruno@clisp.org>
76047
76048                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76049                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76050                 for the conftestver execution.
76051
76052         2006-05-01  Bruno Haible  <bruno@clisp.org>
76053
76054                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76055                 optional target-version argument. Verify that the compiler
76056                 groks source of the specified source-version, or add -source
76057                 option as necessary. Verify that the compiler produces
76058                 bytecode in the specified target-version, or add -target and
76059                 -source options as necessary. Make the result of the test
76060                 available as variable CONF_JAVAC. Also log error output in
76061                 config.log.
76062
76063         2006-03-11  Bruno Haible  <bruno@clisp.org>
76064
76065                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76066
76067         2006-05-09  Bruno Haible  <bruno@clisp.org>
76068
76069                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76070                 CLASSPATH_SEPARATOR to a semicolon.
76071
76072         2006-03-12  Bruno Haible  <bruno@clisp.org>
76073
76074                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76075                 available as variable CONF_JAVA, for subsequent autoconf
76076                 tests. Also log error output in config.log.
76077
76078         2006-07-19  Bruno Haible  <bruno@clisp.org>
76079
76080                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76081                 that getline works on glibc2 systems. Needed to avoid trouble
76082                 in relocatable.c.
76083                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76084
76085         2005-12-04  Bruno Haible  <bruno@clisp.org>
76086
76087                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76088                 launcher (untested).
76089
76090         2005-12-04  Bruno Haible  <bruno@clisp.org>
76091
76092                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76093
76094         2006-07-22  Bruno Haible  <bruno@clisp.org>
76095
76096                 * gettext.m4: Update from GNU gettext-0.15.
76097                 * nls.m4: Likewise.
76098                 * po.m4: Likewise.
76099                 * inttypes-pri.m4: Likewise.
76100                 * inttypes-h.m4: Renamed from inttypes.m4.
76101                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76102
76103 2006-07-22  Bruno Haible  <bruno@clisp.org>
76104
76105         Merge from GNU gettext 0.15.
76106
76107         2005-07-05  Bruno Haible  <bruno@clisp.org>
76108
76109                 * printf-args.c (printf_fetchargs): Work around broken
76110                 definition of wint_t on mingw.
76111
76112         2005-02-12  Bruno Haible  <bruno@clisp.org>
76113
76114                 * xallocsa.h: Add extern "C" for C++.
76115
76116         2006-05-17  Bruno Haible  <bruno@clisp.org>
76117
76118                 Cygwin portability.
76119                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76120
76121         2006-04-30  Bruno Haible  <bruno@clisp.org>
76122
76123                 * progreloc.c: Include <mach-o/dyld.h> if available.
76124                 (find_executable): Use _NSGetExecutablePath when possible.
76125
76126         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76127
76128                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76129                 function.
76130
76131         2005-12-29  Bruno Haible  <bruno@clisp.org>
76132
76133                 * progreloc.c (set_program_name_and_installdir): Fix
76134                 compilation error.
76135
76136         2005-12-04  Bruno Haible  <bruno@clisp.org>
76137
76138                 Cygwin portability.
76139                 * progreloc.c: Include <windows.h> also on Cygwin.
76140                 (find_executable): Add support for Cygwin.
76141                 (set_program_name_and_installdir): Handle also platforms with
76142                 nonempty EXEEXT.
76143
76144         2006-07-11  Bruno Haible  <bruno@clisp.org>
76145
76146                 * javacomp.c: Fix a comment.
76147                 Reported by Jim Meyering.
76148
76149         2006-04-30  Bruno Haible  <bruno@clisp.org>
76150
76151                 * javacomp.h (compile_java_class): Add source_version,
76152                 target_version arguments.
76153                 * javacomp.c: Rewritten to choose only a compiler that
76154                 respects the specified source_version and target_version.
76155
76156         2006-06-27  Bruno Haible  <bruno@clisp.org>
76157
76158                 Assume correct S_ISDIR macro.
76159                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76160
76161         2006-07-22  Bruno Haible  <bruno@clisp.org>
76162
76163                 * javaversion.h: New file, from GNU gettext.
76164                 * javaversion.c: New file, from GNU gettext.
76165                 * javaversion.java: New file, from GNU gettext.
76166                 * javaversion.class: New file, from GNU gettext.
76167
76168         2006-05-17  Bruno Haible  <bruno@clisp.org>
76169
76170                 Cygwin portability.
76171                 * javaexec.c (execute_java_class): Test for jview program
76172                 also on Cygwin.
76173
76174         2006-04-09  Bruno Haible  <bruno@clisp.org>
76175
76176                 * fatal-signal.c: Don't include string.h.
76177                 (at_fatal_signal): Use a copying loop instead of memcpy.
76178
76179         2005-12-04  Bruno Haible  <bruno@clisp.org>
76180
76181                 * csharpexec.c: Add support for 'clix' launcher (untested).
76182                 (execute_csharp_using_sscli): New function.
76183                 (execute_csharp_program): Call it.
76184
76185         2006-06-21  Bruno Haible  <bruno@clisp.org>
76186
76187                 Avoid warnings from recent versions of mcs.
76188                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76189                 -o, -L, -r any more. Use options documented since mcs-1.0
76190                 instead. Similarly for -g.
76191
76192         2005-07-09  Bruno Haible  <bruno@clisp.org>
76193
76194                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76195                 add a .dll suffix.
76196                 Reported by Mark Junker <mjscod@gmx.de>.
76197
76198         2006-06-17  Bruno Haible  <bruno@clisp.org>
76199
76200                 * config.charset: Update for NetBSD 3.0.
76201
76202         2006-05-17  Bruno Haible  <bruno@clisp.org>
76203
76204                 Cygwin portability.
76205                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76206
76207         2006-05-16  Bruno Haible  <bruno@clisp.org>
76208
76209                 * localcharset.c [CYGWIN]: Include <windows.h>.
76210                 (get_charset_aliases): For Cygwin, return the same CPxxx
76211                 aliases list as under WIN32.
76212                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76213                 the environment variables. Fall back to GetACP().
76214
76215         2006-04-05  Bruno Haible  <bruno@clisp.org>
76216
76217                 * config.charset: Update Juan Manuel Guerrero's address.
76218
76219         2005-02-12  Bruno Haible  <bruno@clisp.org>
76220
76221                 * allocsa.h: Add extern "C" for C++.
76222
76223         2005-02-10  Bruno Haible  <bruno@clisp.org>
76224
76225                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76226                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76227
76228         2006-07-22  Bruno Haible  <bruno@clisp.org>
76229
76230                 * gettext.h: Update to GNU gettext-0.15.
76231
76232 2006-07-22  Bruno Haible  <bruno@clisp.org>
76233
76234         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76235         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76236         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76237
76238 2006-07-21  Eric Blake  <ebb9@byu.net>
76239
76240         * modules/stdlib-safer: New file.
76241         * MODULES.html.sh (File stream based Input/Output): Add
76242         stdlib-safer.
76243
76244 2006-07-21  Eric Blake  <ebb9@byu.net>
76245
76246         * lib/stdlib-safer.h: New file from coreutils, required by
76247         stdlib--.h.
76248
76249 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76252
76253 2006-07-20  Bruno Haible  <bruno@clisp.org>
76254
76255         * gnulib-tool: Recognize new option --assume-autoconf.
76256         (autoconf_minversion): New variable.
76257         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76258
76259 2006-07-20  Bruno Haible  <bruno@clisp.org>
76260
76261         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76262
76263 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76264
76265         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76266         Reindent and repaginate.
76267
76268 2006-07-19  Derek Price  <derek@ximbiot.com>
76269
76270         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76271         Correct grammar.
76272
76273 2006-07-17  Bruno Haible  <bruno@clisp.org>
76274
76275         * modules/list: New file.
76276         * modules/array-list: New file.
76277         * modules/carray-list, modules/carray-list-tests: New files.
76278         * modules/linked-list, modules/linked-list-tests: New files.
76279         * modules/avltree-list, modules/avltree-list-tests: New files.
76280         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76281         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76282         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76283         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76284         * modules/oset: New file.
76285         * modules/array-oset: New file.
76286         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76287         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76288         * tests/test-carray_list.c: New file.
76289         * tests/test-linked_list.c: New file.
76290         * tests/test-avltree_list.c: New file.
76291         * tests/test-rbtree_list.c: New file.
76292         * tests/test-linkedhash_list.c: New file.
76293         * tests/test-avltreehash_list.c: New file.
76294         * tests/test-rbtreehash_list.c: New file.
76295         * tests/test-avltree_oset.c: New file.
76296         * tests/test-rbtree_oset.c: New file.
76297         * MODULES.html.sh (Container data structures): New section.
76298
76299 2006-07-17  Bruno Haible  <bruno@clisp.org>
76300
76301         * m4/gl_list.m4: New file.
76302
76303 2006-07-17  Bruno Haible  <bruno@clisp.org>
76304
76305         * lib/gl_list.h: New file.
76306         * lib/gl_list.c: New file.
76307         * lib/gl_array_list.h: New file.
76308         * lib/gl_array_list.c: New file.
76309         * lib/gl_carray_list.h: New file.
76310         * lib/gl_carray_list.c: New file.
76311         * lib/gl_linked_list.h: New file.
76312         * lib/gl_linked_list.c: New file.
76313         * lib/gl_anylinked_list1.h: New file.
76314         * lib/gl_anylinked_list2.h: New file.
76315         * lib/gl_avltree_list.h: New file.
76316         * lib/gl_avltree_list.c: New file.
76317         * lib/gl_anyavltree_list1.h: New file.
76318         * lib/gl_anyavltree_list2.h: New file.
76319         * lib/gl_rbtree_list.h: New file.
76320         * lib/gl_rbtree_list.c: New file.
76321         * lib/gl_anyrbtree_list1.h: New file.
76322         * lib/gl_anyrbtree_list2.h: New file.
76323         * lib/gl_anytree_list1.h: New file.
76324         * lib/gl_anytree_list2.h: New file.
76325         * lib/gl_linkedhash_list.h: New file.
76326         * lib/gl_linkedhash_list.c: New file.
76327         * lib/gl_anyhash_list1.h: New file.
76328         * lib/gl_anyhash_list2.h: New file.
76329         * lib/gl_avltreehash_list.h: New file.
76330         * lib/gl_avltreehash_list.c: New file.
76331         * lib/gl_rbtreehash_list.h: New file.
76332         * lib/gl_rbtreehash_list.c: New file.
76333         * lib/gl_anytreehash_list1.h: New file.
76334         * lib/gl_anytreehash_list2.h: New file.
76335
76336         * lib/gl_oset.h: New file.
76337         * lib/gl_oset.c: New file.
76338         * lib/gl_array_oset.h: New file.
76339         * lib/gl_array_oset.c: New file.
76340         * lib/gl_avltree_oset.h: New file.
76341         * lib/gl_avltree_oset.c: New file.
76342         * lib/gl_rbtree_oset.h: New file.
76343         * lib/gl_rbtree_oset.c: New file.
76344         * lib/gl_anytree_oset.h: New file.
76345
76346 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76347
76348         * m4/mkancesdirs.m4: New file.
76349         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76350         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76351         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76352         it.
76353
76354 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76357         * lib/mkancesdirs.h: New files.
76358         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76359         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76360         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76361         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76362         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76363         callers changed.  Revamp internals significantly, by not
76364         attempting to create directories that are temporarily more
76365         permissive than the final results.  Do not attempt to use
76366         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76367         This removes some race conditions, fixes some bugs, and simplifies
76368         things.  Use new dirchownmod function to do owner and mode changes.
76369         * lib/mkdir-p.h: Likewise.
76370         * lib/modechange.c (octal_to_mode): New function.
76371         (struct mode_change): New member mentioned.
76372         (make_node_op_equals): New arg mentioned.  All callers changed.
76373         (mode_compile): Keep track of which mode bits the user has explicitly
76374         mentioned.
76375         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76376         New arg PMODE_BITS, to keep track of which mode bits the user
76377         mentioned; it treats S_ISUID and S_ISGID speciall.
76378         All callers changed.
76379         * lib/modechange.h: Likewise.
76380
76381 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * MODULES.html.sh: Add mkancestors.
76384         * modules/mkancesdirs: New module.
76385         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76386         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76387         The chdir-safer and afs files are now orphans; I'll remove them
76388         unless someone speaks up.
76389         Add lib/dirchownmod.c, lib/dirchownmod.h.
76390         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76391         Add lchown, mkancesdirs.
76392         (Maintainer): Add self.
76393
76394 2006-07-15  Karl Berry  <karl@gnu.org>
76395
76396         * gnulib-tool: help message wording/arrangement.
76397
76398 2006-07-14  Simon Josefsson  <jas@extundo.com>
76399
76400         * doc/gnulib.texi (Libtool and Windows): New section.
76401
76402 2006-07-12  Simon Josefsson  <jas@extundo.com>
76403
76404         * modules/gendocs (License): Fix license, approved by Karl.
76405
76406 2006-07-12  Eric Blake  <ebb9@byu.net>
76407
76408         * MODULES.html.sh: Add gendocs.
76409
76410 2006-07-11  Eric Blake  <ebb9@byu.net>
76411
76412         * modules/fdl: New module, to install doc/fdl.texi.
76413         * MODULES.html.sh: Add new section for documentation modules.
76414         * gnulib-tool: Avoid space-tab.
76415         (--doc-base): New option, to manage files from doc.
76416
76417 2006-07-11  Eric Blake  <ebb9@byu.net>
76418
76419         * m4/absolute-header.m4: Fix comments to match recent change.
76420
76421 2006-07-11  Eric Blake  <ebb9@byu.net>
76422
76423         * gnulib-tool: List --doc-base before --tests-base.
76424
76425 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76426
76427         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76428
76429 2006-07-11  Bruno Haible  <bruno@clisp.org>
76430
76431         * README: Mention where to put documentation.
76432
76433 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76434
76435         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76436
76437 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76440         to stdint.m4.
76441
76442 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76445         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76446         "no/such/file/stdint.h" when there is no such file, so that
76447         the resulting C code can be parsed by dodgy compilers.
76448         Problems reported by Bob Proulx.
76449
76450 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76451
76452         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76453         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76454         macros into the GNU _D_EXACT_NAMLEN.
76455         * lib/savedir.c:  Likewise.
76456         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76457
76458 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76459         and Paul Eggert  <eggert@cs.ucla.edu>
76460
76461         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76462         * m4/savedir.m4:
76463         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76464         macros into the GNU _D_EXACT_NAMLEN.
76465
76466 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76469         around the absolute name, to work around a problem with the HP-UX
76470         11.23 native C compiler, reported by Bob Proulx.
76471
76472 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * doc/maintain.texi, make-stds.texi: Sync from
76475         <http://savannah.gnu.org/projects/gnustandards>.
76476
76477 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76478
76479         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76480
76481 2006-07-09  Jim Meyering  <jim@meyering.net>
76482
76483         * m4/glob.m4: Remove a doubled word in a comment.
76484
76485 2006-07-09  Jim Meyering  <jim@meyering.net>
76486
76487         * lib/argp-pv.c: Remove a doubled word in a comment.
76488         * lib/check-version.c (check_version): Likewise.
76489         * lib/javacomp.c (compile_java_class): Likewise.
76490
76491 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76494         for the benefit of people using Autoconf 2.60.  If you want to
76495         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76496         (or m4/onceonly.m4, if pre-2.57) manually.
76497
76498 2006-07-08  Jim Meyering  <jim@meyering.net>
76499
76500         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76501         comment.
76502         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76503         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76504         comment.
76505
76506 2006-07-08  Jim Meyering  <jim@meyering.net>
76507
76508         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76509
76510 2006-07-07  Simon Josefsson  <jas@extundo.com>
76511
76512         * tests/test-crc.c: Change expected crc value, the test vector
76513         were probably computed using the old broken crc.c?
76514
76515 2006-07-06  Simon Josefsson  <jas@extundo.com>
76516
76517         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76518         now the canonical place for the M4 file).
76519
76520         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76521         from the sys_socket dependency now.
76522
76523         * modules/inet_pton (Files): Ditto.
76524
76525         * modules/inet_ntop (Files): Ditto.
76526
76527 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76528
76529         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76530         not gl_PREREQ_GETUSERSHELL.
76531
76532 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76533
76534         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76535         with only one argument, for Autoconf 2.60.
76536         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76537         expand to nothing, so add a shell command to avoid syntax error.
76538         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76539
76540 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76541
76542         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76543
76544 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76545
76546         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76547         no longer needed.  Check for isblank decl.
76548         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76549         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76550         of existence.
76551
76552 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * lib/getloadavg.c: Use __VMS, not VMS.
76555         * lib/getopt.c: Likewise.
76556         * lib/getpagesize.h: Likewise.
76557         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76558         and probably does not work.
76559
76560 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         * lib/.cppi-disable: Add wcwidth.
76563         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76564         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76565         (ISGRAPH): Remove.  All uses changed to isgraph.
76566         (FOLD) [!defined _LIBC]: Remove special case.
76567         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76568         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76569         HAVE_ISBLANK.
76570         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76571         case.
76572
76573 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76574
76575         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76576         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76577         brackets.  Other minor changes to suppress some compiler
76578         warnings.
76579
76580 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76581         and Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76584         of invoking obsolescent AC_HEADER_DIRENT macro.
76585         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76586         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76589         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76590         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76591         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76592         * m4/readdir.m4: Remove; no longer needed.
76593
76594 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76595         and Paul Eggert  <eggert@cs.ucla.edu>
76596
76597         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76598         Don't worry about this obsolete case any more.
76599         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76600         directories.
76601         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76602         worry about this obsolete case any more.
76603         * lib/fts.c: Likewise.
76604         * lib/getcwd.c: Likewise.
76605         * lib/glob.h: Likewise.
76606         * lib/savedir.c: Likewise.
76607
76608 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76611         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76612         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76613         needed.
76614         All uses removed.
76615         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76616         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76617         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76618         needed.
76619         * m4/getdate.m4 (gl_GETDATE): Likewise.
76620         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76621         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76622         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76623         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76624         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76626         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76627         needed.
76628
76629 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * lib/memcasecmp.c: Include <limits.h>.
76632         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76633         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76634         Don't assume isdigit succeeds only on '0' through '9'.
76635
76636 2006-07-05  Eric Blake  <ebb9@byu.net>
76637
76638         * modules/getaddrinfo (Depends-on): Add snprintf.
76639
76640 2006-07-05  Eric Blake  <ebb9@byu.net>
76641
76642         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76643         to avoid 'header present but could not be compiled' on cygwin.
76644
76645 2006-07-05  Eric Blake  <ebb9@byu.net>
76646
76647         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76648         missing from netdb.h.
76649         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76650
76651 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76652
76653         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76654         no longer needed.
76655         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76656         * m4/getdate.m4 (gl_GETDATE): Likewise.
76657         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76658         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76659         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76660         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76662
76663 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76664
76665         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76666         All uses of is_space replaced by isspace.
76667         * lib/exit.h: Don't talk about STDC_HEADERS.
76668         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76669         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76670         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76671         replaced by isprint etc.
76672         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76673         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76674         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76675         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76676         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76677         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76678
76679 2006-07-05  Bruno Haible  <bruno@clisp.org>
76680
76681         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76682         the function exists, before testing against AIX.
76683         Reported by Martin Lambers <marlam@marlam.de>.
76684
76685 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76688         From Mark D. Baushke.
76689
76690 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76693         to the absolute name, not just one, to bypass Sun C 5.8's
76694         "warning: #include of /usr/include/... may be non-portable".
76695
76696 2006-07-04  Eric Blake  <ebb9@byu.net>
76697
76698         * modules/dirname-tests: New test module.
76699         * tests/test-dirname.c: New file, replacing dirname.c
76700         TEST_DIRNAME section that was recently deleted.
76701
76702 2006-07-04  Bruno Haible  <bruno@clisp.org>
76703
76704         Assume ANSI C header files and <ctype.h> functions.
76705         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76706         (mbsnwidth): Use isprint, iscntrl instead.
76707
76708 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         Merge from coreutils.
76711         * MODULES.html.sh: Add xstrtold.
76712         * modules/xstrtold: New file.
76713         * modules/cycle-check (Files): Add lib/same-inode.h.
76714         * modules/dirname (Files): Add m4/double-slash-root.m4.
76715         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76716         * modules/mkdir-p (Files): Add lib/same-inode.h.
76717         * modules/same (Files): Add lib/same-inode.h.
76718
76719 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76722         This is to keep the terminology clean; POSIX talks about
76723         "absolute pathnames", not "full pathnames", but the GNU
76724         Coding Standards say to use "path" for something else;
76725         so use "absolute" to keep both sides happy.
76726         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76727         Set gl_absolute_header, not gl_full_header_path.
76728         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76729         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76730         All uses changed.
76731
76732         Merge from coreutils.
76733
76734         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76737         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76738         want to require the building of c-strtod.o.
76739         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76740         needs -lm directly.
76741         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76742
76743         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76746         --as-needed option if available.  Problem reported by Albert Chin in
76747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76748         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76749         cc merely issues a bunch of annoying warnings for --as-needed
76750         (this problem was reported by Bob Proulx).  Also, try linking with
76751         -lm to detect a bug in binutils 2.16 (this problem was reported
76752         by Ralf Wildenhues).
76753
76754         2006-06-18  Jim Meyering  <jim@meyering.net>
76755
76756         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76757         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76758         macro.
76759         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76760         also check for glibc-2.4's abort-inducing bug.
76761
76762         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76763         Low-probability clean-up should be to use rmdir to get rid of
76764         the just-created directory, not unlink.
76765
76766         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76767         configure fail, and request a bug report to inform us about it.
76768         Add a comment that, barring reports to the contrary, in 2007 we'll
76769         assume ftruncate is universally available.
76770
76771         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76774
76775         2006-03-12  Jim Meyering  <jim@meyering.net>
76776
76777         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76778         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76779         * m4/same.m4 (gl_SAME): Likewise.
76780         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76781
76782         2006-03-11  Eric Blake  <ebb9@byu.net>
76783
76784         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76785         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76786         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76787         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76788
76789 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76792         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76793         reported by Mark D. Baushke, one in
76794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76795
76796         Merge from coreutils.
76797
76798         * lib/.cppi-disable: Add stdint_.h.
76799         * lib/.cvsignore: Add stdint.h.
76800
76801         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76804         both double and long double versions.
76805         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76806         * lib/xstrtold.c: New file.
76807         * lib/xstrtod.h (xstrtold): New decl.
76808
76809         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76810
76811         * lib/filemode.c (setst): Remove.
76812         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76813         (arguably) clearer, and the generated code is a bit smaller on my
76814         Debian GNU/Linux stable x86 host.
76815
76816         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76819         Assume that filemode.h includes sys/types.h and sys/stat.h.
76820         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76821         (ftypelet): Reorder to put common cases first, for efficiency.
76822         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76823         to do 'M'.
76824         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76825         of 10, for compatibility with FreeBSD.  All callers changed.
76826         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76827         types that can't be deduced solely from st_mode.  First arg is now a
76828         const pointer.
76829         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76830         (strmode): Renamed from mode_string.
76831         (filemodestring): New decl.
76832         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76833         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76834         needed.
76835         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76836
76837         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76838
76839         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76840         fsusage.h now does that.  Include fsusage.h first, to test interface.
76841         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76842         at most one method (the old code could have generated decls that
76843         didn't conform to C89, not that this was ever exercised).
76844         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76845
76846         2006-03-19  Jim Meyering  <jim@meyering.net>
76847
76848         Work even in a chroot where d_ino values for entries in "/"
76849         don't match the stat.st_ino values for the same names.
76850         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76851         number, iterate through all entries again, using lstat instead.
76852         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76853         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76854
76855         * lib/getcwd.c (__getcwd): Clarify a comment.
76856         Use memcpy in place of a call to strcpy.
76857
76858         2006-03-12  Jim Meyering  <jim@meyering.net>
76859
76860         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76861         matches that of the current directory (which we're about to chdir ".."
76862         out of), then save the dev-ino of the parent, instead.
76863
76864         * lib/same-inode.h (SAME_INODE): New file/macro.
76865         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76866         Include "same-inode.h", instead.
76867         * lib/same.c: Likewise.
76868         * lib/cycle-check.h: Include "same-inode.h".
76869         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76870         * lib/cycle-check.c (SAME_INODE): Remove definition.
76871         * lib/root-dev-ino.h: Include "same-inode.h".
76872
76873         2006-03-11  Eric Blake  <ebb9@byu.net>
76874
76875         * lib/same.c (same_name): s/base_name/last_component/
76876         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76877         * lib/filenamecat.c (file_name_concat): Likewise.
76878
76879         2006-03-11  Eric Blake  <ebb9@byu.net>,
76880                     Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76883         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76884         drive prefix.
76885         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76886         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76887         (last_component): New method.
76888         * lib/dirname.c (dir_len): Determine when drive letters need a
76889         subsequent slash.  Preserve // when it is special.
76890         (dir_name): Don't append dot when drive letter is absolute.
76891         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76892         * lib/basename.c (base_name): New semantics - malloc the result.
76893         Preserve // when it is special.  Preserve relative files that look
76894         like drive letters.
76895         (base_len): Preserve // when it is special.
76896         (last_component): New method, similar to old base_name semantics.
76897         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76898         base_name.  Strip redundant slashes from ///.
76899
76900 2006-07-03  Jim Meyering  <jim@meyering.net>
76901
76902         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76903         macro is used before the first cycle_check call.
76904
76905 2006-07-03  Eric Blake  <ebb9@byu.net>
76906
76907         * modules/dirname (Depends-on): Add xstrndup.
76908
76909 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76912         test cases, so that config.log is a bit easier to follow.
76913
76914 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76917         both are 64 bits, since this seems to be the tradition, and this
76918         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76919         we ever run into a host that prefers long long to long in this
76920         case, we'll need another configure-time test.  Problem reported by
76921         Jim Meyering.
76922
76923 2006-07-02  Eric Blake  <ebb9@byu.net>
76924
76925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76926
76927 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * modules/inttypes (Depends-on): No longer depends on stdint.
76930         * modules/stdint (Description): Say more about assumptions.
76931         Say that the fast types might differ.  Say macros are used.
76932         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76933         (Makefile.am): Revise list of substituted symbols to match
76934         new stdint.m4.
76935         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76936         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76937         * tests/test-stdint.c (verify_same_types)
76938         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76939         the code conforms to C99/C89.
76940         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76941         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76942
76943 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76946         but fix a bug, by requiring at least 64 bits.
76947         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76948         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76949         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76950         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76951
76952         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76953         changes.  Make 2.59 a prerequisite.  Check and substitute for
76954         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76955         inttypes.h.  Do not use special include files; just use the
76956         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76957         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76958         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76959         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76960         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76961         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76962         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76963         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76964         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76965         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76966         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76967         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76968         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76969         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76970         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76971         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76972         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76973         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76974         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76975         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76976         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76977         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76978         not check for things that C99 does not require, e.g., int8_t.  If
76979         a test isn't needed unless <stdint.h> isn't working, and is
76980         unlikely to be needed for any other reason, then don't do it
76981         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76982         size_t, since we assume C89 freestanding at least.  Do not check
76983         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76984         the right thing even if the types are not defined.  Instead use:
76985         (gl_STDINT_TYPE_PROPERTIES): New macro.
76986         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76987         testing whether <sys/types.h> clashes, as Autoconf does this for
76988         us now.  All uses removed.
76989         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76990         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76991         (gl_CHECK_TYPE_SAME):
76992         Remove; no longer needed.
76993         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76994         exists, since we'll return 0 anyway in that case.
76995         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76996
76997 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77000         possible collision with system files.
77001         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77002         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77003         WCHAR_MIN and WCHAR_MAX in this case.
77004         (<stddef.h>): Do not include; no longer needed.
77005         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77006         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77007         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77008         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77009         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77010         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77011         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77012         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77013         !defined(__c99))]: Include in this case too, since it's harmless
77014         now.
77015         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77016         dangerous to do so.
77017         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77018         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77019         (_STDINT_MIN, _STDINT_MAX): New macros.
77020         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77021         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77022         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77023         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77024         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77025         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77026         macros, not typedefs; this simplifies things quite a bit.
77027         Use long int for all types narrower than int64_t.
77028         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77029         Define in terms of long long int or int64_t or long int,
77030         not int64_t or int32_t.  This saves some compile-time testing.
77031         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77032         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77033         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77034         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77035         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77036         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77037         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77038         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77039         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77040         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77041         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77042         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77043         undef any previous version and define our own version, for
77044         simplicity and consistency with the new macros for types.
77045         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77046         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77047         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77048         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77049         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77050         @WINT_T_SUFFIX@ to keep things simple here.
77051         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77052         Simplify by assuming typical 8/16/32/64 host, since we're
77053         already doing that elsewhere anyway.
77054         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77055         and assume long long int is 64 bits if available.  This
77056         speeds up 'configure'.
77057
77058 2006-07-01  Eric Blake  <ebb9@byu.net>
77059
77060         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77061         Reported by Andreas Buening.
77062
77063 2006-07-01  Eric Blake  <ebb9@byu.net>
77064
77065         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77066
77067 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77068
77069         * lib/getaddrinfo.c: fixed typo
77070
77071 2006-06-29  Jim Meyering  <jim@meyering.net>
77072
77073         * modules/strftime (Maintainer): Add my name, since with the
77074         FPRINTFTIME changes strftime.c has forked from glibc.
77075
77076 2006-06-29  Eric Blake  <ebb9@byu.net>
77077
77078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77079
77080 2006-06-29  Eric Blake  <ebb9@byu.net>
77081
77082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77083
77084 2006-06-29  Eric Blake  <ebb9@byu.net>
77085
77086         * lib/stat_.h: New file.
77087
77088 2006-06-29  Eric Blake  <ebb9@byu.net>
77089
77090         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77091         unused static function.
77092
77093 2006-06-29  Eric Blake  <ebb9@byu.net>
77094
77095         * doc/functions.texi (Function Portability): Document missing lstat
77096         on mingw.
77097
77098 2006-06-29  Eric Blake  <ebb9@byu.net>
77099
77100         * MODULES.html.sh: Add sys_stat.
77101         * modules/sys_stat: New module.
77102         * modules/mkstemp (Depends-on): Add sys_stat.
77103
77104 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77105
77106         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77107
77108 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77109
77110         * m4/c-bs-a.m4: Removed.
77111
77112 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77113
77114         * lib/strftime.c: Assume strftime() exists.
77115
77116 2006-06-29  Derek Price  <derek@ximbiot.com>
77117
77118         * modules/c-bs-a: Removed - \a is C89.
77119         * MODULES.html.sh: Remove c-bs-a.
77120
77121 2006-06-29  Bruno Haible  <bruno@clisp.org>
77122
77123         * modules/wcwidth (License): Change to LGPL.
77124
77125 2006-06-28  Simon Josefsson  <jas@extundo.com>
77126
77127         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77128         on _WIN32.
77129
77130         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77131         getnameinfo.
77132
77133 2006-06-28  Simon Josefsson  <jas@extundo.com>
77134
77135         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77136
77137 2006-06-28  Simon Josefsson  <jas@extundo.com>
77138
77139         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77140         functions there.  It will succeed on Windows XP, but on Windows
77141         2000 and (presumably) earlier, it will fail, and use the internal
77142         re-implementation.
77143         (use_win32_p): New function.
77144         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77145         Support AI_NUMERICSERV to disable getservbyname.
77146         (getnameinfo): New function, only supports
77147         NI_NUMERICHOST|NI_NUMERICSERV for now.
77148
77149         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77150         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77151         getnameinfo.
77152
77153 2006-06-28  Eric Blake  <ebb9@byu.net>
77154
77155         * modules/wcwidth: New file.
77156         * modules/mbchar (Depends-on): Add wcwidth.
77157         * modules/mbswidth (Depends-on): Add wcwidth.
77158         * MODULES.html.sh: Add wcwidth.
77159
77160 2006-06-28  Eric Blake  <ebb9@byu.net>
77161
77162         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77164
77165 2006-06-28  Eric Blake  <ebb9@byu.net>
77166
77167         * lib/xvasprintf.h: Fix comments.
77168
77169 2006-06-28  Eric Blake  <ebb9@byu.net>
77170
77171         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77172         * lib/mbswidth.c (wcwidth): Move from here...
77173         * lib/wcwidth.h: ...to this new file.
77174
77175 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77176
77177         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77178
77179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77180         it's obsolete.
77181         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77182
77183 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77184
77185         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77186         Autoconf 2.60 says this stuff was obsolete.
77187
77188 2006-06-28  Bruno Haible  <bruno@clisp.org>
77189
77190         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77191
77192 2006-06-28  Bruno Haible  <bruno@clisp.org>
77193
77194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77195         gt_TYPE_WCHAR_T.
77196
77197 2006-06-28  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77200         declaration for wcwidth.
77201         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77202
77203 2006-06-28  Bruno Haible  <bruno@clisp.org>
77204
77205         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77206         (mkdir): Define using _mkdir.
77207
77208 2006-06-28  Bruno Haible  <bruno@clisp.org>
77209
77210         * lib/getaddrinfo.h: Fix POSIX URL.
77211         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77212         _WIN32.
77213         (use_win32_p): Make static.
77214         (getaddrinfo): Reject service name if it is empty or does not consist
77215         solely of decimal digits, or if its value is > 65535.
77216         (getnameinfo): Remove useless casts.
77217
77218 2006-06-27  Simon Josefsson  <jas@extundo.com>
77219
77220         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77221         Eggert and Martin Lambers.
77222
77223 2006-06-27  Simon Josefsson  <jas@extundo.com>
77224
77225         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77226         Eggert and Martin Lambers.
77227
77228 2006-06-27  Bruno Haible  <bruno@clisp.org>
77229
77230         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77231         result to 0, not to empty.
77232         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77233
77234 2006-06-27  Bruno Haible  <bruno@clisp.org>
77235
77236         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77237
77238 2006-06-26  Simon Josefsson  <jas@extundo.com>
77239
77240         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77241         present.
77242
77243 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77246         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77248
77249 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77250
77251         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77252
77253 2006-06-26  Bruno Haible  <bruno@clisp.org>
77254
77255         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77256
77257 2006-06-26  Bruno Haible  <bruno@clisp.org>
77258
77259         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77260
77261 2006-06-26  Bruno Haible  <bruno@clisp.org>
77262
77263         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77264         SGI C compiler in pre-C99 mode.
77265         Suggested by Mark D. Baushke and Larry Jones.
77266
77267 2006-06-26  Bruno Haible  <bruno@clisp.org>
77268
77269         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77270         WCHAR_MAX.
77271         Reported by Mark D. Baushke and Larry Jones.
77272
77273 2006-06-26  Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77276         in pre-C99 mode.
77277         Suggested by Mark D. Baushke and Larry Jones.
77278
77279 2006-06-23  Simon Josefsson  <jas@extundo.com>
77280             Bruno Haible  <bruno@clisp.org>
77281
77282         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77283         Emit mostlyclean-local rule.
77284         (func_emit_tests_Makefile_am): Likewise.
77285         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77286
77287 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77288
77289         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77290
77291 2006-06-23  Bruno Haible  <bruno@clisp.org>
77292
77293         * tests/test-stdint.c: Update to match ISO C 99 Technical
77294         Corrigendum 1.
77295
77296 2006-06-23  Bruno Haible  <bruno@clisp.org>
77297
77298         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77299
77300 2006-06-23  Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/stdint_.h: Treat IRIX like OpenBSD.
77303
77304 2006-06-23  Bruno Haible  <bruno@clisp.org>
77305
77306         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77307         ISO C 99 Technical Corrigendum 1.
77308
77309 2006-06-22  Simon Josefsson  <jas@extundo.com>
77310
77311         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77312         MinGW.
77313
77314 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77317         needed.  Some compiler complained about some of them.  Problem reported
77318         by Larry Jones in
77319         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77320
77321 2006-06-21  Simon Josefsson  <jas@extundo.com>
77322
77323         * tests/test-getaddrinfo.c: New file.
77324
77325         * modules/getaddrinfo-tests: New file.
77326
77327         * MODULES.html.sh: Add inet_pton.
77328
77329         * modules/inet_pton: New file.
77330
77331 2006-06-21  Simon Josefsson  <jas@extundo.com>
77332
77333         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77334         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77335         of using the (limited) gnulib implementation on Windows XP.
77336
77337         * m4/inet_pton.m4: New file.
77338
77339 2006-06-21  Simon Josefsson  <jas@extundo.com>
77340
77341         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77342         variable.
77343
77344         * lib/socket_.h: Don't define WINVER.
77345
77346         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77347         slightly modified to work in gnulib.
77348
77349 2006-06-21  Simon Josefsson  <jas@extundo.com>
77350
77351         * doc/gnulib.texi (Windows sockets): Add.
77352
77353 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         * lib/read-file.c (fread_file): Start with buffer allocation of
77356         0 bytes rather than 1 byte; this simplifies the code.
77357         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77358         code to free buffer and save/restore errno.
77359         (internal_read_file): Remove unused local.
77360
77361 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77362
77363         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77364         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77365         Problem reported by Denis Excoffier in
77366         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77367
77368 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77369
77370         * modules/sys_socket, modules/socklen: Include sys/types since
77371         FreeBSD 4.x's sys/socket.h needs it.
77372
77373 2006-06-19  Simon Josefsson  <jas@extundo.com>
77374
77375         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77376
77377 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77380
77381 2006-06-19  Bruno Haible  <bruno@clisp.org>
77382
77383         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77384         and FULL_PATH_INTTYPES_H in angle brackets.
77385         Reported by Mark D. Baushke <mdb@gnu.org>.
77386
77387 2006-06-17  Eric Blake  <ebb9@byu.net>
77388
77389         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77390         errno.
77391
77392 2006-06-17  Bruno Haible  <bruno@clisp.org>
77393
77394         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77395         <sys/inttypes.h>.
77396
77397 2006-06-17  Bruno Haible  <bruno@clisp.org>
77398
77399         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77400         whether errno is declared. Assume <errno.h> declares errno.
77401
77402 2006-06-17  Bruno Haible  <bruno@clisp.org>
77403
77404         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77405
77406 2006-06-17  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77409         problem on Solaris 2.5.1.
77410
77411 2006-06-16  Eric Blake  <ebb9@byu.net>
77412
77413         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77414         * lib/unicodeio.c [!defined errno]: Likewise.
77415         * lib/strtol.c [!defined errno]: Likewise.
77416         * lib/strtod.c [!defined errno]: Likewise.
77417
77418 2006-06-15  Eric Blake  <ebb9@byu.net>
77419
77420         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77421
77422 2006-06-15  Eric Blake  <ebb9@byu.net>
77423
77424         * config/srclist.txt (ssize_t.m4): Lose sync.
77425
77426 2006-06-15  Bruno Haible  <bruno@clisp.org>
77427
77428         * modules/stdint (Files): Include m4/full-header-path.m4,
77429         m4/size_max.m4, m4/wchar_t.m4.
77430         (Makefile.am): Many more substitutions.
77431         * modules/stdint-tests: New file.
77432         * tests/test-stdint.c: New file.
77433
77434 2006-06-15  Bruno Haible  <bruno@clisp.org>
77435
77436         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77437         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77438         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77439         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77440         gl_CHECK_TYPE_SAME): New macros.
77441
77442 2006-06-15  Bruno Haible  <bruno@clisp.org>
77443
77444         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77445
77446 2006-06-15  Bruno Haible  <bruno@clisp.org>
77447
77448         * lib/stdint_.h: Rewritten to be fully auto-configured.
77449         Fixes bug on HP-UX/IA64.
77450
77451 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77452
77453         * lib/getdate.y (__attribute__): Don't define if already defined.
77454         Problem reported by Larry Jones.
77455         * lib/utimens.c (__attribute__): Likewise.
77456
77457 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77460         reported by Andreas Schwab.
77461
77462 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77463             Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77466         check for the declaration of strnlen and a run test that exposes the
77467         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77468         rpl_strndup.
77469
77470 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77471             Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77474
77475 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77476
77477         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77478         compile test, for Tru64 4.0D.
77479
77480 2006-05-28  Karl Berry  <karl@gnu.org>
77481
77482         * config/srclist.txt (printf-args.c): lose sync.
77483
77484 2006-05-26  Martin Lambers  <marlam@marlam.de>
77485
77486         * lib/getpass.c: Updates the test for the native W32 API, and adds
77487         missing includes, thus fixing compilation warnings.
77488
77489 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77490
77491         * lib/exclude.c (exclude_fnmatch): New function.
77492         (excluded_file_name): Call exclude_fnmatch.
77493         * lib/exclude.h (excluded_file_name): New prototype
77494
77495 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * lib/tempname.c (small_open, large_open): New macros.
77498         (__open, __open64) [!_LIBC]: Remove.
77499         (__gen_tempname): Use small_open and large_open instead of __open
77500         and __open64.  This fixes a portability bug on HP-UX 11.11i
77501         reported by Simon Wing-Tang in
77502         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77503
77504 2006-05-24  Bruno Haible  <bruno@clisp.org>
77505
77506         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77507         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77508         Reported by Thorsten Maerz <torte@netztorte.de> via
77509         Aaron Stone <aaron@serendipity.cx>.
77510
77511 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77514         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77515         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77516         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77517         not really conditional on the cache.
77518         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77519
77520 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77523         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77524         (my_usleep): Don't mishandle maximum value.
77525
77526 2006-05-19  Jim Meyering  <jim@meyering.net>
77527
77528         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77529
77530 2006-05-17  Bruno Haible  <bruno@clisp.org>
77531
77532         Cygwin portability.
77533         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77534
77535 2006-05-17  Bruno Haible  <bruno@clisp.org>
77536
77537         * lib/stdint_.h: Fix recognition of Cygwin.
77538
77539 2006-05-15  Bruno Haible  <bruno@clisp.org>
77540
77541         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77542         on libtool patch by Ralf Wildenhues.
77543
77544 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77547         test for C99 conformance; (bool) 0.5 is an integer constant
77548         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77549         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77550
77551 2006-05-11  Simon Josefsson  <jas@extundo.com>
77552
77553         * m4/xvasprintf.m4: Fix obvious typo.
77554
77555 2006-05-11  Jim Meyering  <jim@meyering.net>
77556
77557         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77558         James Lemley.
77559
77560 2006-05-10  Simon Josefsson  <jas@extundo.com>
77561
77562         * lib/md4.c: Typo fix, update copyright years.
77563         (K1, K2): Don't use L because it turn computations into 64-bit on
77564         64-bit platforms.
77565
77566 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77569         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77570         unwanted sign propagation, e.g., on hosts with 64-bit int.
77571         There still are some problems with reeelly weird theoretical hosts
77572         (e.g., 33-bit int) but it's not worth worrying about now.
77573         * lib/sha1.c (rol): Likewise.
77574         (K1, K2, K3, K4): Remove unnecessary L suffix.
77575
77576 2006-05-10  Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/des.c: Cast to avoid warnings.
77579
77580 2006-05-09  Bruno Haible  <bruno@clisp.org>
77581
77582         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77583         (Depends-on): Depend also on xsize, stdarg.
77584         (configure.ac): Add gl_XVASPRINTF.
77585
77586 2006-05-09  Bruno Haible  <bruno@clisp.org>
77587
77588         * m4/xvasprintf.m4: New file.
77589
77590 2006-05-09  Bruno Haible  <bruno@clisp.org>
77591
77592         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77593         (EOVERFLOW): Define fallback value.
77594         (xstrcat): New function.
77595         (xvasprintf): Recognize the special case of a string concatenation.
77596
77597 2006-05-08  Eric Blake  <ebb9@byu.net>
77598
77599         * gnulib-tool (func_version): Base copyright year on CVS date.
77600         (func_emit_copyright_notice): New function.
77601         (func_emit_lib_Makefile_am): Use it.
77602         (func_emit_tests_Makefile_am): Likewise.
77603         (func_import): Likewise.
77604
77605 2006-05-08  Bruno Haible  <bruno@clisp.org>
77606
77607         * modules/stdarg: New file.
77608         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77609
77610 2006-05-08  Bruno Haible  <bruno@clisp.org>
77611
77612         * m4/stdarg.m4: New file, from GNU gettext.
77613
77614 2006-05-08  Bruno Haible  <bruno@clisp.org>
77615
77616         * config/srclist.txt (build-aux/config.rpath): different from latest
77617         release.
77618
77619 2006-05-08  Bruno Haible  <bruno@clisp.org>
77620
77621         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77622
77623 2006-05-05  Jim Meyering  <jim@meyering.net>
77624
77625         * m4/warning.m4: New file, derived from bison's file by the same name.
77626
77627 2006-05-03  Bruno Haible  <bruno@clisp.org>
77628
77629         * lib/stdint_.h: Shorter URL.
77630         * lib/inttypes.h: Likewise.
77631
77632 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77633
77634         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77635
77636 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77637
77638         * lib/verify.h: Document the internals better.  Most of this change
77639         was written by Bruno Haible.
77640
77641 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * doc/verify.texi: New file, partly based on a proposal by
77644         Bruno Haible.
77645
77646 2006-05-02  Bruno Haible  <bruno@clisp.org>
77647
77648         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77649         test from here...
77650         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77651
77652 2006-04-29  Bruno Haible  <bruno@clisp.org>
77653
77654         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77655         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77656
77657 2006-04-29  Bruno Haible  <bruno@clisp.org>
77658
77659         * gnulib-tool: Make --update option actually work.
77660
77661 2006-04-29  Bruno Haible  <bruno@clisp.org>
77662
77663         * doc/gcd.texi: New file.
77664         * doc/gnulib.texi: Include it.
77665
77666 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * lib/getdate.y (get_date): When adding relative date, start with the
77669         initial time, not with the result of the first mktime call.
77670
77671 2006-04-25  Bruno Haible  <bruno@clisp.org>
77672
77673         * gnulib-tool (func_import): Output the include directives in three
77674         blocks, sorted separately.
77675         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77676
77677 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77680         to define main with arguments, for C++.  Reported by Eric Blake.
77681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77682         Prefer 'int main ()' to 'int main (void)', for C++.
77683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77685         for 'main', for C99 and C++.
77686
77687 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77690         Don't assume that exit status -1 is valid.
77691         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77692         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77693         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77694         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77695         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77696         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77697         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77698         functions can be used without declaring them, or that you can
77699         exit with status -1.
77700         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77701
77702 2006-04-24  Karl Berry  <karl@gnu.org>
77703
77704         * config/srclist.txt (longdouble.m4): sync lost.
77705
77706 2006-04-24  Eric Blake  <ebb9@byu.net>
77707
77708         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77709
77710 2006-04-24  Bruno Haible  <bruno@clisp.org>
77711
77712         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77713         poll() implementation in AIX.
77714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77715
77716 2006-04-24  Bruno Haible  <bruno@clisp.org>
77717
77718         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77719         assigned exactly once.
77720
77721 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77722             Bruno Haible  <bruno@clisp.org>
77723
77724         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77725         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77726         for AM_CPPFLAGS.
77727
77728 2006-04-23  Bruno Haible  <bruno@clisp.org>
77729
77730         * modules/copy-file: Depend on unistd.
77731         * modules/execute: Likewise.
77732         * modules/fatal-signal: Likewise.
77733         * modules/findprog: Likewise.
77734         * modules/mkdtemp : Likewise.
77735         * modules/pipe: Likewise.
77736         * modules/wait-process: Likewise.
77737
77738 2006-04-23  Bruno Haible  <bruno@clisp.org>
77739
77740         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77741         condition was already detected.
77742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77743
77744 2006-04-23  Bruno Haible  <bruno@clisp.org>
77745
77746         * lib/copy-file.c: Include <unistd.h> unconditionally.
77747         * lib/execute.c: Likewise.
77748         * lib/fatal-signal.c: Likewise.
77749         * lib/findprog.c: Likewise.
77750         * lib/mkdtemp.c: Likewise.
77751         * lib/pipe.h: Likewise.
77752         * lib/pipe.c: Likewise.
77753         * lib/wait-process.h: Likewise.
77754
77755 2006-04-23  Bruno Haible  <bruno@clisp.org>
77756
77757         * gnulib-tool (func_usage): Fix --import description. Document
77758         --update.
77759         (func_import): Create temporary file in a temporary directory, if
77760         --dry-run is specified. Silence errors from 'grep' when there are no
77761         m4 files in $m4dir.
77762         (func_create_testdir): Silence errors from 'grep' when there are no
77763         m4 files in $m4dir.
77764         Reported by Karl Berry <karl@freefriends.org>.
77765
77766 2006-04-20  Bruno Haible  <bruno@clisp.org>
77767
77768         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77769         one argument, so that the code will be portable to Autoconf 2.60.
77770         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77771         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77772         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77773
77774 2006-04-19  Derek Price  <derek@ximbiot.com>
77775             Eric Blake  <ebb9@byu.net>
77776
77777         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77778         rather than "/full/path.h".  Update comment to match.  Shorten &
77779         generalize m4_translit call via AS_TR_CPP.
77780
77781 2006-04-19  Derek Price  <derek@ximbiot.com>
77782             Eric Blake  <ebb9@byu.net>
77783
77784         * lib/inttypes.h: Correct grammar in comment.
77785
77786 2006-04-18  Derek Price  <derek@ximbiot.com>
77787             Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * modules/inttypes: New file.
77790         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77791
77792 2006-04-18  Derek Price  <derek@ximbiot.com>
77793             Paul Eggert  <eggert@cs.ucla.edu>
77794
77795         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77796         New files.
77797
77798 2006-04-18  Derek Price  <derek@ximbiot.com>
77799             Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * lib/inttypes.h: New file.
77802         * lib/strtoimax.c: Assume <inttypes.h>.
77803
77804 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77807         isn't mounted.  Problem reported by Kir Kolyshkin.
77808
77809 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77812         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77813         Derek R. Price.
77814         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77815         implementation.
77816
77817 2006-04-12  Eric Blake  <ebb9@byu.net>
77818
77819         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77820         is now done automatically by the corresponding Autoconf macro.
77821
77822 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77825         time_r.h.
77826
77827 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         Merge regex changes from libc, removing some of our
77830         POSIX-conformance changes that were rejected and redoing them in a
77831         less-intrusive way.
77832
77833         * lib/regcomp.c (re_compile_internal, init_dfa):
77834         Length arg is now size_t, not Idx.  All uses changed.
77835         (peek_token): Forward decl now says internal_function.
77836         (__re_error_msgid, __re_error_msgid_idx):
77837         Now static rather than extern with attribute_hidden.
77838         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77839         For some reason libc prefers K&R style defns for external functions.
77840         (regerror) [!defined _LIBC]: Likewise.
77841         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77842         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77843         (build_range_exp, build_collating_symbol):
77844         Use K&R-style defn.
77845         (re_compile_fastmap): Use '\0' to memset, not 0.
77846         (utf8_sb_map): Make the calculations more obvious.
77847         (init_dfa, parse_bracket_exp, build_charclass_op):
77848         Call calloc and cast result, as glibc does.
77849         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77850         (build_range_exp, build_collating_symbol):
77851         Now internal functions.
77852
77853         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77854
77855         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77856         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77857         Don't depend on VMS; depend on __VMS instead, for POSIX
77858         namespace cleanness.
77859         (regoff_t): Define to ssize_t, not long int.
77860
77861         Remove the REG_ macros named below.  Instead, make the old names
77862         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77863         __USE_GNU_REGEX.
77864         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77865         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77866         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77867         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77868         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77869         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77870         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77871         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77872         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77873         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77874         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77875         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77876         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77877         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77878         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77879         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77880         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77881         (REG_NREGS):
77882         Remove.  All uses replaced by the old RE_* names.
77883         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77884         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77885         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77886         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77887         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77888         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77889         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77890         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77891         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77892         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77893         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77894         Don't bother having these macros be independent of each others'
77895         values, since they no longer exist in the POSIX name space.
77896
77897         Rename the following member names back to their old names,
77898         unless !__USE_GNU_REGEX.  All uses changed back.
77899         (buffer): Renamed from re_buffer.
77900         (allocated): Renamed from re_allocated.
77901         (used): Renamed from re_used.
77902         (syntax): Renamed from re_syntax.
77903         (fastmap): Renamed from re_fastmap.
77904         (translate): Renamed from re_translate.
77905         (can_be_null): Renamed from re_can_be_null.
77906         (regs_allocated): Renamed from re_regs_allocated.
77907         (fastmap_accurate): Renamed from re_fastmap_accurate.
77908         (no_sub): Renamed from re_no_sub.
77909         (not_bol): Renamed from re_not_bol.
77910         (not_eol): Renamed from re_not_eol.
77911         (newline_anchor): Renamed from re_newline_anchor.
77912         (num_regs): Renamed from rm_num_regs.
77913         (start): Renamed from rm_start.
77914         (end): Renamed from rm_end.
77915
77916         (free_state): Move up a bit.
77917
77918         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77919         #define to be empty.
77920         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77921         when that is what is intended.
77922         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77923         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77924         (MAX): New macro.
77925         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77926         All uses changed back to re_malloc, etc.  It's now the caller's
77927         responsibility to check for overflow; all callers changed.
77928         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77929         (re_x2nrealloc): Remove.
77930         (free_state): Remove decl.
77931
77932         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77933         (re_set_registers, re_exec):
77934         Use K&R-style defn.
77935
77936         2006-01-31  Roland McGrath  <roland@redhat.com>
77937
77938         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77939         Reported by Mike Frysinger <vapier@gentoo.org>.
77940
77941         2006-01-15  Andreas Jaeger  <aj@suse.de>
77942
77943         [BZ #1950]
77944         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77945         build_wcs_upper_buffer change.
77946         (build_wcs_upper_buffer): Change return type.
77947
77948         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77949
77950         * lib/regex_internal.h: Include <stdint.h> if available.
77951
77952         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77953
77954         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77955
77956         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77957
77958         * lib/regcomp.c: Adjust for changed secondary hash function.
77959
77960         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77961
77962         * lib/regex.h: Pretty printing.
77963         Clean up namespace a bit.
77964
77965         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77966
77967         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77968         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77969
77970         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77971                     Ulrich Drepper  <drepper@redhat.com>
77972
77973         [BZ #1302]
77974         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77975         changed.
77976         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77977
77978         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77979
77980         [BZ #281]
77981         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77982         * lib/regcomp.c: Remove unnecessary uses of
77983         unsigned RE_TRANSLATE_TYPE.
77984         * lib/regex_internal.h: Likewise.
77985         * lib/regex_internal.c: Likewise.
77986         * lib/regexec.c: Likewise.
77987         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77988
77989         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77990
77991         * lib/regexec.c (find_recover_state): Remove unnecessary
77992         initialization.
77993         (transit_state_bkref): Make DFA a const pointer.
77994         (get_subexp): Likewise.
77995         (check_arrival): Likewise.
77996         (update_cur_sifted_state): Likewise.
77997         (re_search_internal): Likewise.
77998         (prune_impossible_nodes): Likewise.
77999         (acquire_init_state_context): Likewise.
78000         (proceed_next_node): Likewise.
78001         (set_regs): Likewise.
78002         (free_fail_stack_return): Likewise.
78003         (check_arrival_expand_ecl): Mark DFA parameter as const.
78004         (check_arrival_expand_ecl_sub): Likewise.
78005         (check_subexp_limits): Likewise.
78006         (sub_epsilon_src_nodes):  Likewise.
78007         (add_epsilon_src_nodes):  Likewise.
78008         (merge_state_array): Likewise.
78009         (update_regs): Likewise.
78010         (build_trtable): Likewise.
78011         (sift_states_backward): Mark MCTX parameter as const.
78012         (build_sifted_states): Likewise.
78013         (update_cur_sifted_state): Likewise.
78014         (sift_states_mkref): Likewise.
78015         (check_arrival_expand_ecl): Mark eclosure as const.
78016         (check_dst_limits_calc_pos_1): Likewise.
78017         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78018         pointer.
78019
78020         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78021
78022         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78023         (transit_state_sb): Likewise.
78024         (transit_state_mb): Likewise.
78025         (sift_states_iter_mb): Likewise.
78026         (check_arrival_add_next_nodes): Likewise.
78027         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78028         [_LIBC] (re_search_2_stub): Use mempcpy.
78029
78030         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78031         mbrtowc for very simple UTF-8 case.
78032
78033         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78034         a pointer-to-const.
78035         (re_acquire_state_context): Likewise.
78036         * lib/regex_internal.h: Adjust prototypes.
78037
78038         * lib/regex.c: Prevent using C++ compilers.
78039
78040         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78041         (re_acquire_state_context): Likewise.
78042
78043 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * modules/regex (Depends-on): Add ssize_t.
78046
78047 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78050         translation table.
78051
78052 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78055
78056 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78057             Bruno Haible  <bruno@clisp.org>
78058
78059         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78060         <sys/types.h> and <inttypes.h>.
78061
78062 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78063
78064         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78065         `__error_t_defined', so argp.h will not typedef the former.
78066
78067 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78070         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78071         glibc names.  Even if glibc is changed to conform to POSIX, the
78072         traditional names will be available anyway, since regex depends on
78073         the extensions module.  Also, fix a longstanding typo in the
78074         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78075         reported by Emanuele Giaquinta.  Also, change sense of cached
78076         variable, so that the message makes sense.
78077
78078 2006-03-24  Simon Josefsson  <jas@extundo.com>
78079
78080         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78081         including some doc fixes.
78082         (base64_encode_alloc): Fix +1 bug on allocation failures.
78083
78084 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78085
78086         * lib/base64.c (base64_encode): Do not read past end of array with
78087         unsanitized input on systems with CHAR_BIT > 8.
78088
78089 2006-03-24  Eric Blake  <ebb9@byu.net>
78090
78091         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78092
78093 2006-03-22  Karl Berry  <karl@gnu.org>
78094
78095         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78096         * config/srclistvars.sh (COREUTILS): new var.
78097
78098 2006-03-17  Jim Meyering  <jim@meyering.net>
78099
78100         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78101         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78102
78103 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78106         no longer needs it.  Instead, check that regoff_t is as least
78107         as wide as ptrdiff_t.
78108
78109         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78110         so that our regex.h stays compatible with the installed regex.
78111         This is helpful for installers who configure --without-included-regex.
78112         Problem reported by Emanuele Giaquinta.
78113
78114 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78117         Typedef to long int, not to off_, as POSIX will likely change
78118         in that direction.
78119
78120 2006-03-15  Eric Blake  <ebb9@byu.net>
78121
78122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78123
78124 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78125
78126         * lib/argp-help.c (validate_uparams): Fix typo
78127         * lib/argp-parse.c (argp_default_options): Consistently begin help
78128         messages with a lowercase letter.
78129
78130 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78131
78132         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78133         overrun buffers and shouldn't be used (much as gets shouldn't be
78134         used).
78135         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78136
78137 2006-03-08  Simon Josefsson  <jas@extundo.com>
78138
78139         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78140         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78141
78142 2006-03-08  Simon Josefsson  <jas@extundo.com>
78143
78144         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78145         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78146
78147 2006-03-08  Simon Josefsson  <jas@extundo.com>
78148
78149         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78150         signal that configure disabled the device.
78151
78152 2006-03-08  Simon Josefsson  <jas@extundo.com>
78153
78154         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78155         languages.
78156
78157 2006-03-07  Simon Josefsson  <jas@extundo.com>
78158
78159         * modules/getopt (Depends-on): Add unistd.
78160
78161         * modules/unistd: New file.
78162
78163 2006-03-07  Simon Josefsson  <jas@extundo.com>
78164
78165         * modules/gc-random: New file.
78166
78167 2006-03-07  Simon Josefsson  <jas@extundo.com>
78168
78169         * m4/unistd_h.m4: New file.
78170
78171 2006-03-07  Simon Josefsson  <jas@extundo.com>
78172
78173         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78174         test to be side-effect free by storing the result in the cache
78175         variable gl_cv_lib_readline, and moving the assignment of
78176         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78177         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78178
78179 2006-03-07  Simon Josefsson  <jas@extundo.com>
78180
78181         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78182         error on missing devices (the functions will return an error).
78183
78184         * m4/gc.m4: Move random stuff to gc-random.m4
78185
78186 2006-03-07  Simon Josefsson  <jas@extundo.com>
78187
78188         * lib/unistd_.h: New file.
78189
78190 2006-03-07  Simon Josefsson  <jas@extundo.com>
78191
78192         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78193
78194 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78197         Problem reported by Juan Manuel Guerrero.
78198
78199 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78202         the unistd module.
78203         * lib/getlogin_r.c: Likewise.
78204         * lib/getlogin_r.h: Likewise.
78205         * lib/glob.c: Likewise.
78206         * lib/pagealign_alloc.c: Likewise.
78207         * lib/unistd_.h: Remove; no longer needed.
78208
78209 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78212         Add unistd.
78213         * modules/c-stack (Depends-on): Add unistd.
78214         * modules/getlogin_r: Likewise.
78215         * modules/glob: Likewise.
78216         * modules/pagealign_alloc: Likewise.
78217         * modules/unistd (Files): Remove lib/unistd_.h.
78218         (EXTRA_DIST): Remove.
78219         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78220         need unistd_.h.
78221         (MOSTLYCLEANFILES): Remove unistd.h-t.
78222
78223 2006-03-03  Simon Josefsson  <jas@extundo.com>
78224
78225         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78226
78227 2006-03-03  Simon Josefsson  <jas@extundo.com>
78228
78229         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78230         libidn and bison.
78231
78232 2006-03-03  Simon Josefsson  <jas@extundo.com>
78233
78234         * build-aux/maint.mk: Add indent target.
78235
78236 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78237
78238         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78239         our replacement poll.h in any case, to avoid a differing
78240         declaration from a system header.  Seen on AIX.
78241
78242 2006-03-01  Simon Josefsson  <jas@extundo.com>
78243
78244         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78245         <kasal@ucw.cz>.
78246
78247 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * modules/gettime (Depends-on): Add extensions module.
78250         * modules/nanosleep (Depends-on): Likewise.
78251         * modules/settime (Depends-on): Likewise.
78252
78253 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78256         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78257         pedantically.
78258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78259         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78260
78261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78262         not "==".  Reported by Ralf Wildenhues.
78263
78264 2006-03-01  Karl Berry  <karl@gnu.org>
78265
78266         * doc/Copyright/request-*: new files, synced from gnuorg.
78267
78268 2006-03-01  Karl Berry  <karl@gnu.org>
78269
78270         * config/srclist.txt (Copyright/*): new entries.
78271
78272 2006-02-28  Simon Josefsson  <jas@extundo.com>
78273
78274         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78275
78276 2006-02-27  Simon Josefsson  <jas@extundo.com>
78277
78278         * lib/base64.h: Indent #define's.  From Jim Meyering
78279         <jim@meyering.net>.
78280
78281 2006-02-27  Jim Meyering  <jim@meyering.net>
78282
78283         Revert the change of 2006-02-24, so these files can continue
78284         to be sync'd from gettext.
78285         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78286         of `config.h'.
78287
78288 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78289
78290         * modules/intprops: New file.
78291         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78292         Add intprops.
78293         * modules/getloadavg (Files): Remove lib/intprops.h.
78294         (Depends-on): Add intprops.
78295         * modules/human: Likewise.
78296         * modules/inttostr: Likewise.
78297         * modules/openat: Likewise.
78298         * modules/sig2str: Likewise.
78299         * modules/userspec: Likewise.
78300         * modules/utimecmp: Likewise.
78301         * modules/xnanosleep: Likewise.
78302         * modules/xstrtol: Likewise.
78303
78304 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78305
78306         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78307         * modules/lock-tests (TESTS): Use $(EXEEXT).
78308         * modules/tls-tests: Likewise.
78309         * modules/argp-tests: Likewise.
78310         (check_PROGRAMS): New var, replacing...
78311         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78312
78313 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78314
78315         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78316         `config.h'.
78317
78318 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78319
78320         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78321
78322 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78323
78324         Sync from coreutils.
78325         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78326         gl_CHDIR_SAFER.
78327
78328 2006-02-22  Jim Meyering  <jim@meyering.net>
78329
78330         Sync from coreutils.
78331         * m4/chdir-safer.m4: New file.
78332
78333 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78336         AT_FDCWD exceeds INT_MAX.
78337         * lib/openat.h (AT_FDCWD): Likewise.
78338
78339 2006-02-17  Eric Blake  <address@hidden>
78340
78341         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78342
78343 2006-02-16  Simon Josefsson  <jas@extundo.com>
78344
78345         * modules/getaddrinfo (Depends-on): Add sys_socket.
78346
78347 2006-02-15  Simon Josefsson  <jas@extundo.com>
78348
78349         * build-aux/maint.mk: Add dsyntax-check rule.
78350
78351 2006-02-15  Eric Blake  <ebb9@byu.net>
78352
78353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78354         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78355         'present but cannot compile' warnings on cygwin.
78356         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78357         use ws2tcpip.h if sys/socket.h works.
78358         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78359         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78360
78361 2006-02-14  Simon Josefsson  <jas@extundo.com>
78362
78363         * modules/maintainer-makefile (Files): Rename.
78364
78365         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78366         and (the local) Makefile.cfg to maint-cfg.mk.
78367
78368         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78369         to the latter.
78370
78371         * modules/maintainer-makefile: New module.
78372
78373         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78374         severaly stripped to make it possible to build it up from scratch
78375         with reliable tests.
78376
78377         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78378         fixes to permit overriding the default actions when configure and
78379         makefile are not available.
78380
78381 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         Sync from coreutils.
78384         * modules/lstat (Depends-on): Don't depend on xalloc.
78385         (License): Change from GPL to LGPL, since this is now simply a
78386         replacement for a libc function.
78387
78388 2006-02-14  Jim Meyering  <jim@meyering.net>
78389
78390         Sync from coreutils.
78391
78392         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78393         failure on deficient systems, and simplify gnulib lgpl dependencies.
78394         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78395         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78396
78397         * lib/xalloc-die.c: Remove unused definition of N_.
78398
78399 2006-02-14  Jim Meyering  <jim@meyering.net>
78400
78401         Sync from coreutils.
78402         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78403         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78404         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78405         double-quote uses of that variable, to accommodate the rare case in
78406         which getmntent is available in none of the libraries checked.  This
78407         happens at least on FreeBSD 5.0.
78408
78409 2006-02-13  Simon Josefsson  <jas@extundo.com>
78410
78411         * gnulib-tool (Usage): Fix --import, from
78412         karl@freefriends.org (Karl Berry).
78413
78414 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78415
78416         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78417
78418 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78419
78420         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78421         "autoupdate" on 2005-12-12.
78422
78423 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * modules/closeout (Depends-on): Remove atexit.
78426
78427 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78430         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78431
78432 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78435         __EXTENSIONS__ if this causes compilation to fail.  Problem
78436         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78437         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78438
78439 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78442         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78443         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78444         All uses changed.
78445
78446 2006-01-26  Simon Josefsson  <jas@extundo.com>
78447
78448         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78449         prototype is visible on mingw32.
78450
78451         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78452         for mingw32.
78453
78454         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78455         mingw32).
78456
78457 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78460         attempt to open for write; this always fails, at least on POSIX
78461         hosts.  This reinstates the 2006-01-09 change, which was
78462         inadvertently removed.
78463
78464 2006-01-26  Bruno Haible  <bruno@clisp.org>
78465
78466         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78467         Reported by Paul Eggert.
78468
78469 2006-01-26  Bruno Haible  <bruno@clisp.org>
78470             Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/stdbool_.h (_Bool)
78473         [(! (defined __cplusplus || defined __BEOS__)
78474           && !defined __GNUC__
78475           && !(defined __HP_cc || defined __xlc__
78476                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78477                || defined __sgi))]:
78478         #define to signed char in these cases too; this simplifies
78479         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78480         etc., separately) and makes it more conservative.
78481
78482 2006-01-25  Simon Josefsson  <jas@extundo.com>
78483
78484         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78485         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78486         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78487
78488 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78489
78490         * lib/argp-namefrob.h: Bugfix. Remove stray #
78491
78492 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78493
78494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78495         so that we test the test.
78496         Check for yet another HP-UX cc bug involving *bool |= bool.
78497
78498 2006-01-25  Karl Berry  <karl@gnu.org>
78499
78500         * config/srclist.txt (vasnprintf.c): sync lost.
78501
78502 2006-01-25  Jim Meyering  <jim@meyering.net>
78503
78504         Sync from the stable (b5) branch of coreutils:
78505
78506         * lib/fts.c (fts_children): Don't let close() clobber errno from
78507         failed fchdir().
78508
78509         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78510         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78511         a dangling symlink.  That can also happen at least for ELOOP.
78512         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78513         FYI, this bug predates the inclusion of fts.c in coreutils.
78514
78515         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78516         in their own block, so pre-c99 compilers don't object.
78517
78518         Avoid the double-free (first in fts_read, second in fts_close) that
78519         would occur when an `active' directory is made inaccessible (e.g.,
78520         via chmod a-x) during a traversal.
78521         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78522         before returning.  Reproduce this failure by
78523         mkdir -p a/b; cd a; chmod a-x . b
78524         Reported by Stavros Passas.
78525
78526 2006-01-25  Jim Meyering  <jim@meyering.net>
78527
78528         * lib/fileblocks.c: Remove more useless parentheses.
78529         * lib/readutmp.h: Likewise.
78530
78531 2006-01-25  Bruno Haible  <bruno@clisp.org>
78532
78533         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78534         warnings.
78535         Reported by Paul Eggert.
78536
78537 2006-01-25  Bruno Haible  <bruno@clisp.org>
78538
78539         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78540         rid of a trap command. For Solaris sh.
78541         Reported by Mark D. Baushke <mdb@gnu.org>.
78542
78543 2006-01-24  Simon Josefsson  <jas@extundo.com>
78544
78545         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78546         Bruno.
78547
78548 2006-01-24  Karl Berry  <karl@gnu.org>
78549
78550         * config/srclist.txt (argp-namefrob.h): sync lost.
78551
78552 2006-01-24  Jim Meyering  <jim@meyering.net>
78553
78554         * modules/openat (Files): Add lib/intprops.h.
78555         From Mark D. Baushke.
78556
78557 2006-01-24  Jim Meyering  <jim@meyering.net>
78558
78559         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78560         Reported by Mark D. Baushke.
78561
78562 2006-01-24  Jim Meyering  <jim@meyering.net>
78563
78564         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78565
78566 2006-01-24  Bruno Haible  <bruno@clisp.org>
78567
78568         * modules/strnlen (Maintainer): Change from glibc to all.
78569
78570 2006-01-24  Bruno Haible  <bruno@clisp.org>
78571
78572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78573         Patch by Paul Eggert.
78574
78575 2006-01-24  Bruno Haible  <bruno@clisp.org>
78576
78577         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78578         already has it.
78579         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78580         2005-11-26.
78581
78582         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78583         'signed char' to avoid problems with the built-in _Bool type.
78584         Reported by Paul Eggert on 2005-11-26.
78585
78586 2006-01-24  Bruno Haible  <bruno@clisp.org>
78587
78588         * gnulib-tool (func_import): Avoid constructing complicated sed
78589         expressions inside backquote.
78590         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78591
78592 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78593
78594         These changes imported from libc.
78595         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78596         test and two separate function calls.
78597         * lib/strndup.c (__strndup): Add libc_hidden_def.
78598
78599 2006-01-23  Simon Josefsson  <jas@extundo.com>
78600
78601         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78602         Remove the test_*_SOURCES variable: automake infers it by default.
78603         * modules/tls-tests: Likewise.
78604
78605 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78606
78607         Work around porting bugs reported by Dieter in
78608         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78609         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78610         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78611         Include "getopt.h" first, to check interface.
78612         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78613         !HAVE_DECL_GETENV.
78614         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78615         (__strndup): Revert to K&R-style function dfns, the glibc style.
78616         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78617         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78618         Include strnlen.h first, to get prototype properly.
78619         (strnlen): Renamed from __strnlen.
78620         Remove weak alias.
78621
78622 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78625
78626 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78627
78628         * config/srclist.txt: Adjust to reflect glibc reorganization.
78629         This affects only comments.
78630
78631 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78632
78633          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78634          Reported by Bruce Korb <bkorb@gnu.org>.
78635
78636 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78639         to pacify gcc -Wswitch-default.
78640
78641 2006-01-22  Bruno Haible  <bruno@clisp.org>
78642
78643         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78644         temporary buffer for sprintf, take into account the precision also
78645         for 'd', 'i', 'u', 'o', 'x', 'X'.
78646
78647 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78648
78649         * modules/argp-tests: New module
78650         * tests/test-argp.c: New file
78651         * tests/test-argp-2.sh: New file
78652
78653 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78654
78655         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78656         (__argp_base_name): Removed
78657         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78658         typo.
78659         (__argp_base_name): Provide macro definition or extern declaration
78660         depending on the configuration
78661
78662 2006-01-20  Simon Josefsson  <jas@extundo.com>
78663
78664         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78665
78666 2006-01-20  Simon Josefsson  <jas@extundo.com>
78667
78668         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78669
78670 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78673         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78674         Suggested by Bruno Haible.
78675
78676 2006-01-20  Karl Berry  <karl@gnu.org>
78677
78678         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78679         until changes propagate, I guess.
78680
78681 2006-01-19  Simon Josefsson  <jas@extundo.com>
78682
78683         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78684
78685 2006-01-19  Simon Josefsson  <jas@extundo.com>
78686
78687         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78688
78689 2006-01-19  Simon Josefsson  <jas@extundo.com>
78690
78691         * gnulib-tool: Set check_PROGRAMS.
78692
78693         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78694         modules/des-tests, modules/gc-arcfour-tests,
78695         modules/gc-arctwo-tests, modules/gc-des-tests,
78696         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78697         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78698         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78699         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78700         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78701         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78702         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78703         test_*_SOURCES.
78704
78705 2006-01-18  Simon Josefsson  <jas@extundo.com>
78706
78707         * modules/socklen (Depends-on): Depend on sys_socket.
78708
78709 2006-01-18  Simon Josefsson  <jas@extundo.com>
78710
78711         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78712         modules/des-tests, modules/gc-arcfour-tests,
78713         modules/gc-arctwo-tests, modules/gc-des-tests,
78714         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78715         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78716         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78717         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78718         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78719         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78720         $(EXEEXT) to automake TESTS variable, for mingw32.
78721
78722 2006-01-17  Simon Josefsson  <jas@extundo.com>
78723
78724         * modules/socklen (Include): Need sys/socket.h.
78725
78726 2006-01-17  Bruno Haible  <bruno@clisp.org>
78727
78728         * modules/ssize_t (Include): Add <sys/types.h>.
78729
78730 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78733         it's not portable and it doesn't work with cross-compiles.
78734         Problem reported by Bruno Haible.  Fix missing-$ typo in
78735         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78736         -zignore from being used with Sun's C compiler.
78737
78738 2006-01-12  Simon Josefsson  <jas@extundo.com>
78739
78740         * lib/base64.c: Fix warning, reported by Bruno Haible
78741         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78742
78743 2006-01-12  Bruno Haible  <bruno@clisp.org>
78744
78745         * modules/ldd: New file.
78746         * build-aux/ldd.sh.in: New file.
78747         * MODULES.html.sh (Support for building libraries and executables): Add
78748         ldd.
78749
78750 2006-01-12  Bruno Haible  <bruno@clisp.org>
78751
78752         * m4/ldd.m4: New file.
78753
78754 2006-01-12  Bruno Haible  <bruno@clisp.org>
78755
78756         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78757         endless loop while replacing $auxdir with build-aux.
78758
78759 2006-01-11  Simon Josefsson  <jas@extundo.com>
78760
78761         * lib/stdint_.h (SIZE_MAX): Add missing (.
78762
78763 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78764
78765         Sync from coreutils.
78766         * lib/md5.c: Fix commentary typos.
78767         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78768         * lib/md5.h (__attribute__): Remove; unused.
78769         * lib/sha1.c: Fix commentary to match md5 better.
78770         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78771         so that we don't need to worry about alignment.  All uses changed.
78772         This merges the 2005-10-28 md5 change into sha1.
78773
78774 2006-01-11  Jim Meyering  <jim@meyering.net>
78775
78776         Sync from coreutils.
78777         * lib/md5.c (OP): Fix spacing.
78778
78779 2006-01-11  Bruno Haible  <bruno@clisp.org>
78780
78781         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78782         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78783         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78784
78785 2006-01-11  Bruno Haible  <bruno@clisp.org>
78786
78787         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78788         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78789         the "early" section as well.
78790
78791 2006-01-11  Bruno Haible  <bruno@clisp.org>
78792
78793         Avoid "ar: no archive members specified" error on MacOS X.
78794         * gnulib-tool (func_modules_add_dummy): New function.
78795         (func_import, func_create_testdir): Invoke it.
78796
78797 2006-01-11  Bruno Haible  <bruno@clisp.org>
78798
78799         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78800         with $auxdir in AC_CONFIG_FILES statements.
78801
78802 2006-01-11  Bruno Haible  <bruno@clisp.org>
78803
78804         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78805         Initialize also noinst_HEADERS to empty.
78806
78807 2006-01-11  Bruno Haible  <bruno@clisp.org>
78808
78809         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78810         variables.
78811         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78812         autoreconf.
78813
78814 2006-01-11  Bruno Haible  <bruno@clisp.org>
78815
78816         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78817         overridable by the user.
78818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78819
78820 2006-01-10  Simon Josefsson  <jas@extundo.com>
78821
78822         * modules/sys_socket: New file.
78823
78824 2006-01-10  Simon Josefsson  <jas@extundo.com>
78825
78826         * m4/sys_socket_h.m4: New file.
78827
78828 2006-01-10  Simon Josefsson  <jas@extundo.com>
78829
78830         * lib/socket_.h: New file.
78831
78832 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78833
78834         * modules/readutmp (Maintainer): Add myself.
78835
78836 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78839         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78840         People who are still concerned with buggy memcmp implementations
78841         can invoke gl_FUNC_MEMCMP themselves.
78842
78843 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78844
78845         * lib/regex_internal.h (BITSET_WORD_BITS):
78846         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78847         preprocessor mishandles large unsigned values as if they were signed.
78848         Problem reported by Claudio Fontana in
78849         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78850
78851 2006-01-10  Jim Meyering  <jim@meyering.net>
78852
78853         Avoid the double-free (first in fts_read, second in fts_close) that
78854         would occur when an `active' directory is made inaccessible (e.g.,
78855         via chmod a-x) during a traversal.
78856         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78857         before returning.  Reproduce this failure by
78858         mkdir -p a/b; cd a; chmod a-x . b
78859         Reported by Stavros Passas.
78860
78861         Sync from coreutils.
78862         * lib/sha1.c: Tweak grammar in a comment.
78863
78864 2006-01-10  Jim Meyering  <jim@meyering.net>
78865
78866         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78867         Patch by Joerg Sonnenberger.
78868
78869 2006-01-10  Bruno Haible  <bruno@clisp.org>
78870
78871         * modules/readutmp: Depend on module free.
78872         * modules/strtok_r: Depend on module restrict.
78873
78874 2006-01-10  Bruno Haible  <bruno@clisp.org>
78875
78876         * modules/gettext (configure.ac): Add an invocation of
78877         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78878
78879 2006-01-10  Bruno Haible  <bruno@clisp.org>
78880
78881         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78882         Reported by Werner Lemberg <wl@gnu.org>.
78883
78884 2006-01-10  Bruno Haible  <bruno@clisp.org>
78885
78886         * lib/localcharset.c: Update from GNU gettext.
78887
78888 2006-01-10  Bruno Haible  <bruno@clisp.org>
78889
78890         * lib/argp.h (__const): Remove macro. Use const instead.
78891         * lib/argp-fmtstream.h (__const): Likewise.
78892         * lib/glob_.h (__const): Remove macro.
78893         * lib/glob-libc.h: Use const instead of __const.
78894
78895 2006-01-10  Bruno Haible  <bruno@clisp.org>
78896
78897         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78898         variable.
78899         Needed to avoid an automake error regarding the 'gettext' module.
78900
78901 2006-01-09  Simon Josefsson  <jas@extundo.com>
78902
78903         * modules/inet_ntop (Depends-on): Add restrict.
78904
78905 2006-01-09  Simon Josefsson  <jas@extundo.com>
78906
78907         * modules/gc-rijndael-tests (License): Put under LGPL.
78908
78909         * modules/gc-des-tests (License): Likewise.
78910
78911         * modules/gc-arcfour-tests (License): Likewise.
78912
78913         * modules/gc-arctwo-tests (License): Likewise.
78914
78915         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78916
78917         * modules/gc-hmac-sha1-tests (Files): Likewise.
78918
78919         * modules/gc-hmac-md5-tests (License): Likewise.
78920
78921         * modules/gc-sha1-tests (License): Likewise.
78922
78923         * modules/gc-md5-tests (License): Likewise.
78924
78925         * modules/gc-md4-tests (License): Likewise.
78926
78927         * modules/gc-md2-tests (License): Likewise.
78928
78929         * modules/gc-tests (License): Likewise.
78930
78931         * modules/des-tests (License): Likewise.
78932
78933         * modules/md4-tests (License): Likewise.
78934
78935         * modules/md2-tests (License): Likewise.
78936
78937 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         Sync from coreutils:
78940
78941         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78942         * modules/lib-ignore: New file.
78943         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78944         chdir-safer.m4, lchmod.m4.
78945         * modules/openat: Add mkdirat.c, openat-priv.h.
78946
78947 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         Sync from coreutils.
78950         * m4/lib-ignore.m4: New file.
78951         * m4/lchmod.m4: New file.
78952
78953 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78954
78955         Sync from coreutils.
78956         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78957         for write access: POSIX says that must fail.
78958         * lib/fts.c (diropen): Likewise.
78959         * lib/save-cwd.c (save_cwd): Likewise.
78960         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78961         well, for minor improvements on hosts that lack O_DIRECTORY.
78962         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78963         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78964         Fall back on chown if open failed with EACCES.
78965
78966         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78967         Report an error at compile-time if only a 1-second nominal clock
78968         resolution is found.
78969
78970         * lib/lchmod.h: New file.
78971         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78972         (make_dir_parents): Use lchown rather than chown, and
78973         lchmod rather than chmod.
78974
78975         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78976         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78977         "proc" reported by n0dalus.
78978
78979         * lib/mountlist.c: Include <limits.h>.
78980         (dev_from_mount_options)
78981         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78982         New function.  It no longer assumes "dev=" has the System V meaning
78983         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78984         (read_file_system_list)
78985         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78986         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78987         dev= in that case.
78988
78989         * lib/posixtm.h (PDS_PRE_2000): New macro.
78990         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78991         allow_century.  All usages changed.  Reject dates outside the range
78992         1969-1999 if PDS_PRE_2000 is used.
78993
78994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         Sync from coreutils.
78997         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78998         (Time of day items): Mention the possibility of leap seconds.
78999         Problem reported by Dr. David Alan Gilbert.
79000
79001 2006-01-09  Jim Meyering  <jim@meyering.net>
79002
79003         Sync from coreutils.
79004
79005         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79006
79007         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79008
79009         * lib/modechange.c (mode_compile): Reject an invalid mode string
79010         that starts with an octal digit.  From Andreas Gruenbacher.
79011
79012         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79013         and dup to open_safer and dup_safer, respectively.
79014         (openat_permissive): Fix typo in comment.
79015
79016         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79017         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79018         (_): Remove; no longer needed.
79019         (openat): Renamed from rpl_openat; no need for rpl_openat
79020         since openat.h renames openat for us.
79021         Replace most of the body with a call to openat_permissive,
79022         to avoid duplicate code.
79023         Port to (probably hypothetical) environments were mode_t is
79024         wider than int.
79025         (openat_permissive): Require mode arg, so that we can check
79026         types better.  Put it just after flags.  Change cwd failure
79027         indicator from pointer-to-bool to pointer-to-errno-value.
79028         All callers changed.
79029         Invoke openat_save_fail and/or openat_restore_fail if
79030         cwd_errno is null, so that openat can call us.
79031         (openat_permissive, fdopendir, fstatat, unlinkat):
79032         Simplify errno handling to avoid some duplicate code,
79033         as it's OK to set errno on success.
79034         * lib/openat.h: Revamp code so that function macros depend on
79035         __OPENAT_PREFIX only, not also on AT_FDCWD.
79036         (openat_ro): Remove.  Caller changed to use openat_permissive.
79037         (openat_permissive): Now a macro, if not a function.
79038         (openat_restore_fail, openat_save_fail): Now always functions,
79039         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79040
79041         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79042         and openat.c.
79043         * lib/mkdirat.c: Include openat-priv.h.
79044         Remove definitions of macros defined therein.
79045         * lib/openat.c: Likewise.
79046
79047         * lib/mkdirat.c (mkdirat): New file and function.
79048         * lib/openat.h (mkdirat): Declare.
79049
79050         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79051
79052         * lib/openat.h (openat_permissive): Declare.
79053         (openat_ro): Define.
79054
79055         * lib/openat.c (EXPECTED_ERRNO): New macro.
79056         (openat_permissive): New function -- used in remove.c rewrite.
79057         (all functions): Set errno just before returning, only if there
79058         was an actual failure.
79059         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79060
79061         Emulate openat-family functions using Linux's procfs, if possible.
79062         Idea and some code based on Ulrich Drepper's glibc changes.
79063
79064         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79065         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79066         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79067         before falling back on save_cwd and restore_cwd.
79068         (fdopendir, fstatat, unlinkat): Likewise.
79069
79070         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79071         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79072
79073         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79074         as second argument to va_arg.  Otherwise, some versions of gcc
79075         warn that `if this code is reached, the program will abort'.
79076
79077 2006-01-09  Jim Meyering  <jim@meyering.net>
79078
79079         Sync from coreutils.
79080         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79081         Require openat-priv.h.
79082
79083 2006-01-09  Bruno Haible  <bruno@clisp.org>
79084
79085         * modules/strnlen (Include): Use strnlen.h.
79086
79087 2006-01-09  Bruno Haible  <bruno@clisp.org>
79088
79089         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79090
79091 2006-01-09  Bruno Haible  <bruno@clisp.org>
79092
79093         * lib/sysexit_.h (EX_OK): New macro.
79094         Suggested by Martin Lambers <marlam@marlam.de>.
79095
79096 2006-01-09  Bruno Haible  <bruno@clisp.org>
79097
79098         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79099         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79100
79101 2006-01-09  Bruno Haible  <bruno@clisp.org>
79102
79103         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79104         numbers.
79105
79106 2006-01-09  Bruno Haible  <bruno@clisp.org>
79107
79108         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79109         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79110         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79111         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79112
79113 2006-01-09  Bruno Haible  <bruno@clisp.org>
79114
79115         * build-aux/javacomp.sh.in: New file, moved from lib/.
79116         * modules/javacomp-script (Files): Update.
79117         (configure.ac): Add AC_CONFIG_FILES invocation.
79118         (EXTRA_DIST): Remove variable.
79119
79120         * build-aux/javaexec.sh.in: New file, moved from lib/.
79121         * modules/javaexec (Files): Update.
79122         (configure.ac): Add AC_CONFIG_FILES invocation.
79123         (EXTRA_DIST): Remove javaexec.sh.in.
79124
79125         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79126         * modules/csharpcomp-script (Files): Update.
79127         (configure.ac): Add AC_CONFIG_FILES invocation.
79128         (EXTRA_DIST): Remove variable.
79129
79130         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79131         * modules/csharpexec (Files): Update.
79132         (configure.ac): Add AC_CONFIG_FILES invocation.
79133         (EXTRA_DIST): Remove csharpexec.sh.in.
79134
79135 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79136
79137         Sync from coreutils.
79138
79139         Add POSIX ACL support
79140         * lib/acl.h (copy_acl, set_acl): Add declarations.
79141         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79142         systems other than Linux.
79143         (chmod_or_fchmod): New function: use fchmod when possible,
79144         and chmod otherwise.
79145         (file_has_acl): Add a POSIX ACL implementation, with a
79146         Linux-specific subcase.
79147         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79148         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79149         acls are unsupported.
79150         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79151         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79152         are unsupported.
79153
79154 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79155
79156         Sync from coreutils.
79157         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79158
79159 2006-01-07  Bruno Haible  <bruno@clisp.org>
79160
79161         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79162         gl_EARLY.
79163
79164 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79165
79166         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79167         Problem reported for Mingw by Mark Junker.
79168
79169 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * README: Gnulib normally doesn't generate a tarball.
79172
79173 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79176         long int, not int, for nanosecond counts, so that people who are
79177         used to POSIX struct timespec won't be surprised.  Reported by Jim
79178         Meyering.
79179
79180 2005-12-28  Bruno Haible  <bruno@clisp.org>
79181
79182         * build-aux/config.rpath: Update from GNU gettext.
79183
79184 2005-12-16  Jim Meyering  <jim@meyering.net>
79185
79186         * modules/fprintftime: New module.
79187         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79188
79189 2005-12-16  Jim Meyering  <jim@meyering.net>
79190
79191         * m4/fprintftime.m4: New file.
79192
79193 2005-12-16  Jim Meyering  <jim@meyering.net>
79194
79195         * lib/fprintftime.c, lib/fprintftime.h: New files.
79196
79197 2005-12-15  Simon Josefsson  <jas@extundo.com>
79198
79199         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79200         new m4/socklen.m4.
79201
79202 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79203
79204         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79205         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79206
79207 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79208
79209         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79210         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79211         struct uparams is valid. Fall back to the default values if it is
79212         not.
79213
79214 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79215
79216         * modules/argp (Files): Add argp-pin.c
79217         (Depends-on): dirname
79218         (lib_SOURCES): Add argp-pin.c
79219
79220 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79221
79222         * m4/argp.m4:  Check if program_invocation_name and
79223         program_invocation_short_name are declared and define appropriate
79224         macros if they are not.
79225
79226 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79227
79228         * lib/argp-help.c (__argp_base_name): New function
79229         (__argp_short_program_name): Rewrite using __argp_base_name
79230         * lib/argp-namefrob.h: Define program_invocation_name and
79231         program_invocation_short_name if requested
79232         (__argp_base_name): Add prototype
79233         * lib/argp-parse.c (argp_def): Use gettext wrappers
79234         (argp_default_parser): Use __argp_base_name
79235         * lib/argp-pin.c: New file. Defines program_invocation_name and
79236         program_invocation_short_name on systems that lack them.
79237
79238 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79241         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79242         porting problem reported by Georg Schwarz in
79243         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79244
79245 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79248         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79249         porting problem reported by Georg Schwarz in
79250         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79251
79252 2005-12-05  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79255         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79256         Reported by Mark Junker <mjscod@gmx.de>.
79257
79258 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79261         Use implementation from Albert Chin, with some
79262         comments/corrections by Stepan Kasal and myself.
79263
79264 2005-12-02  Bruno Haible  <bruno@clisp.org>
79265
79266         * gnulib-tool (func_import): Accept GPLed build tool modules when
79267         --lgpl is given.
79268         * modules/csharpcomp-script: New file.
79269         * modules/csharpcomp: Depend on it.
79270         * modules/javacomp-script: New file.
79271         * modules/javacomp: Depend on it.
79272         Suggested by Simon Josefsson.
79273
79274 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79277         statement, to work around an HP-UX 10.20 compiler bug reported by
79278         Peter O'Gorman.
79279
79280 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79281
79282         * modules/savedir (Depends-on): Add openat.
79283
79284 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79287         (uintmax_t) [defined uintmax_t]: Do not declare.
79288         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79289         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79290         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79291         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79292         sake of portability to weird hosts that C allows (though we don't
79293         know of any practical examples).
79294
79295         * lib/savedir.h (fdsavedir): New decl.
79296         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79297         contains most of the former guts of savedir.
79298         (savedir): Use savedirstream.
79299         Include "openat.h".
79300
79301 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79302
79303         * modules/obstack (Files): Add m4/ulonglong.m4.
79304         Problem reported by Davide Angelocola.
79305
79306 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79309         coreutils no longer futzes with rounding modes.
79310
79311 2005-11-14  Jim Meyering  <jim@meyering.net>
79312
79313         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79314         replacement of mkstemp.
79315
79316 2005-11-10  Simon Josefsson  <jas@extundo.com>
79317
79318         * lib/readline.c: Remove EOL.
79319
79320 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * modules/gethrxtime (Depends-on): Add gettime.
79323
79324 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79327         or gettimeofday; no longer needed.
79328
79329 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79332         time business.
79333         (gethrxtime) [! (HAVE_NANOUPTIME
79334         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79335         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79336         our own approximation.
79337
79338 2005-11-08  Eric Blake  <ebb9@byu.net>
79339
79340         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79341
79342 2005-11-08  Eric Blake  <ebb9@byu.net>
79343
79344         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79345
79346 2005-11-04  Bruno Haible  <bruno@clisp.org>
79347
79348         * gnulib-tool: Implement --update mode.
79349
79350 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         Fix porting problem reported by Theodoros V. Kalamatianos.
79353         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79354         Don't assume that futimes failing means we must fail.
79355
79356 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79357
79358         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79359         variables to suggest the intended function of the PATH_MAX check.
79360
79361 2005-10-30  Kean Johnston  <jkj@sco.com>
79362
79363         Trivial changes to support SCO systems.
79364         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79365         as PATH_MAX.
79366         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79367         where __ptr is null when no I/O is pending.
79368
79369 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79372         leave errno alone.  Problem reported by Dmitry V. Levin.
79373
79374 2005-10-28  Simon Josefsson  <jas@extundo.com>
79375
79376         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79377         Test more.
79378
79379         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79380
79381         * modules/md2, modules/md2-tests: New files.
79382
79383 2005-10-28  Simon Josefsson  <jas@extundo.com>
79384
79385         * m4/inet_ntop.m4: More tests.
79386
79387         * m4/gc-md2.m4, md2.m4: New file.
79388
79389 2005-10-28  Simon Josefsson  <jas@extundo.com>
79390
79391         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79392         "restrict" keywords, as per POSIX.  Protect the function
79393         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79394         Don't use K&R prototypes.  Check the sprintf return values.
79395         Re-define EAFNOSUPPORT if not present.  Indent.
79396
79397         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79398         suggested by Bruno Haible <bruno@clisp.org>.
79399
79400         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79401
79402         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79403
79404         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79405         libgcrypt).
79406
79407         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79408
79409         * lib/md2.h, lib/md2.c: New files.
79410
79411 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79412
79413         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79414         errno alone.  Problem reported by Frederic Jolliton.
79415
79416 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         * modules/verify (License): Change from GPL to LGPL.  This is a
79419         tiny module and there are apparently near-equivalents that are
79420         under the BSD license.
79421
79422 2005-10-24  Simon Josefsson  <jas@extundo.com>
79423
79424         * modules/sha1: Relicense to LGPL.
79425
79426 2005-10-24  Simon Josefsson  <jas@extundo.com>
79427
79428         * lib/md4.h: Shrink buffer size, now that we changed the type.
79429
79430 2005-10-23  Simon Josefsson  <jas@extundo.com>
79431
79432         * gnulib-tool (func_import): Fix --tests-base.
79433
79434 2005-10-22  Simon Josefsson  <jas@extundo.com>
79435
79436         * modules/arcfour (Depends-on): Need stdint.
79437
79438 2005-10-22  Simon Josefsson  <jas@extundo.com>
79439
79440         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79441         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79442
79443 2005-10-22  Simon Josefsson  <jas@extundo.com>
79444
79445         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79446         suggested by Bruno Haible <bruno@clisp.org>.
79447
79448 2005-10-22  Simon Josefsson  <jas@extundo.com>
79449
79450         * lib/crc.h: Include stddef.h, for size_t.
79451
79452 2005-10-22  Simon Josefsson  <jas@extundo.com>
79453
79454         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79455         arcfour_context struct (simplify test vector testing in GNU
79456         Shishi).
79457
79458 2005-10-21  Simon Josefsson  <jas@extundo.com>
79459
79460         * modules/des, modules/des-tests: New files.
79461
79462         * modules/gc-des, modules/gc-des-tests: New files.
79463
79464         * tests/test-des.c, tests/test-gc-des.c: New file.
79465
79466 2005-10-21  Simon Josefsson  <jas@extundo.com>
79467
79468         * modules/arctwo, modules/arctwo-tests: New files.
79469
79470         * tests/test-arctwo.c: New file.
79471
79472         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79473
79474         * tests/test-gc-arctwo.c: New file.
79475
79476 2005-10-21  Simon Josefsson  <jas@extundo.com>
79477
79478         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79479         Bruno Haible <bruno@clisp.org>.
79480
79481         * m4/gc-des.m4: New file.
79482
79483 2005-10-21  Simon Josefsson  <jas@extundo.com>
79484
79485         * m4/arctwo.m4: New file.
79486
79487         * m4/gc-arctwo.m4: New file.
79488
79489 2005-10-21  Simon Josefsson  <jas@extundo.com>
79490
79491         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79492         block.
79493
79494 2005-10-21  Simon Josefsson  <jas@extundo.com>
79495
79496         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79497         <bruno@clisp.org>.
79498
79499         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79500
79501         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79502         Bruno Haible <bruno@clisp.org>.
79503
79504         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79505         <bruno@clisp.org>.
79506
79507 2005-10-21  Simon Josefsson  <jas@extundo.com>
79508
79509         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79510
79511 2005-10-21  Simon Josefsson  <jas@extundo.com>
79512
79513         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79514
79515 2005-10-21  Simon Josefsson  <jas@extundo.com>
79516
79517         * lib/des.h, lib/des.c: New files.
79518
79519         * lib/gc-gnulib.c: Support DES.c
79520
79521 2005-10-21  Simon Josefsson  <jas@extundo.com>
79522
79523         * lib/arctwo.h, lib/arctwo.c: New files.
79524
79525         * lib/gc-gnulib.c: Support ARCTWO.
79526
79527 2005-10-21  Simon Josefsson  <jas@extundo.com>
79528
79529         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79530         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79531
79532 2005-10-21  Simon Josefsson  <jas@extundo.com>
79533
79534         * gnulib-tool (func_import, func_create_testdir): Define automake
79535         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79536         Makefile.am snippet),
79537         suggested by Bruno Haible <bruno@clisp.org>.
79538
79539         * modules/gc (Makefile.am): Use it.
79540
79541 2005-10-21  Bruno Haible  <bruno@clisp.org>
79542
79543         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79544         patch.
79545
79546 2005-10-19  Simon Josefsson  <jas@extundo.com>
79547
79548         * tests/test-gc-rijndael.c: New file.
79549
79550         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79551
79552 2005-10-19  Simon Josefsson  <jas@extundo.com>
79553
79554         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79555         interface too.
79556
79557 2005-10-19  Simon Josefsson  <jas@extundo.com>
79558
79559         * tests/test-gc-arcfour.c: New file.
79560
79561         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79562
79563 2005-10-19  Simon Josefsson  <jas@extundo.com>
79564
79565         * modules/gc-md4, modules/gc-md4-tests: New file.
79566
79567         * tests/test-gc-md4.c: New file.
79568
79569 2005-10-19  Simon Josefsson  <jas@extundo.com>
79570
79571         * m4/gc-md4.m4: New file.
79572
79573 2005-10-19  Simon Josefsson  <jas@extundo.com>
79574
79575         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79576         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79577         <kasal@ucw.cz>.
79578
79579 2005-10-19  Simon Josefsson  <jas@extundo.com>
79580
79581         * m4/gc-arcfour.m4: New file.
79582
79583         * m4/gc-rijndael.m4: New file.
79584
79585 2005-10-19  Simon Josefsson  <jas@extundo.com>
79586
79587         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79588
79589 2005-10-19  Simon Josefsson  <jas@extundo.com>
79590
79591         * lib/gc-gnulib.c: Support ARCFOUR.
79592
79593 2005-10-19  Simon Josefsson  <jas@extundo.com>
79594
79595         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79596         support.
79597
79598         * lib/gc.h: Add ECB enum type.
79599
79600         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79601
79602 2005-10-18  Simon Josefsson  <jas@extundo.com>
79603
79604         * tests/test-md5.c: New file.
79605
79606         * modules/md5-tests: New file.
79607
79608 2005-10-18  Simon Josefsson  <jas@extundo.com>
79609
79610         * tests/test-md4.c: New file.
79611
79612         * modules/md4, modules/md4-tests: New files.
79613
79614 2005-10-18  Simon Josefsson  <jas@extundo.com>
79615
79616         * m4/md4.m4: New file.
79617
79618 2005-10-18  Simon Josefsson  <jas@extundo.com>
79619
79620         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79621
79622 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79623
79624         * gnulib-tool (func_create_testdir): Omit the second check whether
79625         BUILT_SOURCES in nonempty.
79626
79627 2005-10-17  Simon Josefsson  <jas@extundo.com>
79628
79629         * tests/test-rijndael.c: New file.
79630
79631 2005-10-17  Simon Josefsson  <jas@extundo.com>
79632
79633         * modules/sha1: Depend on stdint instead of md5.
79634
79635         * modules/md5: Depend on stdint, remove uint32_t.
79636
79637 2005-10-17  Simon Josefsson  <jas@extundo.com>
79638
79639         * modules/gc-sha1-tests: New file.
79640
79641         * tests/test-gc-sha1.c: New file.
79642
79643 2005-10-17  Simon Josefsson  <jas@extundo.com>
79644
79645         * m4/md5.m4: Remove call to uint32_t.m4.
79646
79647 2005-10-17  Simon Josefsson  <jas@extundo.com>
79648
79649         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79650
79651         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79652         md5.h.
79653
79654         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79655
79656         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79657
79658 2005-10-17  Simon Josefsson  <jas@extundo.com>
79659
79660         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79661
79662 2005-10-17  Simon Josefsson  <jas@extundo.com>
79663
79664         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79665
79666 2005-10-17  Simon Josefsson  <jas@extundo.com>
79667
79668         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79669
79670         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79671
79672 2005-10-17  Bruno Haible  <bruno@clisp.org>
79673
79674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79675         that it can also be used in a test.
79676
79677 2005-10-16  Bruno Haible  <bruno@clisp.org>
79678
79679         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79680         TESTS_ENVIRONMENT, so that individual tests can augment it.
79681
79682         * gnulib-tool (func_create_testdir): Use an intermediate target for
79683         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79684         macros, like $(ALLOCA_H), which cannot be passed through the command
79685         line.
79686
79687 2005-10-15  Simon Josefsson  <jas@extundo.com>
79688
79689         * modules/rijndael-tests: New file.
79690
79691         * modules/rijndael: New file.
79692
79693 2005-10-15  Simon Josefsson  <jas@extundo.com>
79694
79695         * m4/rijndael.m4: New file.
79696
79697 2005-10-15  Simon Josefsson  <jas@extundo.com>
79698
79699         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79700
79701         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79702
79703 2005-10-14  Simon Josefsson  <jas@extundo.com>
79704
79705         * tests/test-arcfour.c: New file.
79706
79707         * modules/arcfour, modules/arcfour-tests: New files.
79708
79709 2005-10-14  Simon Josefsson  <jas@extundo.com>
79710
79711         * m4/arcfour.m4: New file.
79712
79713 2005-10-14  Simon Josefsson  <jas@extundo.com>
79714
79715         * lib/arcfour.h, lib/arcfour.c: New files.
79716
79717 2005-10-14  Roland McGrath  <roland@redhat.com>
79718
79719         Import from libc.  [BZ #1331]
79720         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79721         macro argument.
79722         Reported by Matej Vela <vela@debian.org>.
79723
79724 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79727         include <wchar.h>; no longer needed.
79728
79729 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79730
79731         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79732
79733 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79734         and  Ulrich Drepper  <drepper@redhat.com>
79735
79736         Import from libc.
79737         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79738         instead of inline stream orientation test and two separate
79739         function calls.  Pay no attention to USE_IN_LIBIO.
79740
79741 2005-10-13  Simon Josefsson  <jas@extundo.com>
79742
79743         * modules/gc-hmac-md5-tests: New file.
79744
79745         * tests/test-gc-hmac-sha1.c: New file.
79746
79747         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79748
79749         * modules/gc-hmac-md5-tests: New file.
79750
79751         * tests/test-gc-md5.c: New file.
79752
79753         * modules/gc-md5-tests: New file.
79754
79755 2005-10-13  Simon Josefsson  <jas@extundo.com>
79756
79757         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79758         Move memory allocation outside of loop.
79759
79760 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79763         intermediate directory is in a read-only file system.  Problem
79764         reported by Eric Blake.
79765
79766 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79767
79768         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79769
79770 2005-10-12  Simon Josefsson  <jas@extundo.com>
79771
79772         * tests/test-hmac-sha1.c: New file.
79773
79774         * modules/hmac-sha1-tests: New file.
79775
79776         * modules/hmac-sha1: New file.
79777
79778 2005-10-12  Simon Josefsson  <jas@extundo.com>
79779
79780         * modules/gc-sha1: New file.
79781
79782 2005-10-12  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79785
79786         * tests/test-gc-pbkdf2-sha1.c: New file.
79787
79788 2005-10-12  Simon Josefsson  <jas@extundo.com>
79789
79790         * modules/gc-md5, modules/gc-hmac-md5: New files.
79791
79792         * modules/gc (Files): Remove md5, memxor and hmac files.
79793
79794 2005-10-12  Simon Josefsson  <jas@extundo.com>
79795
79796         * m4/gc-pbkdf2-sha1.m4: New file.
79797
79798         * m4/gc-hmac-sha1.m4: New file.
79799
79800         * m4/gc-sha1: New file.
79801
79802         * m4/hmac-sha1.m4: New file.
79803
79804 2005-10-12  Simon Josefsson  <jas@extundo.com>
79805
79806         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79807
79808         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79809
79810 2005-10-12  Simon Josefsson  <jas@extundo.com>
79811
79812         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79813         suggested by Bruno Haible <bruno@clisp.org>.
79814
79815 2005-10-12  Simon Josefsson  <jas@extundo.com>
79816
79817         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79818
79819 2005-10-12  Simon Josefsson  <jas@extundo.com>
79820
79821         * lib/gc-pbkdf2-sha1.c: New file.
79822
79823         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79824
79825 2005-10-12  Simon Josefsson  <jas@extundo.com>
79826
79827         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79828
79829         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79830
79831 2005-10-12  Simon Josefsson  <jas@extundo.com>
79832
79833         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79834         GC_USE_HMAC_MD5, respectively.
79835
79836         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79837         (gc_md5): Fix typo.
79838
79839         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79840
79841         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79842
79843         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79844
79845 2005-10-12  Bruno Haible  <bruno@clisp.org>
79846
79847         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79848         Reported by Stepan Kasal <kasal@ucw.cz>.
79849
79850 2005-10-11  Simon Josefsson  <jas@extundo.com>
79851
79852         * tests/test-crc.c: New file.
79853
79854         * modules/crc, modules/crc-tests: New files.
79855
79856 2005-10-11  Simon Josefsson  <jas@extundo.com>
79857
79858         * m4/crc.m4: New file.
79859
79860 2005-10-11  Simon Josefsson  <jas@extundo.com>
79861
79862         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79863
79864         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79865
79866         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79867
79868 2005-10-11  Simon Josefsson  <jas@extundo.com>
79869
79870         * lib/crc.h, lib/crc.c: New files.
79871
79872         * lib/gc.h (gc_hash_buffer): Add doc.
79873
79874 2005-10-11  Bruno Haible  <bruno@clisp.org>
79875
79876         * modules/c-strcasestr: New file.
79877         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79878
79879 2005-10-11  Bruno Haible  <bruno@clisp.org>
79880
79881         * modules/c-strcase: New file.
79882         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79883
79884 2005-10-11  Bruno Haible  <bruno@clisp.org>
79885
79886         * lib/strcasecmp.c: Include limits.h.
79887         (strcasecmp): Avoid integer overflow on exotic platforms.
79888         * lib/strncasecmp.c: Include limits.h.
79889         (strncasecmp): Avoid integer overflow on exotic platforms.
79890         Reported by Paul Eggert.
79891
79892 2005-10-11  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/c-strcasestr.h: New file, from GNU gettext.
79895         * lib/c-strcasestr.c: New file, from GNU gettext.
79896
79897 2005-10-11  Bruno Haible  <bruno@clisp.org>
79898
79899         * lib/c-strcase.h: New file, from GNU gettext.
79900         * lib/c-strcasecmp.c: New file, from GNU gettext.
79901         * lib/c-strncasecmp.c: New file, from GNU gettext.
79902
79903 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79904
79905         * modules/mempcpy (License): GPL -> LGPL.
79906         * modules/strchrnul (License): Likewise.
79907         * modules/sysexits (License): Likewise.
79908
79909 2005-10-08  Simon Josefsson  <jas@extundo.com>
79910
79911         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79912
79913 2005-10-07  Simon Josefsson  <jas@extundo.com>
79914
79915         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79916
79917 2005-10-06  Simon Josefsson  <jas@extundo.com>
79918
79919         * tests/test-hmac-md5.c: New file.
79920
79921         * modules/hmac-md5-tests: New file.
79922
79923         * modules/hmac-md5: New file.
79924
79925 2005-10-06  Simon Josefsson  <jas@extundo.com>
79926
79927         * m4/hmac-md5.m4: New file.
79928
79929         * m4/memxor.m4: Require gl_C_RESTRICT.
79930
79931 2005-10-06  Simon Josefsson  <jas@extundo.com>
79932
79933         * lib/memxor.c (memxor): Avoid casts and warnings.
79934
79935 2005-10-06  Simon Josefsson  <jas@extundo.com>
79936
79937         * lib/hmac-md5.c: New file.
79938
79939         * lib/hmac.h: New file.
79940
79941 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79944         promotes to int, not unsigned int, to catch the AIX 5.3
79945         compiler bug.
79946
79947 2005-10-05  Simon Josefsson  <jas@extundo.com>
79948
79949         * modules/memxor: New file.
79950
79951         * modules/iconv (Files): Move config.rpath to havelib, it is used
79952         there.
79953
79954         * modules/havelib (Files): Add config.rpath.
79955
79956 2005-10-05  Simon Josefsson  <jas@extundo.com>
79957
79958         * m4/memxor.m4: New file.
79959
79960 2005-10-05  Simon Josefsson  <jas@extundo.com>
79961
79962         * lib/memxor.c (memxor): Fix compiler error.
79963
79964         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79965         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79966
79967         * lib/memxor.h, lib/memxor.c: New files.
79968
79969         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79970         we assume all systems have it, suggested by Jim Meyering
79971         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79972         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79973         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79974         same reasons.
79975
79976 2005-10-05  Simon Josefsson  <jas@extundo.com>
79977
79978         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79979
79980 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79983         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79984         needed, since the source code now assumes these .h files.
79985
79986 2005-10-05  Derek Price  <derek@ximbiot.com>
79987
79988         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79989
79990 2005-10-05  Bruno Haible  <bruno@clisp.org>
79991
79992         * modules/stdint (License): Change to LGPL.
79993
79994 2005-10-04  Simon Josefsson  <jas@extundo.com>
79995
79996         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79997         D. Baushke" <mdb@gnu.org>.
79998
79999 2005-10-04  Bruno Haible  <bruno@clisp.org>
80000
80001         * lib/verify.h (verify_true): Provide alternative definition for C++.
80002
80003 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80006         (SSIZE_MAX): New macro, if not already defined.
80007         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80008         than 2 GiB.
80009
80010 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         Sync from coreutils.
80013         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80014         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80015         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80016         ULLONG_MAX doesn't work with 2.7.2.1.
80017
80018 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80021         From Ben Pfaff.
80022
80023         * modules/exclude (Depends-on): Depend on verify.
80024         * modules/strtoimax (Depends-on): Likewise.
80025         * modules/utimecmp (Depends-on): Likewise.
80026
80027 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * lib/exclude.c: Include verify.h.
80030         (verify): Remove.  All callers changed to use verify.h's version.
80031         * lib/strtoimax.c: Likewise.
80032         * lib/utimecmp.c: Likewis.e
80033
80034         Sync from coreutils.
80035         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80036         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80037         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80038         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80039         bother returning ENOSYS if settimeofday or stime fails; just let
80040         them return whatever errno they want to return.
80041         * lib/utimens.c: Include unistd.h, for dup2.
80042         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80043         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80044
80045 2005-10-02  Jim Meyering  <jim@meyering.net>
80046
80047         Sync from coreutils.
80048         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80049         from glibc-2.2.5 that fails for read-only files.
80050
80051 2005-10-02  Jim Meyering  <jim@meyering.net>
80052
80053         Sync from coreutils.
80054         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80055         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80056         `#if HAVE_CONFIG_H'.
80057         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80058         Remove AT_FDCWD test.
80059         Do not consume the fd unless successful.
80060         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80061         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80062         block, so that we don't even try to compile it if settimeofday is
80063         available.  This works around a compilation failure on OSF1 V5.1,
80064         due to stime requiring a `long int*' while tv_sec is `int'.
80065
80066 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80067
80068         Sync from coreutils.
80069         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80070         against `yes', rather than just testing for nonempty.
80071
80072 2005-10-01  Simon Josefsson  <jas@extundo.com>
80073
80074         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80075         and Darwin.
80076
80077         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80078         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80079         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80080         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80081         Check if struct addrinfo is declared.
80082
80083 2005-10-01  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80086         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80087         AI_* and EAI_* definitions.  Protect function declarations.
80088
80089 2005-10-01  Jim Meyering  <jim@meyering.net>
80090
80091         Sync from coreutils.
80092
80093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80094         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80095         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80097         in the inet and nsl libraries.  Required on Solaris 5.7.
80098
80099 2005-10-01  Jim Meyering  <jim@meyering.net>
80100
80101         Sync from coreutils.
80102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80103         in the inet and nsl libraries.  Required on Solaris 5.7.
80104
80105 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80106
80107         * lib/getdelim.c (getdelim): Remove unused variables.
80108
80109 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80112         so that the code works even with ancient cpp.  Portability problem
80113         with GCC 2.7.2.1 reported by Thomas M.Ott.
80114
80115 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * modules/regex (Depends-on): Add strcase.
80118
80119         * modules/gethostname (Licence): Change from GPL to LGPL, since
80120         gethostname.c is a trivial implementation of a standard library
80121         function.
80122         * modules/poll (License): Change from GPL to LGPL, since it's
80123         derived from LGPL code.
80124
80125 2005-09-27  Jim Meyering  <jim@meyering.net>
80126
80127         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80128         HAVE_CONFIG_H.
80129
80130         * lib/intprops.h (signed_type_or_expr__): Define.
80131         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80132         for unsigned types.
80133
80134 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         * lib/verify.h (verify_expr): Remove, replacing with:
80137         (verify_true): New macro that returns true instead of void.
80138         (verify_type__): Remove.
80139         (verify): Use verify_true rather than verify_type__.
80140
80141 2005-09-26  Bruno Haible  <bruno@clisp.org>
80142
80143         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80144         is necessary.
80145         (lib_SOURCES): Remove mbchar.c.
80146         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80147         (Files): Add m4/mbrtowc.m4.
80148         * modules/mbiter: Likewise.
80149         * modules/mbuiter: Likewise.
80150
80151 2005-09-26  Bruno Haible  <bruno@clisp.org>
80152
80153         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80154         compile mbchar.c if they are not both present.
80155         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80156         * m4/mbiter.m4 (gl_MBITER): Likewise.
80157         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80158         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80159         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80160
80161 2005-09-25  Jim Meyering  <jim@meyering.net>
80162
80163         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80164         also uses socklen_t.
80165
80166 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * lib/utimens.c (ENOSYS): Define if not already defined.
80169         (futimens): Support having a null PATH if the file descriptor
80170         is nonnegative.
80171
80172         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80173         Remove.
80174         (__attribute): Define to empty unless GCC 3.1 or later.
80175         This works around a core dump on OpenBSD 3.4, which has GCC
80176         2.95.3, which dumps core when given __attribute__(()).  It also
80177         simplifies other tests, since we really don't want to bother with
80178         worrying about which ancient version of GCC supported what.
80179         Original problem reported by Yoann Vandoorselaere, with part of
80180         the fix suggested by Derek Price.
80181
80182 2005-09-24  Jim Meyering  <jim@meyering.net>
80183
80184         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80185         so we can once again use a positive bitfield width of 1 -- now we
80186         don't have to explain why we were using a bitfield width of 2.
80187
80188 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80189
80190         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80191         and similarly for the other external symbols.  Problem reported
80192         by James Gallager.
80193
80194         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80195         bug reported by Jim Meyering.
80196
80197         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80199         not needed, since socklen is a prerequisite module.
80200
80201 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80204         Problem reported by Eric Blake.
80205         (getaddrinfo): Initialize se so that it's not garbage.
80206         Redo internal storage allocation so that it doesn't make unportable
80207         assumptions about alignment.
80208         Fix a memory leak.
80209
80210         * lib/utimens.c (futimens): Use futimesat if available.
80211         Prefer it to futimes since it doesn't have the futimes bug.
80212
80213         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80214         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80215         Instead, declare a function that returns a pointer to an array,
80216         and use verify_type__ to declare the size of the array.
80217         Problem and germ of a solution reported by Bruno Haible.
80218         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80219         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80220
80221 2005-09-23  Jim Meyering  <jim@meyering.net>
80222
80223         Sync from coreutils.
80224         Correct build failure (socklen_t not defined) on at least
80225         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80227
80228 2005-09-23  Jim Meyering  <jim@meyering.net>
80229
80230         * modules/getaddrinfo (Depends-on): Add socklen.
80231
80232 2005-09-23  Bruno Haible  <bruno@clisp.org>
80233
80234         * tests/test-verify.c: New file.
80235
80236 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         Sync from coreutils.
80239
80240         * modules/argmatch (Depends-on): Add verify.
80241         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80242         unistd-safer.
80243         * modules/save-cwd (Depends-on): Likewise.
80244
80245         * modules/openat (Files): Add lib/openat-die.c.
80246         (Depends-on): Remove error, exitfail.
80247         Add dirname.
80248
80249         * modules/verify: New file.
80250         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80251         with "verify" module.
80252
80253 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         Sync from coreutils.
80256
80257         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80258         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80259         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80260         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80261         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80262         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80263         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80264         Don't bother checking for string.h, stdlib.h, unistd.h.
80265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80266         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80267         module's job.
80268         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80269         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80270
80271         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80272         (gl_GETDATE): Use it.
80273
80274         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80275
80276 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         Sync from coreutils.
80279
80280         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80281         stat-time.h.
80282         * lib/argmatch.h: Include verify.h
80283         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80284         (ARGMATCH_ASSERT): Remove; unused.
80285         * lib/canonicalize.c: Assume STDC_HEADERS.
80286         * lib/exclude.c: Include "strcase.h".
80287         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80288         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80289         and stdio-safer.h.
80290         (getusershell): Call fopen, not fopen_safer.
80291         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80292         Do not include unistd-safer.h.
80293         (save_cwd): Don't call fd_safer; no longer needed
80294         now that we include fcntl--.h.
80295
80296         * lib/getdate.y (relative_time): New type.
80297         (RELATIVE_TIME_0): New constant.
80298         (parser_control): Use relative_time instead of doing it ourselves.
80299         (%union): Add new relative_time rel member.
80300         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80301         Now typeless.
80302         (relunit, relunit_snumber): Now of type rel.
80303         (zone, rel, relunit, get_date): Adjust to above changes.
80304
80305         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80306         Do not include unistd-safer.h.
80307         (getloadavg): Don't call fd_safer; no longer needed
80308         now that we include fcntl--.h.
80309
80310         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80311         (make_dir_parents): Treat ENOSYS like EEXIST.
80312
80313         Improve quality of diagnostics on restore_cwd failure.
80314         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80315         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80316         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80317         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80318         each time through the loop.  Do not diagnose restore_cwd failure;
80319         that is the caller's job (and perhaps the caller does not care).
80320
80321         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80322         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80323         If the file already exists but is not a directory, don't bother
80324         to try to make its parents.
80325         Close potential file descriptor leak if we can't chdir("/") (!).
80326         Don't always return true if chdir($PWD) fails; return true only
80327         if the requested action was done successfully (except for the
80328         chdir($PWD)).
80329         Don't log final directory unless we actually made it.
80330         Refactor to avoid duplicate code to fix up permissions.
80331         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80332
80333         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80334         to make it a bit faster and (I hope) clearer.
80335         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80336         Fix bug in formats like %2N.
80337
80338         * lib/verify.h: New file.
80339
80340 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80341
80342         Sync from coreutils.
80343         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80344
80345 2005-09-22  Jim Meyering  <jim@meyering.net>
80346
80347         Sync from coreutils.
80348
80349         * m4/lstat.m4 (gl_FUNC_LSTAT):
80350         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80351         Remove obsolete comment.
80352         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80353         * m4/xstrtod.m4: Likewise.
80354
80355         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80356
80357 2005-09-22  Jim Meyering  <jim@meyering.net>
80358
80359         Sync from coreutils.
80360
80361         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80362
80363         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80364         the .tm_year member, since otherwise gcc-4.0 would now warn about
80365         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80366
80367         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80368         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80369
80370         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80371         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80372         when run in a time zone for which daylight savings time is in effect
80373         for the starting date.
80374
80375         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80376         stop us from restricting permissions of just-created absolute-named
80377         directories.
80378         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80379         to restore initial working directory.
80380         * lib/mkdir-p.c (make_dir_parents): New parameter:
80381         different_working_dir, to tell caller if/when we change the working
80382         directory and are unable to return to the initial one.
80383         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80384         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80385         `return false'.  This fixes a bug introduced on 2004-07-30.
80386
80387         * lib/openat.c (fdopendir): Be sure to close the supplied
80388         file descriptor before returning.  This makes our replacement
80389         implementation a little closer to Solaris's, where fdopendir
80390         ties the file descriptor to the returned DIR* pointer.
80391         * lib/openat.c (unlinkat): New function.
80392         * lib/openat.h (unlinkat): Add prototype.
80393         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80394         (openat_restore_fail): Rename from openat_restore_die.
80395         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80396
80397         Provide an alternative to exiting immediately upon save_cwd or
80398         restore_cwd failure.  Now, an application can arrange e.g.,
80399         to perform a longjump in that case.
80400         * lib/openat.c: Include dirname.h.
80401         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80402         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80403         and openat_restore_die rather than calling error directly.
80404         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80405
80406         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80407         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80408         define.
80409
80410         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80411         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80412                             int utc, int nanoseconds);
80413         Background:
80414         date should not have to allocate a megabyte of virtual memory to
80415         handle a format argument like +%1048575T.  When implemented with
80416         strftime, it must allocate such a buffer, use strftime to fill it
80417         in, print it, then free it.
80418         With fprintftime, it simply prints everything and exits.
80419         With no need for memory allocation, that's one fewer way to fail.
80420         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80421         optional field width, not before, so we accept %9:z, not %:9z.
80422         (my_strftime): Be sure to use L_('x') for literals.
80423
80424         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80425         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80426         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80427         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80428         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80429         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80430         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80431         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80432         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80433         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80434         * lib/xgethostname.c, lib/xreadlink.c:
80435         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80436
80437         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80438         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80439         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80440         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80441         and don't include <sys/file.h>).
80442
80443 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80444
80445         Sync from coreutils.
80446
80447         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80448         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80449         [!LDAV_DONE]: Avoid unused variable warning.
80450
80451 2005-09-21  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/unicodeio.h (unicode_to_mb): New declaration.
80454
80455 2005-09-20  Derek Price  <derek@ximbiot.com>
80456
80457         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80458         getaddrinfo.h.
80459
80460 2005-09-20  Bruno Haible  <bruno@clisp.org>
80461
80462         * gnulib-tool: Remove trailing slashes from the values specified for
80463         --source-base, --m4-base, --tests-base, --aux-dir.
80464         Suggested by Simon Josefsson <jas@extundo.com>.
80465
80466 2005-09-20  Bruno Haible  <bruno@clisp.org>
80467
80468         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80469         func_modules_to_filelist, func_import, func_create_testdir): Make all
80470         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80471         change when gnulib-tool is invoked in a different locale.
80472
80473 2005-09-19  Simon Josefsson  <jas@extundo.com>
80474
80475         * m4/socklen.m4: Fix typo.
80476
80477 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80478
80479         Use a consistent style for including <config.h>.
80480         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80481         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80482         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80483         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80484         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80485         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80486         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80487         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80488         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80489         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80490         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80491         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80492         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80493         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80494         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80495         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80496         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80497         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80498         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80499         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80500         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80501         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80502         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80503         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80504         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80505         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80506         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80507         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80508         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80509         lib/xstrtoumax.c, lib/yesno.c:
80510         Standardize inclusion of config.h.
80511         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80512         lib/inttostr.h:  Removed inclusion of config.h from header files.
80513         * lib/inttostr.c:  Adjusted in-tree users.
80514         * lib/timespec.h: Remove superfluous warning to include config.h.
80515         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80516         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80517         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80518         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80519         config.h with HAVE_CONFIG_H.
80520
80521 2005-09-19  Jim Meyering  <jim@meyering.net>
80522
80523         * modules/pathmax (License): Change to LGPL.
80524
80525 2005-09-19  Derek Price  <derek@ximbiot.com>
80526
80527         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80528
80529 2005-09-19  Bruno Haible  <bruno@clisp.org>
80530
80531         * gnulib-tool (import): Provide default for --tests-base.
80532
80533 2005-09-19  Bruno Haible  <bruno@clisp.org>
80534
80535         * doc/quote.texi: New file, extracted from gnulib.texi.
80536         * doc/ctime.texi: New file, extracted from gnulib.texi.
80537         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80538         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80539         * doc/gnulib.texi: Include them.
80540
80541 2005-09-18  Bruno Haible  <bruno@clisp.org>
80542
80543         Portability fix.
80544         * gnulib-tool (func_readlink): New function.
80545         (func_ln_if_changed): Use it.
80546
80547 2005-09-18  Bruno Haible  <bruno@clisp.org>
80548
80549         * gnulib-tool: Support --with-tests also with --import.
80550         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80551         (func_import): Use variables $testsbase and $inctests. Emit a
80552         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80553         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80554         SUBDIRS += $testsdir.
80555         (func_create_testdir): Update.
80556
80557 2005-09-18  Bruno Haible  <bruno@clisp.org>
80558
80559         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80560         instead of $dry_run.
80561         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80562         (func_ln_if_changed): Don't handle dry-run here.
80563         (func_import): In dry-run mode, detect more precisely which actions
80564         would be performed, and don't use "...ing" verbs.
80565
80566 2005-09-18  Bruno Haible  <bruno@clisp.org>
80567
80568         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80569         (func_import): Use join on two temporary files instead of three nested
80570         loops, in order to determine which files are new or old.
80571
80572 2005-09-18  Bruno Haible  <bruno@clisp.org>
80573
80574         * gnulib-tool (func_import): Comment out code that spits out the
80575         new files with --dry-run.
80576
80577 2005-09-18  Bruno Haible  <bruno@clisp.org>
80578
80579         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80580
80581 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         * lib/stat-time.h: New file.
80584         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80585         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80586         in a different way.
80587         (timespec_cmp): New function.
80588         * lib/utimecmp.c: Include stat-time.h.
80589         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80590         members exist, not on the obsolescent ST_MTIM_NSEC.
80591         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80592
80593 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80594
80595         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80596
80597 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80598
80599         * MODULES.html.sh (File system functions): Add stat-time.
80600         * modules/stat-time: New file.
80601         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80602         is now done in a different way, by the stat-time module.
80603         * modules/utimecmp (Depends-on): Add stat-time.
80604
80605 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         * m4/st_mtim.m4: Remove.  Superseded by...
80608         * m4/stat-time.m4: New file.
80609         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80610         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80611
80612 2005-09-15  Derek Price  <derek@ximbiot.com>
80613
80614         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80615
80616 2005-09-15  Derek Price  <derek@ximbiot.com>
80617
80618         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80619         * lib/regex_internal.c: Ditto, using this...
80620         (__GNUC_PREREQ): ...new macro.
80621         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80622         using...
80623         (__GNUC_PREREQ): ...this new macro.
80624
80625         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80626
80627 2005-09-15  Derek Price  <derek@ximbiot.com>
80628             Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80631         changes, consolidating in...
80632         * lib/regex_internal.h: ...this file.
80633
80634 2005-09-13  Jim Meyering  <jim@meyering.net>
80635
80636         * lib/canon-host.c: Filter through gnu indent and reword comments
80637         slightly.
80638         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80639
80640 2005-09-13  Derek Price  <derek@ximbiot.com>
80641
80642         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80643         failure.
80644         Reported by Jim Meyering  <jim@meyering.net>.
80645
80646 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80647
80648         * lib/base64.c: Typo.
80649         (base64_encode): Put b64str in initialized data section.
80650
80651 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         Merge glibc and coreutils changes into gnulib, plus a few
80654         extra fixes.
80655         * lib/md5.c: Use #error rather than a string.
80656         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80657         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80658         (__attribute__): Define to empty for non recent-GCC.
80659         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80660         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80661         Renamed from their non-__ counterparts, with new macros replacing
80662         them if not _LIBC.  Add __THROW attribute.
80663         (rol): Remove.
80664         (struct md5_ctx): Align buffer if using GCC.
80665         * lib/sha1.h (struct sha1_ctx): Likewise.
80666         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80667         The old name was backwards.
80668         (NOTSWAP): Remove; not used.
80669         (rol): New macro, moved here from md5.h.
80670         (sha1_process_block): Remove a FIXME that doesn't make sense.
80671
80672 2005-09-12  Derek Price  <derek@ximbiot.com>
80673
80674         Return usable errors from canon-host.
80675         * lib/canon-host.h: New file.
80676         * lib/canon-host.c (canon_host): Wrap...
80677         (canon_host_r): ...this new function, which now relies exclusively on
80678         getaddrinfo.
80679         (ch_strerror): New function.
80680         (last_cherror): New global.
80681         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80682         interface.
80683         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80684         void *.
80685         (freeaddrinfo): Free ai->ai_canonname when set.
80686
80687 2005-09-12  Derek Price  <derek@ximbiot.com>
80688
80689         Make canon-host require getaddrinfo.
80690         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80691         AC_LIBSOURCE canon-host.h.  Call...
80692         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80693         gl_GETADDRINFO.
80694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80695
80696 2005-09-12  Derek Price  <derek@ximbiot.com>
80697
80698         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80699         LGPL.
80700         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80701
80702 2005-09-12  Derek Price  <derek@ximbiot.com>
80703
80704         * lib/gai_strerror.c: Include config.h when available.  Include
80705         getaddrinfo.h before other headers to test interface.
80706         Reported by Larry Jones <lawrence.jones@ugs.com>.
80707
80708 2005-09-12  Derek Price  <derek@ximbiot.com>
80709             Paul Eggert  <eggert@cs.ucla.edu>
80710
80711         * modules/glob (Files): Add glob-libc.h.
80712
80713 2005-09-12  Derek Price  <derek@ximbiot.com>
80714             Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80717         glob_.h, glob-libc.h.
80718         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80719
80720 2005-09-12  Derek Price  <derek@ximbiot.com>
80721             Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80724         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80725         protecting things that should be done only in gnulib contexts.
80726         * lib/glob_.h: New file, containing only the glob things needed for
80727         gnulib.
80728         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80729         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80730         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80731         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80732         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80733         and to respect the namespace rules better.
80734
80735 2005-09-08  Simon Josefsson  <jas@extundo.com>
80736
80737         * modules/socklen: New file.
80738
80739 2005-09-08  Simon Josefsson  <jas@extundo.com>
80740
80741         * m4/socklen.m4: New file.
80742
80743 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * modules/utimens (Files): Add m4/utimbuf.m4, since
80746         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80747         Reported by Sergey Poznyakoff.
80748
80749 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80750
80751         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80752         definitions, since that's the preferred style in glibc.
80753         Fix a minor spacing issue, and update copyright notice to match
80754         glibc's.
80755
80756 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80759
80760 2005-09-06  Simon Josefsson  <jas@extundo.com>
80761
80762         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80763         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80764
80765 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80766
80767         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80768         warning.
80769
80770 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80771
80772         * config/srclist.txt: Add glibc bug 1302.
80773
80774 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         Change bitset word type from unsigned int to unsigned long int,
80777         as this has better performance on typical 64-bit hosts.
80778         Port bitset code to hosts with unusual word sizes.
80779         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80780         (build_collating_symbol):
80781         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80782         argument is a bitset.  This is merely a style issue, but it makes
80783         it clearer that an entire array is expected.
80784         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80785         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80786         Port to the case where bitset_word is not the same as unsigned int.
80787         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80788         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80789         Likewise.
80790         * lib/regexec.c (check_dst_limits_calc_pos_1,
80791         check_subexp_matching_top):
80792         (build_trtable, group_nodes_into_DFAstates):
80793         Likewise.
80794         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80795         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80796         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80797         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80798         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80799         * lib/regcomp.c (optimize_subexps, lower_subexp):
80800         Work even if bitset_word has holes in its bitwise representation.
80801         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80802         * lib/regexec.c (check_dst_limits_calc_pos_1,
80803         check_subexp_matching_top):
80804         Likewise.
80805         * lib/regex_internal.c (re_string_reconstruct):
80806         Don't assume UCHAR_MAX == 255.
80807         * lib/regex_internal.h (bitset_set_all): Likewise.
80808         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80809         All uses changed.
80810         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80811         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80812         All uses changed.
80813         (BITSET_WORD_MAX): New macro.
80814         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80815         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80816         (bitset_empty, bitset_copy):
80817         Prefer sizeof (bitset) to multiplying it out ourselves.
80818         (bitset_not_merge): Remove; unused.
80819         (bitset_contain): Return bool, not unsigned int with one bit on.
80820         All callers changed.
80821         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80822         alignment than re_node_set; do this by defining a new internal
80823         type struct dests_alloc and using it to allocate memory.
80824
80825 2005-09-05  Bruno Haible  <bruno@clisp.org>
80826
80827         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80828         links.
80829
80830 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80831
80832         * modules/size_max (Makefile.am): Add size_max.h
80833
80834 2005-09-04  Derek Price  <derek@ximbiot.com>
80835
80836         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80837
80838 2005-09-03  Simon Josefsson  <jas@extundo.com>
80839
80840         * gnulib-tool: Fix typo.
80841
80842 2005-09-03  Simon Josefsson  <jas@extundo.com>
80843
80844         * config/srclist.txt: Add glibc bug 1293.
80845
80846 2005-09-03  Derek Price  <derek@ximbiot.com>
80847
80848         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80849         From Larry Jones <lawrence.jones@ugs.com>.
80850
80851 2005-09-02  Simon Josefsson  <jas@extundo.com>
80852
80853         * modules/socklen: New file.
80854
80855 2005-09-02  Simon Josefsson  <jas@extundo.com>
80856
80857         * modules/havelib: New module.
80858
80859         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80860         Use havelib.
80861
80862 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80863
80864         Check for arithmetic overflow when calculating sizes, to prevent
80865         some buffer-overflow issues.  These patches are conservative, in the
80866         sense that when I couldn't determine whether an overflow was possible,
80867         I inserted a run-time check.
80868         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80869         macros.
80870         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80871         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80872         (re_xnrealloc, re_x2nrealloc): New inline functions.
80873         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80874         parse_bracket_exp):
80875         (build_equiv_class, build_charclass): Check for arithmetic overflow
80876         in size expression calculations.
80877         * lib/regex_internal.c (re_string_realloc_buffers):
80878         (build_wcs_upper_buffer, re_node_set_add_intersect):
80879         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80880         (re_dfa_add_node, register_state): Likewise.
80881         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80882         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80883         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80884         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80885
80886 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80889         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80890
80891 2005-09-02  Bruno Haible  <bruno@clisp.org>
80892
80893         Support for lib vs. lib64 distinction on biarch platforms.
80894         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80895         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80897
80898 2005-09-02  Bruno Haible  <bruno@clisp.org>
80899
80900         * gnulib-tool (import): In the other first-use case, provide defaults
80901         as well.
80902
80903 2005-09-02  Bruno Haible  <bruno@clisp.org>
80904
80905         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80906         patches not yet found in the latest gettext release.
80907
80908 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80909
80910         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80911         to avoid a collision with bits/local_lim.h in glibc.
80912         All uses changed.  Problem reported by Dmitry V. Levin in
80913         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80914
80915         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80916         bugs in int versus size_t comparisons.
80917         (re_string_context_at): Fix bug where the code assumed that
80918         Idx is signed.
80919
80920         Use bool where appropriate.
80921         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80922         All callers changed.
80923         (calc_eclosure_iter): Likewise, for ROOT arg.
80924         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80925         (build_charclass_op): Likewise, for NON_MATCH arg.
80926         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80927         (re_string_construct_common): Likewise, for ICASE arg.
80928         * lib/regexec.c (re_search_2_stub, re_search_stub):
80929         Likewise, for RET_LEN arg.
80930         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80931         (set_regs): Likewise, for FL_BACKTRACK arg.
80932         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80933         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80934         (calc_eclosure_iter, parse_bracket_exp):
80935         Use bool for internal variables that are booleans.
80936         * lib/regexec.c (re_search_internal, check_matching,
80937         proceed_next_node):
80938         (set_regs, build_sifted_states, sift_states_bkref):
80939         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80940         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80941         (find_collation_sequence_value):
80942         Likewise.
80943         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80944         (re_node_set_compare):
80945         Return bool, not int. All callers changed.
80946         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80947         (build_trtable, check_node_accept): Likewise.
80948         * lib/regex_internal.h: Include stdbool.h.
80949
80950         Fix bugs uncovered when converting to bool.
80951         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80952         failure instead of charging ahead blindly.
80953         * lib/regex_internal.c (register_state): Likewise.
80954         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80955         for freeing internal storage.
80956         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80957         bitset pieces used as boolean, to avoid undefined behavior
80958         on hosts that do int overflow checking.
80959
80960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * config/srclist.txt: Add glibc bugs 1285-1287.
80963
80964 2005-09-01  Jim Meyering  <jim@meyering.net>
80965
80966         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80967         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80968         Require gl_STAT_MACROS, too.
80969
80970 2005-09-01  Bruno Haible  <bruno@clisp.org>
80971
80972         * gnulib-tool (import): In the first-use case, provide defaults.
80973
80974 2005-09-01  Bruno Haible  <bruno@clisp.org>
80975
80976         * gnulib-tool (func_import): Remove the .tmp files.
80977
80978 2005-09-01  Bruno Haible  <bruno@clisp.org>
80979
80980         * gnulib-tool (func_import): Fix handling of symbolic links.
80981
80982 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80985         old glibc regex code mishandles strings longer than 2**31 bytes.
80986         This patch fixes this when the regex code is used in gnulib
80987         (i.e., outside glibc).
80988
80989         This patch should not affect the use of the regex code inside
80990         glibc.  No doubt this problem also needs to be handled for glibc
80991         as well, but the result will be an incompatible change to the
80992         glibc ABI, and the old ABI will have to be supported too.  That
80993         can be the the subject for another patch.
80994
80995         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80996         governing whether the rest of this patch is active.  By default,
80997         the macro is disabled and the patch has no effect.
80998         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80999         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81000         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81001         (re_match_2, re_set_registers): Use the new types.
81002         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81003         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81004         New macros.
81005         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81006         (re_string_context_at, bin_tree_t, re_dfastate_t):
81007         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81008         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81009         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81010         (re_string_char_size_at, re_string_wchar_at):
81011         (re_string_elem_size_at):
81012         Use the new types and macros to port to 64-bit hosts.
81013         Use unsigned types for internal values, so that the code
81014         mostly works even for arrays larger than SSIZE_MAX.
81015         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81016         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81017         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81018         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81019         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81020         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81021         (calc_inveclosure, parse_dup_op, build_range_exp):
81022         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81023         (fetch_number, create_token_tree, mark_opt_subexp):
81024         Likewise.
81025         * lib/regex_internal.c (re_string_construct_common,
81026         create_ci_newstate):
81027         (create_cd_newstate, re_string_allocate, re_string_construct):
81028         (re_string_realloc_buffers, build_wcs_upper_buffer):
81029         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81030         (re_string_reconstruct, re_string_peek_byte_case):
81031         (re_string_fetch_byte_case, re_string_context_at):
81032         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81033         (re_node_set_init_copy, re_node_set_add_intersect):
81034         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81035         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81036         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81037         (re_acquire_state, re_acquire_state_context, register_state):
81038         Likewise.
81039         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81040         search_cur_bkref_entry):
81041         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81042         (re_search_internal, re_search_2_stub, re_search_stub)
81043         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81044         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81045         (update_cur_sifted_state, check_dst_limits):
81046         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81047         (check_subexp_limits, sift_states_bkref, merge_state_array):
81048         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81049         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81050         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81051         (expand_bkref_cache, check_node_accept_bytes):
81052         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81053         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81054         (acquire_init_state_context, check_halt_node_context):
81055         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81056         (sift_states_backward, clean_state_log_if_needed):
81057         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81058         (find_recover_state, transit_state_sb, transit_state_mb):
81059         (transit_state_bkref, build_trtable, match_ctx_clean):
81060         Likewise.
81061         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81062         to work around an assumption that REG_MISSING is negative.
81063
81064         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81065         (seek_collating_symbol_entry) [defined _LIBC]:
81066         (lookup_collation_sequence_value) [defined _LIBC]:
81067         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81068         Use prototypes rather than old-style function definitions.
81069         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81070         (transit_state_sb) [0]:
81071         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81072
81073         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81074         rm_eo.
81075
81076         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81077         (optimize_subexps, lower_subexp):
81078         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81079         since the signed shift might overflow.  Use 1u<<31 instead.
81080         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81081         Likewise.
81082         * lib/regexec.c (check_dst_limits_calc_pos_1,
81083         check_subexp_matching_top): Likewise.
81084
81085         * lib/regcomp.c (optimize_subexps, lower_subexp):
81086         Use CHAR_BIT rather than 8, for clarity.
81087         * lib/regexec.c (check_dst_limits_calc_pos_1):
81088         (check_subexp_matching_top): Likewise.
81089         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81090         have to worry about portability issues when shifting it left.
81091         Remove no-longer-needed test for table_size > 0.
81092         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81093         in a word, as the resulting behavior is undefined.
81094         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81095         in one case, a <= should have been an <, and in another case the
81096         whole test was missing.
81097         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81098         the standard name CHAR_BIT.
81099         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81100         this is not true on one's complement and signed-magnitude hosts.
81101
81102         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81103         next_last_offset.
81104         (struct re_dfa_t): Remove unused member states_alloc.
81105         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81106
81107 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81110         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81111         and large-file glibc and in 32-bit large-file Solaris.
81112
81113 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81116         lengths fit in regoff_t; this isn't true if regoff_t is the same
81117         width as size_t.
81118         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81119         (= START + RANGE) instead of RANGE.  This avoids overflow
81120         problems when regoff_t is the same width as size_t.
81121         All callers changed.
81122         (re_search_2_stub): Check for overflow when adding the
81123         sizes of the two strings.
81124         (re_search_stub): Check for overflow when adding START
81125         to RANGE; if it occurs, substitute the extreme value.
81126
81127 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81128
81129         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81130
81131 2005-08-31  Jim Meyering  <jim@meyering.net>
81132
81133         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81134         a pointer-to-const.
81135         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81136         (register_state): Likewise.
81137         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81138         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81139         (group_nodes_into_DFAstates): Likewise.
81140
81141 2005-08-31  Jim Meyering  <jim@meyering.net>
81142
81143         * check-module: Add a FIXME comment.
81144
81145 2005-08-31  Eric Blake  <ebb9@byu.net>
81146
81147         * modules/unistd-safer (Files): Add unistd--.h.
81148         * modules/stdio-safer (Files): Add stdio--.h.
81149
81150 2005-08-31  Derek Price  <derek@ximbiot.com>
81151
81152         * lib/getdelim.c (getdelim): Return EOF on EOF.
81153         Reported by Larry Jones <lawrence.jones@ugs.com>.
81154
81155 2005-08-31  Bruno Haible  <bruno@clisp.org>
81156
81157         Avoid unnecessary diffs in the generated lib/Makefile.am.
81158         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81159         the generated files.
81160         (func_import): Don't set cmd.
81161
81162 2005-08-31  Bruno Haible  <bruno@clisp.org>
81163
81164         * lib/strstr.c: Include <stddef.h>, for NULL.
81165         * lib/strcasestr.c: Likewise.
81166         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81167
81168 2005-08-31  Bruno Haible  <bruno@clisp.org>
81169
81170         * gnulib-tool: New option --macro-prefix.
81171         (func_import): Use macro_prefix.
81172         (import): Handle option --macro-prefix.
81173
81174 2005-08-31  Bruno Haible  <bruno@clisp.org>
81175
81176         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81177         Also use new variables cached_lgpl, cached_libtool.
81178
81179 2005-08-31  Bruno Haible  <bruno@clisp.org>
81180
81181         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81182         always instantiating them.
81183
81184 2005-08-31  Bruno Haible  <bruno@clisp.org>
81185
81186         * gnulib-tool (func_import): Read the previous cached settings
81187         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81188         earlier added by gnulib but are now dropped. Warn when a gnulib file
81189         overwrites a non-gnulib file.
81190
81191 2005-08-31  Bruno Haible  <bruno@clisp.org>
81192
81193         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81194         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81195         projects that don't keep autogenerated files in CVS. Put into
81196         actioncmd only the specified modules, not the transitive closure.
81197
81198 2005-08-31  Bruno Haible  <bruno@clisp.org>
81199
81200         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81201         Create directories that shall be filled.
81202         (import): Don't look for gl_* macros in configure.ac. Recurse across
81203         all directories containing a gnulib-cache.m4 files, if meaningful.
81204
81205 2005-08-31  Bruno Haible  <bruno@clisp.org>
81206
81207         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81208         (import): Set seen_libtool when we see gl_LIBTOOL.
81209
81210 2005-08-31  Bruno Haible  <bruno@clisp.org>
81211
81212         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81213         declaration macro definitions from generated gnulib.m4.
81214
81215 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81216
81217         * lib/iconvme.h: Add prototype for iconv_alloc.
81218
81219 2005-08-29  Simon Josefsson  <jas@extundo.com>
81220
81221         * lib/iconvme.c: Fix errno.
81222
81223 2005-08-29  Bruno Haible  <bruno@clisp.org>
81224
81225         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81226         that it works when the directory contains spaces.
81227
81228 2005-08-29  Bruno Haible  <bruno@clisp.org>
81229
81230         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81231
81232 2005-08-29  Bruno Haible  <bruno@clisp.org>
81233
81234         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81235         Emit more advice.
81236
81237 2005-08-29  Bruno Haible  <bruno@clisp.org>
81238         and Stepan Kasal  <kasal@ucw.cz>
81239
81240         * check-module: If more parameters are given, check each of them
81241         separately; add more exceptions, as noted by Jim Meyering.
81242         (check_module): New procedure.
81243         (%exempt_header): Now contains all exceptions.
81244
81245 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81246
81247         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81248
81249 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81250
81251         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81252
81253 2005-08-28  Bruno Haible  <bruno@clisp.org>
81254
81255         * m4/gnulib-tool.m4: New file.
81256
81257 2005-08-27  Jim Meyering  <jim@meyering.net>
81258
81259         * modules/unistd-safer (Files): Add pipe-safer.c.
81260         * modules/fcntl-safer (Files): Add creat-safer.c.
81261
81262 2005-08-27  Jim Meyering  <jim@meyering.net>
81263
81264         * m4/stdlib-safer.m4: New file.  From coreutils.
81265         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81267         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81268         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81269         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81270
81271 2005-08-27  Jim Meyering  <jim@meyering.net>
81272
81273         * lib/fopen-safer.c: Merge minor changes from coreutils.
81274         * lib/dup-safer.c: Likewise.
81275         * lib/fd-safer.c: Likewise.
81276
81277         Merge from coreutils.
81278         * lib/stdio--.h: New file.
81279         * lib/stdlib--.h: New file.
81280         * lib/mkstemp-safer.c: New file.
81281
81282         GNU tar needs these.
81283         * lib/pipe-safer.c: New file.
81284         * lib/creat-safer.c: New file.
81285         * lib/fcntl--.h (creat): Define to creat_safer.
81286         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81287         * lib/unistd--.h (pipe): Define to pipe_safer.
81288         * lib/unistd-safer.h: Declare pipe_safer.
81289
81290 2005-08-26  Simon Josefsson  <jas@extundo.com>
81291
81292         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81293         Haible <bruno@clisp.org>.
81294
81295 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81296
81297         * lib/regex_internal.h: Remove all references to
81298         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81299         or better.
81300         (bitset_not, bitset_merge, bitset_not_merge):
81301         (bitset_mask, re_string_allocate, re_string_construct):
81302         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81303         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81304         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81305         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81306         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81307         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81308         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81309         (re_acquire_state_context):
81310         Remove unnecessary forward decls.
81311         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81312         Put __attribute at function definition,
81313         now that the function decl has been removed.
81314         * lib/regex_internal.c (re_string_peek_byte_case):
81315         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81316         Likewise.
81317
81318 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81319
81320         * m4/regex.m4: Add AC_PREREQ(2.50).
81321         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81322
81323 2005-08-25  Simon Josefsson  <jas@extundo.com>
81324
81325         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81326         __fsetlocking.
81327
81328 2005-08-25  Simon Josefsson  <jas@extundo.com>
81329
81330         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81331         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81332         GLIBC specific code.
81333
81334 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81335
81336         Make regex safe for g++.  This fixes one real bug (an "err"
81337         that should have been "*err").  g++ problem reported by
81338         Sam Steingold.
81339         * lib/regex_internal.h (re_calloc): New macro, consistent with
81340         re_malloc etc.  All callers of calloc changed to use re_calloc.
81341         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81342         not int.  All callers changed.
81343         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81344         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81345         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81346         (find_recover_state): Change "err" to "*err"; this fixes what
81347         appears to be a real bug.
81348         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81349         versus int.
81350
81351 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * modules/regex (Depends-on): Add malloc, since the code
81354         assumes that !malloc(0) means failure.
81355
81356 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81359
81360         alloca modernization/simplification for regex.
81361         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81362         needs to be at the start of the file, and can be moved into
81363         regex_internal.h and simplified.
81364         * lib/regex_internal.h: Include <alloca.h>.
81365         (__libc_use_alloca) [!defined _LIBC]: New macro.
81366         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81367         now works outside glibc.
81368
81369 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * config/srclist.txt: Add glibc bugs 1241, 1245.
81372
81373 2005-08-25  Jim Meyering  <jim@meyering.net>
81374
81375         * lib/open-safer.c: Include <config.h>.
81376         Otherwise, we'd lose LARGEFILE support in any file using
81377         e.g. "fcntl--.h"
81378
81379 2005-08-25  Bruno Haible  <bruno@clisp.org>
81380
81381         * m4/minmax.m4: Require autoconf 2.52.
81382         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81383         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81384         alternatives of translit over the alphabet.
81385         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81386
81387 2005-08-24  Simon Josefsson  <jas@extundo.com>
81388
81389         * tests/test-getpass.c: New file.
81390
81391 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81392
81393         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81394         for GNU regex features.
81395
81396 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81399         * lib/regex.h (regerror): Likewise.
81400
81401         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81402         requires this.  (The code never needed it.)
81403
81404         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81405         All uses of recently-renamed identifiers changed to use the new,
81406         POSIX-compliant names.  The code will build and run just fine
81407         without these changes, but it's better to eat our own dog food
81408         and use the standard-conforming names.
81409
81410         * lib/regex.h: Fix a multitude of POSIX name space violations.
81411         These changes have an effect only for programs that define
81412         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81413         do not change anything for programs compiled in the normal way.
81414         Also, there is no effect on the ABI.
81415
81416         (_REGEX_SOURCE): New macro.
81417         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81418         defined and _GNU_SOURCE is not; this fixes a name space violation.
81419
81420         Rename the following macros to obey POSIX requirements.
81421         The old names are still visible as macros if _REGEX_SOURCE is defined.
81422         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81423         RE_BACKSLASH_ESCAPE_IN_LISTS.
81424         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81425         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81426         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81427         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81428         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81429         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81430         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81431         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81432         (REG_INTERVALS): renamed from RE_INTERVALS.
81433         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81434         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81435         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81436         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81437         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81438         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81439         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81440         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81441         RE_UNMATCHED_RIGHT_PAREN_ORD.
81442         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81443         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81444         (REG_DEBUG): renamed from RE_DEBUG.
81445         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81446         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81447         unusual, since we can't clash with the POSIX REG_ICASE.
81448         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81449         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81450         (REG_NO_SUB): renamed from RE_NO_SUB.
81451         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81452         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81453         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81454         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81455         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81456         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81457         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81458         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81459         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81460         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81461         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81462         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81463         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81464         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81465         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81466         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81467         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81468         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81469         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81470         (REG_FIXED): Renamed from REGS_FIXED.
81471         (REG_NREGS): Renamed from RE_NREGS.
81472
81473         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81474         of other REG_* macros, since POSIX says the user is allowed to
81475         #undef these macros selectively.
81476
81477         (reg_errcode_t): Update comment stating what other tables need
81478         to be consistent.
81479
81480         Rename the following enum values to obey POSIX requirements.
81481         The old names are still visible as macros.
81482         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81483         is not defined, since GNU is supposed to be a superset of POSIX as
81484         much as possible, and since we want reg_errcode_t to be a signed
81485         type for implementation consistency.
81486         (_REG_NOERROR): Renamed from REG_NOERROR.
81487         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81488         (_REG_BADPAT): Renamed from REG_BADPAT.
81489         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81490         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81491         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81492         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81493         (_REG_EBRACK): Renamed from REG_EBRACK.
81494         (_REG_EPAREN): Renamed from REG_EPAREN.
81495         (_REG_EBRACE): Renamed from REG_EBRACE.
81496         (_REG_BADBR): Renamed from REG_BADBR.
81497         (_REG_ERANGE): Renamed from REG_ERANGE.
81498         (_REG_ESPACE): Renamed from REG_ESPACE.
81499         (_REG_BADRPT): Renamed from REG_BADRPT.
81500         (_REG_EEND): Renamed from REG_EEND.
81501         (_REG_ESIZE): Renamed from REG_ESIZE.
81502         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81503         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81504         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81505         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81506         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81507
81508         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81509         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81510         changed.  But support the old name if the new one is not defined
81511         and if _REGEX_SOURCE.
81512
81513         Change the following member names in struct re_pattern_buffer.
81514         The old names are still supported if !_REGEX_SOURCE.
81515         The new names are always supported, regardless of _REGEX_SOURCE.
81516         (re_buffer): Renamed from buffer.
81517         (re_allocated): Renamed from allocated.
81518         (re_used): Renamed from used.
81519         (re_syntax): Renamed from syntax.
81520         (re_fastmap): Renamed from fastmap.
81521         (re_translate): Renamed from translate.
81522         (re_can_be_null): Renamed from can_be_null.
81523         (re_regs_allocated): Renamed from regs_allocated.
81524         (re_fastmap_accurate): Renamed from fastmap_accurate.
81525         (re_no_sub): Renamed from no_sub.
81526         (re_not_bol): Renamed from not_bol.
81527         (re_not_eol): Renamed from not_eol.
81528         (re_newline_anchor): Renamed from newline_anchor.
81529
81530         Change the following member names in struct re_registers.
81531         The old names are still supported if !_REGEX_SOURCE.
81532         The new names are always supported, regardless of _REGEX_SOURCE.
81533         (rm_num_regs): Renamed from num_regs.
81534         (rm_start): Renamed from start.
81535         (rm_end): Renamed from end.
81536
81537         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81538         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81539         Prepend __ to parameter names.
81540
81541         Undo yesterday's changes.
81542
81543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81544
81545         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81546         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81547         lib/regex.c.
81548
81549 2005-08-24  Jim Meyering  <jim@meyering.net>
81550
81551         Sync from coreutils.
81552         * m4/fcntl-safer.m4: New file.
81553
81554         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81555         and object files for this module.
81556
81557 2005-08-24  Jim Meyering  <jim@meyering.net>
81558
81559         Sync from coreutils.
81560         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81561
81562 2005-08-24  Jim Meyering  <jim@meyering.net>
81563
81564         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81565         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81566
81567 2005-08-24  Jim Meyering  <jim@meyering.net>
81568
81569         * modules/fcntl-safer: New module.
81570         * modules/fts (Depends-on): Add fcntl-safer.
81571         * MODULES.html.sh (File descriptor based Input/Output):
81572         Add fcntl-safer.
81573
81574 2005-08-24  Bruno Haible  <bruno@clisp.org>
81575
81576         Support for unit test modules.
81577         * modules/README: Mention tests modules.
81578         * modules/TEMPLATE-TESTS: New file.
81579         * gnulib-tool: New options --extract-tests-module, --with-tests and
81580         --tests-base (unused for the moment).
81581         (testsbase, inctests): New variables.
81582         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81583         (func_verify_module): Exclude TEMPLATE-TESTS.
81584         (func_verify_nontests_module, func_verify_tests_module): New functions.
81585         (func_get_dependencies): Add implicit dependency for tests modules.
81586         (func_get_tests_module): New function.
81587         (func_modules_transitive_closure): When --with-tests was specified,
81588         include the unit tests as well, unless explicitly avoided.
81589         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81590         (func_emit_tests_Makefile_am): New function.
81591         (func_create_testdir): When --with-tests was specified, emit a
81592         tests/ directory.
81593         * MODULES.html.sh (Future developments): Update.
81594
81595 2005-08-24  Bruno Haible  <bruno@clisp.org>
81596
81597         * modules/tls-tests: New file.
81598         * tests/test-tls.c: New file, from GNU gettext.
81599
81600 2005-08-24  Bruno Haible  <bruno@clisp.org>
81601
81602         * modules/lock-tests: New file.
81603         * tests/test-lock.c: New file, from GNU gettext.
81604
81605 2005-08-24  Bruno Haible  <bruno@clisp.org>
81606
81607         * lib/lock.h: Add multiple inclusion guard.
81608         * lib/tls.h: Add multiple inclusion guard.
81609
81610 2005-08-24  Bruno Haible  <bruno@clisp.org>
81611
81612         * gnulib-tool: Add support for the --aux-dir option to
81613         --create-testdir, --create-megatestdir, --test, --megatest.
81614         (func_create_testdir, func_create_megatestdir): Optionally emit a
81615         AC_CONFIG_AUX_DIR directive.
81616         (create-testdir, create-megatestdir, test, megatest): Provide a
81617         default value for $auxdir.
81618
81619 2005-08-24  Bruno Haible  <bruno@clisp.org>
81620
81621         * gnulib-tool (import): Use compound statement instead of subshell
81622         where possible.
81623
81624 2005-08-24  Bruno Haible  <bruno@clisp.org>
81625
81626         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81627
81628 2005-08-24  Bruno Haible  <bruno@clisp.org>
81629
81630         * gnulib-tool (func_version): Update.
81631
81632 2005-08-24  Bruno Haible  <bruno@clisp.org>
81633
81634         * gnulib-tool (func_import, func_create_testdir,
81635         func_create_megatestdir): Quote all autoconf macro arguments.
81636
81637 2005-08-24  Bruno Haible  <bruno@clisp.org>
81638
81639         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81640         option --force, because --force causes the aclocal.m4 of each
81641         subdirectory to be newer than the corresponding config.h.in.
81642
81643 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81646         All contents moved to gl_REGEX.
81647         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81648         assume that it does.
81649
81650 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81651
81652         * lib/regex.h (REG_NOSYS)
81653         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81654         Define, since POSIX requires it as of 2001.
81655         (_REG_ENOSYS)
81656         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81657         New private symbol, used to keep the enum signed in all cases.
81658         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81659         Youngman in
81660         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81661
81662         * lib/regex_internal.c (re_string_skip_chars, register_state):
81663         (calc_state_hash):
81664         Remove forward decls; no longer needed now that we use prototypes.
81665         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81666         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81667         (clean_state_log_if_needed): Likewise.
81668
81669 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * config/srclist.txt: Add glibc bugs 1231-1233.
81672
81673 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81674
81675         Fix problems reported by Sam Steingold in
81676         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81677         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81678         assumed that reg_errcode_t is a signed type, which is not
81679         necessarily true if _XOPEN_SOURCE is not defined.
81680         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81681         since some compilers warn about it otherwise.
81682
81683 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81684
81685         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81686         (init_word_char, create_initial_state, duplicate_node_closure):
81687         (fetch_token, peek_token_bracket, build_range_exp):
81688         (build_collating_symbol): Remove forward decls; no longer needed
81689         now that we use prototypes.
81690
81691         * lib/regcomp.c:
81692         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81693         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81694         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81695         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81696         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81697         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81698         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81699         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81700         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81701         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81702         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81703         (build_charclass, build_charclass_op, fetch_number, create_tree):
81704         (create_token_tree, mark_opt_subexp, duplicate_tree):
81705         Use prototypes rather than old-style definitions.
81706
81707         * lib/regex_internal.c:
81708         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81709         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81710         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81711         (re_string_reconstruct, re_string_peek_byte_case):
81712         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81713         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81714         (re_node_set_init_copy, re_node_set_add_intersect):
81715         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81716         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81717         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81718         (re_acquire_state, re_acquire_state_context, register_state):
81719         (create_ci_newstate, create_cd_newstate, free_state):
81720         Likewise.
81721         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81722         re_search_2):
81723         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81724         (re_search_internal, prune_impossible_nodes):
81725         (acquire_init_state_context, check_matching, static):
81726         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81727         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81728         (update_regs, sift_states_backward, build_sifted_states):
81729         (clean_state_log_if_needed, merge_state_array):
81730         (update_cur_sifted_state, add_epsilon_src_nodes):
81731         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81732         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81733         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81734         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81735         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81736         (check_arrival, check_arrival_add_next_nodes):
81737         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81738         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81739         (check_node_accept_bytes, check_node_accept, extend_buffers):
81740         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81741         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81742         (sift_ctx_init):
81743         Likewise.
81744
81745         * lib/regex_internal.h:
81746         (re_string_allocate, re_string_construct, re_string_reconstruct):
81747         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81748         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81749         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81750         (re_string_context_at, re_string_peek_byte_case):
81751         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81752         is defined, since we now use prototypes always.
81753
81754         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81755         C89 or better.  All uses removed.
81756
81757 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81758
81759         * config/srclist.txt: Add glibc bugs 1220-1227.
81760
81761 2005-08-20  Jim Meyering  <jim@meyering.net>
81762
81763         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81764         of unused local, dfa.
81765
81766 2005-08-20  Bruno Haible  <bruno@clisp.org>
81767
81768         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81769
81770 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81771
81772         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81773         (re_node_set_insert_last, re_dfa_add_node):
81774         Rename local variables to avoid GCC shadowing warnings.
81775
81776 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81777
81778         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81779         [defined lint]: Suppress bogus uninitialized-variable warnings.
81780
81781         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81782         and let the caller return REG_ESPACE if out of space.  This
81783         removes an uninitialied-variable warning with GCC 4.0.1, and also
81784         avoids taking the address of a local variable.  All callers
81785         changed.
81786
81787 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81790         $LIBCSRC/posix/regexec.c.
81791         Add glibc bug 1217 for regcomp.c.
81792
81793 2005-08-19  Jim Meyering  <jim@meyering.net>
81794
81795         * lib/regexec.c (proceed_next_node): Redo local variables to
81796         avoid GCC shadowing warnings.
81797
81798 2005-08-18  Bruno Haible  <bruno@clisp.org>
81799
81800         * lib/strstr.c (strstr): Fix return value in multibyte case.
81801         * lib/strcasestr.c (strcasestr): Likewise.
81802
81803 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81804
81805         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81806
81807 2005-08-17  Jim Meyering  <jim@meyering.net>
81808
81809         Make the %s format (seconds since the epoch) work for a negative
81810         number and when used with a zero-padded field width, e.g. %015s.
81811
81812         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81813         label so that it precedes the code to set `digits'.  Otherwise,
81814         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81815         print `00-22'.  Now, it prints `-0022', as it should.
81816
81817 2005-08-17  Bruno Haible  <bruno@clisp.org>
81818
81819         * modules/strstr (Files): Add m4/mbrtowc.m4.
81820         (Depends-on): Add mbuiter.
81821
81822 2005-08-17  Bruno Haible  <bruno@clisp.org>
81823
81824         * modules/strcasestr: New file.
81825         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81826         strcasestr.
81827
81828 2005-08-17  Bruno Haible  <bruno@clisp.org>
81829
81830         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81831
81832 2005-08-17  Bruno Haible  <bruno@clisp.org>
81833
81834         * modules/mbuiter: New file.
81835         * MODULES.html.sh (Extended multibyte and wide character utilities):
81836         Add mbuiter.
81837
81838 2005-08-17  Bruno Haible  <bruno@clisp.org>
81839
81840         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81841         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81842
81843 2005-08-17  Bruno Haible  <bruno@clisp.org>
81844
81845         * m4/strcasestr.m4: New file.
81846
81847 2005-08-17  Bruno Haible  <bruno@clisp.org>
81848
81849         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81850         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81851
81852 2005-08-17  Bruno Haible  <bruno@clisp.org>
81853
81854         * lib/strcasestr.h: New file.
81855         * lib/strcasestr.c: New file.
81856
81857 2005-08-17  Bruno Haible  <bruno@clisp.org>
81858
81859         * lib/strcasecmp.c: Use mbuiter.h.
81860
81861 2005-08-17  Bruno Haible  <bruno@clisp.org>
81862
81863         * lib/mbuiter.h: New file.
81864
81865 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81868         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81869         and gl_GETOPT are both invoked via different paths (as happens
81870         with GNU tar CVS because it uses both argp and getopt), the former
81871         wins.
81872
81873 2005-08-16  Bruno Haible  <bruno@clisp.org>
81874
81875         * modules/tls: New file.
81876         * MODULES.html.sh (Multithreading): Add tls.
81877
81878 2005-08-16  Bruno Haible  <bruno@clisp.org>
81879
81880         * modules/strnlen1: New file.
81881         * MODULES.html.sh (String handling): Add strnlen1.
81882
81883 2005-08-16  Bruno Haible  <bruno@clisp.org>
81884
81885         * modules/strcase (Files): Add m4/mbrtowc.m4.
81886         (Depends-on): Add strnlen1, mbchar.
81887
81888 2005-08-16  Bruno Haible  <bruno@clisp.org>
81889
81890         * modules/mbiter: New file.
81891         * MODULES.html.sh (Extended multibyte and wide character utilities):
81892         Add mbiter.
81893
81894 2005-08-16  Bruno Haible  <bruno@clisp.org>
81895
81896         * modules/mbfile: New file.
81897         * MODULES.html.sh (Extended multibyte and wide character utilities):
81898         Add mbfile.
81899
81900 2005-08-16  Bruno Haible  <bruno@clisp.org>
81901
81902         * modules/mbchar: New file.
81903         * MODULES.html.sh (Extended multibyte and wide character utilities):
81904         New section.
81905
81906 2005-08-16  Bruno Haible  <bruno@clisp.org>
81907
81908         * m4/tls.m4: New file, from GNU gettext.
81909
81910 2005-08-16  Bruno Haible  <bruno@clisp.org>
81911
81912         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81913         always.
81914         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81915
81916 2005-08-16  Bruno Haible  <bruno@clisp.org>
81917
81918         * m4/mbiter.m4: New file.
81919
81920 2005-08-16  Bruno Haible  <bruno@clisp.org>
81921
81922         * m4/mbfile.m4: New file.
81923
81924 2005-08-16  Bruno Haible  <bruno@clisp.org>
81925
81926         * m4/mbchar.m4: New file.
81927
81928 2005-08-16  Bruno Haible  <bruno@clisp.org>
81929
81930         * lib/tls.h: New file, from GNU gettext.
81931         * lib/tls.c: New file, from GNU gettext.
81932
81933 2005-08-16  Bruno Haible  <bruno@clisp.org>
81934
81935         * lib/strnlen1.h: New file.
81936         * lib/strnlen1.c: New file.
81937
81938 2005-08-16  Bruno Haible  <bruno@clisp.org>
81939
81940         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81941         (mbi_init): Update.
81942         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81943         NUL byte, not after it.
81944
81945 2005-08-16  Bruno Haible  <bruno@clisp.org>
81946
81947         * lib/strcase.h (strcasecmp): Add note in comments.
81948         * lib/strncasecmp.c: Use code from strcasecmp.c.
81949         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81950         (strcasecmp): Work correctly in multibyte locales.
81951
81952 2005-08-16  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/mbiter.h: New file.
81955
81956 2005-08-16  Bruno Haible  <bruno@clisp.org>
81957
81958         * lib/mbfile.h: New file.
81959
81960 2005-08-16  Bruno Haible  <bruno@clisp.org>
81961
81962         * lib/mbchar.h: New file.
81963         * lib/mbchar.c: New file.
81964
81965 2005-08-16  Bruno Haible  <bruno@clisp.org>
81966
81967         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81968         the valid ones. Makes the comparison operations transitive:
81969         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81970         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81971
81972 2005-08-15  Simon Josefsson  <jas@extundo.com>
81973
81974         * modules/ssize_t (License): Change to 'unlimited'.
81975
81976         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81977
81978 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81979
81980         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81981         Add comments for each pending glibc patch.
81982
81983 2005-08-15  Bruno Haible  <bruno@clisp.org>
81984
81985         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81986         __cplusplus is defined.
81987
81988 2005-08-14  Jim Meyering  <jim@meyering.net>
81989
81990         Sync from coreutils.
81991
81992         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81993         Use the hash-table-based cycle-detection code not just when
81994         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81995         Reported by James Youngman in
81996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81997         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81998         FTS_TIGHT_CYCLE_CHECK.
81999         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82000         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82001         once again.
82002         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82003         * lib/fts.c (fd_safer): Remove decl.
82004         Include fcntl--.h rather than unistd-safer.h
82005         (fts_safe_changedir): Don't call fd_safer; no longer needed
82006         now that we include fcntl--.h.
82007
82008 2005-08-12  Simon Josefsson  <jas@extundo.com>
82009
82010         * modules/getndelim2: Use ssize_t module.
82011         * modules/getnline: Likewise.
82012         * modules/safe-read: Likewise.
82013         * modules/xreadlink: Likewise.
82014
82015         * modules/ssize_t: New file.
82016
82017 2005-08-12  Simon Josefsson  <jas@extundo.com>
82018
82019         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82020
82021 2005-08-12  Simon Josefsson  <jas@extundo.com>
82022
82023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82024         ssize_t.
82025
82026 2005-08-12  Simon Josefsson  <jas@extundo.com>
82027
82028         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82029         readline, getdelim and check_version.
82030         (Support for systems lacking ISO C 99: Sizes of integer types):
82031         Add size_max.
82032
82033 2005-08-12  Bruno Haible  <bruno@clisp.org>
82034
82035         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82036
82037 2005-08-11  Simon Josefsson  <jas@extundo.com>
82038
82039         * modules/readline: New file.
82040
82041         * modules/strnlen (Files): Add strnlen.h.
82042
82043 2005-08-11  Simon Josefsson  <jas@extundo.com>
82044
82045         * m4/readline.m4: New file.
82046
82047 2005-08-11  Simon Josefsson  <jas@extundo.com>
82048
82049         * lib/readline.h, readline.c: New file.
82050
82051 2005-08-11  Simon Josefsson  <jas@extundo.com>
82052
82053         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82054         gl_AVOID.
82055
82056 2005-08-11  Bruno Haible  <bruno@clisp.org>
82057
82058         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82059
82060 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82061
82062         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82063
82064 2005-08-10  Simon Josefsson  <jas@extundo.com>
82065
82066         * tests/test-iconvme.c: New file.
82067
82068 2005-08-10  Simon Josefsson  <jas@extundo.com>
82069
82070         * m4/strnlen.m4: New file.
82071
82072         * m4/strndup.m4: Don't check for strnlen declaration, done in
82073         strnlen.m4.
82074
82075 2005-08-10  Simon Josefsson  <jas@extundo.com>
82076
82077         * lib/strndup.c: Use strnlen.h.
82078
82079         * lib/strnlen.h: New file.
82080
82081 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82082
82083         * README: Typos.
82084
82085 2005-08-02  Simon Josefsson  <jas@extundo.com>
82086
82087         * modules/readline: New file.
82088
82089 2005-08-02  Simon Josefsson  <jas@extundo.com>
82090
82091         * modules/getdelim: New file.
82092
82093         * modules/getline: Rewrite, don't use getndelim2.
82094
82095 2005-08-02  Simon Josefsson  <jas@extundo.com>
82096
82097         * m4/getline.m4: Separate out getdelim stuff into separate module.
82098
82099         * m4/getdelim.m4: New file.
82100
82101 2005-08-02  Simon Josefsson  <jas@extundo.com>
82102
82103         * lib/getline.h, getline.c: Rewrite.
82104
82105         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82106
82107 2005-07-31  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/lock.h (gl_lock_initializer): New macro.
82110         (gl_lock_define_initialized): Use it.
82111         (gl_rwlock_initializer): New macro.
82112         (gl_rwlock_define_initialized): Use it.
82113         (gl_recursive_lock_initializer): New macro.
82114         (gl_recursive_lock_define_initialized): Use it.
82115
82116 2005-07-30  Karl Berry  <karl@gnu.org>
82117
82118         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82119         Report from Ben Pfaff, regarding getopt.
82120
82121 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82122
82123         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82124         normal way.
82125         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82126         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82127         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82128         (gl_GETOPT): Use the new macros.  Most of the implementation
82129         is moved to the new macros.  This is for programs like Emacs
82130         that don't want all the functionality of gl_GETOPT.
82131
82132 2005-07-26  Bruno Haible  <bruno@clisp.org>
82133
82134         * m4/lock.m4: Update from GNU gettext.
82135
82136 2005-07-26  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/lock.h: Update from GNU gettext.
82139         * lib/lock.c: Update from GNU gettext.
82140
82141 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82144         obsolescent AC_TRY_RUN.  Include the default includes files, for
82145         'exit'.
82146
82147 2005-07-24  Bruno Haible  <bruno@clisp.org>
82148
82149         * modules/visibility: New file.
82150         * MODULES.html.sh (Misc): Add visibility.
82151
82152 2005-07-24  Bruno Haible  <bruno@clisp.org>
82153
82154         * m4/visibility.m4: New file.
82155
82156 2005-07-24  Bruno Haible  <bruno@clisp.org>
82157
82158         * doc/visibility.texi: New file.
82159
82160 2005-07-22  Bruno Haible  <bruno@clisp.org>
82161
82162         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82163         $(ALLOCA_H), redundant through BUILT_SOURCES.
82164         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82165         redundant through BUILT_SOURCES.
82166         * modules/byteswap (Makefile.am): Remove explicit dependency on
82167         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82168         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82169         $(FNMATCH_H), redundant through BUILT_SOURCES.
82170         * modules/getopt (Makefile.am): Remove explicit dependency on
82171         $(GETOPT_H), redundant through BUILT_SOURCES.
82172         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82173         redundant through BUILT_SOURCES.
82174         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82175         redundant through BUILT_SOURCES.
82176         * modules/stdbool (Makefile.am): Remove explicit dependency on
82177         $(STDBOOL_H), redundant through BUILT_SOURCES.
82178         * modules/stdint (Makefile.am): Remove explicit dependency on
82179         $(STDINT_H), redundant through BUILT_SOURCES.
82180         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82181         Remove explicit dependency on $(SYSEXITS_H).
82182         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82183
82184 2005-07-18  Simon Josefsson  <jas@extundo.com>
82185
82186         * lib/check-version.c (check_version): Accept identical versions too.
82187
82188 2005-07-18  Bruno Haible  <bruno@clisp.org>
82189
82190         * modules/lock: New file.
82191         * MODULES.html.sh (Multithreading): New section.
82192
82193 2005-07-18  Bruno Haible  <bruno@clisp.org>
82194
82195         * m4/lock.m4: New file, from GNU gettext.
82196
82197 2005-07-18  Bruno Haible  <bruno@clisp.org>
82198
82199         * lib/lock.h: New file, from GNU gettext.
82200         * lib/lock.c: New file, from GNU gettext.
82201
82202 2005-07-18  Bruno Haible  <bruno@clisp.org>
82203
82204         * lib/lock.h (gl_once_t): New type.
82205         (gl_once_define, gl_once): New macros.
82206         * lib/lock.c (fresh_once): New variable.
82207         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82208         functions.
82209
82210 2005-07-16  Simon Josefsson  <jas@extundo.com>
82211
82212         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82213         workaround, suggested by Bruno.
82214
82215 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82216
82217         * modules/xalloc (Depends-on): Add xalloc-die.
82218         * modules/xvasprintf (Depends-on): Add xalloc-die.
82219
82220 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82221
82222         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82223         with a minor change.
82224
82225 2005-07-15  Bruno Haible  <bruno@clisp.org>
82226
82227         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82228         When using lib/poll.c, define poll as rpl_poll.
82229
82230 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82231
82232         * modules/argp (Depends-on): Remove unlocked-io.
82233
82234 2005-07-14  Derek Price  <derek@ximbiot.com>
82235
82236         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82237         for glob symlink bug.
82238
82239 2005-07-14  Bruno Haible  <bruno@clisp.org>
82240
82241         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82242         Instead, test for *_unlocked function declarations directly.
82243
82244 2005-07-11  Simon Josefsson  <jas@extundo.com>
82245
82246         * modules/size_max: New file.
82247
82248         * modules/xsize: Depend on size_max module for size_max.m4.
82249
82250 2005-07-11  Simon Josefsson  <jas@extundo.com>
82251
82252         * lib/size_max.h: New file.
82253
82254 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82257         copyright symbol and the year.
82258         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82259         (version_etc_va): Use parameterized copyright notice.
82260         Reword to conform to the current GNU coding standards.
82261
82262 2005-07-11  Karl Berry  <karl@gnu.org>
82263
82264         * doc/gnulib.texi (Quoting): new node.
82265         (Initial import): more info, from Patrice.
82266
82267 2005-07-11  Bruno Haible  <bruno@clisp.org>
82268
82269         * gnulib-tool (func_usage): Document option --avoid.
82270         (Command line options): Handle --avoid.
82271         (func_acceptable): New function.
82272         (func_modules_transitive_closure): Use it.
82273
82274 2005-07-11  Bruno Haible  <bruno@clisp.org>
82275
82276         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82277         Reported by Jim Meyering.
82278
82279 2005-07-10  Bruno Haible  <bruno@clisp.org>
82280
82281         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82282         Needed when size_t is smaller than 'unsigned int'.
82283         Reported by Paul Eggert.
82284
82285 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82286
82287         * modules/argp (Depends-on): Add unlocked-io
82288
82289 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82290
82291         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82292         block of defines.
82293
82294 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82297         fix now.
82298
82299 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82300         and Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82303         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82304
82305 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * modules/regex (Files): Add lib/regex_internal.c,
82308         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82309         (Depends-on): Add extensions.
82310         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82311
82312 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82315         pathconf.
82316         * m4/same.m4 (gl_SAME): Likewise.
82317         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82318
82319         * m4/regex.m4: Adjust to new libc regex implementation.
82320         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82321         all the .c and .h parts of (the new) regex.
82322         Quote the m4 stuff better.
82323         Check for RE_ICASE bug of old gnulib.
82324         Check for REG_STARTEND of recent libc.
82325         Rename local variables from jm_* to gl_*.
82326         Quote operand of "test -f".
82327         Say "recent enough" version of libc, not "version 2".
82328         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82329         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82330         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82331         Remove check for btowc, isascii.
82332         Require AM_LANGINFO_CODESET.
82333
82334 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82335
82336         * lib/regex.c, regex.h: Sync from libc.
82337         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82338         * lib/regexec.c:
82339         New files, synced from libc, except that regex_internal.h
82340         currently has a small porting fix.
82341
82342 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82343
82344         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82345         regex_internal.c, regexec.c.
82346         Add regex_internal.h too, but as a comment, since the libc version
82347         is currently broken in gnulib mode.
82348
82349 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         Support programs like Emacs that use gnulib but not gettext.
82352         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82353         * modules/gettext-h: New file.
82354         * modules/gettext (Files): Remove lib/gettext.h.
82355         (Depends-on): Add gettext-h.
82356         (Makefile.am): Remove lib_SOURCES.
82357         * modules/argmatch, modules/c-stack, modules/closeout:
82358         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82359         * modules/execute, modules/file-type, modules/getaddrinfo:
82360         * modules/getopt, modules/human, modules/javacomp:
82361         * modules/javaexec, modules/mkdir-p, modules/obstack:
82362         * modules/openat, modules/pagealign_alloc, modules/pipe:
82363         * modules/quotearg, modules/regex, modules/rpmatch:
82364         * modules/unicodeio, modules/userspec, modules/version-etc:
82365         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82366         * modules/xsetenv:
82367         Depend on gettext-h, not gettext.
82368
82369 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82370
82371         * gnulib-tool (func_import): Add support for 'public domain' license.
82372         * modules/alloca, modules/atexit, modules/memmove:
82373         Now public domain, not GPL.
82374         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82375         * modules/realloc, modules/strerror, modules/strtod:
82376         Now LGPL, not GPL.
82377
82378 2005-07-05  Bruno Haible  <bruno@clisp.org>
82379
82380         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82381         autoconf CVS. Needed for mingw.
82382
82383 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82384
82385         Remove the dependency of the strftime module on the tzset module.
82386         * modules/strftime (Depends-on): Remove dependency on tzset.
82387
82388 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82389
82390         Remove the dependency of the strftime module on the tzset module.
82391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82392         gl_FUNC_TZSET_CLOBBER.
82393
82394 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         Remove the dependency of the strftime module on the tzset module.
82397         * lib/strftime.c (my_strftime)
82398         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82399         Copy the input structure, to work around some of the bug with
82400         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82401         Solaris releases, you should also use the tzset module, but we won't
82402         require it as a dependency any more since we don't want LGPLed code
82403         to depend on GPLed code.
82404
82405 2005-07-02  Jim Meyering  <jim@meyering.net>
82406
82407         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82408         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82409         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82410         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82411
82412 2005-07-02  Jim Meyering  <jim@meyering.net>
82413
82414         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82415
82416 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82417
82418         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82419         declares only 'struct timespec;' (!).
82420
82421 2005-07-01  Jim Meyering  <jim@meyering.net>
82422
82423         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82424         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82425         * lib/save-cwd.c, tempname.c:
82426         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82427         and don't include <sys/file.h>).
82428
82429 2005-06-29  Jim Meyering  <jim@meyering.net>
82430
82431         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82432         type name.  Use the variable name instead.
82433         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82434         Likewise.
82435
82436 2005-06-28  Simon Josefsson  <jas@extundo.com>
82437
82438         * modules/check-version (Files): Add check-version.m4.
82439
82440 2005-06-28  Simon Josefsson  <jas@extundo.com>
82441
82442         * m4/check-version.m4: New file, suggested by Jim Meyering
82443         <jim@meyering.net>.
82444
82445 2005-06-28  Simon Josefsson  <jas@extundo.com>
82446
82447         * lib/check-version.h, lib/check-version.c: New files.
82448
82449 2005-06-28  Simon Josefsson  <jas@extundo.com>
82450
82451         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82452         collision with global variable.  Better indentation.  Don't
82453         increment buffer pointer beyond buffer end.  Based on comments
82454         from Paul Eggert <eggert@cs.ucla.edu>.
82455
82456         * lib/base64.h: Indent.
82457
82458 2005-06-28  Simon Josefsson  <jas@extundo.com>
82459
82460         * doc/gnulib.texi (Library version handling): New section.
82461
82462 2005-06-28  Jim Meyering  <jim@meyering.net>
82463
82464         * check-module (find_included_lib_files): Hard-code another
82465         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82466         but modules/fts-lgpl (correctly) does not list those files.
82467
82468         * modules/canonicalize (Files): Add lib/pathmax.h.
82469
82470 2005-06-25  Simon Josefsson  <jas@extundo.com>
82471
82472         * modules/check-version: New file.
82473
82474 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82477         initializer of struct addrinfo, as an indication that we don't
82478         care how many members the structure has.
82479
82480 2005-06-24  Derek Price  <derek@ximbiot.com>
82481         and Bruno Haible  <bruno@clisp.org>
82482
82483         Remove stat module & update lstat.
82484         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82485         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82486         * m4/stat.m4: Remove this file.
82487
82488 2005-06-24  Derek Price  <derek@ximbiot.com>
82489         and Bruno Haible  <bruno@clisp.org>
82490
82491         Remove stat module & update lstat.
82492         * lib/stat.c: Remove this file...
82493         (slash_aware_lstat): ...moving this content and its support...
82494         * lib/lstat.c (rpl_lstat): ...into here.
82495         * lib/lstat.h: New file.
82496
82497 2005-06-24  Derek Price  <derek@ximbiot.com>
82498         and Bruno Haible  <bruno@clisp.org>
82499
82500         Remove stat module & update lstat.
82501         * config/srclist.txt (libc sources): Remove stat.
82502
82503 2005-06-24  Derek Price  <derek@ximbiot.com>
82504         and Bruno Haible  <bruno@clisp.org>
82505
82506         Remove stat module & update lstat.
82507         * MODULES.html.sh (stat): Remove.
82508         * MODULES.html: Regenerated.
82509         * modules/lstat (Description): Correct function name.
82510         (Files): Add "lstat.h".
82511         (Depends-on): Remove stat, add xalloc, stat-macros.
82512         * modules/stat: Remove this file.
82513         (Include): Add "lstat.h", remove <sys/stat.h>.
82514
82515 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82516
82517         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82518         (ranged_convert): Don't save conversion in a temporary struct.
82519         This causes a warning with GCC 4.0.0, and anyway in the typical
82520         case it's not worth the extra 100 bytes or so of code.
82521         (ranged_convert, __mktime_internal): When calling a function via a
82522         pointer P, use P () rather than (*P) (), as we now assume C89 or
82523         better.
82524
82525 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82526
82527         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82528         "who -r" failed to give output.  Problem reported by Tim Waugh.
82529
82530         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82531         (xcalloc): Use it to avoid needless tests.
82532         Problem reported by Jim Meyering.
82533
82534 2005-06-20  Derek Price  <derek@ximbiot.com>
82535
82536         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82537         unnecessary for Autoconfs > 2.59c.
82538
82539 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82540
82541         * lib/argp.h (__option_is_short): Check upper limit of
82542         __key. Isprint() requires its argument to have the value
82543         of an unsigned char or EOF.
82544
82545 2005-06-16  Jim Meyering  <jim@meyering.net>
82546
82547         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82548         when either N or S is zero.
82549
82550 2005-06-16  Derek Price  <derek@ximbiot.com>
82551
82552         * m4/bison.m4: Declare YACC & YFLAGS precious.
82553
82554 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82555
82556         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82557         multibyte string or pattern, fall back on unibyte matching.
82558         Problem reported by James Youngman.
82559
82560 2005-06-08  Bruno Haible  <bruno@clisp.org>
82561
82562         * modules/csharpcomp: New file.
82563         * MODULES.html.sh (C#): Add csharpcomp.
82564
82565 2005-06-08  Bruno Haible  <bruno@clisp.org>
82566
82567         * m4/csharpcomp.m4: New file, from GNU gettext.
82568
82569 2005-06-08  Bruno Haible  <bruno@clisp.org>
82570
82571         * lib/csharpcomp.h: New file, from GNU gettext.
82572         * lib/csharpcomp.c: New file, from GNU gettext.
82573         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82574
82575 2005-06-08  Bruno Haible  <bruno@clisp.org>
82576
82577         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82578         warning on mingw.
82579
82580 2005-06-07  Derek Price  <derek@ximbiot.com>
82581
82582         Sync from CVS.
82583         * lib/glob_.h: Indent nested #ifdef.
82584
82585 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82586
82587         Sync from coreutils.
82588         Use "file name" when talking about file names, instead of "filename"
82589         or "path", as per the GNU coding standards.
82590         * lib/mkdir-p.c: Renamed from makepath.c.
82591         (make_dir_parents): Renamed from make_path.  All callers changed.
82592         * lib/mkdir-p.h: Likewise.  All includers changed.
82593         * lib/filenamecat.c: Renamed from path-concat.c.
82594         (file_name_concat): Renamed from path_concat.  All callers changed.
82595         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82596         * lib/filenamecat.h: Likewise.  All includers changed.
82597         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82598         in comments or local variable names.
82599         * lib/basename.c: Likewise.
82600         * lib/canonicalize.c, canonicalize.h: Likewise.
82601         * lib/dirname.c, dirname.h: Likewise.
82602         * lib/euidaccess.c: Likewise.
82603         * lib/exclude.c: Likewise
82604         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82605         * lib/fsusage.c, fsuage.h: Likewise.
82606         * lib/fts.c, fts_.h: Likewise.
82607         * lib/getcwd.c: Likewise.
82608         * lib/getloadavg.c: Likewise.
82609         * lib/mkstemp.c: Likewise.
82610         * lib/mountlist.c, mountlist.h: Likewise.
82611         * lib/openat.c, openat.h: Likewise.
82612         * lib/readlink-stub.c: Likewise.
82613         * lib/readutmp.c, readutmp.h: Likewise.
82614         * lib/rename.c: Likewise.
82615         * lib/rmdir.c: Likewise.
82616         * lib/same.c: Likewise.
82617         * lib/savedir.c: Likewise.
82618         * lib/stripslash.c: Likewise.
82619         * lib/tempname.c: Likewise.
82620         * lib/xreadlink.c: Likewise.
82621         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82622         All uses changed.
82623         * lib/exclude.h: Likewise.
82624
82625         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82626         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82627         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82628         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82629         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82630         files have been getting away with it for years (MORE/BSD 4.3
82631         is extinct now).
82632         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82633         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82634
82635         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82636         Define to 256, not 255, as per modern POSIX.
82637
82638 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82639
82640         Sync from coreutils.
82641         Use "file name" when talking about file names, instead of "filename"
82642         or "path", as per the GNU coding standards.
82643         * MODULES.html.sh: mkdir-p renamed from makepath.
82644         filenamecat renamed from path-concat.
82645         * modules/filenamecat: Renamed from modules/path-concat.
82646         (Files): filenamecat.h and filenamecat.c renamed from
82647         path-concat.h and path-concat.c.
82648         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82649         (Include): filenamecat.h, not path-concat.h.
82650         * modules/mkdir-p: Renamed from modules/makepath.
82651         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82652         makepath.c.
82653         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82654         (Include): mkdir-p.h, not makepath.h.
82655
82656 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         Sync from coreutils.
82659         * m4/mkdir-p.m4: Renamed from makepath.m4.
82660         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82661         Rename files from makepath.c to mkdir-p.c, and from
82662         makepath.h to mkdir-p.h.
82663         * m4/filenamecat.m4: Renamed from path-concat.m4.
82664         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82665         Rename files from path-concat.c to filenamecat.c,
82666         and from path-concat.h to filenamecat.h.
82667         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82668         "file name" in local variables or comments.
82669         * m4/rename.m4: Likewise.
82670
82671 2005-06-01  Bruno Haible  <bruno@clisp.org>
82672
82673         * modules/csharpexec: New file.
82674         * MODULES.html.sh (C#): New section.
82675
82676 2005-06-01  Bruno Haible  <bruno@clisp.org>
82677
82678         * m4/csharp.m4: New file, from GNU gettext.
82679         * m4/csharpexec.m4: New file, from GNU gettext.
82680
82681 2005-06-01  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/csharpexec.h: New file, from GNU gettext.
82684         * lib/csharpexec.c: New file, from GNU gettext.
82685         * lib/csharpexec.sh.in: New file, from GNU gettext.
82686
82687 2005-05-31  Derek Price  <derek@ximbiot.com>
82688             Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         Sync from cvs.
82691         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82692
82693 2005-05-31  Derek Price  <derek@ximbiot.com>
82694             Paul Eggert  <eggert@cs.ucla.edu>
82695
82696         Sync from cvs.
82697         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82698
82699 2005-05-29  Derek Price  <derek@ximbiot.com>
82700
82701         * config/srclist.txt (glob_.h, glob.c): Add these files.
82702
82703 2005-05-29  Derek Price  <derek@ximbiot.com>
82704
82705         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82706         * modules/glob: New file.
82707         * modules/getlogin_r: Add link to POSIX spec in description.
82708
82709 2005-05-29  Derek Price  <derek@ximbiot.com>
82710             Paul Eggert  <eggert@cs.ucla.edu>
82711
82712         * m4/glob.m4: New file.
82713
82714 2005-05-29  Derek Price  <derek@ximbiot.com>
82715             Paul Eggert  <eggert@cs.ucla.edu>
82716
82717         * lib/glob_.h, lib/glob.c: New files.
82718
82719 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82720
82721         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82722         * modules/fts-lgpl (Depends-on): Remove gettext.
82723
82724 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82725
82726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82727         and don't require gt_INTTYPES_PRI.
82728
82729 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82732
82733         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82734         the configuration hassle isn't worth it.
82735         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82736         (LONGEST_MODIFIER, PRIuMAX): Remove.
82737
82738 2005-05-27  Bruno Haible  <bruno@clisp.org>
82739
82740         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82741
82742 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82745         _POSIX_PTHREAD_SEMANTICS for Solaris.
82746
82747 2005-05-25  Derek Price  <derek@ximbiot.com>
82748
82749         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82750
82751 2005-05-25  Derek Price  <derek@ximbiot.com>
82752             Paul Eggert  <eggert@cs.ucla.edu>
82753
82754         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82755         * lib/getlogin_r.c, getlogin_r.h: New files.
82756
82757 2005-05-25  Bruno Haible  <bruno@clisp.org>
82758             Derek Price  <derek@ximbiot.com>
82759
82760         * lib/getlogin_r.h: Simplify API documentation.
82761
82762 2005-05-23  Derek Price  <derek@ximbiot.com>
82763
82764         * modules/minmax (Files): Add m4/minmax.m4.
82765         (configure.ac): Add gl_MINMAX.
82766
82767 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82770         so that unistd-safer.h (GPL'ed code) need not be included.
82771
82772 2005-05-22  Bruno Haible  <bruno@clisp.org>
82773
82774         * m4/minmax.m4: New file.
82775         Based on a patch by Derek Price <derek@ximbiot.com>.
82776
82777 2005-05-22  Bruno Haible  <bruno@clisp.org>
82778
82779         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82780         (INT64_MIN): Fix definition.
82781         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82782
82783         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82784         NEED_SIGNED_INT_TYPES.
82785
82786         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82787         HAVE_SYSTEM_INTTYPES.
82788
82789 2005-05-22  Bruno Haible  <bruno@clisp.org>
82790
82791         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82792         Also include <sys/param.h> if it defines MIN, MAX.
82793         Based on a patch by Derek Price <derek@ximbiot.com>.
82794
82795 2005-05-21  Jim Meyering  <jim@meyering.net>
82796
82797         * modules/fts (Files): Add m4/inttypes-pri.m4.
82798         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82799
82800 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         New fts module.
82803         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82804         (setup_dir, free_dir): New functions.
82805         (enter_dir, leave_dir): Define trivial
82806         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82807         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82808         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82809         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82810         Move to fts-cycle.c.
82811         (fts_open): Use setup_dir.
82812         (fts_close): Use free_dir.
82813         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82814         This adds a label and some gotos, but the alternatives were messier.
82815         Check for memory allocation failure when entering a dir.
82816         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82817         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82818         (FTS): New member fts_cycle, that is a union that contains the
82819         old active_dir_ht and cycle_state.  All uses changed to mention
82820         fts_cycle.ht and fts_cycle.state.
82821         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82822         fts.c, with the following changes:
82823         (setup_dir, free_dir): New functions.
82824         (enter_dir): Now returns bool.  Return true if successful, false
82825         if memory exhausted.  All callers changed.
82826         Do not bother partly cleaning up on
82827         memory allocation failure; that is free_dir's job.
82828         However, free ad if hash_insert fails, to avoid memory leak.
82829         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82830         fts->fts_options to see which union member to use.
82831
82832 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82835         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82836
82837 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82840
82841 2005-05-20  Jim Meyering  <jim@meyering.net>
82842
82843         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82844         Now a macro, to pacify GCC.
82845
82846 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82847
82848         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82849         of -1.
82850
82851 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82852
82853         * lib/chown.c (rpl_chown): Return -1 on failure.
82854
82855 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82856
82857         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82858         Don't check for stddef.h.
82859         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82860         don't use its results.
82861         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82862         since we include them unconditionally.  Don't require
82863         AM_STDBOOL_H, since stdbool is a prerequisite.
82864         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82865         since we assume C89 or better.
82866         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82867         as we don't use their results.
82868         Don't check for fchdir, memmove, memset, strrchr, as we use
82869         them unconditionally.
82870         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82871         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82872
82873 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82876         Include <stddef.h> unconditionally, since we assume C89 now.
82877         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82878         * lib/fts.c: Include fts_.h first, to check interface.
82879         Do not include intprops.h; no longer needed.
82880         Include cycle-check.h and hash.h, since fts_.h no longer does.
82881         Remove unnecessary casts of closedir to void.
82882         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82883         decide whether to decrement nlinks.
82884         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82885         (FTS): Use struct hash_table * instead of Hash_table, so that
82886         we no longer need to include hash.h here.
82887
82888 2005-05-18  Jim Meyering  <jim@meyering.net>
82889
82890         * modules/dirfd (License): Change to LGPL.  Most of the code
82891         is already in the public domain.
82892
82893 2005-05-18  Jim Meyering  <jim@meyering.net>
82894
82895         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82896         Reported by Yoann Vandoorselaere.
82897
82898 2005-05-17  Jim Meyering  <jim@meyering.net>
82899
82900         * m4/fts.m4: New file, from coreutils.
82901
82902 2005-05-17  Jim Meyering  <jim@meyering.net>
82903
82904         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82905
82906 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82907
82908         Sync from coreutils.
82909         * m4/unlinkdir.m4: New file.
82910
82911 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82912
82913         Sync from coreutils.
82914         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82915         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82916         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82917         White space changes only.
82918         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82919         special.
82920         * lib/yesno.c: Include getline.h, not ctype.h.
82921         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82922         Use getline to remove arbitrary restriction on response length.
82923
82924 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         * config/srclist-update: Spell out "Street" in FSF postal
82927         mail address; this is the style the FSF seems to prefer.
82928
82929         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82930         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82931         this updates FSF postal mail address.
82932
82933         Sync from coreutils.
82934         * modules/unlinkdir: New file.
82935         * modules/yesno (Depends-on): Add getline.
82936         * MODULES.html.sh (File system functions): Add unlinkdir.
82937
82938 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82941         lib/strsep.h:
82942         Change the initial comment to refer to GPL, not LGPL.
82943         gnulib-tool will change it to LGPL as needed.
82944
82945         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82946         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82947         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82948         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82949         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82950         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82951         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82952         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82953         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82954         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82955         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82956         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82957         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82958         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82959         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82960         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82961         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82962         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82963         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82964         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82965         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82966         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82967         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82968         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82969         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82970         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82971         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82972         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82973         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82974         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82975         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82976         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82977         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82978         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82979         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82980         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82981         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82982         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82983         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82984         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82985         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82986         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82987         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82988         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82989         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82990         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82991         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82992         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82993         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82994         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82995         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82996         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82997         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82998         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82999         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83000         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83001         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83002         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83003         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83004         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83005         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83006         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83007         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83008         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83009         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83010         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83011         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83012         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83013         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83014         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83015         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83016         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83017         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83018         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83019         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83020         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83021         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83022         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83023         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83024         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83025         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83026         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83027         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83028         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83029         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83030         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83031         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83032         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83033         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83034         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83035         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83036         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83037         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83038         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83039         lib/yesno.c, lib/yesno.h:
83040         Update FSF postal mail address.
83041
83042 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83045         tests/test-memmem.c, tests/test-stpncpy.c:
83046         Update FSF postal mail address.
83047
83048 2005-05-13  Bruno Haible  <bruno@clisp.org>
83049
83050         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83051         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83052         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83053         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83054         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83055         Add support for 64-bit integers in the MSVC compiler.
83056
83057 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83058
83059         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83060
83061 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83062
83063         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83064
83065 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         * doc/getdate.texi (General date syntax): Don't say that date
83068         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83069         Problem reported by Nic Ferrier.
83070
83071 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83072
83073         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83074         specified in ai_socktype. Fix invalid ai_protocol
83075         check. ai_protocol is usually set to 0 or depending on
83076         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83077         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83078         ai_socktype / ai_protocol in the returned addrinfo structure.
83079
83080 2005-05-10  Simon Josefsson  <jas@extundo.com>
83081
83082         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83083         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83084
83085 2005-05-10  Karl Berry  <karl@gnu.org>
83086
83087         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83088         (from http://www.gnu.org/licenses).
83089         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83090         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83091         fdl.texi suffices.
83092
83093 2005-05-10  Karl Berry  <karl@gnu.org>
83094
83095         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83096         (COPYING.DOC): remove.
83097
83098         * config/srclist-update: new FSF address.
83099
83100 2005-05-10  Derek Price  <derek@ximbiot.com>
83101
83102         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83103         possible.
83104
83105 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83106             Bruno Haible  <bruno@clisp.org>
83107
83108         * modules/inet_ntop: New file.
83109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83110         inet_ntop.
83111
83112 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83113             Bruno Haible  <bruno@clisp.org>
83114
83115         * m4/inet_ntop.m4: New file.
83116
83117 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83118             Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/inet_ntop.h: New file.
83121         * lib/inet_ntop.c: New file, from glibc with modifications.
83122
83123 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83124
83125         * modules/time_r (License): Change to LGPL.
83126         * modules/extensions (License): Change to LGPL.  Actually,
83127         the license is more permissive than that, but currently gnulib-tool
83128         doesn't know how to handle more-permissive licenses.
83129
83130         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83131         Problem reported by Dave Love.
83132
83133 2005-05-08  Jim Meyering  <jim@meyering.net>
83134
83135         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83136         blank.
83137
83138 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83139
83140         * modules/argmatch (Depends-on): Add stdbool.
83141         * modules/backupfile (Depends-on): Likewise.
83142         * modules/chdir-long (Depends-on): Likewise.
83143         * modules/closeout (Depends-on): Likewise.
83144         * modules/cycle-check (Depends-on): Likewise.
83145         * modules/dirname (Depends-on): Likewise.
83146         * modules/fnmatch (Depends-on): Likewise.
83147         * modules/fsusage (Depends-on): Likewise.
83148         * modules/fwriteerror (Depends-on): Likewise.
83149         * modules/getcwd (Depends-on): Likewise.
83150         * modules/getloadavg (Depends-on): Likewise.
83151         * modules/hard-locale (Depends-on): Likewise.
83152         * modules/makepath (Depends-on): Likewise.
83153         * modules/mountlist (Depends-on): Likewise.
83154         * modules/nanosleep (Depends-on): Likewise.
83155         * modules/posixtm (Depends-on): Likewise.
83156         * modules/quotearg (Depends-on): Likewise.
83157         * modules/readtokens (Depends-on): Likewise.
83158         * modules/readtokens0 (Depends-on): Likewise.
83159         * modules/readutmp (Depends-on): Likewise.
83160         * modules/save-cwd (Depends-on): Likewise.
83161         * modules/strftime (Depends-on): Likewise.
83162         * modules/userspec (Depends-on): Likewise.
83163         * modules/utimecmp (Depends-on): Likewise.
83164         * modules/xgetcwd (Depends-on): Likewise.
83165         * modules/xnanosleep (Depends-on): Likewise.
83166         * modules/xstrtod (Depends-on): Likewise.
83167         * modules/yesno (Depends-on): Likewise.
83168
83169 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83170
83171         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83172         needless checks.
83173
83174 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83175
83176         Merge from coreutils.  Among other things,
83177         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83178         * lib/fd-safer.c: New file.
83179         * lib/fcntl-safer.h, open-safer.c: Remove.
83180         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83181         * lib/dup-safer.c: Include unistd-safer.h first.
83182         Don't include errno.h.
83183         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83184         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83185         * lib/file-type.c: Rely on file-type.h change.
83186         * lib/getloadavg.c: Include unistd-safer.h.
83187         (getloadavg): Use safer open.
83188         * lib/getusershell.c: Include "stdio-safer.h".
83189         (getusershell): Use safer fopen.
83190         * lib/long-options.c (long_options): Use NULL rather than 0.
83191         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83192         'free'.
83193         * lib/modechange.c: Likewise.
83194         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83195         (MODE_DONE): New constant.
83196         (struct mode_change): Remove 'next' member.
83197         (make_node_op_equals): New function; like the old one of the
83198         same name, except it allocates an array.
83199         (mode_compile, mode_create_from_ref): Use it.
83200         (mode_compile): Allocate result as an array, not a linked list.
83201         Parse octal string ourself, so that we catch mistakes like "+0".
83202         (mode_adjust): Arg is an array, not a linked list.
83203         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83204         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83205         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83206         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83207         Remove.  This is now stat-macros.h's job.
83208         (talloc): Remove.  All callers replaced by xalloc, so that
83209         our invokers don't have to worry about reporting memory failures.
83210         (make_node_op_equals): Remove.
83211         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83212         New constants.
83213         (struct mode_change): Moved here from modechange.h.
83214         (mode_append_entry): Remove.
83215         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83216         apps to have incorrect behavior.  Use simpler algorithm for head
83217         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83218         Detect more invalid usages rather than having somewhat-random behavior.
83219         Don't insert an "a=" action, as that leads to incorrect behavior.
83220         (mode_compile, mode_create_from_ref): Return NULL on error instead
83221         of an enum, since now there's only one way to have an error.  All
83222         callers changed.
83223         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83224         at the correct time.  Simplify calculation of "+u" and its ilk.
83225         Don't mishandle "+X".
83226         (mode_free): Remove "register" and localize decls.
83227         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83228         (struct mode_change): Move to modechange.c; callers don't
83229         need to see this stuff.
83230         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83231         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83232         (mode_change, mode_adjust): Reflect the new signatures noted above.
83233         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83234         that might redefine system include files.
83235         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83236         (my_usleep): Use NULL rather than (void *) 0.
83237         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83238         Use siginterrupt to specify that system calls should be interrupted.
83239         (rpl_nanosleep): Move initialization of suspended closer to call of
83240         my_usleep.
83241         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83242         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83243         (desirable_utmp_entry): New function.
83244         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83245         using x2nrealloc, to simplify logic.
83246         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83247         size calculation.  Do not assume utmp file is a regular file.
83248         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83249         (READ_UTMP_CHECK_PIDS): New constant.
83250         * lib/save-cwd.c: Include unistd-safer.h.
83251         (save_cwd): Use fd_safer.
83252         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83253         [!_LIBC] Include "stat-macros.h" instead.
83254         * lib/unistd-safer.h (fd_safer): New decl.
83255
83256 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         * modules/getloadavg (Depends-on): Add unistd-safer.
83259         * modules/getusershell (Depends-on): Add stdio-safer.
83260         * modules/lstat (Depends-on): Remove xalloc.
83261         * modules/mkstemp (Depends-on): Add stat-macros.
83262         * modules/modechange (Depends-on): Remove xstrtol.
83263         Add stat-macros, xalloc.
83264         * modules/save-cwd (Depends-on): Add unistd-safer.
83265         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83266         * modules/unistd-safer (Files): Add lib/fd-safer.c
83267         (Makefile.am): Remove lib_SOURCES.
83268
83269         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83270         Remove fcntl-safer; unistd-safer supersedes it.
83271
83272 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83273
83274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83275         AC_HEADER_STAT.
83276         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83277         (gl_PREREQ_CHOWN): Remove.
83278         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83279         it.  Don't require AC_HEADER_STAT.
83280         (gl_PREREQ_LSTAT): Remove.
83281         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83282         Don't require AC_HEADER_STAT.
83283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83284         (gl_PREREQ_RMDIR): Remove.
83285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83286         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83287         the stat-macros module a prerequisite.
83288         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83289         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83290         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83291         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83292         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83293         variable names.
83294         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83295         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83296         variable prefixes.
83297         * m4/fcntl-safer.m4: Remove.
83298         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83299         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83300         Invoke gl_PREREQ_FD_SAFER.
83301         (gl_PREREQ_FD_SAFER): New macro.
83302         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83303         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83304         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83305         Remove duplicate call to AC_LIBOBJ(readutmp).
83306         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83307
83308         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83309         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83310
83311 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83312
83313         * MODULES.html.sh (Misc): Add byteswap.
83314
83315 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83316
83317         * modules/getcwd (Depends-on): Add extensions.
83318         * modules/openat (Depends-on): Likewise.
83319
83320 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83321
83322         * modules/byteswap: New file.
83323
83324 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83325
83326         * m4/byteswap.m4: New file.
83327
83328 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83329
83330         * lib/byteswap_.h: New file.
83331
83332 2005-04-25  Karl Berry  <karl@gnu.org>
83333
83334         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83335
83336 2005-04-25  Albert Chin  <china@thewrittenword.com>
83337
83338         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83339         Toolkit C bug.
83340
83341 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83342
83343         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83344         (func_ln_if_changed): Remove forcibly for no error message
83345         in case file does not exist.
83346
83347 2005-04-19  Simon Josefsson  <jas@extundo.com>
83348
83349         * gnulib-tool (Options): Make --symlink mean --symbolic.
83350
83351 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83352
83353         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83354
83355 2005-04-16  Simon Josefsson  <jas@extundo.com>
83356
83357         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83358
83359 2005-04-15  Simon Josefsson  <jas@extundo.com>
83360
83361         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83362
83363 2005-04-15  Simon Josefsson  <jas@extundo.com>
83364
83365         * gnulib-tool: Rename --symlink to --symbolic.
83366
83367 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83368
83369         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83370         symbolic links to files instead of copying/moving.  Add --aux-dir,
83371         specifying directory relative --dir where auxiliary build tools
83372         are placed.
83373
83374 2005-04-14  Bruno Haible  <bruno@clisp.org>
83375
83376         * modules/allocsa (License): Change to LGPL.
83377         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83378
83379 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83382         that "UTC +1 second" continues to work.  Problem reported
83383         by Dmitry V. Levin.
83384         (relunit_snumber): New rule.
83385         (relunit): Use it.
83386
83387 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83388
83389         * lib/getdate.y (universal_time_zone_table): New constant.
83390         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83391         universal_time_zone_table.
83392         (lookup_zone): Prefer universal_time_zone_table to
83393         local_time_zone_table, so that "GMT" time stamps are allowed in
83394         London during the summer.  Problem reported by Ian Abbott.
83395
83396 2005-04-12  Jim Meyering  <jim@meyering.net>
83397
83398         * lib/human.c (humblock): Set *options even when returning due to
83399         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83400         warning from gcc-4.
83401
83402 2005-04-09  Jim Meyering  <jim@meyering.net>
83403
83404         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83405         -Wuninitialized: initialize tm0.tm_year.
83406
83407 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83408
83409         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83410         count, since there's no maximum.  All uses changed.
83411         Add member dsts_seen.
83412         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83413         not being INT_MAX.
83414         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83415         Use pc_rels_seen to decide whther a date is absolute.
83416
83417         * lib/getdate.y (number): Don't overwrite year.
83418         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83419         check.
83420
83421 2005-04-02  Simon Josefsson  <jas@extundo.com>
83422
83423         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83424         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83425
83426 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83427
83428         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83429         where no absolute path name can be longer than PATH_MAX.
83430
83431 2005-03-27  Jim Meyering  <jim@meyering.net>
83432
83433         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83434
83435 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83438         "one's complement" -> "ones' complement" in comment, as per Knuth.
83439         "value of type" -> "type or expression" in comment.
83440         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83441
83442 2005-03-26  Jim Meyering  <jim@meyering.net>
83443
83444         Comment nits.
83445         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83446         Correct typos: s/or/of/.
83447
83448 2005-03-26  Jim Meyering  <jim@meyering.net>
83449
83450         * modules/check-include-files: Move to ../ and rename to...
83451         * check-module: ...this.
83452
83453 2005-03-25  Jim Meyering  <jim@meyering.net>
83454
83455         * modules/xvasprintf (Files): Add xalloc.h.
83456
83457 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83458
83459         * modules/gettext (Files): config/config.rpath ->
83460         build-aux/config.rpath
83461         * modules/iconv (Files): Likewise.
83462         Problem reported by Oskar Liljeblad.
83463
83464 2005-03-23  Jim Meyering  <jim@meyering.net>
83465
83466         * modules/check-include-files: New script to check for
83467         missing dependencies, multiple includes, etc.
83468
83469         * modules/c-strtold (Depends-on): Add xalloc.
83470         * modules/c-strtod (Depends-on): Add xalloc.
83471         * modules/hash (Depends-on): Add xalloc.
83472         (Files): Remove lib/xalloc.h.
83473
83474         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83475         * modules/userspec (Files): Add lib/inttostr.h.
83476
83477 2005-03-23  Jim Meyering  <jim@meyering.net>
83478
83479         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83480
83481 2005-03-22  Jim Meyering  <jim@meyering.net>
83482
83483         * modules/stat-macros: New module.
83484         * modules/canonicalize, modules/euidaccess, modules/file-type,
83485         * modules/filemode, modules/lchown, modules/makepath,
83486         * modules/rmdir, modules/stat: Depend on new stat-macros module
83487         rather than listing lib/stat-macros.h manually.
83488         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83489
83490 2005-03-22  Jim Meyering  <jim@meyering.net>
83491
83492         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83493
83494 2005-03-22  Bruno Haible  <bruno@clisp.org>
83495
83496         * config/srclist.txt: Replace target directory 'config' with
83497         'build-aux'.
83498         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83499         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83500         ../build-aux/.
83501
83502 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * modules/chdir-long (Depends-on): Add mempcpy.
83505
83506         * modules/acl, modules/backupfile, modules/c-strtod,
83507         modules/c-strtold, modules/canon-host, modules/canonicalize,
83508         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83509         modules/exclude, modules/exitfail, modules/file-type,
83510         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83511         modules/getdate, modules/getline, modules/getpagesize,
83512         modules/getpass, modules/getugroups, modules/group-member,
83513         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83514         modules/inttostr, modules/long-options, modules/makepath,
83515         modules/md5, modules/memcasecmp, modules/memcoll,
83516         modules/modechange, modules/mountlist, modules/path-concat,
83517         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83518         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83519         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83520         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83521         modules/strftime, modules/strndup, modules/strverscmp,
83522         modules/timespec, modules/unlocked-io, modules/userspec,
83523         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83524         modules/yesno:
83525         Remove lib_SOURCES line from Makefile.am section, as this is now
83526         done automatically by the corresponding Autoconf macro.
83527
83528 2005-03-21  Jim Meyering  <jim@meyering.net>
83529
83530         Changes imported from coreutils.
83531
83532         * lib/cycle-check.c: Don't include xalloc.h.
83533
83534         * lib/path-concat.c: Don't include assert.h.
83535         (path_concat): Remove assertion that would have triggered
83536         for ABASE starting with more than one slash.
83537         Reported by Andreas Schwab.
83538
83539         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83540         properly when ABASE is an absolute file name.
83541         Correct the description of this function.
83542         Include <assert.h>.
83543         Add an assertion and a test driver.
83544         This fixes a bug introduced on 2004-07-02.
83545         Andreas Schwab reported the resulting failure of cp --parents:
83546         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83547
83548 2005-03-21  Jim Meyering  <jim@meyering.net>
83549
83550         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83552
83553 2005-03-21  Jim Meyering  <jim@meyering.net>
83554         and  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83557         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83558         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83559         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83560         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83561         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83562         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83563         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83564         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83565         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83566         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83567         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83568         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83569         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83570         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83571         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83572         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83573         for these modules.
83574
83575 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83578         (which shouldn't happen), generate nothing instead of returning 0
83579         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83580
83581 2005-03-16  Bruno Haible  <bruno@clisp.org>
83582
83583         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83584         HAVE_LONGLONG_64BIT.
83585
83586 2005-03-16  Bruno Haible  <bruno@clisp.org>
83587
83588         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83589         HAVE_LONGLONG_64BIT.
83590
83591 2005-03-16  Bruno Haible  <bruno@clisp.org>
83592
83593         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83594         HAVE_LONGLONG_64BIT.
83595
83596 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83599         reliably distinguish strftime failure from empty output on POSIX
83600         hosts.
83601
83602 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83603
83604         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83605         (iconv_string): Don't guess a size-zero buffer, as that might cause
83606         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83607         result would be 'too large', where 'too large' is (heuristically)
83608         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83609         overflow concerns.  This will prevent some unwanted malloc failures
83610         when the inputs are very large.
83611
83612 2005-03-15  Karl Berry  <karl@gnu.org>
83613
83614         * config/srclist.txt (config.rpath): from gettext.
83615         * config/config.rpath: update.
83616
83617 2005-03-15  Bruno Haible  <bruno@clisp.org>
83618
83619         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83620         to 'negate'.
83621
83622         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83623         variable.
83624
83625         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83626         results.
83627
83628 2005-03-14  Simon Josefsson  <jas@extundo.com>
83629
83630         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83631         <fx@gnu.org>.
83632
83633 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83634
83635         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83636         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83637         intprops.h.
83638         * lib/strtol.c: Likewise.
83639
83640 2005-03-14  Jim Meyering  <jim@meyering.net>
83641
83642         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83643         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83644         to be nonzero so that we (and caller) can detect the difference
83645         between a valid zero-length expansion and an error return, even
83646         when the underlying strftime fails before writing anything into
83647         that location.
83648
83649 2005-03-14  Bruno Haible  <bruno@clisp.org>
83650
83651         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83652         Update from GNU gettext 0.14.3.
83653
83654 2005-03-10  Jim Meyering  <jim@meyering.net>
83655
83656         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83657
83658 2005-03-10  Jim Meyering  <jim@meyering.net>
83659
83660         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83661         so that this module works on systems without fchdir.
83662
83663 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         Factor int-properties macros into a single file, except for
83666         glibc-related files.
83667         * lib/intprops.h: New file.
83668         * lib/getloadavg.c: Include it instead of limits.h.
83669         (INT_STRLEN_BOUND): Remove.
83670         * lib/human.c: Include intprops.h.
83671         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83672         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83673         302/1000.
83674         * lib/inttostr.h: Include intprops.h instead of limits.h.
83675         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83676         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83677         for consistency with intprops.h.
83678         (time_t_is_integer, twos_complement_arithmetic): Use them.
83679         * lib/sig2str.h: Include <signal.h>, intprops.h.
83680         (INT_STRLEN_BOUND): Remove.
83681         * lib/strftime.c (TYPE_SIGNED): Remove.
83682         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83683         * lib/strtol.c: Adjust comments to match intprops.h.
83684         * lib/userspec.c: Include intprops.h.
83685         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83686         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83687         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83688         instead of rolling our own expressions.
83689         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83690
83691         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83692         instead of int.
83693         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83694         the right thing even if adding 1900 would overflow.  Similarly
83695         for tm_mon + 1 and tm_yday + 1.
83696         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83697         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83698         (DO_SIGNED_NUMBER): New macro.
83699         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83700
83701 2005-03-07  Bruno Haible  <bruno@clisp.org>
83702
83703         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83704
83705 2005-03-07  Bruno Haible  <bruno@clisp.org>
83706
83707         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83708
83709 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83710
83711         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83712         (func_import): Only replace files via --import when they have actually
83713         changed.
83714
83715 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83716
83717         * m4/mmap-anon.m4: New file.
83718         * m4/pagealign_alloc.m4: New file.
83719
83720 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83721             Bruno Haible  <bruno@clisp.org>
83722
83723         * modules/pagealign_alloc: New file.
83724         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83725
83726 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83727             Bruno Haible  <bruno@clisp.org>
83728
83729         * lib/pagealign_alloc.h: New file.
83730         * lib/pagealign_alloc.c: New file.
83731
83732 2005-03-03  Bruno Haible  <bruno@clisp.org>
83733
83734         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83735         Use an all-permissive copyright notice, recommended by RMS.
83736
83737 2005-03-02  Bruno Haible  <bruno@clisp.org>
83738
83739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83740         of AIX, the replacement has to be done only after <string.h> is
83741         included, therefore not in config.h. stpncpy.h does the replacement,
83742         and stpncpy.c uses it.
83743
83744 2005-03-02  Bruno Haible  <bruno@clisp.org>
83745
83746         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83747         stpncpy.c uses it.
83748
83749 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83750
83751         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83752         The workaround isn't strictly needed for POSIX conformance, and
83753         it's too much of a pain to configure and maintain.  We'll ask
83754         people to fix their kernels instead.
83755         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83756         (NANOSLEEP_BUG_WORKAROUND): Remove.
83757         (xnanosleep): Remove the workaround.
83758
83759 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83762         Reported by Derek Price.
83763         (Include): Add "timespec.h".
83764
83765         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83766
83767 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83770         to detect nanosleep bug.
83771
83772 2005-03-01  Bruno Haible  <bruno@clisp.org>
83773
83774         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83775
83776 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83777
83778         * modules/gethrxtime: New file.
83779         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83780         (Depends-on): Add gethrxtime.
83781         (configure.ac): Add gl_XNANOSLEEP.
83782         (Makefile.am): Remove lib_SOURCES line.
83783
83784 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83787         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83788
83789 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83792         * lib/timespec.h (gettime): Return void, since it always
83793         succeeds now.  All uses changed.
83794         * lib/gettime.c (gettime): Likewise.
83795         [HAVE_NANOTIME]: Prefer nanotime.
83796         Assume gettimeofday succeeds, as POSIX requires.
83797         Assime time () succeeds, since other code already does.
83798         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83799         (timespec_subtract): Remove.
83800         (NANOSLEEP_BUG_WORKAROUND): New constant.
83801         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83802         things considerably.  Use it only on GNU/Linux hosts, since the
83803         workaround shouldn't be needed elsewhere.
83804
83805 2005-02-24  Bruno Haible  <bruno@clisp.org>
83806
83807         * modules/gettext (Files): Add m4/glibc2.m4.
83808
83809 2005-02-24  Bruno Haible  <bruno@clisp.org>
83810
83811         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83812         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83813         * m4/progtest.m4:
83814         Update from GNU gettext 0.14.2.
83815         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83816
83817 2005-02-24  Bruno Haible  <bruno@clisp.org>
83818
83819         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83820         * lib/config.charset: Update from GNU gettext 0.14.2.
83821
83822 2005-02-24  Bruno Haible  <bruno@clisp.org>
83823
83824         * lib/gettext.h: Update from GNU gettext 0.14.2.
83825
83826 2005-02-23  Simon Josefsson  <jas@extundo.com>
83827
83828         * m4/iconvme.m4: New file.
83829
83830 2005-02-23  Jim Meyering  <jim@meyering.net>
83831
83832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83833         change.
83834         Thanks to Bruno Haible for catching it.
83835
83836 2005-02-22  Simon Josefsson  <jas@extundo.com>
83837
83838         * modules/iconvme: New file.
83839
83840         * MODULES.html.sh: Add iconvme.
83841
83842 2005-02-22  Simon Josefsson  <jas@extundo.com>
83843
83844         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83845
83846 2005-02-22  Simon Josefsson  <jas@extundo.com>
83847
83848         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83849
83850 2005-02-22  Jim Meyering  <jim@meyering.net>
83851
83852         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83853         s/ifndef/ifdef/.
83854
83855 2005-02-20  Neil Conway  <neilc@samurai.com>
83856
83857         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83858         returned by OSX/Darwin if the specified buffer is not large
83859         enough for the hostname.
83860
83861 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83862
83863         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83864         pass it to _help, otherwise the latter coredumps trying to
83865         dereference state.root_argp.
83866
83867 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * modules/chdir-long (Depends-on): Add memrchr.
83870         * modules/memrchr (Files): Add lib/memrchr.h.
83871         (Include): "memrchr.h".
83872
83873 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83876
83877 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83878
83879         * lib/memrchr.h: New file.
83880         * lib/chdir-long.c: Include it.
83881         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83882         Don't bother including stddef.h.
83883
83884 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83885
83886         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83887         inclusion.
83888         Include <sys/types.h>, for dev_t.
83889         (ME_DUMMY, ME_REMOTE): Move from here....
83890         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83891         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83892         Dmitry V. Levin.
83893         Include mountlist.h first, to test the interface.
83894
83895 2005-01-29  Bruno Haible  <bruno@clisp.org>
83896
83897         * lib/progname.c (program_name): Initialize.
83898         Needed when linking statically on MacOS X.
83899
83900 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83901
83902         Sync from coreutils.
83903         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83904         (Depends-on): Add c-strtod.
83905         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83906
83907 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         Sync from coreutils.
83910         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83911
83912         Remove files that are specific to coreutils.
83913         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83914
83915 2005-01-28  Bruno Haible  <bruno@clisp.org>
83916
83917         * modules/javacomp: New file.
83918         * MODULES.html.sh (Java): Add javacomp.
83919
83920 2005-01-28  Bruno Haible  <bruno@clisp.org>
83921
83922         * m4/javacomp.m4: New file, from GNU gettext.
83923
83924 2005-01-28  Bruno Haible  <bruno@clisp.org>
83925
83926         * lib/javacomp.sh.in: New file, from GNU gettext.
83927         * lib/javacomp.h: New file, from GNU gettext.
83928         * lib/javacomp.c: New file, from GNU gettext.
83929
83930 2005-01-26  Simon Josefsson  <jas@extundo.com>
83931
83932         * lib/gai_strerror.c: Use GPL in header.
83933
83934 2005-01-26  Bruno Haible  <bruno@clisp.org>
83935
83936         * modules/javaexec: New file.
83937         * MODULES.html.sh (Java): Add javaexec.
83938
83939 2005-01-26  Bruno Haible  <bruno@clisp.org>
83940
83941         * m4/javaexec.m4: New file, from GNU gettext.
83942
83943 2005-01-26  Bruno Haible  <bruno@clisp.org>
83944
83945         * lib/javaexec.sh.in: New file, from GNU gettext.
83946         * lib/javaexec.h: New file, from GNU gettext.
83947         * lib/javaexec.c: New file, from GNU gettext.
83948
83949 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83950
83951         * modules/lchown (Depends-on): Remove lchown.h
83952
83953 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83954
83955         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83956         must be defined if the header file was not found, in order
83957         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83958
83959 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83960
83961         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83962         initializers for struct pentry_state.
83963         (__argp_error): Check return value of __asprintf
83964         (__argp_failure): Translate error message
83965
83966         * lib/argp-parse.c: Removed braces around the expansion of N_()
83967
83968 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83971         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83972         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83973         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83974         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83975         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83976         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83977         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83978         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83979         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83980         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83981         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83982         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83983         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83984         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83985         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83986         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83987         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83988         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83989         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83990         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83991         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83992         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83993         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83994         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83995         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83996         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83997         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83998         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83999         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84000         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84001         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84002         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84003         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84004         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84005         Use an all-permissive copyright notice, recommended by RMS.
84006
84007 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84008
84009         * modules/chdir-long (Depends-on): Remove mempcpy.
84010
84011 2005-01-21  Jim Meyering  <jim@meyering.net>
84012
84013         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84014         same value as for Solaris 9.
84015
84016         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84017         component length.  This included changing the parameter to be
84018         of type `char *' rather than `char const *'.
84019         * lib/chdir-long.h (chdir_long): Update prototype.
84020
84021         * lib/openat.c (fdopendir, fstatat): New functions.
84022         * lib/openat.h: Include headers required for use of DIR and struct
84023         stat.
84024         [AT_SYMLINK_NOFOLLOW]: Define.
84025         (fdopendir, fstatat): Add prototypes.
84026
84027 2005-01-21  Bruno Haible  <bruno@clisp.org>
84028
84029         * modules/classpath: New file.
84030         * MODULES.html.sh (Java): Add classpath.
84031
84032 2005-01-21  Bruno Haible  <bruno@clisp.org>
84033
84034         * lib/classpath.h: New file, from GNU gettext.
84035         * lib/classpath.c: New file, from GNU gettext.
84036
84037 2005-01-20  Simon Josefsson  <jas@extundo.com>
84038
84039         * modules/version-etc-fsf: New file.
84040
84041 2005-01-20  Simon Josefsson  <jas@extundo.com>
84042
84043         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84044         * lib/version-etc.c: Remove version_etc_copyright.
84045         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84046         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84047
84048 2005-01-20  Simon Josefsson  <jas@extundo.com>
84049
84050         * lib/base64.h (isbase64): Add.
84051
84052         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84053         using a unsigned prototype, don't inline.
84054         (base64_decode): Use it.
84055
84056 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84057
84058         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84059         it.
84060
84061 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84062
84063         * lib/save-cwd.c (save_cwd): Remove code to support the case
84064         where fchdir is missing or flaky.
84065
84066 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84067
84068         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84069
84070 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84071
84072         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84073         AC_LIBSOURCES now does this.
84074         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84075         with new ullong_max module.
84076
84077 2005-01-19  Bruno Haible  <bruno@clisp.org>
84078
84079         * modules/sh-quote: New file.
84080         * MODULES.html.sh (Executing programs): Add sh-quote.
84081
84082 2005-01-19  Bruno Haible  <bruno@clisp.org>
84083
84084         * lib/sh-quote.h: New file, from GNU gettext.
84085         * lib/sh-quote.c: New file, from GNU gettext.
84086
84087 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84088
84089         Merge from coreutils.
84090         * m4/ullong_max.m4: New file.
84091         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84092         (gl_MACROS): Assume localeconv exists.
84093
84094 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84095
84096         Merge changes from coreutils, as described below in several
84097         changelogs dated today.
84098
84099         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84100         (O_DIRECTORY): Remove; not needed here, since "." must be
84101         a directory.  All uses removed.
84102         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84103         universal on Suns, and we also need to test for IRIX.
84104         Revamp code to use 'if' rather than '#if'.
84105         Avoid unnecessary comparison of cwd->desc to 0.
84106
84107         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84108         for known valid error numbers rather than observed invalid ones.
84109
84110 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84111
84112         * modules/ullong_max: New file.
84113
84114         * modules/chdir-long, modules/openat: New files.
84115         * modules/save-cwd (Depends-on): Depend on chdir-long.
84116         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84117
84118 2005-01-18  Jim Meyering  <jim@meyering.net>
84119
84120         Merge from coreutils.
84121         * m4/chdir-long.m4, m4/openat.m4: New files.
84122         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84123         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84124         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84125         is sane and DOES follow symlinks.  Besides, testing 20 different
84126         systems found no broken chown implementations.
84127         Prompted by a change in rsync's copy of this macro.
84128         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84129
84130         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84131
84132         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84133         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84134         NULL-means-set-to-current-time semantics.
84135         Remove temporary file immediately, rather than waiting
84136         for configure's at-exit trap code to do it.
84137
84138 2005-01-18  Jim Meyering  <jim@meyering.net>
84139
84140         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84141
84142         * lib/utimens.c (futimens): Account for the fact that futimes
84143         can also fail with errno == ENOSYS or errno == ENOENT.
84144         Patch from Dmitry V. Levin.
84145
84146         Change the name of the robust chdir function from chdir to chdir_long.
84147         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84148         (restore_cwd): Use chdir_long, not chdir.
84149         * lib/chdir-long.c: Renamed from chdir.c.
84150         * lib/chdir-long.h: Renamed from chdir.h.
84151         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84152         Hurd.
84153
84154 2005-01-18  Bruno Haible  <bruno@clisp.org>
84155
84156         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84157         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84158         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84159         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84160         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84161         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84162         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84163         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84164         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84165         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84166         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84167         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84168         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84169         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84170         Use an all-permissive copyright notice, recommended by RMS.
84171
84172 2005-01-18  Bob Proulx  <bob@proulx.com>
84173
84174         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84175         simplify offsetof() macro construct to avoid compile failure with
84176         native HP-UX 11.0 ANSI C compiler.
84177
84178 2005-01-17  Bruno Haible  <bruno@clisp.org>
84179
84180         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84181         redundant because stpncpy.m4 takes care of it.
84182
84183 2005-01-17  Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84186
84187 2005-01-17  Bruno Haible  <bruno@clisp.org>
84188
84189         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84190         used.
84191
84192 2005-01-17  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/fwriteerror.h (fwriteerror): Change specification to include
84195         fclose.
84196         * lib/fwriteerror.c: Include <stdbool.h>.
84197         (fwriteerror): At the end, close the file stream. Record whether
84198         stdout was already closed.
84199
84200 2005-01-17  Bruno Haible  <bruno@clisp.org>
84201
84202         * lib/execute.c (environ): Declare if needed.
84203         * lib/pipe.c (environ): Likewise.
84204         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84205
84206 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84207
84208         * modules/argp: Depend on vsnprintf
84209
84210 2005-01-10  Jim Meyering  <jim@meyering.net>
84211
84212         * modules/closeout (Depends-on): Add atexit.
84213
84214 2005-01-06  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84217
84218 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84219
84220         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84221         definitions to be after all include files, to avoid collisions.
84222         Problem reported by Bob Proulx.
84223
84224 2005-01-04  Jim Meyering  <jim@meyering.net>
84225
84226         Changes imported from coreutils.
84227         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84228         as the mkstemp template, use a temporary directory and an
84229         8.3-friendly template to avoid trouble on systems like DJGPP.
84230         Reported by Juan M. Guerrero via Stepan Kasal.
84231         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84232         close. Remove the temporary directory right away, rather than waiting
84233         for configure's at-exit trap code to do it.
84234         Suggestion from Stepan Kasal.
84235
84236 2005-01-01  Simon Josefsson  <jas@extundo.com>
84237
84238         * gnulib-tool: Print #include directives when --import'ing.
84239
84240 2004-12-28  Simon Josefsson  <jas@extundo.com>
84241
84242         * tests/test-base64.c: Include required header files.  Remove
84243         unused variables.
84244
84245 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         * modules/error (Depends-on): Remove gettext.
84248
84249 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84250
84251         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84252         not needed.  This removes a dependency on the gettext module.
84253         [defined _LIBC]: Do not include <libintl.h>; not needed.
84254
84255 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84256
84257         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84258         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84259
84260 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84263         HAVE_DECL_STRTOLD.
84264
84265 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84266
84267         * modules/getdate (Depends-on): Remove alloca-opt.
84268
84269 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84270
84271         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84272
84273 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * lib/argp-parse.c: Include <stddef.h>.
84276         (alignof, alignto): New macros.
84277         (parser_init): Don't assume that void * is aligned sufficiently
84278         for struct option.
84279
84280         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84281         need to extend the stack.
84282         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84283         large.
84284
84285 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84286
84287         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84288
84289 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84290
84291         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84292         (2004-10-24) change.  Apparently this was a false alarm.
84293
84294         * modules/getdate: Depend on alloca-opt, not alloca.
84295
84296 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84297
84298         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84299         Remove now-obsolete comment about AIX.
84300         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84301         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84302         (YYMAXDEPTH): New macro.
84303
84304 2004-12-18  Simon Josefsson  <jas@extundo.com>
84305
84306         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84307
84308 2004-12-18  Bruno Haible  <bruno@clisp.org>
84309
84310         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84311
84312 2004-12-18  Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/fatal-signal.c (fatal_signals): Make non-const.
84315         (init_fatal_signals): New function.
84316         (uninstall_handlers, install_handlers): Ignore signals that were set to
84317         SIG_IGN.
84318         (at_fatal_signal): Call init_fatal_signals.
84319         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84320         SIG_IGN.
84321         Reported by Paul Eggert.
84322
84323 2004-12-18  Bruno Haible  <bruno@clisp.org>
84324
84325         * doc/alloca.texi: New file.
84326         * doc/alloca-opt.texi: New file.
84327
84328 2004-12-17  Jim Meyering  <jim@meyering.net>
84329
84330         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84331         Otherwise, install-sh could exit with improper exit status when
84332         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84333
84334 2004-12-16  Simon Josefsson  <jas@extundo.com>
84335
84336         * tests/test-base64.c: Add license.
84337
84338 2004-12-15  Stepan Kasal  <address@hidden>
84339
84340         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84341
84342 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * modules/getcwd (Files): Add m4/d-ino.m4.
84345         Suggested by Mark D. Baushke.
84346
84347 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * lib/getdate.y (textint): New member "negative".
84350         (time_zone_hhmm): New function.
84351         Expect 14 shift-reduce conflicts, not 13.
84352         (o_colon_minutes): New rule.
84353         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84354         (yylex): Set the "negative" member of signed numbers.
84355
84356 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84357
84358         * doc/getdate.texi (Time of day items, Time zone items):
84359         Describe new formats +00:00, UTC+00:00.
84360
84361 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84364         spurious "-l"s.  Problem reported by Stepan Kasal.
84365
84366 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84367
84368         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84369         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84370
84371 2004-12-04  Simon Josefsson  <jas@extundo.com>
84372
84373         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84374         Vandoorselaere <yoann@prelude-ids.org>.
84375
84376 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         Changes imported from coreutils.
84379         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84380         exist.
84381         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84382
84383 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84384
84385         Changes imported from coreutils.
84386         * lib/hard-locale.c: Assume <locale.h> exists.
84387         Include "strdup.h".
84388         (GLIBC_VERSION): New macro.
84389         (hard_locale): Assume setlocale exists.
84390         Rewrite to avoid #ifdef.
84391         Use strdup rather than malloc + strcpy.
84392         * lib/human.c: Assume <locale.h> exists.
84393         (human_readable): Assume localeconv exists.
84394
84395 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         * modules/hard-locale (Depends-on): Add strdup.
84398
84399 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84400
84401         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84402         convert T2, not T.  (Imported from libc.)
84403
84404 2004-11-30  Simon Josefsson  <jas@extundo.com>
84405
84406         * modules/restrict (License): Change to LGPL.
84407
84408 2004-11-30  Simon Josefsson  <jas@extundo.com>
84409
84410         * m4/restrict.m4: Add copyright and copying conditions.
84411
84412 2004-11-30  Simon Josefsson  <jas@extundo.com>
84413
84414         * m4/base64.m4: New file.
84415
84416 2004-11-30  Simon Josefsson  <jas@extundo.com>
84417
84418         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84419         base64.
84420
84421         * tests/test-base64.c: New file.
84422
84423         * modules/base64: New file.
84424
84425 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84428         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84429
84430         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84431
84432 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84433
84434         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84435         (__getcwd.c): Don't restore errno; glibc doesn't.
84436         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84437         first, falling back to our code only if its results look suspicious.
84438         Ensure that the resulting buffer is only as large as necessary.
84439
84440         * lib/readutmp.c: Include readutmp.h first.
84441         Include <errno.h>, since readutmp.h no longer does that.
84442         * lib/readutmp.h: Don't include <errno.h>,
84443         <sys/param.h>, <time.h>; not needed to establish interface.
84444         (errno): Remove decl.
84445         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84446         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84447         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84448
84449 2004-11-28  Simon Josefsson  <jas@extundo.com>
84450
84451         * lib/base64.h, base64.c: New file.
84452
84453 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84456
84457 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84458
84459         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84460         (Depends-on): Remove pathmax, same.  Add mempcpy.
84461         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84462         (Makefile.am): Append getcwd.h to lib_SOURCES.
84463         (Include): Add getcwd.h.
84464         (Maintainer): Change from Jim Meyering to "all, glibc",
84465         since getdate now uses intended-for-glibc code.
84466         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84467         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84468
84469 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84470
84471         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84472         HP's ANSI C compiler.
84473         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84474         Declaring int functions causes warnings on some modern systems and
84475         shouldn't be needed to compile on ancient ones.
84476         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84477         defined.
84478
84479         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84480         with the following changes.
84481         (__set_errno): Parenthesize properly.
84482         Include <stdbool.h>.
84483         (MIN, MAX, MATCHING_INO): New macros.
84484         (__getcwd): Define with prototype, not K&R form.
84485         Use heuristics to allocate default buffer on stack if possible.
84486         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84487         behavior, and to avoid the PATH_MAX limit when computing
84488         ../../../../...
84489         Use MATCHING_INO to compare inode number to file.
84490         Check for arithmetic overflow in size calculations.
84491         Fix bug in reallocation of dot array that caused getcwd to fail
84492         on directories nested deeper than 75.
84493         Be more careful about saving errno on error.
84494         Do not use realloc; use only free+malloc, as this is a bit
84495         more flexible and avoids a needless copy operation.
84496         Do not inspect st_dev and st_ino for symbolic links; POSIX
84497         doesn't specify the latter.
84498         Check for closedir errors.
84499         Avoid needless casts.
84500         Use "#ifdef weak_alias" around weak_alias, to be like other
84501         glibc code.
84502         The following changes to getcwd.c have effect only when used in
84503         gnulib; they have no effect inside glibc proper.
84504         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84505         as alloca isn't used.
84506         (alloca, __alloca): Likewise.
84507         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84508         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84509         unconditionally, as gnulib assumes C89 or better.
84510         Do not include <sys/param.h>.
84511         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84512         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84513         better.
84514         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84515         Include <dirent.h> in a way that is compatible with modern Autoconf.
84516         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84517         New macros, if not already defined.
84518         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84519         Use "_LIBC", not "defined _LIBC", for consistency.
84520         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84521         a mempcpy module.
84522         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84523         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84524         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84525         credit only to Jim Meyering and adjust the copyright dates.
84526         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84527         <stdlib.h>, <unistd.h>, "pathmax.h".
84528         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84529         (INITIAL_BUFFER_SIZE): Remove.
84530         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84531
84532 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84533
84534         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84535         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84536         Use the _ONCE methods, for efficiency.
84537         Check for fcntl.h.  In test program, include <errno.h>
84538         and <fcntl.h> if available.  Remove old K&R cruft from
84539         test program.  Check for common errors in GNU/Linux,
84540         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84541         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84542         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84543         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84544         name accordingly.
84545         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84546         accommodate new getcwd.c.
84547         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84548         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84549         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84550         that's all we need now.
84551
84552 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84553
84554         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84555         argp-parse.c depends on getopt internals, that means we should
84556         always use our getopt, to be on the safe side.
84557         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84558         order not to spoil the result of an eventual previous invocation
84559         of gl_GETOPT_SUBSTITUTE.
84560
84561 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84562
84563         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84564         redefinition warnings. To avoid them, include the defines
84565         in `#if !defined __need_getopt ... #endif'. The only place
84566         where __getopt_argv_const is used is in definitions
84567         of getopt_long and getopt_long_only below, which are as well
84568         protected by `#ifndef __need_getopt'.
84569         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84570         __need_getopt after including <stdio.h> and <unistd.h> These
84571         headers might have defined it.
84572
84573 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84574
84575         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84576
84577 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84578
84579         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84580         (futimens): New function, which uses futimes if available.
84581         (futimens, utimens): Support timespec==NULL, with same semantics
84582         as utime and utimens.
84583         * lib/utimens.h (futimens): New decl.
84584
84585 2004-11-23  Jim Meyering  <jim@meyering.net>
84586
84587         * lib/getopt_.h: Remove trailing blanks.
84588
84589 2004-11-23  Jim Meyering  <jim@meyering.net>
84590
84591         * lib/__fpending.c: Add comment.
84592
84593 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84594
84595         * modules/canonicalize (Depends-on): Add xreadlink.
84596         Problem reported by James Youngman.
84597
84598 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84599
84600         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84601         New macros.
84602         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84603         optopt): Use them instead of invoking ## directly; otherwise, the
84604         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84605
84606 2004-11-19  Bruno Haible  <bruno@clisp.org>
84607
84608         * lib/strtok_r.c: Move comments from here...
84609         * lib/strtok_r.h: ... to here.
84610
84611 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84614         implementations that mishandle size_t overflow.
84615
84616 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84617
84618         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84619         might fail.  Problem reported by Yoann Vandoorselaere.
84620         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84621         implementations that mishandle size_t overflow.
84622
84623 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84624
84625         * modules/canon-host (Depends-on): Add strdup.
84626
84627 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84628
84629         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84630
84631 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/canon-host.c: Include "strdup.h".
84634         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84635         Use strdup instead of malloc/strcpy to duplicate strings.
84636
84637         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84638         (human_space_before_unit): New constant.
84639         * lib/human.c (human_readable): Support it.
84640
84641         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84642         (xgetcwd): Set errno correctly when failing.
84643         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84644         the failure is actually due to a PATH_MAX problem.
84645
84646         Further getopt changes to make it more likely that glibc will
84647         buy the changes back.
84648         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84649         (getopt): Use it, so to preserve glibc semantic
84650         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84651         when compiling for libc.
84652         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84653         (getopt_long, getopt_long_only): Use it.
84654
84655         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84656         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84657         (getopt): Argv is now char * const *, as per standard.
84658         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84659         not char *__getopt_argv_const *.
84660         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84661         _getopt_long_only_r): Likewise.
84662         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84663         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84664         _getopt_long_r, _getopt_long_only_r): Likewise.
84665         * lib/getopt_.h (__getopt_argv_const): Remove.
84666         (getopt): Argv is now char * const *, as per standard.
84667
84668         * lib/getdate.y (tORDINAL): New token.
84669         (day, relunit): Allow it for relative times.
84670         (relative_time_table): Use tORDINAL for ordinals.
84671
84672 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84673
84674         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84675         Document that "second" isn't allowed as an ordinal number.
84676
84677 2004-11-16  Jim Meyering  <jim@meyering.net>
84678
84679         * modules/closeout (Depends-on): Add fpending.
84680
84681 2004-11-15  Jim Meyering  <jim@meyering.net>
84682
84683         * lib/closeout.c: Include "__fpending.h" once again.
84684         Include <stdbool.h>.
84685         (close_stdout): Don't fail just because stdout was closed initially,
84686         since some programs don't write to stdout in the normal course of
84687         operation (other than --version and --help), and we don't want this
84688         function to make e.g. `touch file >&-' fail.
84689         But do fail if it was closed and someone has tried to write to it.
84690         E.g., `printf foo >&-' must fail.
84691
84692 2004-11-13  Jim Meyering  <jim@meyering.net>
84693
84694         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84695
84696 2004-11-12  Simon Josefsson  <jas@extundo.com>
84697
84698         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84699         small doc fix is still pending.
84700
84701 2004-11-11  Simon Josefsson  <jas@extundo.com>
84702
84703         * modules/strtok_r: New file.
84704
84705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84706         strtok_r.
84707
84708 2004-11-11  Simon Josefsson  <jas@extundo.com>
84709
84710         * m4/strtok_r.m4: New file.
84711
84712         * m4/getopt.m4: Replace opterr.
84713
84714 2004-11-11  Simon Josefsson  <jas@extundo.com>
84715
84716         * lib/strtok_r.h, strtok_r.c: New file.
84717
84718 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84719
84720         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84721         of replacing opterr, getopt, etc.  This should handle the
84722         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84723
84724 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84727         we can stop lying to compilers about the constness of argv when we
84728         are compiled outside glibc.
84729         (getopt, getopt_long, getopt_long_only): Use it.
84730         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84731         _getopt_internal, getopt): Likewise.
84732         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84733         _getopt_long_only_r): Likewise.
84734         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84735         _getopt_long_r, _getopt_long_only_r): Likewise.
84736
84737         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84738         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84739         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84740         the other external symbols.
84741         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84742         declaration, since the above renaming now works around collisions.
84743
84744 2004-11-11  Jim Meyering  <jim@meyering.net>
84745
84746         * lib/linebreak.c: Remove trailing blanks.
84747         * lib/alloca_.h: Likewise.
84748         * lib/acosl.c: Likewise.
84749         * lib/euidaccess.c: Likewise.
84750         * lib/allocsa.h: Likewise.
84751
84752 2004-11-10  Simon Josefsson  <jas@extundo.com>
84753
84754         * m4/getaddrinfo.m4: New file.
84755
84756 2004-11-10  Simon Josefsson  <jas@extundo.com>
84757
84758         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84759
84760 2004-11-10  Simon Josefsson  <jas@extundo.com>
84761
84762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84763         getaddrinfo.
84764
84765         * modules/getaddrinfo: New file.
84766
84767 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84768
84769         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84770
84771 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * lib/mktime.c (SHR): New macro, which is a portable
84774         substitute for >> that should work even on Crays.
84775         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84776         Problem reported by Mark D. Baushke in
84777         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84778         * lib/getdate.y (SHR): Likewise.
84779         (tm_diff): Use it.
84780         * lib/strftime.c (SHR): Likewise.
84781         (tm_diff): Use it.
84782         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84783         quote_these_too, so that right shifts are well defined.  All uses
84784         changed.
84785
84786 2004-11-10  Jim Meyering  <jim@meyering.net>
84787
84788         Ensure that no close failure goes unreported.
84789         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84790         return early when it seems there's nothing to flush.
84791         Don't include __fpending.h.
84792
84793 2004-11-10  Jim Meyering  <jim@meyering.net>
84794
84795         * modules/closeout (Depends-on): Remove fpending.
84796
84797 2004-11-10  Jim Meyering  <jim@meyering.net>
84798
84799         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84800
84801 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84804         gl_FUNC_STRFTIME.
84805         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84806         and AC_REQUIRE when possible, to avoid duplicate checks.
84807         Check for <wchar.h>.
84808
84809 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84810
84811         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84812
84813 2004-11-09  Bruno Haible  <bruno@clisp.org>
84814
84815         * m4/sockpfaf.m4: New file.
84816
84817 2004-11-05  Bruno Haible  <bruno@clisp.org>
84818
84819         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84820         Reported by Mark D. Baushke <mdb@cvshome.org>.
84821
84822 2004-11-04  Bruno Haible  <bruno@clisp.org>
84823
84824         2004-09-11  Bruno Haible  <bruno@clisp.org>
84825                 * allocsa.valgrind: New file.
84826         2004-02-06  Bruno Haible  <bruno@clisp.org>
84827                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84828                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84829                 Reported by Christopher Seip <chris.seip@hp.com>.
84830
84831 2004-11-04  Bruno Haible  <bruno@clisp.org>
84832
84833         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84834         (Makefile.am): Distribute it.
84835
84836 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84837
84838         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84839         with errno == ERANGE if the buffer is too small.
84840         Problem reported by Mark D. Baushke.
84841
84842 2004-11-03  Albert Chin  <china@thewrittenword.com>
84843             Paul Eggert  <eggert@cs.ucla.edu>
84844
84845         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84846         equivalent, substitute $ac_type for equivalent type rather than
84847         blindly using uint32_t *always* which won't work if uint32_t is not
84848         available.  Define _UINT32_T to work around typedef of uint32_t if
84849         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84850         2.5.1.
84851
84852 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84853
84854         * m4/jm-macros.m4: Sync from coreutils.
84855         (gl_MACROS): Check for mbrlen, for pathchk.
84856         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84857
84858 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * lib/xreadlink.c (MAXSIZE): New macro.
84861         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84862         size does not exceed MAXSIZE.  Avoid cast.
84863         As suggested by Mark D. Baushke in
84864         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84865         if readlink fails with buffer size just under MAXSIZE, try again
84866         with MAXSIZE.
84867
84868 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84871
84872 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84873         and  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84876         (get_date): Overparenthesize to avoid GCC warning.
84877
84878 2004-11-02  Bruno Haible  <bruno@clisp.org>
84879
84880         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84881         returns void.
84882
84883 2004-11-02  Bruno Haible  <bruno@clisp.org>
84884
84885         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84886         function returns void.
84887
84888 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84891         fflush_unlocked, flockfile, funlockfile, funlockfile,
84892         fputs_unlocked, putc_unlocked.
84893
84894 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84895
84896         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84897         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84898         already declared.
84899
84900 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84901
84902         * modules/getdate (Files): Add doc/getdate.texi.
84903         (Depends-on): Add setenv, xalloc.
84904
84905 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * lib/getdate.y: Add support for TZ="foo" within a date string.
84908         Fix some bugs near time_t boundaries.  Reject dates with
84909         out-of-range components, e.g., "Sept 31".
84910         Include <stdlib.h>, "setenv.h", "xalloc.h".
84911         (ISDIGIT_LOCALE): Remove; unused.
84912         Note that the TZ and time functions used here are not reentrant.
84913         (mktime_ok, get_tz): New functions.
84914         (TZBUFSIZE): New constant.
84915         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84916         This requires that we sometimes generate our own TZ="XXX..." setting.
84917
84918 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * doc/getdate.texi: New file, from coreutils with modifications for
84921         the new TZ parsing.
84922
84923 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84924
84925         * lib/mktime.c (not_equal_tm): Remove redundant check.
84926
84927 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         * modules/regex (lib_SOURCES): Add regex.c.
84930         Reported by James Youngman in
84931         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84932
84933 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * lib/getdate.y: Use Bison 1.875 features, and some minor
84936         code cleanups.  This change does not affect semantics.
84937         Don't include <stdlib.h>; no longer needed.
84938         Don't include unlocked-io.h; only the "#if TEST" code uses
84939         stdio, and performance isn't crucial there.
84940         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84941         Bison 1.875 features as described below.
84942         All uses of "PC." replaced by "pc->".
84943         (YYSTYPE): Add a forward declaration.
84944         (yylex, yyerror): Use full prototypes in forward decls.
84945         Use "%pure-parser" rather than obsolescent "%pure_parser".
84946         Use %parse-param and %lex-param instead of obsolescent
84947         YYPARSE_PARAM and YYLEX_PARAM.
84948         (meridian_table, month_and_day_table, time_units_table,
84949         relative_time_table, time_zone_table, military_table,
84950         lookup_zone, lookup_word, get_date):
84951         Use NULL instead of 0 where appropriate.
84952         (to_hour): Avoid abort (), to avoid a dependency on
84953         stdlib.h.
84954         (yyerror, yylex): Now accepts parser_control * arg.
84955         (main) [TEST]: Use '\0' rather than 0 for char.
84956
84957 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84958
84959         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84960
84961 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84962
84963         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84964         It's now the caller's responsibility to handle the case where
84965         !HAVE_GETPAGESIZE && !defined getpagesize.
84966
84967         * lib/mktime.c (leapyear): Arg is long int, not int.
84968
84969 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84970
84971         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84972
84973 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84974
84975         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84976         missing.  Problem reported by James Youngman.
84977
84978 2004-10-16  Simon Josefsson  <jas@extundo.com>
84979
84980         * gnulib-tool: Fix comments.  Fix parse problem.
84981         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84982
84983 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84986         implementation of getopt_long.  Problem reported by Alexander Taler in:
84987         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84988
84989 2004-10-15  Bruno Haible  <bruno@clisp.org>
84990
84991         * gnulib-tool: Untabify. Initialize supplied_libname.
84992         (func_usage): More homogenous output.
84993         (func_modules_transitive_closure, func_modules_to_filelist,
84994         func_emit_lib_Makefile_am): New functions.
84995         (func_import): New function, extracted from big case statement. Use
84996         func_get_license, func_modules_transitive_closure,
84997         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84998         opt_lgpl. Don't use test -a, as it's not portable.
84999         (func_create_testdir): Use func_modules_transitive_closure,
85000         func_modules_to_filelist, func_emit_lib_Makefile_am.
85001
85002 2004-10-15  Bruno Haible  <bruno@clisp.org>
85003
85004         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85005
85006 2004-10-15  Bruno Haible  <bruno@clisp.org>
85007
85008         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85009         the portions belonging to each module.
85010         Suggested by Derek Robert Price <derek@ximbiot.com>.
85011
85012 2004-10-12  Simon Josefsson  <jas@extundo.com>
85013
85014         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85015         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85016         to real functions.
85017
85018 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85019
85020         * modules/vsnprintf: New file.
85021
85022 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85023
85024         * m4/vsnprintf.m4: New file.
85025
85026 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85027
85028         * lib/vsnprintf.h: New file.
85029         * lib/vsnprintf.c: New file.
85030
85031 2004-10-11  Bruno Haible  <bruno@clisp.org>
85032
85033         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85034         vsnprintf.
85035
85036 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85039
85040 2004-10-07  Bruno Haible  <bruno@clisp.org>
85041
85042         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85043         fits into the provided buffer.
85044
85045 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         * lib/diacrit.c, diacrit.h: Add GPL notice.
85048
85049         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85050         notice.
85051         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85052         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85053         This avoids a potential constant-folding bug.
85054
85055 2004-10-05  Bruno Haible  <bruno@clisp.org>
85056
85057         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85058         for the declaration of strsep.
85059
85060 2004-10-05  Bruno Haible  <bruno@clisp.org>
85061
85062         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85063
85064 2004-10-04  Simon Josefsson  <jas@extundo.com>
85065
85066         * modules/memmem: New file.
85067         * tests/test-memmem.c: New file.
85068         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85069
85070 2004-10-04  Simon Josefsson  <jas@extundo.com>
85071
85072         * m4/memmem.m4: New file.
85073
85074 2004-10-04  Simon Josefsson  <jas@extundo.com>
85075
85076         * lib/memmem.h: New file.
85077         * lib/memmem.c: New file, taken from glibc.
85078
85079 2004-10-04  Simon Josefsson  <jas@extundo.com>
85080
85081         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85082         '#ifdef USE_UNLOCKED_IO'.
85083
85084 2004-10-04  Simon Josefsson  <jas@extundo.com>
85085
85086         * config/srclist.txt: Add memmem from glibc.
85087
85088 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85091
85092         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85093         modules/exclude, modules/getdate, modules/getline,
85094         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85095         modules/getusershell, modules/linebuffer, modules/md5,
85096         modules/mountlist, modules/posixtm, modules/readtokens,
85097         modules/readutmp, modules/regex, modules/sha1,
85098         modules/version-etc, modules/yesno:
85099         Remove dependency on unlocked-io.
85100
85101 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85102
85103         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85104
85105         * m4/unlocked-io.m4: Add copyright notice.
85106         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85107
85108 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85109
85110         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85111         * lib/xmalloc.c (xmemdup): Likewise.
85112         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85113         XFREE): Remove these long-obsolescent macros.
85114         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85115         * lib/xstrdup.c: Remove.
85116
85117         * lib/regex.c (re_comp): Cast gettext return value to char *,
85118         Problem reported by Martin Neitzel via Mark D. Baushke.
85119
85120 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85123         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85124         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85125         regex.c, sha1.c, version-etc.c, yesno.c:
85126         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85127         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85128         the includer's responsibility.
85129
85130         Sync from coreutils.
85131
85132         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85133         points to the start of a string, as the C Standard says the
85134         resulting behavior is undefined.
85135
85136         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85137         simple -> simple_backups, numbered_existing ->
85138         numbered_existing_backups, numbered -> numbered_backups
85139         to avoid shadowing problems.  All uses changed.
85140         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85141         * lib/backupfile.c (check_extension, numbered_backup):
85142         Rename locals to avoid shadowing 'basename'.
85143         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85144         once.
85145
85146         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85147         * lib/.cvsignore: Add getopt.h.
85148
85149 2004-10-04  Bruno Haible  <bruno@clisp.org>
85150
85151         * modules/README: New file.
85152         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85153         not a module.
85154
85155 2004-10-02  Jim Meyering  <jim@meyering.net>
85156
85157         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85158
85159 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85160
85161         * modules/strsep: New file.
85162
85163 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85164
85165         * m4/strsep.m4: New file.
85166
85167 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85168
85169         * lib/strsep.h: New file.
85170         * lib/strsep.c: New file.
85171
85172 2004-10-01  Simon Josefsson  <jas@extundo.com>
85173
85174         * lib/snprintf.c (snprintf): Handle size==0.
85175
85176 2004-10-01  Simon Josefsson  <jas@extundo.com>
85177             Bruno Haible  <bruno@clisp.org>
85178
85179         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85180         (snprintf): Declare 'args'.
85181
85182 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85183
85184         * lib/snprintf.c: Remove comments as to why each header is needed.
85185
85186 2004-10-01  Bruno Haible  <bruno@clisp.org>
85187
85188         * MODULES.html.sh: Add strsep.
85189
85190 2004-09-30  Simon Josefsson  <jas@extundo.com>
85191
85192         * modules/snprintf: New file.
85193
85194 2004-09-30  Simon Josefsson  <jas@extundo.com>
85195
85196         * m4/snprintf.m4: New file.
85197
85198 2004-09-30  Simon Josefsson  <jas@extundo.com>
85199
85200         * lib/snprintf.h, lib/snprintf.c: New files.
85201
85202 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85203
85204         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85205         (hol_entry_help): Never translate an empty string.
85206         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85207         * lib/argp.h (OPTION_NO_TRANS): New option.
85208
85209 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * modules/argp (Maintainer): Replace Simon Josefsson
85212         by Sergey Poznyakoff.
85213
85214 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85217         changes merged back into glibc.
85218
85219 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85220
85221         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85222
85223 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85224
85225         * lib/xvasprintf.c: Include xalloc.h.
85226         (xvasprintf): Use xalloc_die, not xmalloc_die.
85227
85228 2004-09-29  Bruno Haible  <bruno@clisp.org>
85229
85230         * modules/alloca-opt: New file, derived from modules/alloca.
85231         * modules/allocsa: Depend on alloca-opt instead of alloca.
85232         * modules/setenv: Likewise.
85233         * modules/vasnprintf: Likewise.
85234         * MODULES.html.sh: Add alloca-opt.
85235
85236 2004-09-28  Simon Josefsson  <jas@extundo.com>
85237
85238         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85239         LGPL, and to replace license template from GPL to LGPL.
85240
85241 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85242
85243         * modules/dummy: Change license to LGPL.
85244
85245 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85246
85247         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85248
85249 2004-09-24  Simon Josefsson  <jas@extundo.com>
85250
85251         * modules/minmax (License): Change from GPL to LGPL.
85252
85253 2004-09-23  Simon Josefsson  <jas@extundo.com>
85254
85255         * gnulib-tool (--import): Typo.
85256
85257 2004-09-23  Simon Josefsson  <jas@extundo.com>
85258
85259         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85260
85261 2004-09-22  Bruno Haible  <bruno@clisp.org>
85262
85263         * modules/*: Add 'License' field.
85264         * gnulib-tool: Accept --extract-license option.
85265         (func_get_license): New function.
85266
85267 2004-09-21  Bruno Haible  <bruno@clisp.org>
85268
85269         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85270         Reported by Simon Josefsson.
85271
85272 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85275         gl_AC_TYPE_LONG_LONG.
85276
85277 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85280
85281 2004-09-18  Simon Josefsson  <jas@extundo.com>
85282         and  Paul Eggert  <eggert@cs.ucla.edu>
85283
85284         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85285         calls with autoreconf.  Define GL_LIB.
85286
85287 2004-09-14  Karl Berry  <karl@gnu.org>
85288
85289         * config/srclist.txt: unsync setenv.c, sigh.
85290
85291 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85294         Problem reported by Bruno Haible in:
85295         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85296
85297 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85298
85299         * config/srclist.txt: Comment out argp-pvh.c.
85300
85301 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85304         in case some system header has #define'd it.  Problem reported by
85305         Soeren D. Schulze in
85306         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85307
85308 2004-09-09  Karl Berry  <karl@gnu.org>
85309
85310         * regex.[ch]: delete from the root.  These were supposed to be
85311                 synced with emacs cvs, but this has not happened for about
85312                 a year, and anyway nothing else uses emacs regex.[ch].
85313                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85314                 lib/regex[.ch] is untouched.
85315
85316 2004-09-09  Bruno Haible  <bruno@clisp.org>
85317
85318         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85319
85320 2004-09-09  Bruno Haible  <bruno@clisp.org>
85321
85322         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85323         modifications.
85324         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85325
85326 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85327
85328         * modules/xvasprintf: New file.
85329         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85330
85331 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85332
85333         * lib/xvasprintf.h: New file.
85334         * lib/xvasprintf.c: New file.
85335         * lib/xasprintf.c: New file.
85336
85337 2004-09-08  Bruno Haible  <bruno@clisp.org>
85338
85339         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85340
85341 2004-09-08  Bruno Haible  <bruno@clisp.org>
85342
85343         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85344         length is > INT_MAX.
85345         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85346         more.
85347
85348 2004-09-08  Bruno Haible  <bruno@clisp.org>
85349
85350         * lib/stdint_.h: New file, taken from GNU clisp.
85351
85352 2004-09-08  Bruno Haible  <bruno@clisp.org>
85353             Oskar Liljeblad  <oskar@osk.mine.nu>
85354
85355         * modules/stdint: New file.
85356         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85357
85358 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         Import from coreutils.
85361         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85362         strings on unbounded length.  alloca's performance benefits aren't
85363         that important here.
85364         (V_STRDUP): Remove.
85365         (parse_with_separator): New function, with most of the internals
85366         of the old parse_user_spec.  Allow user to omit both user and group,
85367         for compatibility with FreeBSD.
85368         Clone only the user name, not the entire spec.
85369         Do not set *uid, *gid unless entirely successful.
85370         Avoid memory leak in some failing cases.
85371         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85372         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85373         (parse_user_spec): Rewrite to use parse_with_separator.
85374
85375 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85376
85377         * modules/userspec: Don't depend on alloca.
85378
85379 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85380
85381         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85382
85383 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85384
85385         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85386         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85387         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85388
85389 2004-08-16  Simon Josefsson  <jas@extundo.com>
85390
85391         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85392         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85393         Add --dry-run for --import.
85394         Let user provided command line parameters override configure.ac
85395         settings.
85396
85397 2004-08-12  Simon Josefsson  <jas@extundo.com>
85398
85399         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85400         as discussed with Paul Eggert in threads rooted at
85401         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85402         and
85403         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85404         Before, the test was empty, and relied on ELIDE_CODE in source
85405         code.)
85406         (gl_PREREQ_GETOPT): New macro.
85407         (gl_GETOPT): Use them.
85408
85409 2004-08-12  Simon Josefsson  <jas@extundo.com>
85410
85411         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85412         * lib/getopt_.h: Renamed from getopt.h.
85413
85414 2004-08-12  Simon Josefsson  <jas@extundo.com>
85415
85416         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85417         Change default library name from libfoo to libgnu.
85418         Now, if you have a configure.ac that says:
85419                 gl_SOURCE_BASE(gl)
85420                 gl_M4_BASE(gl/m4)
85421                 gl_MODULES(error getopt etcetera)
85422                 gl_INIT
85423         you can import all you need by running:
85424                 ../gnulib/gnulib-tool --import
85425
85426         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85427         (Makefile.am): Rewrite, use logic from argz.
85428         (Include): Use <getopt.h> instead of "getopt.h".
85429
85430 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85431
85432         * modules/argp (Files): Add m4/unlocked-io.m4.
85433         (Depends-on): Add extensions.
85434
85435 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85436
85437         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85438         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85439         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85440         Check for program_invocation_name, program_invocation_short_name,
85441         flockfile, funlockfile, features.h, _getopt_long_only_r.
85442
85443 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85446         its complicated substitute.
85447         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85448         and program_invocation_name.
85449         (__argp_basename) [!_LIBC]: Remove; the only use was
85450         replaced by its body.
85451         (__argp_short_program_name): Change condition from
85452         !defined __argp_short_program_name to
85453         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85454         to match argp-namefrob.h.
85455         (__argp_failure): Don't assume strerror_r returns char *.
85456         * lib/argp-parse.c (N_): Define unconditionally.
85457         (argp_default_options): Fill out initializers with 0 to avoid
85458         gcc warnings.
85459
85460 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85461
85462         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85463         getopt1.c.
85464
85465 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85466
85467         Merge from coreutils.
85468
85469         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85470
85471         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85472         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85473
85474 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85475
85476         Merge from coreutils.
85477
85478         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85479         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85480         for Reliant Unix 5.43.
85481
85482         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85483         (union fooround): Use uintmax_t, not long int.
85484         The rest is a merge from libc:
85485         [defined _LIBC]: Include <shlib-compat.h>.
85486         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85487
85488         * lib/settime.c (settime): Recode to avoid warning with
85489         Sun Forte C 6U2.
85490
85491         * lib/strverscmp.c: Convert to UTF-8.
85492
85493 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85496         m4/uintmax_t.m4.
85497
85498 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85499
85500         * modules/xalloc-die: New file.
85501         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85502
85503         * modules/md5 (Files): Add m4/uint32_t.m4.
85504         * modules/sha1: Renamed from modules/sha.
85505         (Files):
85506         Rename lib/sha.h to lib/sha1.h.
85507         Rename lib/sha.c to lib/sha1.c.
85508         Rename m4/sha.m4 to m4/sha1.m4.
85509         (lib_SOURCES): Likewise.
85510         (configure.ac): Rename gl_SHA to gl_SHA1.
85511         (Include): sha.h -> sha1.h.
85512
85513 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85514
85515         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85516         * m4/sha1.m4: Renamed from sha.m4.
85517         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85518
85519 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85520
85521         * lib/obstack.h (obstack_empty_p):
85522         Don't assume that chunk->contents is suitably aligned.
85523         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85524         Likewise. Problem reported by Benno in
85525         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85526
85527         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85528         readable.  This could be improved further but it'd take some work.
85529
85530 2004-08-08  Simon Josefsson  <jas@extundo.com>
85531
85532         * modules/xgethostname (Depends-on): Remove exit and error (not
85533         used).
85534
85535         * modules/getpass-gnu: Add getpass.h.
85536         (Depends-on): Add stdbool.
85537         * modules/getpass: Add getpass.h.
85538
85539 2004-08-08  Simon Josefsson  <jas@extundo.com>
85540
85541         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85542         Check getpass declaration.
85543
85544 2004-08-08  Simon Josefsson  <jas@extundo.com>
85545
85546         * lib/xgethostname.c: Don't include error.h (not used).
85547
85548         * lib/getpass.h: Add.
85549         * lib/getpass.c: Include getpass.h first.
85550
85551 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85552
85553         * lib/xalloc-die.c: New file.
85554         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85555         All uses removed.
85556         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85557         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85558         xalloc-die.c.
85559         (_, N_, xalloc_die): Move to xalloc-die.c.
85560         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85561         so that we needn't mess with xalloc_msg_memory_exhausted.
85562
85563         * lib/sha1.h: Renamed from sha.h.
85564         (SHA1_H): Renamed from _SHA_H.
85565         (sha1_ctx): Renamed from sha_ctx.
85566         (sha1_init_ctx): Renamed from sha_init_ctx.
85567         (sha1_process_block): Renamed from sha_process_block.
85568         (sha1_process_bytes): Renamed from sha_process_bytes.
85569         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85570         (sha1_read_ctx): Renamed from sha_read_ctx.
85571         (sha1_stream): Renamed from sha_stream.
85572         (sha1_buffer): Renamed from sha_buffer.
85573         * lib/sha1.c: Likewise; renamed from sha.c.
85574         Do not include <sys/types.h>.
85575         Include <stddef.h> rather than <stdlib.h>.
85576
85577 2004-08-08  Bruno Haible  <bruno@clisp.org>
85578
85579         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85580         FILESYSTEM_PREFIX_LEN.
85581         * lib/progreloc.c: Likewise.
85582         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85583
85584 2004-08-06  Simon Josefsson  <jas@extundo.com>
85585
85586         * modules/progname (Depends-on): Don't depend on stdbool.
85587
85588 2004-08-06  Simon Josefsson  <jas@extundo.com>
85589
85590         * modules/getsubopt: New file.
85591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85592         getsubopt.
85593
85594 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85595
85596         More merge from coreutils.
85597
85598         * m4/utimens.m4, m4/utimecmp.m4: New files.
85599         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85600         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85601         prereq.m4, sha.m4: Import changes from coreutils.
85602
85603 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85604
85605         More merge from coreutils.
85606         * modules/raise, modules/readtokens0, modules/utimens:
85607         * modules/utimecmp, module/xnanosleep: New files.
85608         * modules/strftime: Add lib/strftime.h.
85609         Change include from <time.h> to "strftime.h".
85610         * modules/yesno: Add lib/yesno.h.
85611         * modules/backupfile: Remove lib/addext.c.
85612         * modules/euidaccess: Add stat-macros.h.
85613         * modules/canonicalize, modules/euidaccess,
85614         modules/filemode, modules/lchown, modules/makepath,
85615         modules/rmdir, modules/stat: Likewise.
85616
85617 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85618
85619         Merge from tar.
85620         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85621         SIZE_MAX is a valid preprocessor constant.
85622         (__argp_basename): Change from "#ifndef _LIBC"
85623         to "#ifndef __argp_short_program_name", so that
85624         we don't compile these functions for tar.
85625
85626         More merges from coreutils.
85627         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85628         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85629         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85630         * lib/addext.c: Remove; no longer needed.
85631         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85632         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85633         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85634         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85635         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85636         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85637         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85638         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85639         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85640         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85641         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85642         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85643         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85644         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85645         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85646         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85647         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85648         Import changes from coreutils.
85649
85650 2004-08-05  Simon Josefsson  <jas@extundo.com>
85651
85652         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85653
85654 2004-08-05  Simon Josefsson  <jas@extundo.com>
85655
85656         * m4/getsubopt.m4: New file.
85657
85658 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85659
85660         Merge from coreutils.
85661
85662         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85663         * m4/getcwd-path-max.m4: New files.
85664
85665         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85666         FILESYSTEM_PREFIX_LEN ->
85667         FILE_SYSTEM_PREFIX_LEN.
85668         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85669         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85670         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85671         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85672
85673         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85674         prerequisite modules now handle the DOS stuff.
85675         Don't check for unistd.h.
85676
85677 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85678
85679         Merge from coreutils.
85680
85681         * lib/.gdb-history: Remove; this doesn't belong here.
85682
85683         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85684         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85685         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85686         * lib/getcwd.c: New files.
85687
85688         * lib/dirname.h: Include <stdbool.h>.
85689         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85690         for consistency with POSIX terminology.  All uses changed.
85691         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85692         (strip_trailing_slashes): Use bool for booleans.
85693         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85694
85695         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85696         sometimes returns a positive errno value even when it succeeds.
85697         (print_errno_message) [!LIBC]: Fall back on strerror if
85698         __strerror_r fails.
85699
85700         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85701         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85702         (longest_relative_suffix): New function.
85703         (path_concat): Use it.  Assume first argument is not NULL.
85704         Port to DOS.  Omit redundant separators.
85705         Report an error instead of returning NULL.
85706         Use mempcpy instead of memcpy.
85707         (xpath_concat): Remove: not declared or used.
85708
85709         * lib/same.h: Include <stdbool.h>
85710         (same_name): Return bool, not int.
85711         * lib/same.c (same_name): Likewise.
85712         (errno): Don't declare; we assume C89 or better now.
85713
85714         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85715         if not already defined.
85716
85717         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85718         * lib/dup-safer.c (errno): Likewise.
85719
85720 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85721
85722         Merge from coreutils.
85723         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85724         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85725         * modules/path-concat: Don't depend on strdup.
85726
85727 2004-08-03  Simon Josefsson  <jas@extundo.com>
85728
85729         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85730         * lib/progname.h: Don't include stdbool.h.
85731
85732 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85733
85734         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85735         * MODULES.html.sh (func_all_modules): Remove fatal.
85736
85737 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85738
85739         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85740
85741 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85742
85743         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85744         working.
85745
85746 2004-08-02  Simon Josefsson  <jas@extundo.com>
85747
85748         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85749         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85750         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85751
85752 2004-08-01  Simon Josefsson  <jas@extundo.com>
85753
85754         * lib/xgetdomainname.c: Include stdlib.h, for free().
85755
85756 2004-07-19  Bruno Haible  <bruno@clisp.org>
85757
85758         * MODULES.html.sh (func_all_modules): Add dummy.
85759
85760 2004-07-16  Simon Josefsson  <jas@extundo.com>
85761
85762         * modules/dummy: New file.
85763
85764 2004-07-16  Simon Josefsson  <jas@extundo.com>
85765
85766         * lib/dummy.c: New file.
85767
85768 2004-07-16  Bruno Haible  <bruno@clisp.org>
85769
85770         * lib/backupfile.h: Add extern "C" for C++.
85771         * lib/closeout.h: Likewise.
85772         * lib/copy-file.h: Likewise.
85773         * lib/findprog.h: Likewise.
85774         * lib/full-write.h: Likewise.
85775         * lib/pathname.h: Likewise.
85776         * lib/progname.h: Likewise.
85777         * lib/stpcpy.h: Likewise.
85778         * lib/stpncpy.h: Likewise.
85779         * lib/strcase.h: Likewise.
85780         * lib/strstr.h: Likewise.
85781         * lib/xalloc.h: Likewise.
85782
85783         * lib/mbswidth.h: Add extern "C" for C++.
85784         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85785
85786 2004-07-13  Robert Millan  <robertmh@gnu.org>
85787
85788         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85789
85790 2004-07-09  Simon Josefsson  <jas@extundo.com>
85791
85792         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85793         failed without this.)
85794
85795 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85796
85797         * modules/chown (Files): Add lib/fchown-stub.c, since
85798         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85799
85800 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85801
85802         * lib/fchown-stub.c: New file.
85803
85804 2004-06-24  Jim Meyering  <jim@meyering.net>
85805
85806         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85807
85808 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85809
85810         * modules/argz: Omit "#include".
85811
85812         * MODULES.html.sh (func_all_modules): Add calloc, to match
85813         2004-06-01 addition of calloc module.
85814
85815 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         * m4/argz.m4: New file, which is autoupdated from libtool.
85818
85819 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85822         libtool.
85823
85824 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85825
85826         * config/srclist-update: Don't insist on "USA." before the
85827         close-comment, as libtool omits the period and puts the */ on a
85828         separate line.
85829         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85830         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85831
85832 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85833
85834         * modules/argz: New file.
85835         * MODULES.html.sh (func_all_modules): Add argz.
85836
85837 2004-06-12  Jim Meyering  <jim@meyering.net>
85838         and  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * modules/hash (Files): Add lib/xalloc.h.
85841         * modules/pipe (Depends-on): Add wait-process.
85842         * modules/stat (Depends-on): Add xalloc.
85843         * modules/userspec (Files): Add lib/userspec.h.
85844         * modules/xstrto
85845
85846         Upgrade from gettext-0.13.
85847         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85848         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85849         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85850
85851 2004-06-10  Jim Meyering  <jim@meyering.net>
85852
85853         * lib/calloc.c: New file.
85854
85855 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85856
85857         * lib/getdate.y (yylex): Allow space between sign and number.
85858         Problem reported by Dan Jacobson.
85859
85860 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85861
85862         Merge from coreutils CVS.
85863
85864         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85865         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85866         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85867         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85868         xstrtol.m4: Fix copyright date and/or serial number.
85869
85870         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85871         See if we need an fchown replacement.
85872         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85873         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85874         and use the replacement function if we detect either defect.
85875
85876         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85877         gl_UTIMECMP.
85878
85879 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85880         and  Jim Meyering  <jim@meyering.net>
85881
85882         Merge from coreutils CVS.
85883
85884         * lib/stat-macros.h: New file, with contents from file-type.h
85885         and coreutils' system.h.
85886         * lib/file-type.c: Include "stat-macros.h".
85887         * lib/file-type.h (file_type): Move all macro definitions to new file,
85888         stat-macros.h.
85889
85890         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85891         Wrap old code with this conditional.
85892         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85893         function that does not dereference symlinks.
85894         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85895
85896         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85897         dependency problems.
85898         (xreadlink): Accept new arg SIZE, for efficiency.
85899         All decls and uses changed.
85900         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85901
85902         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85903         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85904
85905         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85906         sysexits.h.
85907
85908 2004-06-01  Jim Meyering  <jim@meyering.net>
85909
85910         * m4/calloc.m4: New file.
85911
85912 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85913
85914         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85915         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85916         Also, fix a typo in a diagnostic.
85917
85918 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85919
85920         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85921         or AC_FUNC_REALLOC.
85922
85923 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85924
85925         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85926         macros to be defined.
85927         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85928         the allocator returns NULL because the requested size is zero.
85929
85930 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85933         var.  Add comment explaining why libc still defines it.  This
85934         merges the following patch from glibc:
85935         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85936
85937 2004-05-20  Andreas Schwab  <schwab@suse.de>
85938
85939         * m4/free.m4: Replace free if it not known to work, not the other
85940         way round.
85941
85942 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85943
85944         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85945         present in glibc since revision 1.1 of this file.
85946         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85947         obstack_alignment_mask, obstack_alloc, obstack_base,
85948         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85949         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85950         obstack_grow0, obstack_init, obstack_int_grow,
85951         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85952         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85953         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85954         nonexistent functions.
85955
85956 2004-05-18  Karl Berry  <karl@gnu.org>
85957
85958         * config/srclist.txt: break link for vasnprintf.c.
85959
85960 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85961
85962         Port obstack to the AS/400, where pointers are 16 bytes wide and
85963         you cannot cast an integer to a valid pointer.  This patch is
85964         currently waiting to be integrated into glibc; see
85965         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85966
85967         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85968         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85969         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85970         (struct obstack): temp member is now a union of a pointer and
85971         an integer, instead of an integer.  All integer uses changed.
85972         This does not affect the physical layout of struct obstack,
85973         except on hosts (like the AS/400) where the size or alignment of
85974         void * is greater than that of ptrdiff_t.
85975         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85976         __STDC__)]: Store temporary in pointer member of union, not
85977         integer member.
85978         * lib/obstack.c: Include <stddef.h>, for offsetof.
85979         (struct fooalign): Remove; it doesn't need a name.
85980         (union fooround): Change double to long double, and add void *.
85981         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85982         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85983         not a macro.  Hence the values are always int; so remove all
85984         casts-to-int in uses.
85985
85986 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85987
85988         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85989         we can get this patch merged into glibc.
85990
85991 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85992             Paul Eggert  <eggert@cs.ucla.edu>
85993
85994         * m4/argp: Depend on alloca.
85995
85996 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85997             Paul Eggert  <eggert@cs.ucla.edu>
85998
85999         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86000         freecoding.
86001
86002 2004-05-17  Bruno Haible  <bruno@clisp.org>
86003
86004         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86005         precision that consists of a '.' followed by an empty digit string.
86006         Patch by Tor Lillqvist <tml@iki.fi>.
86007
86008 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86009
86010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86011         for backward compatibility with older code.  We need our own
86012         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86013         it under some other name, and our alloca.h will define it.
86014
86015 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86016             Derek Price  <derek@ximbiot.com>
86017
86018         * lib/alloca.c: Include <alloca.h>, to get our interface.
86019         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86020         include <alloca.h> first.  Use C89 prototype for alloca; this
86021         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86022         Use #elif for simplicity, since we can assume C89 now.
86023         Don't try to source the system alloca.h since it will not be found
86024         and to prevent recursively including its replacement.
86025         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86026         * lib/regex.c: Likewise.
86027
86028 2004-05-16  Derek Price  <derek@ximbiot.com>
86029             Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         getline cleanup.  This changes the getndelim2 API: both order of
86032         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86033         no delimiter).
86034
86035         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86036         interface does that.
86037         (getline): Always use getdelim, so that we don't have two
86038         copies of this code.
86039         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86040         if available.
86041         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86042         (GETNDELIM2_MAXIMUM): New macro.
86043         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86044         instead of the old practice of delim2==0.  All callers changed.
86045         Return -1 on overflow, instead of returning junk.
86046         Do not set *linesize unless allocation succeeds.
86047         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86048         that we include sys/types.h.
86049         * lib/getnline.h: Likewise.
86050         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86051         (getndelim2): Reorder arguments.
86052         * lib/getnline.c (getnline, getndelim):
86053         Don't discard the NMAX argument.
86054         (getnline): Invoke getndelim, to avoid code duplication.
86055         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86056         of (size_t) -1 by callers of the getnline family.
86057
86058 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86059
86060         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86061         Check for gettimeofday.
86062         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86063         Check for settimeofday, stime.
86064
86065 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * lib/nanosleep.c (suspended): Change its type from int to
86068         sig_atomic_t volatile.
86069         (first_call): Make it private to rpl_nanosleep, and have it
86070         be zero initially as that's a bit faster.
86071         (my_usleep): Round up fractional times instead of truncating them,
86072         as this is the usual meaning for 'sleep'.
86073
86074         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86075         doesn't work.
86076         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86077         (ENOSYS): Define if not defined.
86078         (settime): Fall back on stime if it exists and settimeofday fails.
86079         But don't bother with fallbacks if a method fails with errno == EPERM.
86080
86081 2004-05-11  Jim Meyering  <jim@meyering.net>
86082
86083         Prior to this change, the save_cwd caller required read access to the
86084         current directory on most systems (ones with the fchdir function).
86085
86086         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86087         fails, try write-only, and finally, resort to using xgetcwd.
86088
86089 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86090
86091         * lib/obstack.c, obstack.h: Import changes from libc.
86092
86093 2004-04-28  Bruno Haible  <bruno@clisp.org>
86094
86095         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86096         also implicitly appends .exe to executables.
86097         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86098         accepts Windows pathnames.
86099         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86100         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86101         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86102         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86103         Reported by Derek Robert Price <derek@ximbiot.com>.
86104
86105 2004-04-21  Karl Berry  <karl@gnu.org>
86106
86107         * config/srclist.txt (localcharset.c): break sync.
86108
86109 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86110
86111         * m4/host-os.m4: Add a copyright notice.
86112
86113 2004-04-20  Jim Meyering  <jim@meyering.net>
86114
86115         Change UTILS_ to gl_ in AC_DEFINE'd names.
86116         Change utils_- and jm_-prefixed variables, too.
86117         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86118         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86120
86121         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86122         Don't emit trailing blanks.
86123         Also rename jm_-prefixed variables to have gl_ prefix.
86124
86125         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86126         Also rename jm_-prefixed variables to have gl_ prefix.
86127
86128         * m4/jm-macros.m4: Reflect the renamings.
86129         * m4/prereq.m4: Likewise.
86130
86131 2004-04-20  Jim Meyering  <jim@meyering.net>
86132
86133         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86134         memory.
86135
86136 2004-04-20  Jim Meyering  <jim@meyering.net>
86137             Bruno Haible  <bruno@clisp.org>
86138
86139         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86140         memory when realloc fails.
86141
86142 2004-04-19  Jim Meyering  <jim@meyering.net>
86143
86144         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86145         now that readutmp.c may call `free (0)'.
86146
86147 2004-04-19  Bruno Haible  <bruno@clisp.org>
86148
86149         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86150         * m4/inttypes_h.m4: Likewise.
86151         * m4/stdint_h.m4: Likewise.
86152         * m4/intmax_t.m4: Likewise.
86153         * m4/uintmax_t.m4: Likewise.
86154
86155 2004-04-18  Jim Meyering  <jim@meyering.net>
86156
86157         * m4/prereq.m4: Don't forbid jm_ prefix.
86158
86159         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86160         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86161         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86162         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86163         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86164         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86165         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86166         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86167         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86168         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86169         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86170         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86171         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86172         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86173         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86174         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86175         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86176         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86177         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86178
86179 2004-04-18  Jim Meyering  <jim@meyering.net>
86180
86181         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86182         failure, don't leak memory and do call END_UTMP_ENT.
86183
86184 2004-04-16  Jim Meyering  <jim@meyering.net>
86185
86186         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86187         coreutils' stat program.
86188         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86189
86190 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86191
86192         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86193         C89.
86194         (CHAR_BIT): Remove, since we assume C89.
86195         Include <stdint.h> if available, as per current Autoconf CVS advice.
86196
86197 2004-03-31  Jim Meyering  <jim@meyering.net>
86198
86199         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86200         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86201         * m4/xalloc.m4: Likewise.
86202
86203 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86204
86205         Merge from coreutils.
86206
86207         * m4/inttostr.m4: New file.
86208         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86209         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86210         Require gl_CLOCK_TIME.
86211         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86212
86213 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86214
86215         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86216         not bool, to be more consistent with Unix conventions.
86217         Suggested by Bruno Haible.
86218
86219         Merge from coreutils.
86220
86221         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86222         * lib/umaxtostr.c: New files.
86223
86224         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86225         the usual <time.h> dance.
86226         (get_date): Change signature to support fractional time stamps.
86227         All callers changed.
86228         * lib/getdate.y: Include "getdate.h" first, as we can now
86229         assume C89 and don't need to worry about 'const'.
86230         Similarly, include "unlocked-io.h" near start, not in middle.
86231         Include <limits.h>.
86232         (textint.value): Use long int rather than int.
86233         (textint.digits): Use size_t rather than int.
86234         (BILLION, LOG10_BILLION): New constants.
86235         (parser_control): New member rel_ns.  Members day_ordinal,
86236         time_zone, month, day, hour, minutes, rel_year, rel_month,
86237         rel_day, rel_hour, rel_minutes, rel_seconds
86238         are now long int, not int.  Member seconds is now struct timespec,
86239         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86240         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86241         not int.
86242         (%union.intval): Now long int, not int.
86243         New member timespec.
86244         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86245         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86246         (spec): Now is a timespec or an item list.
86247         (timespec, items): New nonterminals.
86248         (time, rel, relunit, number, get_date):
86249         Add support for fractional seconds.
86250         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86251         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86252         (to_hour): First arg is now long int, not int.
86253         (to_year): Returns long int, not int.
86254         Don't treat year -70 like 70.
86255         (tm_diff): Returns long int, not int.
86256         (lookup_word): Use bool instead of int when appropriate.
86257         (yylex): Use size_t for count, not int.
86258         Detect overflow when parsing large integer constants.
86259         Add support for fractions.
86260         (get_date): Make pointers 'const' if possible.
86261         Use more-portable code to detect integer overflow.
86262         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86263         Don't use ctime; it's not reliable if the year has >4 digits.
86264
86265         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86266         This is for compatibility with BSD.
86267
86268         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86269         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86270         From coreutils' system.h.
86271
86272         * lib/userspec.c: Don't include "posixver.h".
86273         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86274         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86275         compatible extension.  Simplify code by removing a boolean int
86276         that was always nonzero if a string was nonnull.
86277
86278 2004-03-30  Jim Meyering  <jim@meyering.net>
86279
86280         Merge from coreutils.
86281
86282         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86283         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86284         on some systems one must include <grp.h> before it.
86285         Reported by Christian Krackowizer.
86286
86287 2004-03-30  Jim Meyering  <jim@meyering.net>
86288
86289         Merge from coreutils.
86290
86291         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86292
86293         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86294         an empty input stream.
86295
86296         * lib/readtokens.c: Include <stdbool.h>.
86297         (readtoken): Use `size_t' rather than int/long.
86298         All callers adjusted.
86299         Use `bool' rather than `int' where appropriate.
86300         Use memset rather than an explicit loop.
86301         Use x2nrealloc rather than xrealloc.
86302         Allow the use of `\0' as a delimiter.
86303         (readtokens): Likewise.
86304         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86305
86306 2004-03-30  Jim Meyering  <jim@meyering.net>
86307
86308         * m4/realloc.m4: Remove file, since now it does no more than
86309         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86310         the `configure.ac' section of module/realloc.
86311         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86312
86313 2004-03-30  Bruno Haible  <bruno@clisp.org>
86314
86315         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86316         nonnull.
86317
86318 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86319
86320         Merge changes to getloadavg.c from coreutils and Emacs.
86321
86322         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86323         Define to an expression, not to the empty string.
86324         Include cloexec.h and xalloc.h.
86325         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86326         Use set_cloexec_flag rather than rolling our own.
86327         * lib/cloexec.c, lib/cloexec.h: New files.
86328
86329 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86330
86331         * m4/cloexec.m4: New file.
86332
86333 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/getopt.h: Sync with libc CVS.
86336
86337 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86338             Bruno Haible  <bruno@clisp.org>
86339
86340         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86341         mbswidth.
86342
86343 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86344             Bruno Haible  <bruno@clisp.org>
86345
86346         * lib/mbswidth.h: Include <wchar.h> only if
86347         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86348         <wchar.h>.
86349         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86350
86351 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86352
86353         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86354         Sync with libc CVS.
86355         * lib/getopt_int.h: New file, also synced from libc.
86356
86357 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86358
86359         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86360         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86361         Bring back getopt.c, getopt.h, getopt1.c.
86362
86363 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86364
86365         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86366         All uses changed.  Check for sa_sigaction member; this fixes
86367         a bug first reported by Jason Andrade in
86368         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86369
86370 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86371
86372         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86373         '#if' expressions.  Unlike the code it replaces, it does not
86374         depend on (defined _SC_PAGESIZE).  However, it does depend on
86375         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86376         first reported by Jason Andrade in
86377         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86378
86379 2004-02-25  Simon Josefsson  <jas@extundo.com>
86380
86381         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86382
86383 2004-02-25  Simon Josefsson  <jas@extundo.com>
86384
86385         * lib/strdup.h: New file.
86386         * lib/strdup.c: Include it.
86387         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86388         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86389
86390 2004-02-23  Karl Berry  <karl@gnu.org>
86391
86392         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86393         (from fencepost.gnu.org:/gd/gnuorg).
86394
86395 2004-02-23  Karl Berry  <karl@gnu.org>
86396
86397         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86398         * config/srclist.txt: add maintain/standards documents.
86399
86400 2004-02-18  Bruno Haible  <bruno@clisp.org>
86401
86402         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86403         Reported by Derek Robert Price <derek@ximbiot.com>.
86404
86405 2004-02-16  Karl Berry  <karl@gnu.org>
86406
86407         * config/mkinstalldirs, install-sh: update from automake.
86408
86409 2004-02-06  Karl Berry  <karl@gnu.org>
86410
86411         * m4/po.m4: update from gettext 0.14.1.
86412
86413 2004-02-06  Karl Berry  <karl@gnu.org>
86414
86415         * lib/config.charset: update from gettext 0.14.1.
86416
86417 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86418
86419         Add comments and code, prompted by suggestions from Bruno Haible
86420         for sh-quote.
86421         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86422         describing the enum quoting_style values.
86423         * lib/quotearg.c (quotearg_alloc): New function.
86424         (quotearg_buffer_restyled): Treat lone { and } as special.
86425         Treat = as special.  Work around bug with older shells
86426         that "see" a '\' that is really the 2nd byte of a multibyte char.
86427         Quote empty string with shell_quoting_style.
86428
86429 2004-02-03  Bruno Haible  <bruno@clisp.org>
86430
86431         * m4/pipe.m4: New file, from GNU gettext.
86432
86433 2004-02-03  Bruno Haible  <bruno@clisp.org>
86434
86435         * lib/pipe.h: New file, from GNU gettext.
86436         * lib/pipe.c: New file, from GNU gettext.
86437
86438 2004-01-27  Bruno Haible  <bruno@clisp.org>
86439
86440         * m4/execute.m4: New file, from GNU gettext.
86441
86442 2004-01-27  Bruno Haible  <bruno@clisp.org>
86443
86444         * lib/execute.h: New file, from GNU gettext.
86445         * lib/execute.c: New file, from GNU gettext.
86446         * lib/w32spawn.h: New file, from GNU gettext.
86447
86448 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86449
86450         Merge from diffutils.
86451
86452         * lib/file-type.c (file_type): Add typed memory objects.
86453         * lib/file-type.h (S_TYPEISTMO): New macro.
86454
86455         * lib/c-stack.h (c_stack_action): Remove argv argument.
86456         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86457         (die): Don't calculate message unless segv_action returns.
86458         (get_stack_location, min_address_from_argv, max_address_from_argv,
86459         volatile stack_base, volatile_stack_size): Remove.
86460         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86461         that every segmentation violation is a stack overflow.  (Ouch!)
86462         See Debian bug 136249 (still outstanding) for more info about why
86463         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86464
86465 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86466
86467         Exit-status fix from coreutils.
86468
86469         Use exit_failure consistently in place of EXIT_FAILURE,
86470         so that program exit statuses are consistent on failure.
86471
86472         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86473         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86474         * lib/argmatch.h: Comment fix to match the above.
86475         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86476         Now a macro referring to exit_failure, instead of a separate
86477         variable.  Include "exitfail.h" to get it.
86478         * lib/xstrtol.h: Include "exitfail.h".
86479         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86480
86481         * lib/long-options.c (parse_long_options): Use prototype
86482         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86483         for clarity.
86484
86485 2004-01-21  Jim Meyering  <jim@meyering.net>
86486
86487         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86488         so as not to conflict with a different-sized __mktime_internal
86489         function in GNU libc.
86490         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86491         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86492
86493 2004-01-20  Karl Berry  <karl@gnu.org>
86494
86495         * config/config.guess: update from config.
86496
86497         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86498
86499 2004-01-20  Bruno Haible  <bruno@clisp.org>
86500
86501         Safer stack allocation.
86502         * lib/setenv.c: Include allocsa.h.
86503         (alloca): Remove fallback definition.
86504         (freea): Remove macro.
86505         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86506         instead of freea.
86507
86508 2004-01-20  Bruno Haible  <bruno@clisp.org>
86509
86510         * m4/eealloc.m4: New file, from GNU gettext.
86511
86512 2004-01-20  Bruno Haible  <bruno@clisp.org>
86513
86514         * m4/allocsa.m4: New file, from GNU gettext.
86515
86516 2004-01-20  Bruno Haible  <bruno@clisp.org>
86517
86518         * lib/xallocsa.h: New file, from GNU gettext.
86519         * lib/xallocsa.c: New file, from GNU gettext.
86520
86521 2004-01-20  Bruno Haible  <bruno@clisp.org>
86522
86523         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86524
86525 2004-01-20  Bruno Haible  <bruno@clisp.org>
86526
86527         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86528         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86529         specially.
86530
86531 2004-01-20  Bruno Haible  <bruno@clisp.org>
86532
86533         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86534         patch.
86535
86536 2004-01-20  Bruno Haible  <bruno@clisp.org>
86537
86538         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86539
86540 2004-01-20  Bruno Haible  <bruno@clisp.org>
86541
86542         * lib/eealloc.h: New file.
86543
86544 2004-01-20  Bruno Haible  <bruno@clisp.org>
86545
86546         * lib/binary-io.h: Avoid warnings on Cygwin.
86547
86548 2004-01-20  Bruno Haible  <bruno@clisp.org>
86549
86550         * lib/allocsa.h: New file, from GNU gettext.
86551         * lib/allocsa.c: New file, from GNU gettext.
86552
86553 2004-01-18  Karl Berry  <karl@gnu.org>
86554
86555         * doc/gpl.texi, doc/lgpl.texi: new files.
86556
86557 2004-01-18  Karl Berry  <karl@gnu.org>
86558
86559         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86560         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86561
86562 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86563
86564         Merge from coreutils.
86565
86566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86567         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86568         (gl_DEFAULT_POSIX2_VERSION): Move
86569         the documentation from 'configure' into 'config.hin',
86570         so that 'configure --help' isn't burdened by it and
86571         we don't have to worry about its formatting there.
86572         Reword the documentation so that it's more succinct
86573         and can be run together into a single paragraph.
86574         * m4/same.m4 (gl_SAME): Check for pathconf.
86575
86576 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86577
86578         Merge from coreutils.
86579
86580         * lib/posixver.c: Include posixver.h.
86581
86582         * lib/same.c: Include <stdbool.h>, <limits.h>.
86583         (_POSIX_NAME_MAX): Define if not defined.
86584         (MIN): New macro.
86585         (same_name): If file names are silently truncated, report
86586         that the file names are the same if they are the same after
86587         the silent truncation.
86588
86589         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86590         conversion function.
86591         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86592         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86593         longer needed.
86594
86595 2004-01-15  Jim Meyering  <jim@meyering.net>
86596
86597         Merge from coreutils.
86598
86599         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86600         if no library is required.
86601         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86602         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86603         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86604         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86605         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86606         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86607         value, $ac_cv_search_crypt, if it's "none required".
86608         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86609         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86610         not gl_FUNC_GETLOADAVG.
86611         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86612         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86613
86614 2004-01-15  Jim Meyering  <jim@meyering.net>
86615
86616         Merge from coreutils.
86617
86618         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86619         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86620         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86621
86622         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86623         optional configure-time default.
86624
86625         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86626
86627         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86628
86629 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86630
86631         Merge from coreutils.
86632
86633         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86634         value, $ac_cv_search_nanosleep, if it's "none required".
86635
86636 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86637
86638         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86639         with like-named macro in fnmatch.c.
86640         (EXT): Use an internal constant instead.
86641
86642         Merge fnmatch patches from glibc.
86643         * lib/fnmatch.c (mbsinit): Remove define.
86644         Add libc_hidden_ver (__fnmatch, fnmatch).
86645         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86646         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86647
86648 2004-01-14  Karl Berry  <karl@gnu.org>
86649
86650         * config/install-sh: update from automake.
86651
86652 2004-01-13  Karl Berry  <karl@gnu.org>
86653
86654         * config/install-sh: update from automake.
86655
86656 2004-01-09  Karl Berry  <karl@gnu.org>
86657
86658         * config/install-sh: update from automake.
86659
86660 2004-01-05  Karl Berry  <karl@gnu.org>
86661
86662         * config/config.{sub,guess}: update from config.
86663
86664 2003-12-31  Karl Berry  <karl@gnu.org>
86665
86666         * config/depcomp: update from automake.
86667
86668 2003-12-14  Karl Berry  <karl@gnu.org>
86669
86670         * lib/config.charset: update from gettext-runtime.
86671
86672 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86673
86674         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86675         Bug reported by Alfred M. Szmidt.
86676
86677 2003-12-03  Bruno Haible  <bruno@clisp.org>
86678
86679         * m4/gettext.m4: Upgrade from gettext-0.13.
86680         * m4/po.m4: Upgrade from gettext-0.13.
86681         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86682         * m4/intmax.m4: New file, from gettext-0.13.
86683         * m4/printf-posix.m4: New file, from gettext-0.13.
86684
86685 2003-11-29  Karl Berry  <karl@gnu.org>
86686
86687         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86688
86689 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86690             Bruno Haible  <bruno@clisp.org>
86691
86692         * lib/printf-parse.h: Don't include sys/types.h.
86693         (ARG_NONE): New macro.
86694         (char_directive): Change type of *arg_index fields to size_t.
86695         * lib/printf-parse.c: Don't include sys/types.h.
86696         (SSIZE_MAX): Remove macro.
86697         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86698         Remove unnecessary overflow check.
86699         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86700         fields.
86701
86702 2003-11-25  Bruno Haible  <bruno@clisp.org>
86703
86704         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86705
86706 2003-11-25  Bruno Haible  <bruno@clisp.org>
86707
86708         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86709         gt_TYPE_SSIZE_T.
86710
86711 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86712
86713         * modules/alloca: Remove dependency on xalloc.
86714
86715 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86716
86717         * lib/alloca.c: Remove dependency on xalloc module.
86718         (xalloc_die): Remove.
86719         (memory_full) [!defined emacs]: New macro.
86720         [!defined emacs]: Don't include xalloc.h.
86721         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86722         address arithmetic overflows.  Change datatypes a bit to avoid
86723         unnecessary casts.
86724
86725 2003-11-22  Jim Meyering  <jim@meyering.net>
86726
86727         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86728         s/size/size_t/.
86729
86730 2003-11-21  Karl Berry  <karl@gnu.org>
86731
86732         * config/config.{sub,guess}: update from config.
86733
86734 2003-11-18  Karl Berry  <karl@gnu.org>
86735
86736         * config/config.{sub,guess}: update from config.
86737
86738         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86739
86740 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86741
86742         * README: Mention that S+T cannot overflow if S is the size of
86743         an existing object and T is sufficiently small.
86744
86745 2003-11-17  Jim Meyering  <jim@meyering.net>
86746
86747         On systems without utime and without a utimes function capable of
86748         dealing with a NULL struct utimbuf* argument, this utime replacement
86749         could -- in unusual circumstances -- leak a file descriptor.
86750         * lib/utime.c: Include <unistd.h> and <errno.h>.
86751         (utime_null): Be sure to close `fd' and to preserve errno.
86752         Reported by Geoff Collyer via Arnold Robbins.
86753
86754 2003-11-17  Bruno Haible  <bruno@clisp.org>
86755
86756         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86757         (Depends-on): Add xsize.
86758
86759 2003-11-17  Bruno Haible  <bruno@clisp.org>
86760
86761         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86762
86763 2003-11-17  Bruno Haible  <bruno@clisp.org>
86764
86765         * lib/vasnprintf.c (alloca): Remove fallback definition.
86766         (freea): Remove definition.
86767         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86768         Reported by Paul Eggert.
86769
86770 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86771             Bruno Haible  <bruno@clisp.org>
86772
86773         Protect against address arithmetic overflow.
86774         * lib/printf-args.h: Include stddef.h.
86775         (arguments): Change type of field 'count' to size_t.
86776         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86777         'unsigned int' where appropriate.
86778         * lib/printf-parse.h: Include sys/types.h.
86779         (char_directive): Change type of *arg_index fields to ssize_t.
86780         (char_directives): Change type of fields 'count', max_*_length to
86781         size_t.
86782         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86783         (SSIZE_MAX): Define fallback value.
86784         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86785         instead of 'int' where appropriate. Check a_allocated, d_allocated
86786         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86787         * lib/vasnprintf.c: Include xsize.h.
86788         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86789         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86790         overflow. Avoid wraparound when converting a width or precision from
86791         decimal to binary.
86792
86793 2003-11-16  Bruno Haible  <bruno@clisp.org>
86794
86795         Update from GNU gettext.
86796         * lib/printf-parse.c: Generalize to it can be compiled for wide
86797         strings.
86798         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86799         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86800         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86801         SNPRINTF): New macros.
86802         Don't include <alloca.h> if the file is used inside libintl.
86803         (local_wcslen): New function, for Solaris 2.5.1.
86804         (VASNPRINTF): Use it instead of wcslen.
86805
86806 2003-11-16  Bruno Haible  <bruno@clisp.org>
86807
86808         * lib/xsize.h (xmax): New function.
86809         (xsum, xsum3, xsum4): Declare as "pure" functions.
86810
86811 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86812
86813         * modules/xalloc (Files): Undo latest change, since xalloc.h
86814         no longer needs SIZE_MAX or PTRDIFF_MAX.
86815
86816 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86817
86818         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86819         gl_PTRDIFF_MAX.
86820
86821 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86822
86823         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86824         "return", to pacify some unknown compiler.  Problem reported
86825         by Joerg Schilling.
86826
86827 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86828
86829         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86830         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86831         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86832         heuristic is just as accurate as far as we know, and it removes a
86833         dependency on size_max.m4 and ptrdiff_max.m4.
86834
86835 2003-11-11  Bruno Haible  <bruno@clisp.org>
86836
86837         * modules/xsize (Files): Add m4/size_max.m4.
86838         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86839
86840 2003-11-11  Bruno Haible  <bruno@clisp.org>
86841
86842         * m4/size_max.m4: New file.
86843         * m4/ptrdiff_max.m4: New file.
86844         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86845         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86846         (gl_XALLOC): Invoke it.
86847
86848 2003-11-11  Bruno Haible  <bruno@clisp.org>
86849
86850         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86851         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86852         defined.
86853
86854 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86855
86856         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86857         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86858         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86859         From Bruno Haible.
86860         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86861         not (size_t) -1, since it's defined here.
86862
86863 2003-11-09  Karl Berry  <karl@gnu.org>
86864
86865         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86866
86867 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86868
86869         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86870         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86871         Reject sizes of exactly SIZE_MAX bytes.
86872         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86873         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86874
86875 2003-11-05  Bruno Haible  <bruno@clisp.org>
86876
86877         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86878         SIZE_MAX defined in <limits.h> on Solaris.
86879
86880 2003-11-04  Jim Meyering  <jim@meyering.net>
86881
86882         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86883         variable names, rather than @VAR@.
86884         * modules/poll: Likewise.
86885
86886 2003-11-04  Bruno Haible  <bruno@clisp.org>
86887
86888         * modules/xsize: New file.
86889         * modules/linebreak: Depend on xsize.
86890         * MODULES.html.sh (func_all_modules): Add xsize.
86891
86892 2003-11-04  Bruno Haible  <bruno@clisp.org>
86893
86894         * m4/xsize.m4: New file.
86895
86896 2003-11-04  Bruno Haible  <bruno@clisp.org>
86897
86898         * lib/xsize.h: New file.
86899         * lib/linebreak.c: Include xsize.h.
86900         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86901         argument for overflow.
86902         Suggested by Paul Eggert.
86903
86904 2003-11-03  Karl Berry  <karl@gnu.org>
86905
86906         * config/config.{guess,sub}: update from config.
86907
86908 2003-11-03  Jim Meyering  <jim@meyering.net>
86909
86910         * modules/userspec (lib_SOURCES): Add userspec.h.
86911         (Include): Add "userspec.h".
86912         Improve description.
86913
86914 2003-11-03  Jim Meyering  <jim@meyering.net>
86915
86916         * lib/userspec.c: Include "userspec.h".
86917         * lib/userspec.h: New file.
86918
86919 2003-11-03  Bruno Haible  <bruno@clisp.org>
86920
86921         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86922
86923 2003-11-03  Bruno Haible  <bruno@clisp.org>
86924
86925         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86926         available, to avoid (extremely rare) race condition.
86927         Suggested by Paul Eggert.
86928
86929 2003-11-02  Karl Berry  <karl@gnu.org>
86930
86931         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86932
86933 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86934
86935         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86936         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86937         (read_filesystem_list): Set and use me_type_malloced.
86938         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86939         whatever the type happens to be), for brevity and consistency.
86940         Check for size calculation overflow on Alphas running OSF/1.
86941
86942 2003-10-31  Jim Meyering  <jim@meyering.net>
86943
86944         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86945
86946         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86947
86948 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86949             Bruno Haible  <bruno@clisp.org>
86950
86951         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86952         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86953
86954 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86955
86956         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86957         netbsd*-gnu*.  Suggested by Robert Millan.
86958
86959 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86960
86961         * modules/group-member: Depend on stdbool.
86962
86963 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86964
86965         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86966
86967 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86968
86969         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86970         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86971         after the 'gnu' in these cases.  This fixes some bugs in the
86972         previous change, and is based on suggestions by Robert Millan.
86973
86974 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86975
86976         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86977         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86978         no longer needed.
86979         * lib/quotearg.c (quotearg_n_options): Use it.
86980         * lib/group-member.c: Include <stdbool.h>.
86981         (free_group_info): Arg is now const *; don't free arg.
86982         (get_group_info): Now returns bool and accepts struct group_info *,
86983         rather than returning a malloc'ed struct group_info *.
86984         All uses changed.  Check for overflow in internal size calculation.
86985
86986         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86987         rather than xmalloc/xrealloc.
86988         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86989         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86990         conformance bug: the old code used a pointer after freeing the
86991         storage that it addressed.
86992         * lib/hash.c (hash_initialize): Simplify the code by using
86993         xalloc_oversized rather than doing it by hand.
86994         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86995         the buffer preserved.  Use free and xmalloc instead.
86996         * lib/quotearg.c (quotearg_n_options): Likewise.
86997         Use a simpler test for size overflow.  Don't use xalloc_oversized
86998         because unsigned int might be wider than size_t (!); this suggests
86999         that we should switch from unsigned int to size_t for slot numbers.
87000
87001 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87002
87003         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87004         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87005         NetBSD kernels.  Requested by Richard Stallman.
87006
87007 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87008
87009         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87010         to allocate the returned structure.  Do not allocate a subarray,
87011         as x2nrealloc will do that.
87012         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87013         instead of xnrealloc.
87014         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87015
87016 2003-10-27  Bruno Haible  <bruno@clisp.org>
87017
87018         * lib/stdbool_.h: Better support for BeOS.
87019
87020 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87021
87022         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87023         now uses inline.
87024
87025 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87026
87027         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87028         callers that want to do their own size-overflow checking.  Include
87029         <stdbool.h>, since xalloc_oversized returns bool.
87030         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87031         to use xalloc_oversized.
87032
87033         Add two functions x2realloc, x2nrealloc, for programs that grow
87034         arrays dynamically by doubling their sizes.
87035         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87036         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87037         New functions.
87038
87039         Port to C99 semantics for 'inline' of external functions.
87040         Bug reported by Bruno Haible.
87041         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87042         with the old contents of xnmalloc.
87043         (xnmalloc, xmalloc): Use it.
87044         (xnrealloc_inline): New static inline function,
87045         with the old contents of xnrealloc.
87046         (xnrealloc, xrealloc): Use it.
87047
87048         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87049         that.
87050
87051 2003-10-26  Karl Berry  <karl@gnu.org>
87052
87053         * config/srclist.txt (COPYING.DOC): no longer available from
87054         /gd/gnuorg; don't know where the ultimate source is.
87055
87056 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87057
87058         Fix several address-calculation bugs in the hash modules,
87059         plus some minor code cleanup.
87060
87061         * lib/hash.h: Include <stdbool.h>, for bool.
87062         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87063         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87064         hash_get_n_entries, hash_get_max_bucket_length,
87065         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87066         hash_rehash): Use size_t rather than unsigned.
87067         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87068         hash_get_n_buckets_used, hash_get_n_entries,
87069         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87070         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87071         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87072         Likewise.
87073         (SIZE_MAX): Define if not defined.
87074         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87075         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87076         hash_print):
87077         Use const * when possible.
87078         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87079         (check_tuning): Fix bug: if tuning parameters were very close to
87080         0 or 1, rounding errors could have caused subscript violations.
87081         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87082         (hash_initialize): Add 'fail:' label
87083         to free table and return NULL, and use it to simplify code.
87084         Use calloc rather than clearing the storage ourself.
87085         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87086         buffer size calculations.
87087         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87088         Include <stddef.h>, for size_t.
87089         * lib/hash-pjw.c (hash_pjw): Likewise.
87090         Switch to method described by Bruno Haible.
87091         Include <limits.h>, for CHAR_BIT.
87092         (SIZE_BITS): New macro.
87093
87094 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87095
87096         * m4/getline.m4 (AM_FUNC_GETLINE):
87097         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87098         hosts.  Problem reported by Derek Robert Price in
87099         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87100         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87101         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87102
87103 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87104
87105         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87106         ceiling the allocation at NMAX bytes rather than silently
87107         discarding input bytes before NMAX is reached.  This makes
87108         a difference only if NMAX exceeds SIZE_MAX / 2.
87109
87110         * lib/obstack.c: Merge from glibc.
87111         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87112         Add libc_hidden_def (_obstack_newchunk).
87113         (_obstack_free) [! defined _LIBC]: Remove.
87114         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87115         a clone of the function body.
87116         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87117         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87118
87119         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87120         glibc.
87121         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87122         arg to memcpy.
87123
87124         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87125         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87126         Don't use lvalue casts, as GCC plans to remove support for them
87127         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87128         was also present in the non-GCC version, indicating that this
87129         code had always been buggy and had never been widely used.
87130         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87131         Use the fast variant of each macro, rather than copying the
87132         definiens of the fast variant; that way, we'll be more likely to
87133         catch future bugs in the fast variants.
87134
87135 2003-10-20  Bruno Haible  <bruno@clisp.org>
87136
87137         * modules/wait-process: New file.
87138         * MODULES.html.sh (func_all_modules): Add wait-process.
87139
87140 2003-10-20  Bruno Haible  <bruno@clisp.org>
87141
87142         * m4/wait-process.m4: New file.
87143
87144 2003-10-20  Bruno Haible  <bruno@clisp.org>
87145
87146         * lib/wait-process.h: New file, from GNU gettext.
87147         * lib/wait-process.c: New file, from GNU gettext.
87148
87149 2003-10-19  Jim Meyering  <jim@meyering.net>
87150
87151         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87152         HPUX 10.20.
87153
87154 2003-10-18  Karl Berry  <karl@gnu.org>
87155
87156         * config/config.guess: update from config.
87157
87158 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87159
87160         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87161         (getgroups): First arg is int, not size_t.
87162         Don't let 'free' mangle errno.
87163
87164 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87165
87166         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87167
87168 2003-10-16  Karl Berry  <karl@gnu.org>
87169
87170         * config/config.{guess,sub}: update from config.
87171
87172 2003-10-16  Jim Meyering  <jim@meyering.net>
87173
87174         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87175         memcpy.
87176
87177 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87178
87179         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87180         (SIZE_MAX): Remove.
87181         (new_exclude, add_exclude_file): Initial size no longer needs to
87182         be a power of 2.
87183         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87184         our own address arithmetic overflow checking.
87185
87186         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87187         (fnmatch): Do not alloca more than 2000 wide characters;
87188         instead, use malloc for large buffers.
87189         Check for address arithmetic overflow, and return -1
87190         with errno set to ENOMEM in that case.
87191         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87192         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87193         instead, return -1.  Check for address arithmetic overflow.
87194
87195 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87196
87197         Handle invalid suffixes and overflow independently, so that
87198         callers can treat them independently as needed.  Fix some bugs in
87199         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87200         suffix for a human-readable blocksize.  The major caller-visible
87201         change is the addition of a new
87202         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87203         that both overflow and suffix chars were found.
87204
87205         * lib/human.c (humblock): Don't check separately for invalid suffix
87206         char; that is xstrtoumax's job (now that its bug is fixed).
87207         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87208         INTMAX_MAX]: New macros.
87209         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87210         TYPE_MAXIMUM): New macros.
87211         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87212         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87213         if overflow occurs, as it's what __strtol does and it's more useful
87214         in practice.
87215         (__xstrtol): If __strtol reports some error other than ERANGE,
87216         reflect it to the caller as LONGINT_INVALID.  If it reports
87217         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87218         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87219         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87220         value.
87221         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87222         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87223         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87224         [defined UINTMAX_MAX]: New macros.
87225
87226 2003-10-14  Bruno Haible  <bruno@clisp.org>
87227
87228         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87229
87230 2003-10-14  Bruno Haible  <bruno@clisp.org>
87231
87232         * m4/sig_atomic_t: New file, from GNU gettext.
87233         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87234
87235 2003-10-14  Bruno Haible  <bruno@clisp.org>
87236
87237         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87238         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87239         Also use volatile where needed.
87240
87241 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87242
87243         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87244         Change maintainer from Bruno Haible to 'all'.
87245
87246 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87247
87248         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87249
87250 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87251
87252         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87253         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87254         and define in terms of the other primitives.
87255         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87256         (SIZE_MAX): Define if not already defined.
87257         (array_size_overflow): New function.
87258         (xalloc_die): Abort instead of exiting if 'error' returns.
87259         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87260         (xmalloc, xrealloc): Use them.
87261         (xcalloc): Check for address arithmetic overflow.
87262         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87263         a bit faster than strcpy.
87264
87265 2003-10-10  Simon Josefsson  <jas@extundo.com>
87266
87267         * modules/argp (Depends-on): Add restrict and strcase.
87268
87269 2003-10-10  Simon Josefsson  <jas@extundo.com>
87270
87271         * m4/argp.m4: Add AC_C_INLINE.
87272
87273 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87274
87275         Merge getpass from libc, plus a few fixes.
87276
87277         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87278         Include <stdbool.h>.
87279         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87280         __fsetlocking to empty.
87281         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87282         do include <bits/libc-lock.h>.
87283         Do not include <fcntl.h>; not needed.
87284         [_LIBC]: Include <wchar.h>.
87285         (NOTCANCEL_MODE): New macro.
87286         (flockfile, funlockfile) [_LIBC]: New macros.
87287         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87288         [!_LIBC]: New macros.
87289         (call_fclose): New function.
87290         (getpass): Use it.  Save tty stream separately; this simplifies the
87291         code and makes it more reliable if stdin happens to equal stdout.
87292         Invoke __fsetlocking on tty.
87293         Handle thread cancellation if needed.
87294         Namespace cleanup (use __tcgetattr, __getline).
87295         Use bool for Booleans.
87296         [USE_IN_LIBIO]: Handle wide streams.
87297         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87298         stream might go where.
87299
87300         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87301         doesn't have to include <stdio.h> before us.
87302         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87303         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87304         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87305         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87306         if not declared, so that we can use getpass.c code from libc without
87307         rewriting it.
87308         (flockfile, ftrylockfile, funlockfile): New macros.
87309
87310 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87311
87312         * modules/getpass: Depend on stdbool.
87313
87314 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87315
87316         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87317
87318 2003-10-07  Karl Berry  <karl@gnu.org>
87319
87320         * config/config.{guess,sub}: update from config.
87321
87322 2003-10-06  Jim Meyering  <jim@meyering.net>
87323             Bruno Haible  <bruno@clisp.org>
87324
87325         This lets translators provide better translations for the
87326         "Written by ..." part of --version output.
87327         * lib/version-etc.h: Include stdarg.h.
87328         (version_etc_copyright): Declare as readonly.
87329         (version_etc): Make this function variadic with a NULL-terminated list
87330         of author name strings.
87331         (version_etc_va): New declaration.
87332         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87333         (version_etc_copyright): Declare as readonly.
87334         (version_etc_va): New function. Provide a different translatable string
87335         for each possible number of authors < 10. Abbreviate when there are 10
87336         authors or more.
87337         (version_etc): Make this function variadic. Call version_etc_va.
87338         Suggestion from Gary V. Vaughan.
87339
87340         * lib/long-options.h (parse_long_options): Change prototype: the
87341         authors string is moved to the end and becomes variadic.
87342         * lib/long-options.c: Include stdarg.h.
87343         (parse_long_options): Make this function variadic, too.
87344         Call version_etc_va, not version_etc.
87345
87346 2003-10-06  Bruno Haible  <bruno@clisp.org>
87347
87348         * modules/version-etc-2: Remove file.
87349         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87350
87351 2003-10-06  Bruno Haible  <bruno@clisp.org>
87352
87353         * modules/fatal-signal: New file.
87354         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87355
87356 2003-10-06  Bruno Haible  <bruno@clisp.org>
87357
87358         * m4/fatal-signal.m4: New file.
87359         * m4/signalblocking.m4: New file, from GNU gettext.
87360
87361 2003-10-06  Bruno Haible  <bruno@clisp.org>
87362
87363         * lib/version-etc-2.h: Remove file.
87364         * lib/version-etc-2.c: Remove file.
87365
87366 2003-10-06  Bruno Haible  <bruno@clisp.org>
87367
87368         * lib/fatal-signal.h: New file, from GNU gettext.
87369         * lib/fatal-signal.c: New file, from GNU gettext.
87370
87371 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87372
87373         * README: Rework advice for preventing empty .o files.
87374         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87375         not <sys/types.h>.
87376
87377 2003-10-04  Karl Berry  <karl@gnu.org>
87378
87379         * lib/argp*: update from libc.
87380
87381 2003-10-04  Karl Berry  <karl@gnu.org>
87382
87383         * config/config.{guess,sub}: update from config.
87384
87385 2003-10-02  Bruno Haible  <bruno@clisp.org>
87386
87387         * modules/lchown (Include): Add lchown.h.
87388         * modules/time_r (Include): Use "..." syntax.
87389         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87390
87391 2003-10-01  Simon Josefsson  <jas@extundo.com>
87392
87393         * MODULES.html.sh (func_all_modules): Move gethostname from section
87394         'based on' to section 'lacking' POSIX:2001.
87395
87396 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87397
87398         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87399         to output mode on the same stream.
87400
87401 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87402
87403         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87404         Fix arg typo in previous patch.
87405
87406 2003-09-28  Jim Meyering  <jim@meyering.net>
87407
87408         * lib/error.c: Correct cpp indentation.
87409
87410 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87411
87412         * modules/free: New file.
87413
87414 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87415
87416         * m4/free.m4: New file.
87417
87418 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87419
87420         * lib/minmax.h (MIN, MAX)
87421         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87422         Omit the special code that used __typeof__, since we worry that
87423         it could be more trouble than it's worth.  See:
87424         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87425         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87426
87427         * lib/free.c: New file.
87428
87429 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87430
87431         Trivial fixes to Makefile.am parts of module listings.
87432         * modules/strstr: Append strstr.h to lib_SOURCES.
87433         * modules/strcase: Likewise, for strcase.h.
87434
87435 2003-09-27  Karl Berry  <karl@gnu.org>
87436
87437         * config/mkinstalldirs: update from automake.
87438
87439 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87440
87441         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87442         (error_tail): Do not loop, reallocating temporary buffer, since
87443         the output cannot contain more wide characters than the input
87444         contains bytes, the size must be big enough already.  This avoids
87445         one potential size overflow calculation.  Check for size overflow
87446         when calculating temporary buffer size.  Free temporary buffer
87447         when done, if it was allocated with malloc; this plugs a memory
87448         leak.  Remove casts from void * to pointers, that are no longer
87449         needed now that we're assuming C89 or better.
87450
87451         Merge error changes from glibc.
87452
87453         * lib/error.c, error.h: Update copyright notice header to match glibc.
87454         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87455         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87456         Disable cancellation while printing error.
87457         * lib/error.h: Prepend __ to parameter names.
87458
87459 2003-09-26  Jim Meyering  <jim@meyering.net>
87460
87461         * lib/error.c (error_tail): Move some declarations
87462         into inner scope where the local variables are used.
87463
87464 2003-09-26  Bruno Haible  <bruno@clisp.org>
87465
87466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87467         stpncpy().
87468         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87469
87470 2003-09-26  Bruno Haible  <bruno@clisp.org>
87471
87472         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87473         (stpncpy): Define as alias for gnu_stpncpy.
87474         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87475
87476 2003-09-25  Simon Josefsson  <jas@extundo.com>
87477
87478         * lib/xgetdomainname.h: New file.
87479         * lib/xgetdomainname.c: New file.
87480
87481 2003-09-25  Simon Josefsson  <jas@extundo.com>
87482             Bruno Haible  <bruno@clisp.org>
87483
87484         * modules/getdomainname: New file.
87485         * modules/xgetdomainname: New file.
87486         * MODULES.html.sh (func_all_modules): Add getdomainname,
87487         xgetdomainname.
87488
87489 2003-09-25  Simon Josefsson  <jas@extundo.com>
87490             Bruno Haible  <bruno@clisp.org>
87491
87492         * m4/getdomainname.m4: New file.
87493
87494 2003-09-25  Simon Josefsson  <jas@extundo.com>
87495             Bruno Haible  <bruno@clisp.org>
87496
87497         * lib/getdomainname.h: New file.
87498         * lib/getdomainname.c: New file.
87499
87500 2003-09-25  Karl Berry  <karl@gnu.org>
87501
87502         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87503
87504 2003-09-25  Karl Berry  <karl@gnu.org>
87505
87506         * config/install-sh: update from automake.
87507
87508 2003-09-25  Bruno Haible  <bruno@clisp.org>
87509
87510         * modules/version-etc-2: New file, from modules/version-etc with
87511         modifications.
87512         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87513
87514 2003-09-25  Bruno Haible  <bruno@clisp.org>
87515
87516         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87517         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87518
87519 2003-09-24  Simon Josefsson  <jas@extundo.com>
87520
87521         * modules/xgethostname: Add xgethostname.h.
87522
87523 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87524
87525         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87526         the buffer associated with the argument.  Bug reported by
87527         Simon Josefsson.
87528
87529 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87530
87531         * README: Document assumptions that 'int' is at least 32 bits
87532         wide, that integer arithmetic is 2's complement without overflow,
87533         that there are no holes in integer values, that adding sizes of
87534         two nonoverlapping objects can't overflow, and that all-bits-zero
87535         yields scalar zero.  Fix spelling and capitalization typos.
87536
87537 2003-09-19  Karl Berry  <karl@gnu.org>
87538
87539         * lib/argp.h: update from libc.
87540
87541 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87542
87543         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87544         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87545         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87546
87547 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87548
87549         * gnulib-tool: Use "test -h", not "test -L", for portability
87550         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87551         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87552         (sed_extract_prog): Issue s commands one-by-one, rather than
87553         using \| in one s command.
87554
87555 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87556
87557         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87558         input error, instead of returning NULL the next time we are called
87559         (and therefore losing track of errno).
87560
87561 2003-09-16  Bruno Haible  <bruno@clisp.org>
87562
87563         * gnulib-tool (func_create_testdir): Warn about duplicated
87564         dependencies.
87565
87566 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87567
87568         * modules/argmatch, modules/fatal, modules/obstack,
87569         modules/xalloc, modules/xgethostname: Sort dependencies by
87570         importance, not alphabetically.
87571
87572 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87573
87574         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87575         fails, so that the caller gets the proper errno.
87576
87577         * lib/readutmp.c (read_utmp): Likewise.
87578         Check for fstat error.  Close stream and free storage
87579         when failing.
87580
87581 2003-09-14  Karl Berry  <karl@gnu.org>
87582
87583         * config/srclist.txt (strdup.c): disable for c89 changes.
87584
87585 2003-09-14  Jim Meyering  <jim@meyering.net>
87586
87587         * lib/getloadavg.c: Correct cpp indentation.
87588         * lib/strdup.c: Likewise.
87589         * lib/vasnprintf.c: Likewise.
87590
87591 2003-09-14  Bruno Haible  <bruno@clisp.org>
87592
87593         * modules/fwriteerror: New file.
87594         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87595
87596 2003-09-14  Bruno Haible  <bruno@clisp.org>
87597
87598         * lib/fwriteerror.h: New file.
87599         * lib/fwriteerror.c: New file.
87600
87601 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87602
87603         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87604         modules/xgethostname, modules/xalloc: Depend on exit.
87605
87606 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87607
87608         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87609
87610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87611         and AC_MINIX, too, so that their extensions are available.
87612
87613         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87614         This macro has been superseded by gl_BACKUPFILE.
87615
87616         More patches to assume C89 or better.
87617
87618         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87619
87620         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87621         unconditionally.
87622         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87623         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87624         Include <string.h>, <stdlib.h> unconditionally.
87625         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87626         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87627         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87628         headers or for string.h.
87629         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87630         or strtoul.
87631
87632         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87633         headers.
87634         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87635         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87636         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87637         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87638         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87639         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87640         memcpy, memset.
87641         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87642         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87643         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87644         strtol.
87645         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87646         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87647         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87648         strtoul.
87649
87650 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87651
87652         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87653         * lib/obstack.c [!defined _LIBC]: Likewise.
87654         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87655         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87656         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87657
87658         More changes to assume C89 or better.
87659
87660         * lib/error.c (error_tail): Assume vprintf.
87661
87662         * lib/argmatch.c (getenv): Remove decl.
87663         * lib/progreloc.c (get_full_program_name): Define via prototype.
87664         * lib/setenv.c (clearenv): Likewise.
87665         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87666         needed.
87667         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87668         (malloc, memcpy): Remove decls.
87669         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87670         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87671         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87672         (memcpy): Remove macro.
87673         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87674         (__P): Remove.  All uses removed.
87675         (PTR): Remove.  All uses changed to void *.
87676         (CHAR_BIT, NULL): Remove.
87677         (spaces, zeros, memset_space, memset_zero)
87678         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87679         Remove.
87680         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87681         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87682         Define with prototype.
87683         Remove now-unnecessary prototype decl.
87684         (extra_args_spec): Assume ANSI C.  All uses changed.
87685         (extra_args_spec_iso): Remove.
87686         (my_strftime, emacs_strftimeu): Define via prototype.
87687         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87688         unconditionally.
87689         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87690         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87691         (strtoul, strtol): Remove decls.
87692         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87693         LONG_MAX): Remove.
87694         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87695         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87696         (LOCALE_PARAM_PROTO): New macro.
87697         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87698         (INTERNAL (strtol), strtol): Define with a prototype.
87699         (PARAMS): Remove.  All uses removed.
87700         * lib/tempname.c: Include <string.h> unconditionally.
87701         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87702         * lib/xgethostname.c (main): Define with a prototype.
87703         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87704         Include <stdlib.h> unconditionally.
87705         (calloc, malloc, realloc, free): Remove decls.
87706         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87707         Include <stdlib.h> unconditionally.  Sort include file names.
87708         (strtod): Remove.
87709         (xstrtod): Define with a prototype.
87710         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87711         (strtol, strtoul): Remove decls.
87712
87713 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87714
87715         More patches to assume C89 or better.
87716         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87717         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87718         string.h, memchr, STDC_HEADERS.
87719
87720 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87721
87722         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87723         Include <stdlib.h>, <string.h> unconditionally.
87724         Remove now-unnecessary cast to char *.
87725         * lib/strnlen.c: Include <string.h> unconditionally.
87726         * lib/yesno.c (yesno): Define with a prototype.
87727
87728 2003-09-11  Bruno Haible  <bruno@clisp.org>
87729
87730         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87731
87732 2003-09-10  Jim Meyering  <jim@meyering.net>
87733
87734         * lib/error.c: Correct indentation of cpp directives.
87735
87736 2003-09-10  Bruno Haible  <bruno@clisp.org>
87737
87738         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87739         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87740         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87741         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87742         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87743         <stdlib.h> and <string.h> checks.
87744         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87745         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87746
87747 2003-09-10  Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/strcspn.c: Include <string.h> unconditionally.
87750         * lib/strpbrk.c: Include <string.h> unconditionally.
87751         * lib/strstr.c: Include <string.h> unconditionally.
87752         * lib/unicodeio.c: Include <string.h> unconditionally.
87753         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87754         * lib/unsetenv.c: Likewise.
87755         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87756         * lib/yesno.c: Include <stdlib.h> unconditionally.
87757         (rpmatch): Add prototype.
87758
87759 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87760
87761         More patches to assume C89 or better.
87762         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87763         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87764         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87765         or for string.h.
87766         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87767         stdlib.h.
87768         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87769         C headers.
87770         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87771         string.h.
87772         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87773         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87774         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87775         or for string.h.
87776         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87777         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87778         C headers.
87779         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87780         memcpy.
87781         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87782         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87783         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87784         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87785         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87786         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87787         string.h, free.
87788         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87789         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87790         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87791         C headers, or for string.h.
87792         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87793         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87794         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87795         headers, memory.h, stdlib.h, string.h, strings.h.
87796         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87797         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87798         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87799         strchr.
87800         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87801         headers, memory.h, string.h.
87802         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87803         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87804         free.
87805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87806         headers.
87807         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87808         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87809         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87810         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87811         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87812
87813 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87814
87815         More K&R removal.
87816
87817         * lib/acosl.c (main): Use a prototype.
87818         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87819         tanl.c: Likewise.
87820
87821         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87822
87823         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87824         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87825         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87826         with a prototype.
87827         * lib/getopt.c (const): Remove macro.
87828         Include <string.h> unconditionally.
87829         (my_index): Remove; all uses changed to strchr.
87830         (strlen): Remove decl.
87831         (exchange): Remove forward decl; no longer needed.
87832         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87833         Define with prototype.
87834         * lib/getopt1.c (const): Remove macro.
87835         (getopt_long, getopt_long_only, main): Define with prototype.
87836
87837         * lib/getugroups.c: Include <string.h> unconditionally.
87838
87839         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87840         (getusershell, setusershell, endusershell, readname, main):
87841         Define with prototypes.
87842
87843         * lib/group-member.c: Include group-member.h first.
87844         Include <stdlib.h> unconditionally.
87845
87846         * lib/hard-locale.c: Include hard-locale.h first.
87847         Include <stdlib.h>, <string.h> unconditionally.
87848
87849         * lib/hash.c (free, malloc): Remove decls.
87850         Include <stdlib.h> unconditionally.
87851
87852         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87853         (getenv): Do not declare.
87854
87855         * lib/idcache.c: Include <string.h> unconditionally.
87856
87857         * lib/long-options.c: Include long-options.h first, to test interface.
87858         Include <stdlib.h> unconditionally.
87859
87860         * lib/makepath.c: Include makepath.h first, to test interface.
87861         Include <stdlib.h> and <string.h> unconditionally.
87862
87863         * lib/linebuffer.c: Include <stdlib.h>.
87864         (free): Remove decl.
87865
87866         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87867         stddef.h. rpl_malloc returns void *, not char *.
87868         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87869         prototype.
87870
87871         * lib/md5.h: Include <limits.h> unconditionally.
87872         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87873         (__P): Remove; all uses removed.
87874         * lib/md5.c: Include "md5.h" first.
87875         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87876         md5_buffer, md5_process_bytes, md5_process_block):
87877         Define with prototypes.
87878         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87879         * lib/sha.c: Include "sha.h" first.
87880         Include <stdlib.h>, <string.h> unconditionally.
87881
87882         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87883         * lib/memcmp.c (__ptr_t): Likewise.
87884         * lib/memrchr.c (__ptr_t): Likewise.
87885         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87886         Include <string.h> unconditionally.
87887         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87888         * lib/memchr.c: Include <stdlib.h> unconditionally.
87889         * lib/memchr.c (LONG_MAX): Remove.
87890         * lib/memrchr.c (LONG_MAX): Likewise.
87891         * lib/memchr.c (__memchr): Define via a prototype.
87892         * lib/memrchr.c (__memrchr): Likewise.
87893         * lib/memcmp.c (__P): Remove, and remove all uses.
87894         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87895         Remove forward decls; no longer needed.
87896         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87897         Use types required by C89 in prototype.
87898
87899         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87900         * lib/savedir.c: Likewise.
87901         * lib/mkdir.c (free): Remove decl.
87902         * lib/rmdir.c (rmdir): Define with a prototype.
87903         * lib/savedir.c: Include savedir.h first, to test interface.
87904
87905         * lib/mktime.c (STDC_HEADERS): Remove.
87906         Include <stdlib.h>, <string.h> unconditionally.
87907
87908         * lib/modechange.c: Include <stdlib.h> unconditionally.
87909         (malloc): Remove decl.
87910
87911         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87912         (free): Remove decl.
87913
87914         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87915         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87916         (This type really should be intptr_t, but that's a C99ism.)
87917         (_obstack_memcpy): Remove: all uses changed to memcpy.
87918         Include <string.h> unconditionally.
87919         (struct obstack): Assume __STDC__ for types of members
87920         chunkfun, freefun, extra_arg.
87921         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87922         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87923         obstack_begin, obstack_specify_allocation,
87924         obstack_specify_allocation_with_arg, obstack_chunkfun,
87925         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87926         Remove unprototyped decls and the macros that use them.
87927         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87928         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87929         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87930         (defined __STDC__ && __STDC__)]:
87931         Remove nonprototyped code.
87932         Include <stdlib.h> unconditionally.
87933         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87934         _obstack_allocated_p, _obstack_free, obstack_free,
87935         _obstack_memory_used, print_and_abort):
87936         Define using prototypes.
87937         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87938         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87939         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87940         obstack_next_free, obstack_object_size, obstack_room) [0]:
87941         Remove unused, unprototyped code.
87942
87943         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87944
87945         * lib/physmem.c (physmem_total, physmem_available, main): Define
87946         with prototypes.
87947
87948         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87949         (main): Define with a prototype.
87950
87951         * lib/posixver.c (getenv): Remove decl.
87952
87953         * lib/putenv.c (malloc): Returns void *, not char *.
87954         Include <string.h> unconditionally.
87955         (strchr, memcpy, NULL): Do not define.
87956
87957         * lib/readtokens.c: Include readtokens.h first, to test interface.
87958         Include <stdlib.h>, <string.h> unconditionally.
87959         (init_tokenbuffer): Define with a prototype.
87960
87961         * lib/regex.c (PARAMS): Remove.  All uses removed.
87962         All uses of _RE_ARGS removed, too.
87963         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87964         unconditionally.
87965         (bzero): Assume memset exists.
87966         (memcmp, memcpy, NULL): Remove.
87967         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87968         char, or assignments to local vars of type signed char.
87969         (init_syntax_once, PREFIX(extract_number_and_incr),
87970         PREFIX(print_partial_compiled_pattern),
87971         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87972         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87973         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87974         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87975         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87976         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87977         wcs_compile_range, byte_compile_range, truncate_wchar,
87978         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87979         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87980         count_mbs_length, wcs_re_match_2_internal,
87981         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87982         PREFIX(alt_match_null_string_p),
87983         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87984         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87985         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87986         now-unnecessary declaration, if any.
87987         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87988         regcomp, regexec):
87989         Remove now-unnecessary casts among pointer types.
87990         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87991
87992         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87993         (free): Remove decl.
87994
87995         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87996
87997         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87998         (free): Remove decl.
87999
88000         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88001         * lib/xgetcwd.c: Likewise.
88002
88003         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88004         (free): Remove decl.
88005
88006         * lib/strchrnul.c (strchrnul): Define with a prototype.
88007         Fix bug: c_in was not converted to char before searching.
88008
88009         The following changes are not K&R related:
88010
88011         * lib/group-member.h: Include <sys/types.h>, so that this file is
88012         self-contained.
88013         * lib/makepath.h: Likewise.
88014
88015         * lib/getusershell.c (readname, default_index, line_size, readname):
88016         Use size_t, not int, for sizes.
88017         (readname): If the size overflows, report an error instead of
88018         looping forever.
88019
88020 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88021
88022         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88023         libc.
88024
88025 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88026
88027         * README: New section: portability guidelines.
88028
88029 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88030
88031         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88032         C89 spec.
88033
88034 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88035
88036         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88037
88038 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88039
88040         Assume C89 or better; remove K&R cruft.
88041         A few of these changes were first proposed by Derek Robert Price
88042         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88043
88044         * lib/addext.c: Include <string.h> unconditionally.
88045         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88046         Don't declare getenv or malloc.
88047
88048         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88049         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88050         (NULL): Remove.
88051         (find_stack_direction, alloca): Use prototypes.
88052
88053         * lib/atexit.c (atexit): Define using a prototype.
88054
88055         * lib/basename.c, dirname.c, stripslash.c:
88056         Include <string.h> unconditionally.
88057
88058         * lib/bcopy.c: Include <stddef.h>.
88059         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88060
88061         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88062
88063         * lib/error.h (error, error_at_line, error_print_progname)
88064         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88065         * lib/error.c: Include error.h first, to check interface.
88066         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88067         (VA_START): Remove; all uses changeed to va_start.
88068         (exit, strerror): Remove decls.
88069         (error_print_progname): Prototype uncondionally.
88070         Don't include <errno.h>; no longer needed.
88071         (private_strerror): Remove.
88072         (error_tail): Always define.
88073         (error, error_at_line): Assume C89 or better; always use prototypes.
88074         * lib/fatal.c: Include "fatal.h" first, to test interface.
88075         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88076         (VA_START): Remove; all uses changed to va_start.
88077         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88078         this case.
88079         (exit): Remove decl.
88080         (fatal): Prototype unconditionally.  Assume va_start works.
88081         Abort at end, to pacify gcc.
88082
88083         * lib/euidaccess.c (main): Define with a prototype.
88084
88085         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88086
88087         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88088
88089         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88090         prototypes.
88091         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88092         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88093         (getenv): Remove decl.
88094         (fnmatch): Define using a prototype.
88095         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88096         (FCT): Define using a prototype.
88097
88098         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88099
88100         * lib/gethostname.c: Include <stddef.h>.
88101         (gethostname): Define with prototype.  Length is size_t, not int.
88102
88103 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88104
88105         Assume C89 or better; remove K&R cruft.
88106         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88107         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88108         string.h, getenv, malloc.
88109         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88110         headers.
88111         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88112         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88113         do not check for strerror.
88114         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88115         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88116         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88117         do not check for doprnt or vprintf.
88118         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88119         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88120
88121 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88122
88123         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88124         getversion.c should have been removed then, but was accidentally
88125         preserved.
88126
88127         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88128         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88129
88130 2003-09-08  Karl Berry  <karl@gnu.org>
88131
88132         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88133                 config, forget about prep.
88134
88135         * config/depcomp, missing: update from automake.
88136
88137 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88138
88139         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88140         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88141
88142 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88143
88144         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88145         copy_tm_result.  Bug reported by Simon Josefsson in
88146         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88147
88148 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88149
88150         * m4/time_r.m4: New file.
88151         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88153         is. Check for timegm declaration.
88154         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88155         Do not check for gmtime_r.
88156         Replace mktime if __mktime_internal does not exist and if mktime
88157         hasn't been replaced already.
88158
88159 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88160
88161         * lib/time_r.c, lib/time_r.h: New files.
88162
88163         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88164         __localtime_r.
88165         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88166         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88167
88168         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88169         __gmtime_r.
88170         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88171         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88172         Include <time_r.h>.
88173
88174         * lib/timegm.c: Switch to glibc implementation, with the following
88175         changes:
88176         [defined HAVE_CONFIG_H]: Include <config.h>.
88177         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88178         (__mktime_internal) [!defined _LIBC]: New decl.
88179         (__gmtime_r) [!defined _LIBC]: New macro and function.
88180         (timegm): Use a prototype, since gnulib assumes C89.
88181         Do not bother declaring tmp to be const, as it's not really usefu.
88182         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88183         (timegm): Declare only if HAVE_DECL_TIMEGM.
88184
88185 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88186
88187         * MODULES.html.sh (func_all_modules): Add time_r.
88188         * modules/time_r: New file.
88189         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88190         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88191
88192 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88193
88194         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88195         Bug reported by Lute Kamstra in
88196         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88197
88198         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88199         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88200         course with correspondingly smaller numbers for tomorrow and
88201         yesterday.  From Tadayoshi Funaba.  Originally installed into
88202         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88203         coreutils merge?).
88204
88205 2003-08-31  Simon Josefsson  <jas@extundo.com>
88206
88207         * modules/timegm: New file.
88208         * MODULES.html.sh (func_all_modules): Add timegm.
88209
88210 2003-08-31  Simon Josefsson  <jas@extundo.com>
88211
88212         * m4/timegm.m4: New file.
88213
88214 2003-08-31  Simon Josefsson  <jas@extundo.com>
88215
88216         * lib/timegm.h: New file.
88217         * lib/timegm.c: New file.  Based on
88218         wget-1.8.2/src/http.c:mktime_from_utc.
88219
88220 2003-08-31  Karl Berry  <karl@gnu.org>
88221
88222         * lib/argp.h: update from libc.
88223
88224 2003-08-28  Bruno Haible  <bruno@clisp.org>
88225
88226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88227         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88228         followed by '#define fnmatch fnmatch_posix' gives an error.
88229
88230 2003-08-28  Bruno Haible  <bruno@clisp.org>
88231
88232         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88233         warning on QNX, which defines O_BINARY to 000000.
88234
88235 2003-08-27  Jim Meyering  <jim@meyering.net>
88236
88237         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88238         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88239         would fail after 32.  Reported by Danny Levinson.  Details here:
88240         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88241
88242 2003-08-24  Bruno Haible  <bruno@clisp.org>
88243
88244         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88245         MSVC7 <stdio.h> is included later.
88246
88247 2003-08-22  Simon Josefsson  <jas@extundo.com>
88248
88249         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88250
88251 2003-08-20  Karl Berry  <karl@gnu.org>
88252
88253         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88254
88255 2003-08-20  Bruno Haible  <bruno@clisp.org>
88256
88257         * modules/progname: New file.
88258         * MODULES.html.sh (func_all_modules): Add progname.
88259
88260 2003-08-20  Bruno Haible  <bruno@clisp.org>
88261
88262         * lib/progname.h: New file, from GNU gettext.
88263         * lib/progname.c: New file, from GNU gettext.
88264         * lib/progreloc.c: New file, from GNU gettext.
88265
88266 2003-08-19  Jim Meyering  <jim@meyering.net>
88267
88268         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88269         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88270
88271 2003-08-19  Bruno Haible  <bruno@clisp.org>
88272
88273         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88274         more.
88275
88276 2003-08-19  Bruno Haible  <bruno@clisp.org>
88277
88278         * lib/xstrdup.c: Assume <string.h> exists.
88279
88280 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88281
88282         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88283         in makefile rules.
88284
88285 2003-08-18  Jim Meyering  <jim@meyering.net>
88286
88287         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88288         * m4/lib-ld.m4: Likewise.
88289
88290 2003-08-18  Jim Meyering  <jim@meyering.net>
88291
88292         * lib/setenv.h: Indent nested cpp directive.
88293         * lib/vasnprintf.c: Remove trailing blanks.
88294
88295 2003-08-17  Simon Josefsson  <jas@extundo.com>
88296
88297         * modules/xstrndup: New file.
88298         * MODULES.html.sh (func_all_modules): Add xstrndup.
88299
88300 2003-08-17  Simon Josefsson  <jas@extundo.com>
88301
88302         * modules/argp: Fix autoconf macro name. Add more dependencies.
88303
88304 2003-08-17  Simon Josefsson  <jas@extundo.com>
88305
88306         * m4/xstrndup.m4: New file.
88307
88308 2003-08-17  Simon Josefsson  <jas@extundo.com>
88309
88310         * m4/argp.m4: New file.
88311
88312 2003-08-17  Simon Josefsson  <jas@extundo.com>
88313             Bruno Haible  <bruno@clisp.org>
88314
88315         * lib/xstrndup.h: New file.
88316         * lib/xstrndup.c: New file.
88317
88318 2003-08-17  Bruno Haible  <bruno@clisp.org>
88319
88320         * modules/strndup (Files, Include): Add lib/strndup.h.
88321
88322 2003-08-17  Bruno Haible  <bruno@clisp.org>
88323
88324         * modules/euidaccess (Files): Add lib/euidaccess.h.
88325
88326 2003-08-17  Bruno Haible  <bruno@clisp.org>
88327
88328         * lib/strndup.h: New file.
88329
88330 2003-08-17  Bruno Haible  <bruno@clisp.org>
88331
88332         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88333         like AC_GNU_SOURCE.
88334         * modules/extensions (configure.ac): Comment out the invocation of
88335         gl_USE_SYSTEM_EXTENSIONS.
88336
88337 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88338
88339         Merges from coreutils, etc.
88340         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88341         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88342         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88343         fixing a typo.
88344         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88345         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88346
88347 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88348
88349         Document merge from coreutils.
88350         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88351         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88352         * modules/utime: Add m4/utimes-null.m4.
88353
88354 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88355
88356         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88357         space, undoing this 2003-08-12 change:
88358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88359
88360 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88361
88362         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88363         strtoul.c from libc, undoing this 2003-08-12 change:
88364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88365
88366 2003-08-16  Jim Meyering  <jim@meyering.net>
88367
88368         Merges from coreutils.
88369         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88370         prefix.  Adjust cache variables similarly.  Create 500 rather than
88371         just 300 files, to exercise bug on Darwin6.5, too.
88372         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88373         $missing_dir.
88374         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88375         AM_SYS_POSIX_TERMIOS.
88376         Reported by mkc@mathdogs.com.
88377         Also change use of $am_cv_sys_posix_termios
88378         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88379         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88380         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88381         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88382         in /proc/mounts until it finds one with matching device number.  This
88383         is unnecessary when the FILE argument *is* a mount point.  No stat call
88384         is necessary in that case.  So, disable the statvfs-testing code on
88385         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88386         as RedHat bug# 84846.
88387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88388         to 1MB, so as not to render systems with no stack size limit (e.g.,
88389         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88390         Include <unistd.h>.  On some systems,
88391         it is required for the definition of _SC_PAGESIZE.
88392
88393 2003-08-16  Jim Meyering  <jim@meyering.net>
88394
88395         Merge from coreutils.
88396         * lib/xstrtoimax.c: #else #if -> #elif.
88397         * lib/xstrtoumax.c: Likewise.
88398
88399 2003-08-16  Jim Meyering  <jim@meyering.net>
88400
88401         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88402         * m4/utimes.m4: Removed.
88403         * m4/utimes-null.m4: Renamed from utimes.m4.
88404
88405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88406         to 1MB, so as not to render systems with no stack size limit (e.g.,
88407         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88408         Include <unistd.h>.  On some systems,
88409         it is required for the definition of _SC_PAGESIZE.
88410
88411 2003-08-16  Jim Meyering  <jim@meyering.net>
88412         and Paul Eggert  <eggert@cs.ucla.edu>
88413
88414         Merges from coreutils, etc.
88415
88416         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88417         using the latest version from cvs.  This avoids problems with #line
88418         directives using a vendor (Sun) compiler.
88419         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88420         Don't set GETGROUPS_LIB here; now it's
88421         done via getgroups.m4's wrapper function.
88422         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88423         rather than just in sh-util/configure.in, so that the
88424         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88425         same.
88426         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88427         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88428         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88429         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88430         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88431         Remove code that is now done by the newly-required macros.
88432         Append $(EXEEXT) to DF_PROG.
88433         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88434         Do not invoke or require the following here,
88435         since prereq.m4 or some gnulib .m4 now does this for us:
88436         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88437         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88438         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88439         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88440         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88441         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88442         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88443         AC_FUNC_OBSTACK.
88444         Do not replace the following functions, as this is now the job
88445         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88446         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88447         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88448         atexit getpass, strdup, getpagesize.
88449         Replace 'raise'.
88450         Do not check for the following functions, as this is now the job
88451         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88452         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88453         setregid.
88454         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88455         Check for sys/sysctl.h.
88456         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88457         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88458         of checking for ssize_t ourselves.
88459
88460         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88461         Require every macro that gnulib/modules/* suggests for us.
88462         (jm_PREREQ_ADDEXT): New macro.
88463         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88464         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88465
88466         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88467         (gl_PHYSMEM): Use it.
88468         Also check for `table' function.
88469         Check for new headers and functions.
88470         Add check for sys/sysmp.h.
88471         With suggestions from Kaveh Ghazi.
88472         Ignore headers that are present but cannot be compiled.  This
88473         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88474         C 5.4.
88475
88476 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88477
88478         Document merge from coreutils.
88479         * modules/userspec: Depend on posixver.
88480         * modules/strftime: Depend on tzset.
88481
88482 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88483
88484         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88485         rather than tab, after '#' in shell-script copyright notices.
88486         Suggested by Bruno Haible.
88487
88488 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88489
88490         * config/srclist-update: Use three spaces, rather than tab, after '#'
88491         in shell-script copyright notices.  Suggested by Bruno Haible.
88492         Remove unnecessary parenthesization in regular expression.
88493
88494 2003-08-15  Jim Meyering  <jim@meyering.net>
88495
88496         Merge from coreutils.
88497         * lib/xgethostname.c: Include <stdlib.h>.
88498         (xghostname): Don't exit for anything other than memory-related
88499         failure; just return NULL.
88500         * lib/userspec.c: Include "posixver.h".
88501         (parse_user_spec): Accept `.' as a separator only
88502         in pre-POSIX-200112 mode.
88503         * lib/strtoimax.c: Use #elif rather than #else #if.
88504         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88505         Remove function, now that we can rely on a working tzset function.
88506         [!_LIBC]: Ensure that the required autoconf test has been run.
88507         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88508         Use underlying_strftime for %r.
88509         * lib/sha.c: Merge in some clean-up and optimization changes from
88510         glibc.
88511         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88512         Ensure that it is a multiple of 64.
88513         Rearrange loop exit tests so as to avoid performing an
88514         additional fread after encountering an error or EOF.
88515         * lib/realloc.c: Update copyright date.
88516
88517 2003-08-15  Jim Meyering  <jim@meyering.net>
88518         and Paul Eggert  <eggert@twinsun.com>
88519
88520         Merge from coreutils.
88521         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88522         member but strut utmpx does not.  Needed for AIX 4.3.3.
88523         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88524
88525 2003-08-15  Jim Meyering  <jim@meyering.net>
88526         and Paul Eggert  <eggert@cs.ucla.edu>
88527
88528         Merges from coreutils, etc.
88529         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88530         Require gl_FUNC_TZSET_CLOBBER.
88531         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88532         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88533         members.
88534
88535 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88536
88537         Help the merge from coreutils.
88538         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88539         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88540         * m4/tzset.m4: Use it too.
88541
88542 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88543
88544         * modules/tzset: New file.
88545
88546 2003-08-14  Jim Meyering  <jim@meyering.net>
88547
88548         Merges from coreutils.
88549         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88550         variable names, rather than @FNMATCH_H@.
88551         * modules/alloca: Likewise for $(ALLOCA_H).
88552
88553         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88554         the three copies of the literal target, `fnmatch.h'.
88555         * modules/alloca (alloca.h): Likewise.
88556
88557 2003-08-14  Jim Meyering  <jim@meyering.net>
88558
88559         Merge from coreutils.
88560         * m4/tzset.m4: New file.
88561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88562         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88563         otherwise, AIX 5.1 systems would end up using the latter.
88564         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88565         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88566         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88567         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88568
88569 2003-08-14  Jim Meyering  <jim@meyering.net>
88570
88571         Merge from coreutils.
88572         * lib/obstack.h: Whitespace changes.
88573         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88574         and xcalloc return values.
88575         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88576         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88577         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88578         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88579         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88580         error from mntctl.
88581         Use mntctl's return value to drive the entry-processing loop, since
88582         we can't rely on the value of the vmt_length member in the last
88583         entry.  On some systems doing so could result in exhausting
88584         virtual memory.  Based in part on a patch from Mike Jetzer.
88585
88586 2003-08-14  Jim Meyering  <jim@meyering.net>
88587         and Paul Eggert  <eggert@twinsun.com>
88588
88589         Merges from coreutils, plus other fixes.
88590         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88591         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88592         for credits and details.  Thanks to Kaveh Ghazi for helping
88593         to keep these files in sync.
88594         (ARRAY_SIZE): Define it.
88595         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88596         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88597         (memcasecmp): Don't assume size_t fits in unsigned int.
88598         Remove casts and duplicate code.
88599         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88600         (memcpy): Remove definition.
88601         Merge in some clean-up and optimization changes from glibc.
88602         [BLOCKSIZE]: Move definition to top of file.
88603         Ensure that it is a multiple of 64.
88604         Rearrange loop exit tests so as to avoid performing an
88605         additional fread after encountering an error or EOF.
88606         * lib/md5.h (md5_uintptr): Define.
88607         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88608         return to the initial working directory.  Preserve errno
88609         for caller.
88610         * lib/idcache.c: Include "xalloc.h".
88611         (xmalloc, xrealloc): Remove decls.
88612         (getuser): Remove casts no longer required in C89.
88613         * lib/human.c: Include stdio.h, for sprintf.
88614         * lib/group-member.c: Include "xalloc.h".
88615         (xmalloc, xrealloc): Remove decls.
88616         (get_group_info): Remove casts no longer required in C89.
88617         * lib/getusershell.c (readname): Remove casts no longer required in
88618         C89.
88619         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88620         * lib/getline.c: Whitespace fix, from coreutils.
88621
88622 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88623
88624         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88625         Check for isascii.
88626
88627         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88628         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88629         Undo previous (whitespace-only) change.
88630
88631 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88632
88633         * lib/exclude.c: Include <ctype.h>
88634         (IN_CTYPE_DOMAIN): New macro.
88635         (is_space): New fn.
88636         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88637         and empty lines.
88638
88639         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88640         Undo previous (whitespace-only) change.
88641
88642 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88643
88644         * config/srclist-update: Change update back to the old behavior,
88645         leaving whitespace alone.  Use one 'sed' command rather than a
88646         pipeline.
88647         (fixlicense): Now a variable, not a function.
88648         (remove_trailing_blanks): Remove.
88649         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88650         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88651         Undo previous (whitespace-only) change.
88652
88653 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88654
88655         Merge from coreutils.
88656         * modules/euidaccess: Add lib_SOURCES, include for new
88657         file euidaccess.h
88658
88659 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88660
88661         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88662         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88663         Normalize leading white space and remove trailing white space.
88664
88665         Merge from coreutils
88666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88667
88668         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88669         0.12.1.  These files are now being upgraded automatically by
88670         ../config/srclist-update.
88671
88672 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88673
88674         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88675         Normalize leading white space and remove trailing white space.
88676         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88677         notice, as per ../config/srclist-update.
88678
88679         Merge from coreutils.
88680         * lib/euidaccess.h: New file.
88681         * lib/euidaccess.c: Include it.
88682         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88683         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88684         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88685
88686 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88687
88688         * config/srclist-update: Add copyright notice.
88689         (remove_id_lines, remove_trailing_blanks): New constants.
88690         (fixfile): Use them to normalize spacing a bit in copied files.
88691         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88692         Normalize leading white space and remove trailing white space.
88693
88694         * config/texinfo.tex: Sync with texinfo.
88695
88696         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88697         strtoul.c from libc, to merge coreutils whitespace changes.
88698
88699         * config/srclist.txt: Get the following m4 files from gettext:
88700         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88701         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88702         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88703         wint_t.m4.
88704
88705 2003-08-12  Karl Berry  <karl@gnu.org>
88706
88707         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88708         been made.
88709
88710 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88711
88712         * modules/gnu-source, m4/gnu-source.m4:
88713         Remove; we're assuming Autoconf 2.54 or later now.
88714         Suggested by Bruno Haible.
88715         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88716
88717 2003-08-11  Bruno Haible  <bruno@clisp.org>
88718
88719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88720
88721 2003-08-11  Bruno Haible  <bruno@clisp.org>
88722
88723         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88724         (vasnprintf): Use it instead of wcslen.
88725
88726 2003-08-11  Bruno Haible  <bruno@clisp.org>
88727
88728         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88729         value to ensure that _Bool promotes to int. Use #define for _Bool when
88730         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88731
88732 2003-08-10  Karl Berry  <karl@gnu.org>
88733
88734         * lib/regex.h: update from libc (whitespace fix).
88735
88736 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88737
88738         Merge some files from coreutils.  These changes were
88739         originally made by Jim Meyering.
88740         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88741         many older Unixes require this.
88742         * lib/alloca.c (alloca): Remove cast to argument of free;
88743         no longer needed in C89.
88744         * lib/alloca_.h, regex.h: Fix white space to match
88745         what GNU indent does.
88746
88747 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88748
88749         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88750         apparently Emacs's Unicode mode got confused before my 2003-08-05
88751         checkin.
88752
88753 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88754
88755         * m4/extensions.m4: New file.
88756         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88757         Require gl_USE_SYSTEM_EXTENSIONS.
88758         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88759         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88760
88761 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88762
88763         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88764         * modules/extensions, modules/gnu-source: New files.
88765         * modules/timespec, modules/unlocked-io: Depend on extensions.
88766
88767 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88768
88769         * modules/restrict: New file.
88770         * MODULES.html.sh (func_all_modules): Add restrict.
88771         * modules/regex: Depend on restrict.
88772
88773 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88774
88775         * m4/restrict.m4: New file.
88776         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88777
88778 2003-08-07  Bruno Haible  <bruno@clisp.org>
88779
88780         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88781         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88782
88783 2003-08-07  Bruno Haible  <bruno@clisp.org>
88784
88785         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88786         makes the module 'getndelim2' compatible with the module 'getline'.
88787
88788 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88789
88790         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88791         byte with "\201" to avoid glitches when editing that source file
88792         with multi-gnome-terminal.
88793
88794 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88795
88796         * lib/bumpalloc.h: Remove.
88797
88798 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88799
88800         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88801         * modules/bumpalloc: Remove.
88802
88803 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88804
88805         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88806         GNU coding style.
88807
88808         Merge from coreutils.
88809         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88810         1. From glibc.
88811         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88812         from Karl Berry, implemented by Jim Meyering.
88813         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88814         from Dmitry V. Levin.
88815         Remove anachronistic cast of xrealloc.
88816         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88817         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88818         type. Otherwise, it wouldn't compile with at least /bin/cc on
88819         ymp-cray-unicos9.0.2.X.
88820         Combine two mostly-identical uses of alloca into one.
88821         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88822
88823 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88824
88825         [From Emacs.]
88826
88827         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88828         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88829         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88830         obsolete NLIST_NAME_UNION.
88831         [__GNU__]: Undef BSD and FSCALE.
88832         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88833
88834 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88835
88836         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88837         an enum type, so that it's guaranteed to promote to int.  See:
88838         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88839
88840 2003-08-03  Karl Berry  <karl@gnu.org>
88841
88842         * config/depcomp: update from automake.
88843
88844 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88845
88846         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88847         (strerror): Don't assume that a printable int fits in 14 bytes.
88848
88849 2003-07-31  Bruno Haible  <bruno@clisp.org>
88850
88851         * modules/getpass-gnu: New file.
88852         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88853
88854 2003-07-31  Bruno Haible  <bruno@clisp.org>
88855
88856         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88857
88858 2003-07-24  Karl Berry  <karl@gnu.org>
88859
88860         * config/missing: update from automake.
88861
88862 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88863             Bruno Haible  <bruno@clisp.org>
88864
88865         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88866         * lib/getline.c (getline, getdelim): Likewise.
88867         Remove _GNU_SOURCE define; now it's defined in config.h through
88868         m4/getline.m4.
88869
88870 2003-07-23  Karl Berry  <karl@gnu.org>
88871
88872         * config/config.sub: update from prep.
88873
88874 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88875
88876         * modules/xalloc (Depends-on): Add exitfail.
88877         * modules/xmemcoll: Likewise.
88878
88879 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88880
88881         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88882         over-parenthesization in macros.
88883
88884         Sync with coreutils.
88885
88886         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88887         required by C99.
88888
88889         Use `exit_failure' for xalloc and xmemcoll instead of their own
88890         private exit-failure variables.
88891         * lib/xalloc.h (xalloc_exit_failure): Remove.
88892         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88893         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88894         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88895         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88896         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88897
88898 2003-07-20  Jim Meyering  <jim@meyering.net>
88899
88900         * modules/closeout (Depends-on): Add exitfail.
88901         Suggestion from Bruno Haible.
88902
88903 2003-07-19  Karl Berry  <karl@gnu.org>
88904
88905         * config/config.sub: update from prep.
88906
88907 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88908
88909         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88910         Remove.
88911         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88912         to test that it can stand by itself.  Include "exitfail.h".
88913         Clients should set exit_failure instead.
88914         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88915
88916 2003-07-18  Bruno Haible  <bruno@clisp.org>
88917
88918         * modules/getndelim2: New file.
88919         * modules/getline: Share files with module getndelim2.
88920         * modules/getnline: Depend on getndelim2 instead of sharing files with
88921         it. Add getnline.c to lib_SOURCES.
88922         * MODULES.html.sh (func_all_modules): Add getndelim2.
88923
88924 2003-07-18  Bruno Haible  <bruno@clisp.org>
88925
88926         * m4/getndelim2.m4: New file.
88927         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88928         invoke gl_PREREQ_GETNDELIM2.
88929         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88930         gl_PREREQ_GETNDELIM2.
88931         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88932         gl_GETNDELIM2.
88933
88934 2003-07-18  Bruno Haible  <bruno@clisp.org>
88935
88936         * lib/getndelim2.h: New file.
88937         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88938         getndelim2.h.
88939         (getndelim2): Make non-static. Change return type to ssize_t.
88940         * lib/getline.h: Change argument names.
88941         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88942         * lib/getnline.c: Include getndelim2.h.
88943
88944 2003-07-18  Andreas Schwab  <schwab@suse.de>
88945
88946         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88947
88948 2003-07-17  Karl Berry  <karl@gnu.org>
88949
88950         * config/config.sub: update from prep.
88951
88952 2003-07-17  Bruno Haible  <bruno@clisp.org>
88953
88954         * modules/getnline: New file.
88955         * modules/getline: Add lib/getndelim2.c to source file list.
88956         * MODULES.html.sh (func_all_modules): Add getnline.
88957
88958 2003-07-17  Bruno Haible  <bruno@clisp.org>
88959
88960         * m4/getnline.m4: New file.
88961
88962 2003-07-17  Bruno Haible  <bruno@clisp.org>
88963
88964         * m4/Makefile.am.in: Remove file.
88965         * m4/Makefile.am: Remove file.
88966         * m4/Makefile.in: Remove file.
88967
88968 2003-07-17  Bruno Haible  <bruno@clisp.org>
88969
88970         * lib/getnline.h: New file.
88971         * lib/getnline.c: New file.
88972         * lib/getndelim2.c: New file, extracted from getline.c.
88973         (getndelim2): Renamed from getdelim2, with added nmax argument.
88974         * lib/getline.c: Include getndelim2.c.
88975         (getdelim2): Moved out to getndelim2.c.
88976         (getline, getdelim): Update.
88977
88978 2003-07-17  Bruno Haible  <bruno@clisp.org>
88979
88980         * lib/Makefile.am: Remove file.
88981         * lib/Makefile.in: Remove file.
88982
88983 2003-07-17  Bruno Haible  <bruno@clisp.org>
88984
88985         * configure.in: Remove file.
88986         * Makefile.in: Remove file.
88987
88988 2003-07-17  Bruno Haible  <bruno@clisp.org>
88989
88990         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88991
88992 2003-07-16  Karl Berry  <karl@gnu.org>
88993
88994         * config/srclist-update: was running fixlicense twice, which caused
88995                 texinfo.tex to be nullified for some reason.  Simplify,
88996                 $gplsrc is no longer needed as far as I can see?
88997
88998 2003-07-16  Jim Meyering  <jim@meyering.net>
88999
89000         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89001
89002 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89003
89004         * config/srclist.txt: Get the following files from gettext-runtime/intl
89005         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89006         ref-del.sin.  From Bruno Haible.
89007         * config/srclist-update (fixfile): Change grep pattern again, since the
89008         previous fix didn't work (there was another trailing $).  Use
89009         '[$]' to escape the $s.
89010
89011 2003-07-15  Karl Berry  <karl@gnu.org>
89012
89013         * lib/vasnprintf.c: update from gettext.
89014
89015 2003-07-15  Karl Berry  <karl@gnu.org>
89016
89017         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89018         gets expanded when surrounded by '$'.
89019
89020 2003-07-15  Jim Meyering  <jim@meyering.net>
89021
89022         * modules/save-cwd: Don't depend on error.  From Derek Price.
89023
89024 2003-07-15  Jim Meyering  <jim@meyering.net>
89025
89026         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89027
89028 2003-07-14  Simon Josefsson  <jas@extundo.com>
89029
89030         * modules/mempcpy: New file.
89031         * MODULES.html.sh (func_all_modules): Add mempcpy.
89032
89033 2003-07-14  Simon Josefsson  <jas@extundo.com>
89034
89035         * m4/mempcpy.m4: New file.
89036
89037 2003-07-14  Simon Josefsson  <jas@extundo.com>
89038
89039         * lib/mempcpy.h: New file.
89040         * lib/mempcpy.c: New file.
89041
89042 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89043
89044         * modules/getdate, modules/posixtm: Depend on mktime.
89045
89046 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89047
89048         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89049         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89050         unicodeio.c, unicodeio.h, unlocked-io.h:
89051         Switch from LGPL to GPL.
89052
89053 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89054
89055         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89056         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89057         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89058         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89059         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89060         updated automatically by ../config/srclist-update.  This changes
89061         their license from LPGL to GPL.
89062
89063 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89064
89065         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89066         assumed to refer to the root of the most recent stable gettext version.
89067         * config/srclistvars.sh: Add defaults for eggert.
89068         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89069         Match "This program" as well as "The program".  This is needed
89070         for gettext.
89071
89072 2003-07-14  Jim Meyering  <jim@meyering.net>
89073
89074         Don't emit diagnostics.  Let callers do that.
89075         * lib/save-cwd.c: Don't include "error.h".
89076         (save_cwd): Don't call error.  Ensure that errno is valid
89077         when returning nonzero.
89078
89079         * lib/save-cwd.h (restore_cwd): Update prototype.
89080         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89081         Simplify.  Don't call error upon failure.  Let callers do that.
89082         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89083         when auditing is enabled.  But don't bother updating the #if.
89084
89085 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89086
89087         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89088         it breaks C++ compilation.
89089         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89090
89091 2003-07-10  Simon Josefsson  <jas@extundo.com>
89092
89093         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89094
89095 2003-07-10  Jim Meyering  <jim@meyering.net>
89096
89097         * m4/clock_time.m4: Remove trailing blank.
89098         * m4/intmax_t.m4: Likewise.
89099
89100 2003-07-10  Jim Meyering  <jim@meyering.net>
89101
89102         * lib/vasnprintf.c: Remove trailing blanks.
89103         Make cpp indentation consistent.
89104
89105 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89106
89107         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89108         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89109         Switch from LGPL to GPL.
89110
89111 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89112
89113         * config/srclist.txt: Sort sublists.  Add
89114         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89115         that differ from gnulib for one reason or another; we'd like this list
89116         to be smaller but for now let's document what we have.
89117
89118 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89119
89120         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89121         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89122         and sweeter "eval x=$x".
89123         * config/srclist.txt: Get lib/argp* from glibc.
89124
89125 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89126
89127         * lib/mktime.c: Fix some boundary cases and remove need for floating
89128         point.
89129
89130         Issue a compile-time diagnostic if time_t is floating point, or if
89131         two's complement arithmetic is not in effect, or if arithmetic
89132         right shift does not propagate the sign.  These assumptions were
89133         all in the original code but they weren't checked.
89134
89135         (TIME_T_MIDPOINT, verify): New macros.
89136         (__isleap): Remove; it has integer overflow problems.
89137         (leapyear): New function, without those problems.
89138         (ydhms_tm_diff): Remove; splitting into two parts.
89139         (ydhms_diff): New function, containing the arithmetic part of
89140         the old ydhms_tm_diff function.  Issue a compile-time
89141         diagnostic if we are not using C99 integer division.
89142         Avoid casts when possible.
89143         (guess_time_tm): New function, containing the checking part of
89144         the old ydhms_tm_diff function.  Return the new value, rather than
89145         the difference between it and the old.  Accept a new argument T
89146         so that *T specifies the old value.  Check for overflow in the result.
89147
89148         (__mktime_internal): Use a time_t offset, not a long int offset.
89149         This undoes the 2003-06-04 change, which is no longer needed now
89150         that we have better overflow checking.
89151         (localtime_offset): Likewise.
89152
89153         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89154         and long are 64-bit but int is only 32-bit.
89155         (ydhms_diff): Use long int to store year1 and yday1.
89156         Issue a compile-time diagnostic if long int is not wide enough.
89157
89158         (__mktime_internal): Use long int to store adjusted year and yday.
89159         Use plain C rather than preprocessor commands, if that doesn't
89160         affect efficiency.
89161         Check for overflow (and try to repair) after each probe
89162         rather than checking only at the very end.  This avoids some bugs
89163         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89164         does not equal GMT offset at maximum time).
89165         Use integer to check for overflow rather than floating point; this
89166         is more portable to non-IEEE hosts, and is a tad faster.
89167         When we detect that we are oscillating between two values,
89168         don't check whether tm_isdst has the requested value, since
89169         we already know the answer.  When tm_isdst has the wrong value,
89170         use a different heuristic to find the right one, based on the
89171         extreme values actually observed in practice in tz2003a,
89172         rather than the (overly optimistic) "previous 3 calendar quarters".
89173
89174         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89175         "T const" to accommodate glibc style.
89176         (check_result): Use less-confusing report format.  "long" -> "long int.
89177         (main): Likewise.
89178         Don't loop if the iteration overflows time_t.
89179         Allow a negative step in the iteration.
89180
89181 2003-07-06  Karl Berry  <karl@gnu.org>
89182
89183         * config/depcomp: update from automake.
89184         * config/config.sub: update from prep.
89185
89186 2003-07-03  Karl Berry  <karl@gnu.org>
89187
89188         * config/config.guess: update from prep.
89189
89190 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89191
89192         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89193         xreadlink.c now includes it unconditionally.
89194
89195 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89196
89197         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89198         having it depend on HAVE_SYS_TYPES_H.
89199
89200 2003-07-01  Bruno Haible  <bruno@clisp.org>
89201
89202         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89203         <sys/types.h> should be sufficient.
89204         Reported by Paul Eggert.
89205
89206 2003-06-26  Karl Berry  <karl@gnu.org>
89207
89208         * config/depcomp: update from automake.
89209
89210 2003-06-26  Bruno Haible  <bruno@clisp.org>
89211
89212         * modules/human: Depend on module stdbool.
89213
89214 2003-06-25  Bruno Haible  <bruno@clisp.org>
89215
89216         * modules/readlink: New file.
89217         * modules/xreadlink: Depend on it.
89218         * MODULES.html.sh (func_all_modules): Add readlink.
89219
89220 2003-06-25  Bruno Haible  <bruno@clisp.org>
89221
89222         * m4/readlink.m4: New file.
89223
89224 2003-06-25  Bruno Haible  <bruno@clisp.org>
89225
89226         * lib/readlink.c: New file.
89227
89228 2003-06-22  Karl Berry  <karl@gnu.org>
89229
89230         * config/srclist.txt: update mkinstalldirs from automake.
89231         * config/mkinstalldirs: update.
89232
89233 2003-06-22  Bruno Haible  <bruno@clisp.org>
89234
89235         Portability to mingw32.
89236         * m4/ssize_t.m4: New file, from GNU gettext.
89237         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89238         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89239
89240 2003-06-22  Bruno Haible  <bruno@clisp.org>
89241
89242         * modules/safe-read: Add m4/ssize_t.m4.
89243         * modules/xreadlink: Add m4/ssize_t.m4.
89244
89245 2003-06-20  Bruno Haible  <bruno@clisp.org>
89246
89247         Assume C89, so PARAMS isn't needed.
89248         * lib/unicodeio.h (PARAMS): Remove.
89249         * lib/unicodeio.c: Don't use PARAMS.
89250
89251 2003-06-18  Karl Berry  <karl@gnu.org>
89252
89253         * config/config.{guess,sub}: update from prep.
89254
89255 2003-06-18  Jim Meyering  <jim@meyering.net>
89256
89257         Merge changes from coreutils.
89258         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89259         Remove explicit declarations of xmalloc and realloc.
89260         Include xalloc.h.
89261         (read_utmp): Remove anachronistic cast of xmalloc.
89262
89263 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89264
89265         Assume C89, so PARAMS isn't needed.
89266         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89267         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89268         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89269         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89270         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89271         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89272         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89273         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89274         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89275         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89276         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89277         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89278         no longer needed. Anyway, config.h should always be included before any
89279         other file.
89280
89281 2003-06-11  Simon Josefsson  <jas@extundo.com>
89282
89283         * modules/sysexits: New file.
89284         * MODULES.html.sh (func_all_modules): Add sysexits.
89285
89286 2003-06-11  Simon Josefsson  <jas@extundo.com>
89287
89288         * lib/sysexit_.h: New file.
89289
89290 2003-06-11  Derek Price  <derek@ximbiot.com>
89291
89292         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89293         necessary.
89294
89295 2003-06-11  Bruno Haible  <bruno@clisp.org>
89296
89297         * m4/sysexits.m4: New file.
89298
89299 2003-06-10  Simon Josefsson  <jas@extundo.com>
89300
89301         * lib/argp.h: New file, from glibc.
89302         * lib/argp-ba.c: New file, from glibc.
89303         * lib/argp-eexst.c: New file, from glibc.
89304         * lib/argp-fmtstream.c: New file, from glibc.
89305         * lib/argp-fmtstream.h: New file, from glibc.
89306         * lib/argp-fs-xinl.c: New file, from glibc.
89307         * lib/argp-help.c: New file, from glibc.
89308         * lib/argp-namefrob.h: New file, from glibc.
89309         * lib/argp-parse.c: New file, from glibc.
89310         * lib/argp-pv.c: New file, from glibc.
89311         * lib/argp-pvh.c: New file, from glibc.
89312         * lib/argp-xinl.c: New file, from glibc.
89313
89314 2003-06-10  Simon Josefsson  <jas@extundo.com>
89315
89316         * modules/strchrnul: New file.
89317
89318 2003-06-10  Simon Josefsson  <jas@extundo.com>
89319
89320         * modules/argp: New file.
89321
89322 2003-06-10  Simon Josefsson  <jas@extundo.com>
89323
89324         * m4/strchrnul.m4: New file.
89325
89326 2003-06-10  Simon Josefsson  <jas@extundo.com>
89327
89328         * lib/strchrnul.h: New file.
89329         * lib/strchrnul.c: New file.
89330
89331 2003-06-10  Bruno Haible  <bruno@clisp.org>
89332
89333         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89334
89335 2003-06-07  Karl Berry  <karl@gnu.org>
89336
89337         * config/config.{guess,sub}: update from prep.
89338
89339 2003-06-07  Jim Meyering  <jim@meyering.net>
89340
89341         * modules/strtod: Use $(...) notation, not @...@ for
89342         AC_REPLACE'd variables.
89343         * modules/localcharset: Likewise.
89344
89345 2003-06-07  Jim Meyering  <jim@meyering.net>
89346
89347         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89348         in place of my name in the copyright comment.
89349         Remove definition and uses of __P.
89350
89351         From coreutils.
89352         * lib/stat.c: Don't declare xmalloc explicitly.
89353         Instead, include "xalloc.h".
89354         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89355         xrealloc, and xcalloc return values.
89356         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89357         Improve comment.
89358         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89359
89360 2003-06-07  Bruno Haible  <bruno@clisp.org>
89361
89362         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89363         avoid AC_CONFIG_LINKS.
89364         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89365         fnmatch.h, to avoid AC_CONFIG_LINKS.
89366         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89367
89368 2003-06-07  Bruno Haible  <bruno@clisp.org>
89369
89370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89371         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89372         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89373         directory.
89374         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89375         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89376         directory.
89377
89378 2003-06-06  Jim Meyering  <jim@meyering.net>
89379
89380         Merge from coreutils.
89381         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89382         Consolidate declarations and initializations of *_base* locals.
89383
89384         Merge from coreutils.
89385         This avoids a core dump on systems without GNU putenv,
89386         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89387         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89388         (unsetenv): New static function, from GNU libc.
89389         (rpl_putenv): Use it.
89390
89391         * lib/modechange.c: Remove trailing blanks.
89392
89393         Merge from coreutils.
89394         * lib/fsusage.c: Remove declaration of statfs.
89395         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89396
89397         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89398
89399 2003-06-06  Jim Meyering  <jim@meyering.net>
89400
89401         * lib/stdbool_.h: Renamed from stdbool.h.in.
89402
89403 2003-06-06  Jim Meyering  <jim@meyering.net>
89404             Bruno Haible  <bruno@clisp.org>
89405
89406         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89407         Adjust Makefile.am snippet not to redirect directly to target.
89408         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89409
89410 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89411
89412         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89413         mismatch, look in future quarters as well as past.  This fixes a
89414         bug when processing fall-backwards gaps immediately after a long
89415         period of daylight-saving time.
89416
89417         * lib/mktime.c: Assume freestanding C89 or better.
89418         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89419         (__P): Remove; not used.
89420         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89421         (mktime, not_equal_tm, print_tm, check_result,
89422         main): Use prototypes.  Use const * where appropriate.
89423         (main): Fix typo in testing code that uncovered by above changes.
89424         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89425
89426 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89427
89428         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89429         locale.h, localeconv.  This merges changes from coreutils.
89430
89431         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89432         It can be removed after the next Autoconf is released.
89433         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89434         needed.
89435
89436 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89437
89438         * lib/mktime.c: Fix Debian bug 177940
89439         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89440         (localtime_offset): Now long int, not time_t, because we want it
89441         to be guaranteed to be signed.  All uses changed.
89442         (__mktime_internal): If overflow would occur when adding offset,
89443         don't add it.
89444
89445         Merge 'human' changes from coreutils.  Rewrite to support
89446         locale-specific notations like thousands separators.
89447         * lib/human.c: Simplify authorship notice.
89448         Include human.h immediately after config.h.
89449         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89450         <limits.h>: Do not include, since human.h does.
89451         (SIZE_MAX, UINTMAX_MAX): New macros.
89452         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89453         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89454         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89455         (power_letter): Renamed from suffixes.
89456         (generate_suffix_backwards): Remove.
89457         (adjust_value): Now takes int style (because of human.h changes)
89458         and long double value (for greater precision on some platforms).
89459         (group_number): New function.
89460         (human_readable): Use it.  Use integer options, not enum.
89461         Put the options before the sizes in the arg list.
89462         Support all the new options.
89463         The old human_readable function has been removed;
89464         use inttostr.h instead.
89465         (human_readable, default_block_size, humblock):
89466         Use uintmax_t, not int, for block sizes.
89467         (human_readable_inexact, block_size_types): Remove.
89468         (block_size_opts): New constant.
89469         (human_options): Renamed from human_block_size, with new signature
89470         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89471         * lib/human.h: Add copyright and authorship notice.
89472         Include <limits.h> and <stdbool.h> unconditionally.
89473         (PARAMS): Remove.  All uses removed.
89474         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89475         (enum human_inexact_style): Remove tag; now a nameless enum.
89476         (human_floor, human_ceiling, human_round_to_even): Now have
89477         values 2, 0, 1 rather than -1, 1, 0.
89478         (human_group_digits, human_suppress_point_zero, human_autoscale,
89479         human_base_1024, human_SI, human_B): New constants.
89480         (human_readable_inexact, human_block_size): Remove.
89481         (human_readable): Size args are now uintmax_t, not int.
89482         (human_options): New decl.
89483
89484         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89485         unnecessary now that we assume C89 or better.  This change
89486         imported from coreutils.
89487
89488         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89489         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89490         in the 2003-05-30 sync from glibc.
89491
89492         .h files should stand alone, but we shouldn't include <sys/types.h>
89493         if we can get away with just <stddef.h>.
89494
89495         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89496         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89497         rather than <sys/types.h>, as we merely need size_t.
89498         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89499         to get size_t.
89500         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89501         Include <stdio.h>, to get FILE.
89502         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89503         memcasecmp.h has included <stddef.h> and all we need is size_t.
89504         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89505         our interface, instead of including <sys/types.h>
89506
89507 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89508
89509         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89510         now, as glibc mktime is buggy on non-glibc systems.
89511
89512 2003-06-03  Karl Berry  <karl@gnu.org>
89513
89514         * config/config.sub: update from prep.
89515
89516 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89517
89518         [from coreutils]
89519         Fix some minor time-related bugs with POSIX time arguments.
89520         Some valid time stamps were being rejected (notably -1, and
89521         time stamps before 1900 on 64-bit hosts).  And some invalid
89522         time stamps were being accepted, e.g. September 31.
89523
89524         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89525         that we can return (time_t) -1 successfully.
89526         * lib/posixtm.c: Likewise.
89527         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89528         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89529         (t): Remove static var.
89530         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89531         of static var.  All uses changed.
89532         (year): Do not reject years before 1900; they can occur with
89533         64-bit time_t.
89534         (posix_time_parse): Do not check for out-of-range components;
89535         that is now the caller's responsibility, since our checks were
89536         only approximations.
89537         (posixtime): Use mktime to check for out-of-range components,
89538         since it knows them exactly.
89539         If mktime returns (time_t) -1, check whether an error actually occurred
89540         by invoking localtime on -1.
89541         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89542         posixtime failures better.
89543         Improve the test data (in comments only).
89544
89545 2003-06-02  Karl Berry  <karl@gnu.org>
89546
89547         * config/mkinstalldirs (version): new variable.
89548         (--version): new option.
89549         (usage): improve message.
89550
89551 2003-05-30  Karl Berry  <karl@gnu.org>
89552
89553         * lib/mktime.c: update from libc.
89554
89555 2003-05-30  Bruno Haible  <bruno@clisp.org>
89556
89557         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89558         * config/config.rpath: Upgrade to gettext-0.12.1.
89559
89560 2003-05-30  Bruno Haible  <bruno@clisp.org>
89561
89562         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89563         * m4/nls.m4: New file, from gettext-0.12.1.
89564         * m4/po.m4: New file, from gettext-0.12.1.
89565         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89566
89567 2003-05-30  Bruno Haible  <bruno@clisp.org>
89568
89569         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89570         * lib/localcharset.h: Likewise.
89571         * lib/localcharset.c: Likewise.
89572
89573 2003-05-29  Karl Berry  <karl@gnu.org>
89574
89575         * config/config.rpath: update from gettext.
89576
89577 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89578
89579         Assume the headers required for C89 freestanding compilers.
89580         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89581         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89582         * m4/human.m4 (gl_HUMAN): Likewise.
89583         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89584         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89585         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89586         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89587         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89588         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89589
89590 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89591
89592         Assume the headers required for C89 freestanding compilers.
89593         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89594         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89595         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89596         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89597         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89598         define, since <limits.h> is guaranteed to do that.
89599         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89600         * lib/exclude.c: Include <stdbool.h> unconditionally.
89601         * lib/tempname.c: Include <stddef.h> unconditionally.
89602         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89603         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89604         <stddef.h> does that.
89605         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89606         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89607         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89608         needed.
89609         * lib/xstrtol.c: Likewise.
89610         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89611         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89612
89613         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89614         warnings on some platforms.
89615
89616         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89617         arbitrarily.
89618
89619 2003-05-26  Jim Meyering  <jim@meyering.net>
89620
89621         Merge in a change from coreutils:
89622         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89623         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89624         that condition, rather than `-1' which is slightly misleading.
89625         Change the name of the cache variable to have the gl_ prefix.
89626         Prompted by a patch from Richard Dawe for DJGPP.
89627
89628 2003-05-24  Karl Berry  <karl@gnu.org>
89629
89630         * config/config.guess: update from prep.
89631
89632 2003-05-22  Karl Berry  <karl@gnu.org>
89633
89634         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89635
89636 2003-05-20  Karl Berry  <karl@gnu.org>
89637
89638         * config/config.guess: update from prep.
89639
89640 2003-05-18  Karl Berry  <karl@gnu.org>
89641
89642         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89643         might actually be set by the user.
89644
89645         * config/depcomp, install-sh, mdate-sh: update from automake.
89646
89647 2003-05-17  Bruno Haible  <bruno@clisp.org>
89648
89649         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89650         invalid expansion for AC_EGREP_CPP.
89651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89652         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89653         Suggested by Akim Demaille <akim@epita.fr> in
89654         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89655
89656 2003-05-12  Jim Meyering  <jim@meyering.net>
89657
89658         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89659         the space-padded-by-default conversion specifiers, %e, %k, %l.
89660
89661 2003-05-12  Bruno Haible  <bruno@clisp.org>
89662
89663         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89664         the string is longer than 4 KB.
89665
89666 2003-05-11  Karl Berry  <karl@gnu.org>
89667
89668         * config/config.{guess,sub}: update from prep.
89669
89670 2003-05-09  Bruno Haible  <bruno@clisp.org>
89671
89672         * modules/error: Add m4/strerror_r.m4 to file list.
89673
89674 2003-05-03  Bruno Haible  <bruno@clisp.org>
89675
89676         Upgrade to Unicode-4.0.
89677         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89678         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89679         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89680         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89681         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89682         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89683         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89684         Change width of U+E0100..U+E01EF from 1 to 0.
89685
89686 2003-04-25  Jim Meyering  <jim@meyering.net>
89687
89688         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89689         of type size_t, not int.
89690
89691 2003-04-25  Bruno Haible  <bruno@clisp.org>
89692
89693         * lib/copy-file.c: Include <stddef.h>, for size_t.
89694
89695 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89696
89697         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89698         code which expansion is under static control.  Patch imported from
89699         Akim Demaille's patch to Bison; see
89700         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89701
89702 2003-04-14  Bruno Haible  <bruno@clisp.org>
89703
89704         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89705
89706 2003-04-11  Jim Meyering  <jim@meyering.net>
89707
89708         Merge changes from Coreutils.
89709
89710         2003-03-22  Jim Meyering  <jim@meyering.net>
89711
89712         * lib/strftime.c (widen): Cast alloca return value to proper type.
89713
89714         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89715
89716         From GNU libc.
89717         * lib/strftime.c (my_strftime): Handle very large width
89718         specifications for numeric values correctly.  Improve checks for
89719         overflow.
89720
89721         2003-01-19  Jim Meyering  <jim@meyering.net>
89722
89723         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89724         definitions.
89725         (nl_get_alt_digit) [! defined my_strftime]: Define.
89726         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89727         _nl_get_alt_digit and _nl_get_walt_digit.
89728
89729         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89730         libc. These changes have no effect outside of _LIBC.
89731
89732 2003-04-10  Bruno Haible  <bruno@clisp.org>
89733
89734         * modules/findprog: New file.
89735         * MODULES.html.sh (func_all_modules): Add it.
89736
89737 2003-04-10  Bruno Haible  <bruno@clisp.org>
89738
89739         * m4/findprog.m4: New file.
89740         * m4/eaccess.m4: New file.
89741
89742 2003-04-10  Bruno Haible  <bruno@clisp.org>
89743
89744         * lib/findprog.h: New file, from GNU gettext.
89745         * lib/findprog.c: New file, from GNU gettext.
89746
89747 2003-04-05  Jim Meyering  <jim@meyering.net>
89748
89749         Merge changes from Coreutils.
89750
89751         * lib/exclude.h (PARAMS): Remove definition and uses.
89752         * lib/exclude.c: Remove uses of `PARAMS'.
89753
89754         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89755         Add test-cases for DOS filenames. Declare program_name.
89756         (main): Set up program_name.  Patch by Rich Dawe.
89757
89758         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89759         error from mntctl.
89760         Use mntctl's return value to drive the entry-processing loop, since
89761         we can't rely on the value of the vmt_length member in the last
89762         entry.  On some systems doing so could result in exhausting
89763         virtual memory.  Based in part on a patch from Mike Jetzer.
89764
89765 2003-04-04  Bruno Haible  <bruno@clisp.org>
89766
89767         * modules/linebreak: New file.
89768         * MODULES.html.sh (func_all_modules): Add it.
89769
89770 2003-04-04  Bruno Haible  <bruno@clisp.org>
89771
89772         * m4/linebreak.m4: New file.
89773
89774 2003-04-04  Bruno Haible  <bruno@clisp.org>
89775
89776         * lib/linebreak.h: New file, from GNU gettext.
89777         * lib/linebreak.c: New file, from GNU gettext with slight
89778         modifications.
89779         * lib/lbrkprop.h: New file, from GNU gettext.
89780
89781 2003-04-03  Bruno Haible  <bruno@clisp.org>
89782
89783         * modules/utf8-ucs4: New file.
89784         * modules/utf16-ucs4: New file.
89785         * modules/ucs4-utf8: New file.
89786         * modules/ucs4-utf16: New file.
89787         * MODULES.html.sh (func_all_modules): Add them.
89788
89789 2003-04-03  Bruno Haible  <bruno@clisp.org>
89790
89791         * m4/utf-ucs4.m4: New file.
89792         * m4/ucs4-utf.m4: New file.
89793
89794 2003-04-03  Bruno Haible  <bruno@clisp.org>
89795
89796         * lib/utf8-ucs4.h: New file, from GNU gettext.
89797         * lib/utf16-ucs4.h: New file, from GNU gettext.
89798         * lib/ucs4-utf8.h: New file, from GNU gettext.
89799         * lib/ucs4-utf16.h: New file, from GNU gettext.
89800
89801 2003-04-02  Bruno Haible  <bruno@clisp.org>
89802
89803         * modules/binary-io: New file.
89804         * MODULES.html.sh (func_all_modules): Add it.
89805
89806 2003-04-02  Bruno Haible  <bruno@clisp.org>
89807
89808         * lib/binary-io.h: New file, from GNU gettext.
89809
89810 2003-04-01  Bruno Haible  <bruno@clisp.org>
89811
89812         * modules/pathname: New file.
89813         * MODULES.html.sh (func_all_modules): Add it.
89814
89815 2003-04-01  Bruno Haible  <bruno@clisp.org>
89816
89817         * lib/pathname.h: New file, from GNU gettext.
89818         * lib/concatpath.c: New file, from GNU gettext.
89819
89820 2003-03-30  Bruno Haible  <bruno@clisp.org>
89821
89822         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89823
89824 2003-03-30  Bruno Haible  <bruno@clisp.org>
89825
89826         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89827         function chown() doesn't exist.
89828
89829 2003-03-28  Bruno Haible  <bruno@clisp.org>
89830
89831         * modules/copy-file: New file.
89832         * MODULES.html.sh (func_all_modules): Add it.
89833
89834 2003-03-28  Bruno Haible  <bruno@clisp.org>
89835
89836         * m4/copy-file.m4: New file.
89837
89838 2003-03-28  Bruno Haible  <bruno@clisp.org>
89839
89840         * lib/copy-file.h: New file, from GNU gettext.
89841         * lib/copy-file.c: New file, from GNU gettext.
89842
89843 2003-03-18  Jim Meyering  <jim@meyering.net>
89844
89845         * lib/quote.c (quote_n): Fix typo in comment.
89846
89847 2003-03-18  Bruno Haible  <bruno@clisp.org>
89848
89849         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89850         checking.
89851         * m4/onceonly_2_57.m4: Likewise.
89852
89853 2003-03-17  Bruno Haible  <bruno@clisp.org>
89854
89855         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89856         (m4_quote): Remove macro.
89857         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89858
89859 2003-03-14  Jim Meyering  <jim@meyering.net>
89860
89861         Merge changes from Coreutils.
89862         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89863         to be const, in order to avoid warnings.
89864         (obstack_room): Likewise.
89865         (obstack_empty_p): Likewise.
89866
89867 2003-03-14  Bruno Haible  <bruno@clisp.org>
89868
89869         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89870         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89871
89872 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89873
89874         Merge changes from Bison.
89875         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89876         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89877         when compiling Bison 1.875's `bitset bset = obstack_alloc
89878         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89879         * lib/hash.c: Include <stdbool.h> unconditionally.
89880
89881 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89882
89883         * m4/onceonly.m4 (m4_quote): New macro.
89884         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89885         Quote AC_FOREACH variable-expansions properly.
89886
89887 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89888
89889         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89890
89891 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89892
89893         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89894         Reported by Bruce Becker; see:
89895         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89896
89897 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89898             Bruno Haible  <bruno@clisp.org>
89899
89900         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89901         Reported by John Hughes, see
89902         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89903
89904 2003-02-20  Bruno Haible  <bruno@clisp.org>
89905
89906         * MODULES.html.sh (func_all_modules): Add poll.
89907
89908 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89909
89910         * modules/poll: New file.
89911
89912 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89913
89914         * lib/poll_.h: New file.
89915         * lib/poll.c: New file.
89916
89917 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89918
89919         * m4/poll.m4: New file.
89920
89921 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89922
89923         * modules/mathl: New file.
89924
89925 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89926
89927         * lib/mathl.h: New file.
89928         * lib/acosl.c: New file.
89929         * lib/asinl.c: New file.
89930         * lib/atanl.c: New file.
89931         * lib/ceill.c: New file.
89932         * lib/cosl.c: New file.
89933         * lib/expl.c: New file.
89934         * lib/floorl.c: New file.
89935         * lib/frexpl.c: New file.
89936         * lib/ldexpl.c: New file.
89937         * lib/logl.c: New file.
89938         * lib/sincosl.c: New file.
89939         * lib/sinl.c: New file.
89940         * lib/sqrtl.c: New file.
89941         * lib/tanl.c: New file.
89942         * lib/trigl.c: New file.
89943         * lib/trigl.h: New file.
89944
89945 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89946
89947         * m4/mathl.m4: New file.
89948
89949 2003-02-18  Bruno Haible  <bruno@clisp.org>
89950
89951         * MODULES.html.sh (func_all_modules): Add mathl.
89952
89953 2003-02-17  Bruno Haible  <bruno@clisp.org>
89954
89955         * modules/mkdtemp: New module.
89956         * MODULES.html.sh (func_all_modules): Add it.
89957
89958 2003-02-17  Bruno Haible  <bruno@clisp.org>
89959
89960         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89961
89962 2003-02-17  Bruno Haible  <bruno@clisp.org>
89963
89964         * lib/mkdtemp.h: New file, from GNU gettext.
89965         * lib/mkdtemp.c: New file, from GNU gettext.
89966
89967 2003-02-02  Jim Meyering  <jim@meyering.net>
89968
89969         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89970         e.g. glibc-2.2.93.
89971
89972 2003-01-31  Bruno Haible  <bruno@clisp.org>
89973
89974         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89975         'rpl_rename'.
89976         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89977         'rpl_strnlen'.
89978         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89979         'rpl_strtod'.
89980         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89981         'rpl_utime'.
89982
89983 2003-01-31  Bruno Haible  <bruno@clisp.org>
89984
89985         * lib/rename.c: #undef rename before defining rpl_rename.
89986         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89987
89988 2003-01-30  Bruno Haible  <bruno@clisp.org>
89989
89990         * modules/vasnprintf, modules/vasprintf: New modules.
89991         * MODULES.html.sh (func_all_modules): Add them.
89992
89993 2003-01-30  Bruno Haible  <bruno@clisp.org>
89994
89995         * m4/signed.m4: New file, from GNU gettext.
89996         * m4/longdouble.m4: New file, from GNU gettext.
89997         * m4/wchar_t.m4: New file, from GNU gettext.
89998         * m4/wint_t.m4: New file, from GNU gettext.
89999         * m4/vasnprintf.m4: New file.
90000         * m4/vasprintf.m4: New file.
90001
90002 2003-01-30  Bruno Haible  <bruno@clisp.org>
90003
90004         * lib/printf-args.h: New file, from GNU gettext.
90005         * lib/printf-args.c: New file, from GNU gettext.
90006         * lib/printf-parse.h: New file, from GNU gettext.
90007         * lib/printf-parse.c: New file, from GNU gettext.
90008         * lib/vasnprintf.h: New file, from GNU gettext.
90009         * lib/vasnprintf.c: New file, from GNU gettext.
90010         * lib/asnprintf.c: New file, from GNU gettext.
90011         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90012         * lib/vasprintf.c: New file, from GNU gettext.
90013         * lib/asprintf.c: New file, from GNU gettext.
90014
90015 2003-01-29  Bruno Haible  <bruno@clisp.org>
90016
90017         * modules/stpncpy: New module.
90018         * MODULES.html.sh (func_all_modules): Add it.
90019
90020 2003-01-29  Bruno Haible  <bruno@clisp.org>
90021
90022         * m4/stpncpy.m4: New file.
90023
90024 2003-01-29  Bruno Haible  <bruno@clisp.org>
90025
90026         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90027         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90028
90029 2003-01-28  Bruno Haible  <bruno@clisp.org>
90030
90031         * modules/c-ctype: New module.
90032         * MODULES.html.sh (func_all_modules): Add it.
90033
90034 2003-01-28  Bruno Haible  <bruno@clisp.org>
90035
90036         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90037         Paul Eggert.
90038         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90039         Paul Eggert.
90040
90041 2003-01-27  Bruno Haible  <bruno@clisp.org>
90042
90043         * modules/xsetenv: New module.
90044         * MODULES.html.sh (func_all_modules): Add it.
90045
90046 2003-01-27  Bruno Haible  <bruno@clisp.org>
90047
90048         * lib/xsetenv.h: New file, from GNU gettext.
90049         * lib/xsetenv.c: New file, from GNU gettext.
90050
90051 2003-01-23  Jim Meyering  <jim@meyering.net>
90052
90053         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90054         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90055
90056 2003-01-23  Bruno Haible  <bruno@clisp.org>
90057
90058         * modules/minmax: New module.
90059         * MODULES.html.sh (func_all_modules): Add it.
90060
90061 2003-01-23  Bruno Haible  <bruno@clisp.org>
90062
90063         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90064         Eggert.
90065
90066 2003-01-22  Bruno Haible  <bruno@clisp.org>
90067
90068         * modules/exit: New module.
90069         * MODULES.html.sh (func_all_modules): Add it.
90070
90071 2003-01-22  Bruno Haible  <bruno@clisp.org>
90072
90073         * lib/exit.h: New file, from GNU gettext.
90074
90075 2003-01-19  Bruno Haible  <bruno@clisp.org>
90076
90077         * gnulib-tool: Recognize option --extract-maintainer.
90078         (func_get_maintainer): New function.
90079         * modules/*: Add Maintainer entry.
90080
90081 2003-01-16  Jim Meyering  <jim@meyering.net>
90082
90083         * m4/regex.m4: The `regex' struct is both input and output.
90084         Initialize it before each use.  Patch by Tim Waugh.
90085
90086 2003-01-16  Bruno Haible  <bruno@clisp.org>
90087
90088         * MODULES.html.sh: Add a table of contents. Add the module name as
90089         leftmost column. Add hyperlinks.
90090
90091 2003-01-15  Bruno Haible  <bruno@clisp.org>
90092
90093         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90094
90095 2003-01-15  Bruno Haible  <bruno@clisp.org>
90096
90097         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90098         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90099         suffix.
90100
90101 2003-01-15  Bruno Haible  <bruno@clisp.org>
90102
90103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90104
90105 2003-01-15  Bruno Haible  <bruno@clisp.org>
90106
90107         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90108         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90109
90110 2003-01-14  Jim Meyering  <jim@meyering.net>
90111
90112         * lib/same.c (same_name): Tweak a comment.
90113
90114 2003-01-14  Bruno Haible  <bruno@clisp.org>
90115
90116         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90117         when a string comparison is sufficient.
90118
90119 2003-01-14  Bruno Haible  <bruno@clisp.org>
90120
90121         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90122         'unsigned int'.
90123
90124 2003-01-14  Bruno Haible  <bruno@clisp.org>
90125
90126         * lib/hash-pjw.c: Add comment about low quality of this function.
90127
90128 2003-01-13  Bruno Haible  <bruno@clisp.org>
90129
90130         * modules/stpcpy: Distribute lib/stpcpy.h.
90131         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90132
90133 2003-01-13  Bruno Haible  <bruno@clisp.org>
90134
90135         * modules/*: Add a description.
90136         * modules/strpbrk: Fix Makefile.am snippet.
90137         * modules/strtoimax: Fix dependencies.
90138         * modules/strtoumax: Likewise.
90139
90140 2003-01-13  Bruno Haible  <bruno@clisp.org>
90141
90142         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90143         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90144         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90145
90146 2003-01-13  Bruno Haible  <bruno@clisp.org>
90147
90148         * gnulib-tool (func_create_testdir): Store config/* files in the main
90149         directory.
90150         * config.rpath: Move to ...
90151         * config/config.rpath: ... here.
90152         * modules/gettext: Contains config/config.rpath, not config.rpath.
90153         * modules/iconv: Likewise.
90154
90155 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90156
90157         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90158         to avoid collisions with libcurses and libreadline.
90159
90160         * m4/getstr.m4: Remove.
90161         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90162
90163 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90164
90165         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90166         to avoid collisions with libcurses and libreadline.
90167
90168         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90169         * lib/getstr.h, getstr.c: Remove.
90170         * lib/getline.c: Include "getline.h", to check interface.
90171         Move body of old getstr.c here: this defines MIN_CHUNK and
90172         declares getdelim2, which is renamed from getstr.
90173         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90174
90175         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90176         All uses changed.
90177         * lib/linebuffer.h: Likewise.
90178         (readline): Remove backward-compatibility macro.
90179
90180 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90181
90182         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90183         to avoid collisions with libcurses and libreadline.
90184         * getstr: Remove.
90185         * MODULES.html.sh: Remove getstr.
90186         * modules/getline: Depend on unlocked-io, not getstr.
90187
90188 2003-01-12  Jim Meyering  <jim@meyering.net>
90189
90190         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90191
90192 2003-01-10  Bruno Haible  <bruno@clisp.org>
90193
90194         * modules/alloca: Change Makefile.am requirements. Simplify Include
90195         requirements. Add lib/alloca_.h to file list.
90196
90197 2003-01-10  Bruno Haible  <bruno@clisp.org>
90198
90199         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90200
90201 2003-01-10  Bruno Haible  <bruno@clisp.org>
90202
90203         * lib/alloca_.h: New file.
90204         * lib/getdate.y: Unconditionally include alloca.h.
90205         * lib/makepath.c: Likewise.
90206         * lib/setenv.c: Likewise.
90207         * lib/userspec.c: Likewise.
90208
90209 2003-01-09  Karl Berry  <karl@gnu.org>
90210
90211         * MODULES.html.sh: include `dirname $0` in PATH, to find
90212         gnulib-tool.
90213
90214 2003-01-09  Bruno Haible  <bruno@clisp.org>
90215
90216         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90217         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90218
90219 2003-01-09  Bruno Haible  <bruno@clisp.org>
90220
90221         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90222
90223 2003-01-09  Bruno Haible  <bruno@clisp.org>
90224
90225         * lib/stdbool.h.in: New file.
90226
90227 2003-01-09  Bruno Haible  <bruno@clisp.org>
90228
90229         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90230         * MODULES.html.sh: Likewise.
90231
90232 2003-01-08  Jim Meyering  <jim@meyering.net>
90233
90234         * lib/full-write.c: Undefine and define-away `const' after inclusion
90235         of errno.h, not before.  Suggestion from Bruno Haible.
90236
90237 2003-01-08  Bruno Haible  <bruno@clisp.org>
90238
90239         * modules/full-read: Depend on full-write.
90240
90241 2003-01-08  Bruno Haible  <bruno@clisp.org>
90242
90243         * lib/safe-read.c: Include specification header first, to ensure its
90244         selfcontainedness.
90245         * lib/full-write.c: Likewise.
90246
90247 2003-01-07  Jim Meyering  <jim@meyering.net>
90248
90249         * lib/full-write.c: Rework so that it may serve to define full_read,
90250         too.
90251         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90252
90253 2003-01-07  Bruno Haible  <bruno@clisp.org>
90254
90255         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90256         <inttypes.h>.
90257         * lib/xstrtol.h: Likewise.
90258         * lib/xstrtoimax.c: Likewise.
90259         * lib/xstrtoumax.c: Likewise.
90260         * lib/human.h: Likewise.
90261
90262         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90263         on systems that have <inttypes.h> but not <stdint.h>.
90264
90265 2003-01-07  Bruno Haible  <bruno@clisp.org>
90266
90267         * MODULES.html.sh: Add copyright notice.
90268         (missed_files): Omit CVS directory entries.
90269         (func_module): Make it work with sed-3.02.
90270         * MODULES.txt: Remove file.
90271
90272 2003-01-06  Jim Meyering  <jim@meyering.net>
90273
90274         * lib/version-etc.c: Update year in translatable copyright string.
90275
90276 2003-01-03  Karl Berry  <karl@gnu.org>
90277
90278         * config/config.{guess,sub}: update from prep.
90279
90280 2003-01-02  Karl Berry  <karl@gnu.org>
90281
90282         * doc/COPYING.DOC: belatedly updated to 1.2.
90283
90284 2003-01-01  Karl Berry  <karl@gnu.org>
90285
90286         * gnulib-tool (func_verify_module): report module name $module in
90287         error message, not $1.
90288         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90289         be created, only if it doesn't exist.
90290         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90291
90292 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90293
90294         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90295
90296 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90297
90298         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90299         memcmp if strcoll doesn't work.
90300
90301 2002-12-31  Bruno Haible  <bruno@clisp.org>
90302
90303         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90304         nonempty.
90305
90306 2002-12-31  Bruno Haible  <bruno@clisp.org>
90307
90308         * lib/memcoll.c (STRCOLL): New macro.
90309         (memcoll): Use it.
90310
90311 2002-12-31  Bruno Haible  <bruno@clisp.org>
90312
90313         * lib/localcharset.h: New file.
90314         * lib/localcharset.c: Include it.
90315         * lib/unicodeio.c: Likewise.
90316
90317 2002-12-31  Bruno Haible  <bruno@clisp.org>
90318
90319         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90320         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90321
90322 2002-12-31  Bruno Haible  <bruno@clisp.org>
90323
90324         * lib/getline.h: Include <stddef.h>, for size_t.
90325
90326         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90327         * lib/unicodeio.c: Don't include <stddef.h>.
90328
90329 2002-12-31  Bruno Haible  <bruno@clisp.org>
90330
90331         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90332         HAVE_TM_ZONE.
90333
90334 2002-12-24  Karl Berry  <karl@gnu.org>
90335
90336         * config/config.guess: update from prep.
90337
90338 2002-12-24  Bruno Haible  <bruno@clisp.org>
90339
90340         General infrasructure.
90341         * m4/README: Rewritten.
90342         * m4/onceonly.m4: New file.
90343         * m4/onceonly_2_57.m4: New file.
90344
90345         Module atexit.
90346         * m4/atexit.m4: New file.
90347
90348         Module strtod.
90349         * m4/strtod.m4: New file.
90350
90351         Module strtol.
90352         * m4/strtol.m4: New file.
90353
90354         Module strtoul.
90355         * m4/strtoul.m4: New file.
90356
90357         Module memchr.
90358         * m4/memchr.m4: New file.
90359
90360         Module memcmp.
90361         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90362         (jm_FUNC_MEMCMP): Invoke it.
90363
90364         Module memcpy.
90365         * m4/memcpy.m4: New file.
90366
90367         Module memmove.
90368         * m4/memmove.m4: New file.
90369
90370         Module memset.
90371         * m4/memset.m4: New file.
90372
90373         Module strcspn.
90374         * m4/strcspn.m4: New file.
90375
90376         Module strpbrk.
90377         * m4/strpbrk.m4: New file.
90378
90379         Module strstr.
90380         * m4/strstr.m4: New file.
90381
90382         Module strerror.
90383         * m4/strerror.m4: New file.
90384
90385         Module mktime.
90386         * m4/mktime.m4: Renamed from jm-mktime.m4.
90387         (gl_PREREQ_MKTIME): New macro.
90388         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90389
90390         Module malloc.
90391         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90392         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90393         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90394
90395         Module realloc.
90396         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90397         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90398         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90399
90400         Module strftime.
90401         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90402         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90403         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90404         gl_TM_GMTOFF.
90405         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90406
90407         Module xalloc.
90408         * m4/xalloc.m4: New file.
90409
90410         Module alloca.
90411         * m4/alloca.m4: New file.
90412
90413         Module putenv.
90414         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90415         (jm_FUNC_PUTENV): Invoke it.
90416
90417         Module setenv.
90418         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90419         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90420         when invoked twice.
90421         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90422         gt_FUNC_SETENV.
90423
90424         Module memrchr.
90425         * m4/memrchr.m4: New file.
90426
90427         Module stpcpy.
90428         * m4/stpcpy.m4: New file.
90429
90430         Module strcase.
90431         * m4/strcase.m4: New file.
90432
90433         Module strdup.
90434         * m4/strdup.m4: New file.
90435
90436         Module strnlen.
90437         * m4/strnlen.m4: New file.
90438
90439         Module strndup.
90440         * m4/strndup.m4: New file.
90441
90442         Module xstrtod.
90443         * m4/xstrtod.m4: New file.
90444
90445         Module xstrtol.
90446         * m4/xstrtol.m4: New file.
90447
90448         Module getdate.
90449         * m4/getdate.m4: New file.
90450
90451         Module unlocked-io.
90452         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90453         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90454         * m4/jm-glibc-io.m4n: Remove file.
90455
90456         Module long-options.
90457         * m4/long-options.m4: New file.
90458
90459         Module md5.
90460         * m4/md5.m4: New file.
90461
90462         Module sha.
90463         * m4/sha.m4: New file.
90464
90465         Module getstr.
90466         * m4/getstr.m4: New file.
90467
90468         Module getline.
90469         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90470         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90471         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90472         simply getline. Infoke gl_PREREQ_GETLINE.
90473
90474         Module obstack.
90475         * m4/obstack.m4: New file.
90476
90477         Module hash.
90478         * m4/hash.m4: New file.
90479
90480         Module readtokens.
90481         * m4/readtokens.m4: New file.
90482
90483         Module strverscmp.
90484         * m4/strverscmp.m4: New file.
90485
90486         Module stdbool.
90487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90488         OSF/1.
90489
90490         Module strtoll.
90491         * m4/strtoll.m4: New file.
90492
90493         Module strtoull.
90494         * m4/strtoull.m4: New file.
90495
90496         Module strtoimax.
90497         * m4/strtoimax.m4: New file.
90498
90499         Module strtoumax.
90500         * m4/strtoumax.m4: New file.
90501
90502         Module xstrtoimax.
90503         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90504         jm_AC_PREREQ_XSTRTOIMAX.
90505         Moved the strtol prerequisites to strtol.m4.
90506         Moved the strtoll prerequisites to strtoll.m4.
90507         Moved the strtoimax prerequisites to strtoimax.m4.
90508
90509         Module xstrtoumax.
90510         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90511         jm_AC_PREREQ_XSTRTOUMAX.
90512         Moved the strtoul prerequisites to strtoul.m4.
90513         Moved the strtoull prerequisites to strtoull.m4.
90514         Moved the strtoumax prerequisites to strtoumax.m4.
90515
90516         Module chown.
90517         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90518         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90519
90520         Module dup2.
90521         * m4/dup2.m4: New file.
90522
90523         Module ftruncate.
90524         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90525         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90526
90527         Module getgroups.
90528         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90529         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90530
90531         Module gettimeofday.
90532         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90533         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90534         gl_PREREQ_GETTIMEOFDAY.
90535
90536         Module mkdir.
90537         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90538         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90539
90540         Module mkstemp.
90541         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90542         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90543         jm_AC_TYPE_UINTMAX_T.
90544         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90545
90546         Module stat.
90547         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90548         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90549
90550         Module lstat.
90551         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90552         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90553
90554         Module timespec.
90555         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90556         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90557         * m4/st_mtim.m4: Indentation.
90558
90559         Module nanosleep.
90560         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90561         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90562         gl_PREREQ_NANOSLEEP.
90563
90564         Module regex.
90565         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90566         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90567         (gl_REGEX): New macro.
90568
90569         Module rename.
90570         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90571         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90572
90573         Module rmdir.
90574         * m4/rmdir.m4: New file.
90575
90576         Module utime.
90577         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90578         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90579         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90580
90581         Module dirname.
90582         * m4/dirname.m4: New file.
90583
90584         Module getopt.
90585         * m4/getopt.m4: New file.
90586
90587         Module unistd-safer.
90588         * m4/unistd-safer.m4: New file.
90589
90590         Module fnmatch.
90591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90592         declaration.
90593         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90594         (gl_FUNC_FNMATCH_POSIX): New macro.
90595         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90596         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90597         simply fnmatch.
90598
90599         Module exclude.
90600         * m4/exclude.m4: New file.
90601
90602         Module human.
90603         * m4/human.m4: New file.
90604
90605         Module acl.
90606         * m4/acl.m4: Nop.
90607
90608         Module backupfile.
90609         * m4/backupfile.m4: New file.
90610         * m4/d-ino.m4: Indentation.
90611
90612         Module fsusage.
90613         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90614         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90615         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90616
90617         Module dirfd.
90618         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90619         requirements.
90620
90621         Module euidaccess.
90622         * m4/euidaccess.m4: New file.
90623
90624         Module file-type.
90625         * m4/file-type.m4: New file.
90626
90627         Module fileblocks.
90628         * m4/fileblocks.m4: New file.
90629
90630         Module filemode.
90631         * m4/filemode.m4: New file.
90632
90633         Module isdir.
90634         * m4/isdir.m4: New file.
90635
90636         Module lchown.
90637         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90638         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90639
90640         Module makepath.
90641         * m4/makepath.m4: New file.
90642
90643         Module modechange.
90644         * m4/modechange.m4: New file.
90645
90646         Module mountlist.
90647         * m4/mountlist.m4: New file.
90648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90649         Indentation.
90650
90651         Module path-concat.
90652         * m4/path-concat.m4: New file.
90653
90654         Module pathmax.
90655         * m4/pathmax.m4: New file.
90656
90657         Module same.
90658         * m4/same.m4: New file.
90659
90660         Module save-cwd.
90661         * m4/save-cwd.m4: New file.
90662
90663         Module savedir.
90664         * m4/savedir.m4: New file.
90665
90666         Module xgetcwd.
90667         * m4/xgetcwd.m4: New file.
90668         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90669
90670         Module xreadlink.
90671         * m4/xreadlink.m4: New file.
90672
90673         Module safe-read.
90674         * m4/safe-read.m4: New file.
90675
90676         Module safe-write.
90677         * m4/safe-write.m4: New file.
90678
90679         Module closeout.
90680         * m4/closeout.m4: New file.
90681
90682         Module stdio-safer.
90683         * m4/stdio-safer.m4: New file.
90684
90685         Module getpass.
90686         * m4/getpass.m4: New file.
90687
90688         Module getugroups.
90689         * m4/getugroups.m4: New file.
90690
90691         Module group-member.
90692         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90693         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90694
90695         Module idcache.
90696         * m4/idcache.m4: New file.
90697
90698         Module userspec.
90699         * m4/userspec.m4: New file.
90700
90701         Module gettime.
90702         * m4/clock_time.m4: New file.
90703         * m4/gettime.m4: New file.
90704
90705         Module settime.
90706         * m4/settime.m4: New file.
90707
90708         Module posixtm.
90709         * m4/posixtm.m4: New file.
90710
90711         Module gethostname.
90712         * m4/gethostname.m4: New file.
90713
90714         Module canon-host.
90715         * m4/canon-host.m4: New file.
90716
90717         Module gettext.
90718         * m4/codeset.m4: New file, from gettext-0.11.5.
90719         * m4/gettext.m4: New file, from gettext-0.11.5.
90720         * m4/glibc21.m4: New file, from gettext-0.11.5.
90721         * m4/iconv.m4: New file, from gettext-0.11.5.
90722         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90723         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90724         * m4/inttypes.m4: New file, from gettext-0.11.5.
90725         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90726         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90727         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90728         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90729         * m4/lib-link.m4: New file, from gettext-0.11.5.
90730         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90731         * m4/progtest.m4: New file, from gettext-0.11.5.
90732         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90733         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90734         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90735
90736         Module localcharset.
90737         * m4/localcharset.m4: New file.
90738
90739         Module hard-locale.
90740         * m4/hard-locale.m4: New file.
90741
90742         Module mbswidth.
90743         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90744         onceonly macros.
90745         * m4/mbrtowc.m4: Add comment.
90746
90747         Module memcasecmp.
90748         * m4/memcasecmp.m4: New file.
90749
90750         Module memcoll.
90751         * m4/memcoll.m4: New file.
90752
90753         Module unicodeio.
90754         * m4/unicodeio.m4: New file.
90755
90756         Module rpmatch.
90757         * m4/rpmatch.m4: New file.
90758
90759         Module yesno.
90760         * m4/yesno.m4: New file.
90761
90762         Module exitfail.
90763         * m4/exitfail.m4: New file.
90764
90765         Module c-stack.
90766         * m4/c-stack.m4 (gl_C_STACK): New macro.
90767         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90768
90769         Module error.
90770         * m4/error.m4 (gl_ERROR): New macro.
90771         (jm_PREREQ_ERROR): Use onceonly macros.
90772
90773         Module fatal.
90774         * m4/fatal.m4: New file.
90775
90776         Module getloadavg.
90777         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90778         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90779
90780         Module getpagesize.
90781         * m4/getpagesize.m4: New file.
90782
90783         Module getusershell.
90784         * m4/getusershell.m4: New file.
90785
90786         Module physmem.
90787         * m4/physmem.m4: New file.
90788
90789         Module posixver.
90790         * m4/posixver.m4: New file.
90791
90792         Module quotearg.
90793         * m4/quotearg.m4: New file.
90794
90795         Module quote.
90796         * m4/quote.m4: New file.
90797
90798         Module readutmp.
90799         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90800
90801         Module sig2str.
90802         * m4/sig2str.m4: New file.
90803
90804         Other.
90805         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90806         ulonglong.m4.
90807         * m4/intmax_t.m4: New file.
90808         * m4/d-type.m4: Indentation.
90809         * m4/jm-macros.m4: Update.
90810         * m4/prereq.m4 (jm_PREREQ): Update.
90811         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90812         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90813         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90814         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90815         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90816         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90817         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90818         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90819         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90820         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90821         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90822         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90823         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90824         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90825         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90826         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90827         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90828         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90829         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90830
90831 2002-12-24  Bruno Haible  <bruno@clisp.org>
90832
90833         * MODULES.txt: Update according to m4/ changes.
90834
90835         Module gettext.
90836         * config.rpath: New file, from gettext-0.11.5.
90837
90838         * modules/*: New module descriptions.
90839         * gnulib-tool: New file.
90840         * MODULES.html.sh: New file.
90841
90842 2002-12-21  Karl Berry  <karl@gnu.org>
90843
90844         * doc/fdl.texi: update to version 1.2.
90845
90846 2002-12-19  Karl Berry  <karl@gnu.org>
90847
90848         * config/config.guess: update from prep.
90849
90850 2002-12-18  Bruno Haible  <bruno@clisp.org>
90851
90852         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90853         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90854
90855 2002-12-17  Bruno Haible  <bruno@clisp.org>
90856
90857         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90858         stdlib.h, string.h.
90859
90860 2002-12-17  Bruno Haible  <bruno@clisp.org>
90861
90862         * lib/canon-host.c (strdup): Remove unused declaration.
90863
90864         * lib/fsusage.c: Include full_read.h.
90865         (get_fs_usage): Use full_read instead of safe_read.
90866
90867         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90868
90869 2002-12-12  Karl Berry  <karl@gnu.org>
90870
90871         * config/config.guess: update from prep.
90872
90873 2002-12-11  Bruno Haible  <bruno@clisp.org>
90874
90875         * m4/setenv.m4: New file, from gettext-0.11.5.
90876
90877 2002-12-11  Bruno Haible  <bruno@clisp.org>
90878
90879         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90880         not unsetenv().
90881         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90882         modifications:
90883
90884         2002-12-11  Bruno Haible  <bruno@clisp.org>
90885
90886                 * setenv.c (alloca): Fall back to malloc.
90887                 (freea): New macro.
90888                 (setenv): Use freea() to free memory allocated with alloca().
90889
90890         2002-11-13  Bruno Haible  <bruno@clisp.org>
90891
90892                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90893                 function declarations.
90894                 * unsetenv.c (unsetenv): Likewise.
90895
90896         2002-03-04  Bruno Haible  <bruno@clisp.org>
90897
90898                 Portability to AIX 4.3.3.
90899                 * unsetenv.c: New file, extracted from setenv.c.
90900                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90901
90902         2001-12-20  Bruno Haible  <bruno@clisp.org>
90903
90904                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90905                 use malloc instead. For SunOS 4.
90906
90907         2001-12-11  Bruno Haible  <bruno@clisp.org>
90908
90909                 * setenv.c: Declare alloca.
90910                 (compar_fn_t): New typedef.
90911                 (KNOWN_VALUE, STORE_VALUE): Use it.
90912
90913         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90914         setenv.h.
90915
90916 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90917
90918         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90919         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90920         Choose values that are less likely to collide with system fnmatch
90921         options.
90922         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90923         defined (e.g., a pure POSIX system).
90924         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90925         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90926
90927 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90928
90929         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90930         a pain in practice to deal with generated m4 files.  This change
90931         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90932
90933         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90934         and jm-glibc-io.m4, as they are no longer a special case.
90935         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90936         kludge and the auto-generation stuff.  Check only whether the
90937         functions are declared, not whether they exist, since older hosts
90938         that don't declare the functions can't use the optimization anyway.
90939
90940 2002-12-06  Jim Meyering  <jim@meyering.net>
90941
90942         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90943
90944         Merge in changes from libc's misc/error.c, in preparation
90945         for the merge of gnulib's changes back into libc.
90946
90947         * lib/error.c (_): Define only if not already defined.
90948         Move definition to follow all #include directives.
90949         Include unlocked-io.h only if !_LIBC.
90950         [_LIBC]: Include <libio/libioP.h>.
90951         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90952         (fflush): Tweak definition to use INTUSE.
90953         (putc): Define.
90954
90955 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90956
90957         * lib/alloca.c [defined emacs]: Include "lisp.h".
90958         (xalloc_die) [defined emacs]: New macro.
90959         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90960         [! defined emacs]: Include <xalloc.h>.
90961         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90962         (pointer): Typedef to POINTER_TYPE *.
90963         (malloc): Remove decl; we now always use xmalloc.
90964         (alloca): Use old-style definition, since Emacs needs this.
90965         Check for arithmetic overflow when computing combined size.
90966
90967 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90968
90969         Do not generate unlocked-io.h automatically, since it's easier to
90970         maintain it by hand.
90971
90972         * lib/unlocked-io.h: New file, from GNU diffutils,
90973         but with proper copyright notice and attribution.
90974         * lib/gen-uio: Remove.
90975         * lib/Makefile.am: Add copyright notice.
90976         (libfetish_a_SOURCES): Add unlocked-io.h.
90977         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90978         (DISTCLEANFILES, io_functions): Remove macros.
90979         (EXTRA_DIST): Remove gen_uio.
90980         (unlocked-io.h): Remove rule.
90981
90982 2002-12-04  Jim Meyering  <jim@meyering.net>
90983
90984         Reflect the fact that stat.c and lstat.c are no longer generated.
90985         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90986         (DISTCLEANFILES): Likewise.
90987         (EXTRA_DIST): Likewise.
90988         (all_local): Don't depend on stat.c or lstat.c.
90989         (stat.c, lstat.c): Remove rules.
90990         (EXTRA_DIST): Remove xstat.in.
90991
90992         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90993         * lib/stat.c: New file.  Contents mostly from xstat.in.
90994         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90995         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90996
90997         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90998         too.
90999         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91000
91001 2002-12-03  Jim Meyering  <jim@meyering.net>
91002
91003         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91004         but not semantics, to minimize the differences between these two files.
91005         (safe_read): Change comment to mention SAFE_READ_ERROR.
91006
91007         * lib/safe-read.c (IS_EINTR): Define.
91008         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91009
91010 2002-12-02  Jim Meyering  <jim@meyering.net>
91011
91012         * lib/safe-read.c (EINTR): Define.
91013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91014         (INT_MAX): Provide fallback.
91015         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91016
91017         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91018
91019 2002-12-02  Bruno Haible  <bruno@clisp.org>
91020
91021         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91022         Define, taken from safe-read.c.
91023         (INT_MAX): Provide fallback.
91024         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91025         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91026
91027         * lib/safe-read.c (EINTR): Remove definition.
91028         (safe_read): Don't use EINTR if it is absent.
91029
91030 2002-12-01  Jim Meyering  <jim@meyering.net>
91031
91032         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91033         zero.
91034         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91035
91036 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91037
91038         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91039         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91040         with `if (! (value < limit)) abort ();', for readability.
91041
91042 2002-11-26  Karl Berry  <karl@gnu.org>
91043
91044         * lib/strdup.c: copy from libc again, with jim's ok.
91045         * lib/.cppi-disable: re-add strdup.c
91046
91047 2002-11-25  Karl Berry  <karl@gnu.org>
91048
91049         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91050         instead of "strtol.c".
91051
91052 2002-11-25  Karl Berry  <karl@gnu.org>
91053
91054         * config/install-sh: update from automake for variable quoting, $0 in
91055         error msgs, etc.
91056
91057         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91058         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91059         entry.
91060
91061 2002-11-25  Jim Meyering  <jim@meyering.net>
91062
91063         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91064
91065 2002-11-24  Karl Berry  <karl@gnu.org>
91066
91067         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91068         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91069
91070 2002-11-24  Jim Meyering  <jim@meyering.net>
91071
91072         Update from coreutils:
91073
91074         * lib/mktime.c: Merge in changes from libc.
91075
91076         Avoid a link-time failure on some Linux systems.
91077         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91078         (otherwise).
91079         (__mon_yday): Declare with the STATIC attribute.
91080         (__mktime_internal): Likewise.
91081         Based on a report from Greg Schafer.
91082
91083 2002-11-23  Jim Meyering  <jim@meyering.net>
91084
91085         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91086         Use `unsigned', not `int', as type of index.
91087
91088         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91089
91090         * lib/fsusage.c: Remove unneeded parentheses around operands of
91091         `defined'.
91092
91093 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91094
91095         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91096         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91097         so that we can be included first.
91098         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91099         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91100         No need to include stddef.h or sys/types.h any more.
91101         Surround local include files with "", not "<>".
91102         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91103         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91104         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91105         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91106         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91107         (ISPRINT): Remove; no longer needed now that we assume C89.
91108
91109         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91110         Preserve errno.
91111
91112         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91113         quotearg_char): Use SIZE_MAX rather than
91114         (size_t) -1 when we are talking about "infinity".
91115
91116         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91117
91118 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91119
91120         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91121         hint that one should use `if (! x) abort ();' rather than `assert
91122         (x);', and anyway it's one less thing to worry about configuring.
91123         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91124         hash_rehash, hash_insert): Use abort rather than assert.
91125
91126 2002-11-22  Bruno Haible  <bruno@clisp.org>
91127
91128         * lib/safe-read.h: Assume C89. Add comments.
91129         (safe_read): Change return type to size_t.
91130         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91131         byte counts > SSIZE_MAX correctly.
91132         * lib/safe-write.h: New file.
91133         * lib/safe-write.c: New file.
91134         * lib/full-read.h: New file.
91135         * lib/full-read.c: New file.
91136         * lib/full-write.h: Assume C89. Add comments.
91137         * lib/full-write.c: Include safe-write.h.
91138         (full_write): Rewritten to use safe_write.
91139         Suggested by Jim Meyering and Paul Eggert.
91140
91141 2002-11-21  Jim Meyering  <jim@meyering.net>
91142
91143         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91144
91145         Merge in changes from the coreutils.
91146
91147         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91148         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91149         <stdint.h>.
91150         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91151         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91152         int.  Work more efficiently if X is the same width as uintmax_t.
91153         Do not compare X to -1, to avoid bogus compiler warning.
91154         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91155         Don't assume that f_frsize and f_bsize are the same type.
91156
91157         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91158         warning on FreeBSD.
91159
91160         * lib/makepath.c (make_path): Restore umask *before* creating the final
91161         component.
91162         (make_path): Minor reformatting.
91163
91164         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91165         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91166         HAVE_MALLOC/HAVE_REALLOC.
91167
91168         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91169         dummy ones.  At least on GNU/Linux systems, `auto' means something
91170         else.
91171         From Michael Stone.
91172
91173 2002-11-21  Bruno Haible  <bruno@clisp.org>
91174
91175         Remove case insensitive option matching.
91176         * lib/argmatch.h (argcasematch): Remove declaration.
91177         (ARGCASEMATCH): Remove macro.
91178         (__xargmatch_internal): Remove case_sensitive argument.
91179         (XARGMATCH): Update.
91180         (XARGCASEMATCH): Remove macro.
91181         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91182         case_sensitive argument.
91183         (argcasematch): Remove function.
91184         (__xargmatch_internal): Remove case_sensitive argument.
91185         (main): Use XARGMATCH instead of XARGCASEMATCH.
91186
91187         * lib/xmalloc.c: Change compile-time error message. Add comment about
91188         required autoconf version.
91189
91190 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91191
91192         Merge argmatch cleanups from Bison.  Assume C89.
91193
91194         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91195         Include stdlib.h, for EXIT_FAILURE.
91196         Always include <string.h>, since we assume C89.
91197         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91198         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91199         Include <stddef.h> instead, since it's all we need for size_t.
91200         (PARAMS): Remove.  All uses removed.
91201         (ARRAY_CARDINALITY): Do not bother to #undef.
91202         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91203         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91204         Remove unnecessary parentheses.
91205         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91206         Insert necessary parentheses.
91207         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91208         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91209
91210 2002-11-19  Bruno Haible  <bruno@clisp.org>
91211
91212         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91213         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91214
91215         * lib/mbswidth.h (PARAMS): Remove macro.
91216         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91217         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91218
91219         * lib/gcd.h (PARAMS): Remove macro.
91220         (gcd): Use ANSI C function declarations.
91221         * lib/gcd.c (gcd): Likewise.
91222
91223 2002-11-15  Bruno Haible  <bruno@clisp.org>
91224
91225         * lib/strcspn.c: Include <stddef.h>.
91226         (strcspn): Use ANSI C function declaration. Change return type to
91227         size_t. Use NULL.
91228         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91229         (strpbrk): Use NULL.
91230         * lib/strpbrk.h (PARAMS): Remove macro.
91231         (strpbrk): Use ANSI C function declaration.
91232         * lib/strstr.c: Don't include <sys/types.h>.
91233         * lib/strstr.h (PARAMS): Remove macro.
91234         (strstr): Use ANSI C function declarations.
91235
91236 2002-11-14  Karl Berry  <karl@gnu.org>
91237
91238         * config/mkinstalldirs: `do' on separate line, instead of
91239         `for var; do'.
91240
91241 2002-11-06  Bruno Haible  <bruno@clisp.org>
91242
91243         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91244         * lib/gcd.c (gcd): Likewise.
91245
91246 2002-11-05  Bruno Haible  <bruno@clisp.org>
91247
91248         * lib/gcd.h: New file, from gettext-0.11.5.
91249         * lib/gcd.c: New file, from gettext-0.11.5.
91250
91251 2002-11-05  Bruno Haible  <bruno@clisp.org>
91252
91253         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91254         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91255         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91256         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91257
91258         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91259         <libintl.h>.
91260         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91261         <libintl.h>.
91262
91263         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91264         * lib/human.c: Include gettext.h instead of <libintl.h>.
91265         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91266         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91267         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91268         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91269         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91270         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91271         (textdomain): Remove definition.
91272         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91273
91274         * lib/long-options.c: Remove include of <libintl.h> and definition of
91275         _.
91276         * lib/same.c: Remove include of <libintl.h> and definition of _.
91277
91278 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91279
91280         * lib/config.charset: A few additions for Solaris.
91281
91282 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91283
91284         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91285         * lib/localcharset.c (locale_charset): Declare as extern "C".
91286
91287 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91288
91289         * lib/config.charset: msdos in uk_UA uses CP1125.
91290
91291 2002-11-04  Bruno Haible  <bruno@clisp.org>
91292
91293         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91294         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91295         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91296         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91297         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91298
91299 2002-11-04  Bruno Haible  <bruno@clisp.org>
91300
91301         * lib/localcharset.c (locale_charset): Don't return an empty string.
91302
91303 2002-11-04  Bruno Haible  <bruno@clisp.org>
91304
91305         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91306         aliases.
91307
91308 2002-11-04  Bruno Haible  <bruno@clisp.org>
91309
91310         * lib/config.charset: Update for newest glibc. Add canonical names
91311         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91312
91313 2002-11-04  Bruno Haible  <bruno@clisp.org>
91314
91315         * lib/config.charset: Add support for NetBSD.
91316
91317 2002-11-04  Bruno Haible  <bruno@clisp.org>
91318
91319         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91320
91321 2002-11-01  Bruno Haible  <bruno@clisp.org>
91322
91323         * configure.in: Add AC_CONFIG_AUX_DIR call.
91324         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91325         test/Makefile.
91326         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91327
91328 2002-09-28  Karl Berry  <karl@gnu.org>
91329
91330         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91331         installed automake until the next release, since changes have been
91332         made.
91333
91334 2002-09-25  Karl Berry  <karl@gnu.org>
91335
91336         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91337         * lib/getopt*: copy from libc/posix.
91338         * lib/gettext.h: copy from gettext.
91339         * lib/.cppi-disable: add strdup.c, gettext.h.
91340
91341 2002-09-25  Karl Berry  <karl@gnu.org>
91342
91343         * config/srclist.txt: enable gettext.h check.
91344         * config/config.{guess,sub}: update from prep.
91345         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91346                 from automake 1.6.3.
91347         See srclist*.
91348
91349 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91350
91351         * regex.c (PATFETCH): Remove the translating fetch.
91352         (PATFETCH_RAW): Rename to PATFETCH.
91353         (set_image_of_range): New fun.
91354         (SET_RANGE_TABLE_WORK_AREA): Use it.
91355         (regex_compile): Don't translate the pattern chars so eagerly.
91356         Only do it when inserting an `exactn' bytecode or when handling
91357         a char-range.
91358         (mutually_exclusive_p): Avoid empty statement.
91359
91360 2002-07-06  Jim Meyering  <meyering@lucent.com>
91361
91362         * m4/README: Don't mention Makefile.am.in.
91363         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91364
91365 2002-07-01  Jim Meyering  <meyering@lucent.com>
91366
91367         * lib/c-stack.c: Include sys/time.h.
91368         From Volker Borchert.
91369
91370 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91371
91372         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91373
91374 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91375
91376         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91377         New macro.  Use it uniformly instead of
91378         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91379         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91380         reported by Vin Shelton.
91381
91382 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91383
91384         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91385         Do not assume SA_SIGINFO behavior.
91386         Bug reported by Jim Meyering on NetBSD 1.5.2.
91387
91388 2002-06-22  Jim Meyering  <meyering@lucent.com>
91389
91390         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91391         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91392
91393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91394         now that configure.ac uses AC_GNU_SOURCE.
91395         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91396         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91397
91398         Update to latest tools.  Suggestions from Paul Eggert.
91399         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91400         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91401         * m4/fnmatch.m4: Likewise.
91402         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91403         to AC_HEADER_STDBOOL
91404
91405 2002-06-22  Jim Meyering  <meyering@lucent.com>
91406
91407         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91408         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91409
91410 2002-06-22  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91413
91414         * lib/exitfail.c, exitfail.h: Likewise.
91415         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91416
91417         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91418         of fnmatch.h.
91419         (EXTRA_DIST): Add fnmatch_loop.c.
91420         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91421
91422         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91423         * lib/fnmatch.c: Update from diffutils-2.8.2.
91424         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91425         * lib/fnmatch.h: Remove file.
91426
91427 2002-06-21  Jim Meyering  <meyering@lucent.com>
91428
91429         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91430         * m4/mbrtowc.m4: Likewise.
91431
91432         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91433         * m4/mbswidth.m4: Reflect name change:
91434         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91435         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91436
91437         * m4/lib-link.m4: Update from gettext-0.11.2.
91438         * m4/gettext.m4: Likewise.
91439
91440         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91441         From Alfred M. Szmidt.
91442
91443 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91444
91445         * lib/file-type.h: Report an error if neither S_ISREG nor
91446         S_IFREG is defined, instead of using a test specific to glibc
91447         2.2.  This should be safe, since POSIX requires S_ISREG and
91448         Unix Version 7 had S_IFREG.  We don't need to check for
91449         <sys/types.h> since we don't use any symbols that it defines.
91450
91451 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91452
91453         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91454         $@-t, so that each temporary file name is unique and valid in the first
91455         8 characters, for operation under DOS.
91456
91457 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91458
91459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91460
91461 2002-06-15  Jim Meyering  <meyering@lucent.com>
91462
91463         Work even with DJGPP 2.03, which lacks support for symlinks.
91464         From Richard Dawe.
91465         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91466         is defined.
91467         * lib/lchown.c (S_ISLNK): Likewise.
91468
91469 2002-06-15  Jim Meyering  <meyering@lucent.com>
91470
91471         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91472         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91473         have been included before this file.
91474
91475 2002-06-14  Jim Meyering  <meyering@lucent.com>
91476
91477         * lib/file-type.h: Use the version from diffutils-2.8.2.
91478         * lib/file-type.c: Likewise.
91479
91480 2002-06-07  Jim Meyering  <meyering@lucent.com>
91481
91482         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91483         They're needed at least for NetBSD 1.5.2.
91484         ($statxfs_includes): Include those same headers.
91485         ($statxfs_includes): Include sys/vfs.h if available.
91486         ($statxfs_includes): Likewise for sys/statvfs.h.
91487         Check for the following members in both structs statfs and statvfs:
91488         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91489
91490 2002-06-01  Jim Meyering  <meyering@lucent.com>
91491
91492         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91493         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91494
91495 2002-05-28  Jim Meyering  <meyering@lucent.com>
91496
91497         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91498         Reported by Volker Borchert.
91499
91500 2002-05-27  Jim Meyering  <meyering@lucent.com>
91501
91502         Fix a problem seen only on nonconforming systems whereby ls.c's
91503         use of localtime, and then of gettimeofday would cause trouble:
91504         the localtime call used to initialize rpl_gettimeofday's save
91505         mechanism would clobber ls's current local time information so
91506         that in any long listing the first file would always be listed
91507         with date 1970-01-01.  Analysis by Volker Borchert.
91508
91509         * lib/gettimeofday.c (localtime): Undefine.
91510         (rpl_localtime): New function.
91511
91512 2002-05-27  Jim Meyering  <meyering@lucent.com>
91513
91514         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91515         localtime.
91516
91517         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91518         use the replacement function; it wouldn't resolve at link time.
91519         Reported by Volker Borchert.
91520
91521 2002-05-22  Jim Meyering  <meyering@lucent.com>
91522
91523         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91524         file-type.h.
91525         * lib/file-type.h: New file.
91526         * lib/file-type.c (file_type): New file/function.  Extracted from
91527         diffutils.
91528
91529 2002-04-30  Jim Meyering  <meyering@lucent.com>
91530
91531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91532
91533 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91534
91535         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91536
91537 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91538
91539         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91540         Do not check for alloca.h (no longer used) or stdbool.h (was never
91541         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91542
91543 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91544
91545         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91546
91547 2002-04-29  Jim Meyering  <meyering@lucent.com>
91548
91549         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91550         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91551         Use AC_FUNC_STRNLEN here instead.
91552
91553         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91554         With autoconf-2.53a, it's part of AC_PROG_CC.
91555
91556 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91557
91558         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91559         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91560
91561 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91562
91563         * lib/sig2str.h, lib/sig2str.c: New files.
91564         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91565
91566 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91567
91568         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91569         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91570         of 127, since 64 is the largest conceivable number for ancient
91571         nonstandard hosts.
91572         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91573
91574 2002-04-28  Jim Meyering  <meyering@lucent.com>
91575
91576         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91577
91578 2002-04-24  Jim Meyering  <meyering@lucent.com>
91579
91580         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91581         (jm_PREREQ): Use it.
91582
91583         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91584         mach/mach.h fcntl.h.
91585         Check for this function: setlocale.
91586
91587 2002-04-24  Jim Meyering  <meyering@lucent.com>
91588
91589         * lib/gettext.h: New file, from Gettext.
91590         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91591         (libfetish_a_SOURCES): Add gettext.h.
91592
91593 2002-04-16  Jim Meyering  <meyering@lucent.com>
91594
91595         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91596         ut_pid, ut_id, ut_exit.
91597
91598 2002-04-16  Jim Meyering  <meyering@lucent.com>
91599
91600         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91601         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91602         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91603
91604 2002-04-12  Jim Meyering  <meyering@lucent.com>
91605
91606         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91607         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91608         existence of the getmntinfo function.  Needed for Darwin 5.3.
91609
91610         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91611         This is necessary at least on Darwin 5.3.
91612
91613         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91614         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91615         strnlen.o in the library, and that makes some versions of ranlib
91616         object.
91617
91618 2002-04-12  Jim Meyering  <meyering@lucent.com>
91619
91620         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91621
91622 2002-04-09  Jim Meyering  <meyering@lucent.com>
91623
91624         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91625         to be more precise.  Rather than saying we're checking whether the
91626         function `works', say what we're testing.
91627         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91628         Reported by Bruno Haible.
91629
91630 2002-03-10  Jim Meyering  <meyering@lucent.com>
91631
91632         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91633         Suggestion from Santiago Vila.
91634
91635 2002-03-08  Jim Meyering  <meyering@lucent.com>
91636
91637         * lib/rename.c: Mention that this wrapper is needed also on
91638         mips-dec-ultrix4.4 systems.
91639
91640 2002-03-02  Jim Meyering  <meyering@lucent.com>
91641
91642         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91643         not HAVE_CLOCK_SETTIME.
91644
91645 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91646
91647         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91648         Check for clock_settime.
91649
91650 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91651
91652         * lib/nanosleep.h: Rename to....
91653         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91654
91655         * lib/gettime.c: New file.
91656         * lib/settime.c: New file.
91657         * lib/stime.c: Remove.
91658
91659         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91660         timespec.h.  Remove nanosleep.h.
91661
91662 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91663
91664         * m4/acl.m4: New file.
91665         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91666         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91667
91668 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91669
91670         * lib/acl.c, lib/acl.h: New files.
91671         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91672
91673 2002-02-24  Jim Meyering  <meyering@lucent.com>
91674
91675         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91676         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91677         cause trouble.  Reported by Nelson Beebe.
91678
91679 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91680
91681         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91682         compilers that don't know that xalloc_die never returns.
91683
91684 2002-02-20  Jim Meyering  <meyering@lucent.com>
91685
91686         * lib/getdate.c: Regenerate using bison-1.33.
91687
91688 2002-02-17  Jim Meyering  <meyering@lucent.com>
91689
91690         * config/config.guess (main): Don't use `head -1'; it's no longer
91691         portable. Use `sed 1q' instead.
91692
91693 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91694
91695         * m4/codeset.m4: Upgrade to gettext-0.11.
91696         * m4/gettext.m4: Upgrade to gettext-0.11.
91697         * m4/glibc21.m4: Upgrade to gettext-0.11.
91698         * m4/iconv.m4: Upgrade to gettext-0.11.
91699         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91700         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91701         * m4/lib-ld.m4: New file, from gettext-0.11.
91702         * m4/lib-link.m4: New file, from gettext-0.11.
91703         * m4/lib-prefix.m4: New file, from gettext-0.11.
91704         * m4/progtest.m4: Upgrade to gettext-0.11.
91705
91706 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91707
91708         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91709         (jm_PREREQ): Use it.
91710
91711 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/posixver.c, lib/posixver.h: New files.
91714         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91715
91716 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91717             Bruno Haible  <bruno@clisp.org>
91718
91719         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91720         (fwrite_success_callback): New declaration.
91721         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91722         print_unicode_char. Call failure callback instead of error.
91723         (fwrite_success_callback): New function.
91724         (exit_failure_callback): New function.
91725         (fallback_failure_callback): New function.
91726         (print_unicode_char): Call unicode_to_mb.
91727
91728 2002-01-26  Jim Meyering  <meyering@lucent.com>
91729
91730         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91731         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91732
91733 2002-01-26  Jim Meyering  <meyering@lucent.com>
91734
91735         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91736
91737 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91738
91739         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91740
91741 2002-01-22  Jim Meyering  <meyering@lucent.com>
91742
91743         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91744         Otherwise, some versions of automake would omit the rule that makes
91745         Makefile from Makefile.in.
91746
91747 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91748
91749         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91750         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91751         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91752         (memcoll): Set errno to zero if there is no error.
91753
91754         * lib/quotearg.c (quotearg_buffer_restyled):
91755         Fix bug with quoting buffers containing NUL when backslashing escapes.
91756         This bug was exposed by the other changes in this patch.
91757         (quotearg_n_options): New arg ARGSIZE.
91758         All callers changed.
91759         (quoting_options_from_style): New function.
91760         (quotearg_n_style): Use it.
91761         (quotearg_n_style_mem): New function.
91762
91763         * lib/quotearg.h (quotearg_n_style_mem): New function.
91764
91765 2002-01-19  Jim Meyering  <meyering@lucent.com>
91766
91767         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91768         Remove useless quotes: DF_PROG="df".
91769         * m4/strnlen.m4: New file.
91770
91771 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91772
91773         * lib/backupfile.c (ISDIGIT): Comment fix.
91774         * lib/getdate.y (ISDIGIT): Likewise.
91775         * lib/posixtm.c (ISDIGIT, year): Likewise.
91776         * lib/strverscmp.c (ISDIGIT): Likewise.
91777         * lib/userspec.c (ISDIGIT): Likewise.
91778
91779 2002-01-16  Jim Meyering  <meyering@lucent.com>
91780
91781         * lib/getdate.y: Add three semicolons, each just before a closing
91782         brace. Bison (as of version 1.31) no longer papers over that mistake.
91783
91784 2002-01-05  Jim Meyering  <meyering@lucent.com>
91785
91786         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91787
91788 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91789
91790         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91791         not silently exit merely because the output buffer happens to
91792         have nothing pending.
91793
91794 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91795
91796         See the big note in ../ChangeLog.
91797         * lib/human.c (suffixes): Prefer K to k for 1024.
91798         (generate_suffix_backwards): New function.
91799         (human_readable_inexact): Use it.
91800         * lib/xstrtol.c (__xstrtol): If there is no number but there
91801         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91802         Accept 'K' as well as 'k'.
91803
91804 2001-12-15  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/regex.h (__restrict_arr): Update from libc.
91807
91808         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91809         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91810         (STREQ): Define.
91811
91812 2001-12-14  Jim Meyering  <meyering@lucent.com>
91813
91814         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91815         Suggestion from Bruno Haible.
91816
91817 2001-12-10  Jim Meyering  <meyering@lucent.com>
91818
91819         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91820         xrealloc, Instead, include "xalloc.h".
91821         (initbuffer): Don't cast xmalloc return value to char*.
91822         (readline): Reword comment.
91823         Don't cast xrealloc return value to char*
91824         Return NULL, not 0.
91825
91826 2001-12-09  Jim Meyering  <meyering@lucent.com>
91827
91828         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91829         about `signed and unsigned type in conditional expression'.
91830         * lib/posixtm.c (posix_time_parse): Likewise.
91831
91832         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91833
91834         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91835         to avoid a pedantic warning.
91836
91837         * lib/getstr.c: Don't include assert.h.
91838         (getstr): Remove warning-evoking assertions.
91839         Return -1 if offset parameter is out of bounds.
91840         Change the type of a local from int to size_t.
91841
91842         * lib/strftime.c (my_strftime_localtime_r): Include this function
91843         definition in the `#if ! HAVE_TM_GMTOFF' block.
91844
91845         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91846         Include xalloc.h instead.
91847
91848 2001-12-02  Jim Meyering  <meyering@lucent.com>
91849
91850         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91851         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91852         included.
91853
91854         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91855         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91856
91857 2001-11-30  Akim Demaille  <akim@epita.fr>
91858
91859         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91860         before being defined.
91861
91862 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91863
91864         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91865         First arg is int, not unsigned.
91866         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91867         (SIZE_MAX, UINT_MAX): New macros.
91868         (quotearg_n_options): Abort if N is negative.
91869         Avoid overflow check on hosts where size_t is 64 bits and int
91870         is 32 bits, as overflow is impossible there.
91871         Fix off-by-one typo that caused unnecessary reallocation.
91872
91873 2001-11-27  Jim Meyering  <meyering@lucent.com>
91874
91875         * lib/tempname.c: Merge with version from libc.
91876         * lib/regex.c: Likewise.
91877
91878         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91879         systems for which STDC_HEADERS is 0, it was not included, resulting in
91880         a warning about an integer-to-pointer conversion problem with getenv.
91881         Reported by Volker Borchert.
91882
91883 2001-11-26  Jim Meyering  <meyering@lucent.com>
91884
91885         * lib/gtod.h: Remove file.
91886         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91887         * lib/gettimeofday.c: Don't include gtod.h.
91888         (GTOD_init): Remove function.
91889         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91890         Suggestion from Volker Borchert.
91891
91892 2001-11-23  Jim Meyering  <meyering@lucent.com>
91893
91894         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91895         it.
91896         * lib/hash.c (struct hash_table): Define it here instead.
91897
91898 2001-11-22  Jim Meyering  <meyering@lucent.com>
91899
91900         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91901
91902 2001-11-20  Jim Meyering  <meyering@lucent.com>
91903
91904         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91905         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91906
91907 2001-11-19  Jim Meyering  <meyering@lucent.com>
91908
91909         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91910         directory.  Use "conftestXXXXXX" as the template.
91911         Suggestion from Paul Eggert.
91912
91913         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91914         immediately, so the test doesn't mistakenly hit the max-open-files
91915         limit.
91916
91917 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91918
91919         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91920         (TEMPORARIES): New macro.
91921         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91922         removes an artificial limitation (e.g. HP-UX 10.20, where
91923         TMP_MAX is 17576).
91924
91925 2001-11-18  Jim Meyering  <meyering@lucent.com>
91926
91927         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91928
91929 2001-11-18  Jim Meyering  <meyering@lucent.com>
91930
91931         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91932         on SunOS 4.
91933
91934         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91935         files will be created before anything else.
91936
91937 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91938
91939         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91940         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91941
91942 2001-11-17  Jim Meyering  <meyering@lucent.com>
91943
91944         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91945         Prompted by a report from Bob Proulx.
91946
91947         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91948         Instead, require UTILS_FUNC_MKSTEMP.
91949
91950 2001-11-17  Jim Meyering  <meyering@lucent.com>
91951
91952         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91953         Now, that's done as part of AC_FUNC_STRTOD.
91954
91955 2001-11-17  Jim Meyering  <meyering@lucent.com>
91956
91957         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91958         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91959         rather than group writable.  Patch by Juan F. Codagnone.
91960
91961         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91962         xrealloc, Instead, include "xalloc.h".
91963
91964         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91965         Remove explicit declarations of xmalloc, xrealloc,
91966         and xstrdup.  Instead, include "xalloc.h".
91967
91968         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91969         unlocked-io.h.
91970         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91971         Likewise.
91972         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91973
91974         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91975         Reported by Padraig Brady.
91976
91977         * lib/mkstemp.c: #undef mkstemp.
91978         Include config.h.
91979         (rpl_mkstemp): Rename from mkstemp.
91980         Protoize.
91981
91982 2001-11-16  Jim Meyering  <meyering@lucent.com>
91983
91984         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91985         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91986         determine the amount of total physical memory, use pstat_getstatic.
91987         HPUX-11 doesn't define _SC_PHYS_PAGES.
91988         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91989         If sysconf couldn't be used to determine the amount of available
91990         physical memory, use both pstat_getstatic and pstat_getdynamic.
91991         Based on a patch from Bob Proulx.
91992
91993 2001-11-10  Jim Meyering  <meyering@lucent.com>
91994
91995         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91996         (jm_PREREQ): Use it.
91997
91998 2001-11-09  Jim Meyering  <meyering@lucent.com>
91999
92000         * m4/jm-macros.m4: Require autoconf-2.52f.
92001         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92002         Use these AC_-prefixed names, not the AM_-prefixed ones.
92003
92004         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92005
92006 2001-11-05  Jim Meyering  <meyering@lucent.com>
92007
92008         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92009
92010 2001-11-04  Jim Meyering  <meyering@lucent.com>
92011
92012         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92013         $DEFS.
92014
92015 2001-11-03  Jim Meyering  <meyering@lucent.com>
92016
92017         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92018         of AC_DEFUN.
92019
92020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92021         know the name of the variable in the macro definition.
92022
92023 2001-11-03  Jim Meyering  <meyering@lucent.com>
92024
92025         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92026         in argmatch_to_argument call.
92027
92028         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92029         argument.
92030
92031         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92032         e.g., a fault due to an attempt to free a NULL pointer.
92033
92034 2001-11-01  Jim Meyering  <meyering@lucent.com>
92035
92036         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92037         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92038
92039 2001-11-01  Jim Meyering  <meyering@lucent.com>
92040
92041         * lib/dirfd.c, lib/dirfd.h: New files.
92042         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92043
92044         * lib/hash.c (hash_print) [TESTING]: Clean up.
92045
92046 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92047
92048         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92049         to avoid a warning if -Wall.
92050
92051 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92052
92053         * README: New file
92054         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92055         (per RMS's instructions, this is now the canonical source)
92056         * lgpl/, gpl/: New directories.
92057
92058 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92059
92060         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92061
92062 2001-10-21  Jim Meyering  <meyering@lucent.com>
92063
92064         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92065         this code would end up calling gettext even in packages built
92066         with --disable-nls.
92067         * lib/getopt.c (_): Likewise.
92068         * lib/regex.c (_): Likewise.
92069
92070 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92071
92072         * m4/error.m4 (jm_PREREQ_ERROR):
92073         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92074         AC_FUNC_STRERROR_R does that.
92075         Check for strerror declaration.
92076
92077         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92078         are supposed to have them these days.
92079         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92080         Merge changes from latest Autoconf CVS.
92081         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92082         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92083         POSIX decided to standardize on the int flavor of strerror_r.
92084
92085 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92086
92087         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92088         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92089         Use strerror_r that is only a macro, even if it is not a function.
92090         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92091         (private_strerror): Use prototypes, not old-style function definition.
92092         (print_errno_message): New function.
92093         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92094         char*-flavored one.
92095         (error_tail, error, error_at_line): Use it.
92096
92097 2001-10-11  Jim Meyering  <meyering@lucent.com>
92098
92099         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92100         and quote_n (1, ... to avoid clobbering a buffer.
92101
92102 2001-10-05  Jim Meyering  <meyering@lucent.com>
92103
92104         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92105         hash-pjw.h.
92106         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92107         * lib/hash-pjw.h: New file.
92108
92109 2001-09-30  Jim Meyering  <meyering@lucent.com>
92110
92111         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92112         `struct fsstat' has the `f_fstypename' member.
92113         Use that to define FS_TYPE, which is now used to make
92114         the getfsstat link test tighter.
92115
92116 2001-09-30  Jim Meyering  <meyering@lucent.com>
92117
92118         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92119         Include <sys/ucred.h>, for Apple Darwin.
92120         Include sys/mount.h and sys/fs_types.h only if available.
92121         (FS_TYPE): Define.
92122         (read_filesystem_list): Use FS_TYPE.
92123
92124 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92125
92126         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92127         a boolean context.
92128
92129 2001-09-29  Jim Meyering  <meyering@lucent.com>
92130
92131         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92132         [one-argument getmntent function]): Include stdio.h before mntent.h.
92133         SunOS 4.1.x needs it for the declaration of `FILE'.
92134         Patch by Volker Borchert.
92135
92136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92137         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92138         sys/fs_types.h, and make the link-test for getfsstat guard #include
92139         directives with appropriate #if HAVE_*_H tests so that we can
92140         detect getfsstat on Apple Darwin1.3.7 systems.
92141         Reported by Nelson Beebe.
92142         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92143
92144 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92145
92146         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92147         #defines strtoimax.  Also treat the other strto* functions
92148         like strtoimax.
92149
92150         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92151         Check for strtoul and strtoumax,
92152         as those declarations are made even in the signed case.
92153         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92154         Likewise, for strtol and strtoimax.
92155
92156 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92157
92158         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92159         #defines strtoimax.  Also treat the other strto* functions
92160         like strtoimax.
92161
92162         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92163         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92164         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92165
92166 2001-09-26  Jim Meyering  <meyering@lucent.com>
92167
92168         Most macros in unlocked-io.h had the wrong number of arguments.
92169         * lib/gen-uio: New script.
92170         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92171         * lib/unlocked-io.hin: Remove file.
92172         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92173         rather than trying to embed it here.
92174         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92175         Reported by Padraig Brady.
92176
92177 2001-09-25  Volker Borchert  <bt@teknon.de>
92178
92179         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92180         `result'.
92181
92182 2001-09-24  Jim Meyering  <meyering@lucent.com>
92183
92184         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92185
92186 2001-09-23  Jim Meyering  <meyering@lucent.com>
92187
92188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92189         instead of the mere test for existence of mntent.h.  The latter
92190         would get a false-positive on AIX 3.4 systems.
92191         In the outer getmntent if-block, don't die if neither of the getmntent
92192         tests succeeds.  Instead, just fall through and continue with the
92193         remaining tests.
92194
92195 2001-09-23  Jim Meyering  <meyering@lucent.com>
92196
92197         * lib/mountlist.c: Remove useless parentheses in #if directives.
92198         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92199         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92200
92201 2001-09-22  Jim Meyering  <meyering@lucent.com>
92202
92203         * m4/gettext.m4: New file.  From gettext.
92204         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92205         * m4/progtest.m4: Likewise
92206         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92207         * m4/glibc21.m4: Likewise.
92208
92209         * m4/libintl.m4: Remove.  No longer used.
92210
92211 2001-09-22  Jim Meyering  <meyering@lucent.com>
92212
92213         * lib/localcharset.c: Update from latest gettext.
92214         * lib/config.charset: Likewise.
92215
92216 2001-09-20  Jim Meyering  <meyering@lucent.com>
92217
92218         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92219         strtoimax.
92220         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92221         strtoumax.
92222
92223 2001-09-20  Jim Meyering  <meyering@lucent.com>
92224
92225         * lib/xstrtol.c (strtoimax): Guard declaration with
92226         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92227         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92228         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92229         (strtoumax): Likewise, for completeness (it wasn't necessary).
92230
92231 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92232
92233         * lib/strtoimax.c (HAVE_LONG_LONG):
92234         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92235         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92236         to work around bug in IBM C compiler.
92237
92238 2001-09-17  Jim Meyering  <meyering@lucent.com>
92239
92240         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92241         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92242         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92243         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92244         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92245         whenever the right hand side need not be expanded by the shell.
92246
92247 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92248
92249         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92250         library.  It's not correct, as some older glibcs are buggy.
92251         fnmatch wasn't fixed until glibc 2.2.
92252
92253         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92254         special shell magic here.
92255
92256 2001-09-16  Jim Meyering  <meyering@lucent.com>
92257
92258         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92259         * m4/jm-macros.m4: Require it.
92260
92261 2001-09-16  Jim Meyering  <meyering@lucent.com>
92262
92263         * lib/mkdir.c: New file.
92264
92265 2001-09-15  Jim Meyering  <meyering@lucent.com>
92266
92267         * m4/jm-macros.m4: Check for help2man.
92268
92269 2001-09-11  Jim Meyering  <meyering@lucent.com>
92270
92271         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92272         The body, by Paul Eggert, was moved here from configure.in.
92273         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92274
92275 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92276
92277         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92278         (jm_PREREQ): Use it.
92279
92280 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92281
92282         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92283         Use ssize_t, not int, to store result of readlink.
92284         Check for ssize_t overflow as well as size_t overflow,
92285         as POSIX says the result of readlink is implementation-defined
92286         when ssize_t overflows.
92287         Remove unnecessary cast to char*.
92288         Use free+malloc instead of realloc, as the storage doesn't need
92289         to be preserved and it's clearer and can be more efficient that way.
92290         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92291         * lib/xreadlink.h (xreadlink): Update prototype.
92292
92293 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92294
92295         * lib/xgetcwd.c: Revert some of the previous change; intead,
92296         fix the HAVE_GETCWD_NULL code to behave more like the
92297         !HAVE_GETCWD_NULL code used to.
92298
92299         Include "xalloc.h".
92300         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92301         invoke xalloc_die.
92302
92303 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92304
92305         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92306         sys/param.h, as pathmax.h includes them.
92307
92308 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92309
92310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92311         (jm_PREREQ_XGETCWD): New macro.
92312
92313         * m4/getcwd.m4: New file.
92314
92315 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92316
92317         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92318         like the HAVE_GETCWD_NULL code.
92319         Include pathmax.h if not HAVE_GETCWD.
92320         Do not include xalloc.h.
92321         (INITIAL_BUFFER_SIZE): New symbol.
92322         Do not use xmalloc / xrealloc, since the caller is responsible for
92323         handling errors.  Preserve errno around `free' during failure.
92324         Do not overrun buffer when using getwd.
92325
92326 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92327
92328         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92329         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92330         getcwd (NULL, 0).
92331
92332 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92333
92334         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92335         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92336         spotted by Jim Meyering.
92337
92338 2001-09-03  Jim Meyering  <meyering@lucent.com>
92339
92340         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92341         failure.
92342
92343 2001-09-02  Jim Meyering  <meyering@lucent.com>
92344
92345         * lib/error.c: Update from GNU libc.
92346
92347 2001-09-01  Jim Meyering  <meyering@lucent.com>
92348
92349         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92350         Used by df.
92351
92352 2001-09-01  Jim Meyering  <meyering@lucent.com>
92353
92354         * lib/xreadlink.c: New file.
92355         * lib/xreadlink.h: New file.
92356         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92357         xreadlink.h.
92358
92359         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92360         doesn't conflict with sparc Solaris 7's definition in
92361         /usr/include/sys/int_types.h.
92362
92363         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92364         files.
92365         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92366         and strncasecmp as r-values.  Unixware didn't have declarations.
92367
92368 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92369
92370         * lib/xstrtol.h: Add copyright notice.
92371         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92372         LONGINT_INVALID_SUFFIX_CHAR.
92373
92374 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92375
92376         * lib/xstrtol.c (strtoimax): New decl.
92377
92378 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92379
92380         * lib/xgetcwd.c: Don't include pathmax.h.
92381         Include stdlib.h and unistd.h if available.
92382         Include xalloc.h.
92383         (xmalloc, xstrdup, free): Remove decls.
92384         (xgetcwd): Don't assume sizes fit in unsigned.
92385         Check for overflow when computing sizes.
92386         Simplify reallocation code.
92387
92388 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92389
92390         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92391         a directory's st_size can have an arbitrary value, so the old
92392         usage could waste an arbitrary amount of memory.  All uses
92393         changed.
92394         * lib/savedir.h: Update prototype.
92395
92396 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92397
92398         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92399
92400         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92401         old strtoimax.c.
92402
92403         Also, make the following further changes to make this file's
92404         configuration more similar to that of strtol.c:
92405         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92406         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92407         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92408         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92409         changed to signed values.
92410
92411         And make the following changes as well:
92412         Fix copyright notice, as 1999 was missing.
92413         (verify): New macro.
92414         (strtoimax): Check sizes at compile-time, not run-time.
92415         Prefer strtol to strtoll if both work.
92416         (main): Remove; it was not that useful and was a pain to maintain.
92417
92418         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92419
92420 2001-08-31  Jim Meyering  <meyering@lucent.com>
92421
92422         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92423         Use an initial, malloc'd, buffer of length 128 rather than
92424         a statically allocated one of length 1024.
92425
92426 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92427
92428         Simplify code, partly by assuming autoconf 2.52 semantics.
92429
92430         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92431
92432         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92433         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92434         All uses removed.
92435         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92436         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92437         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92438         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92439         jm_AC_HEADER_INTTYPES_H.
92440         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92441
92442         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92443
92444         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92445         Quote first arg of AC_DEFUN.
92446         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92447         since they are needed to parse the include file even if we need
92448         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92450         but with opposite signedness.
92451
92452 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92453
92454         Merge 'exclude' changes from tar 1.13.22.
92455         This fixes one or two unlikely storage allocation overflow bugs,
92456         but doesn't change user-visible behavior otherwise.
92457
92458 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92459
92460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92461         (jm_PREREQ_EXCLUDE): New macro.
92462
92463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92464
92465         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92466         tm to be declared.
92467
92468 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92469
92470         * lib/hash.c: Remove '2001' from copyright notice.
92471
92472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92473
92474         * lib/full-write.h: New file.
92475         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92476         * lib/full-write.c: Correct credits, as cccp.c no longer
92477         exists and anyway it was so heavily changed from the old cccp
92478         code as to be unrecognizable.  Include full-write.h.
92479         (full_write): Return size_t, with short writes meaning failure.
92480         All callers changed.  This fixes a bug with large buffers
92481         on 64-bit hosts.
92482         * lib/utime.c: Include full-write.h.
92483
92484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92485
92486         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92487         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92488         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92489         Include if available.
92490         (<xalloc.h>): Include
92491         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92492         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92493         collide with FNM macros.
92494         (struct patopts): New struct.
92495         (struct exclude): Use it, as exclude patterns now come with options.
92496         (new_exclude): Support above changes.
92497         (new_exclude, add_exclude_file):
92498         Initial size must now be a power of two to simplify overflow checking.
92499         (free_exclude, fnmatch_no_wildcards): New function.
92500         (excluded_filename): No longer requires options arg, as the options
92501         are determined by add_exclude.  Now returns bool, not int.
92502         (excluded_filename, add_exclude):
92503         Add support for the fancy new exclusion options.
92504         (add_exclude, add_exclude_file): Now takes int options arg.
92505         Check for arithmetic overflow when computing sizes.
92506         (add_exclude_file): xrealloc might modify errno, so don't
92507         realloc until after errno might be used.
92508
92509         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92510         New macros.
92511         (free_exclude): New decl.
92512         (add_exclude, add_exclude_file): Now takes int options arg.
92513         (excluded_filename): No longer requires options arg, as the options
92514         are determined by add_exclude.  Now returns bool, not int.
92515
92516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92517
92518         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92519
92520 2001-08-27  Jim Meyering  <meyering@lucent.com>
92521
92522         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92523
92524         * lib/version-etc.c (N_): Remove definition.
92525         Revert most of last change.
92526         Instead, simply don't mark the `Copyright...' string for translation.
92527         Based on advice from Paul Eggert.
92528
92529         * lib/strtoxmax.c: Tweak comment.
92530
92531 2001-08-26  Jim Meyering  <meyering@lucent.com>
92532
92533         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92534
92535         * m4/xstrtoimax.m4: New file.
92536         * m4/xstrtoumax.m4: Add comments explaining why we
92537         AC_REPLACE_FUNCS(strtol).
92538
92539 2001-08-26  Jim Meyering  <meyering@lucent.com>
92540
92541         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92542         of copyright with `%s' so translators don't get an untranslated
92543         message in 2002.
92544         (COPYRIGHT_YEAR): Define.
92545         (version_etc): Use fprintf rather than fputs.
92546         Suggestion from Ulrich Drepper.
92547
92548         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92549
92550         * lib/strtoll.c: New file, from GNU libc.
92551         * lib/xstrtoimax.c: New file.
92552
92553         * lib/xstrtol.h: Add xstrtoimax.
92554         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92555         * lib/strtoimax.c: New file.  Likewise, but first define
92556         STRTOUXMAX_SIGNED.
92557
92558         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92559         ...
92560         * lib/strtoxmax.c: ... then renamed to this.
92561
92562 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92563
92564         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92565         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92566         (jm_AC_TYPE_INTMAX_T): New macro.
92567         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92568
92569         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92570
92571         * m4/longlong.m4: Renamed from ulonglong.m4.
92572         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92573         * m4/uintmax_t.m4: Removed.
92574
92575 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92576
92577         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92578         Port to Solaris 8, where 'sed' requires a space after the 'r'
92579         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92580         Redirect output to $tmp just once.
92581
92582 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92583
92584         * lib/addext.c (<errno.h>): Include.
92585         (errno): Declare if not defined.
92586         (addext): Work correctly when pathconf returns -1 and leaves
92587         errno alone because there is no limit.  Also, work even if
92588         pathconf returns a value greater than SIZE_MAX.
92589
92590 2001-08-12  Jim Meyering  <meyering@lucent.com>
92591
92592         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92593         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92594         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92595         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92596         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92597         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92598         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92599         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92600         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92601         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92602         utime.m4, utimes.m4, xstrtoumax.m4:
92603         Quote the first argument in each use of AC_DEFUN.
92604
92605 2001-08-12  Jim Meyering  <meyering@lucent.com>
92606
92607         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92608         Simply `return getcwd (NULL, 0);'.
92609         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92610         Use 1300 as initial value for length, not PATH_MAX.
92611
92612         * lib/pathmax.h: Clean up cpp syntax.
92613
92614 2001-08-12  Jim Meyering  <meyering@lucent.com>
92615
92616         * lib/gettimeofday.c: New file.
92617         * lib/gtod.h: New file.
92618         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92619
92620 2001-08-05  Jim Meyering  <meyering@lucent.com>
92621
92622         * m4/jm-macros.m4: Require autoconf-2.52.
92623
92624 2001-08-04  Jim Meyering  <meyering@lucent.com>
92625
92626         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92627         stmt, to get in sync with glibc.
92628
92629 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92630
92631         The following changes are from gettext 0.10.39 as maintained by
92632         Bruno Haible.
92633
92634         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92635         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92636         with inverted sense.  All uses changed.
92637
92638         * lib/mbswidth.c: Don't include <limits.h>.
92639         Include <stdlib.h> and <string.h> unconditionally.
92640         (iswcntrl, mbsinit, ISCNTRL): New macros.
92641         (mbsnwidth): Use K&R style function declarations.
92642         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92643         can optimize it when MB_CUR_MAX == 1.
92644         The width of control characters is zero, not 1.
92645
92646 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92647
92648         The following changes are from gettext 0.10.39 as maintained by
92649         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92650
92651         * m4/codeset.m4: Upgrade to serial AM1.
92652         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92653         all uses changed.  Quote first arg of AC_DEFUN.
92654         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92655
92656         * m4/iconv.m4: Upgrade to serial AM2.
92657         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92658         Add --with-libconv-prefix.
92659         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92660         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92661         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92662         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92663         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92664
92665         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92666         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92667         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92668         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92669         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92670         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92671         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92672         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92673         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92674
92675         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92676         string.h any more.
92677
92678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92679         not the default value.
92680
92681         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92683         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92684         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92685         Also check for iswcntrl, used for wcwidth fallback.
92686         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92687         to Autoconf 2.13.
92688
92689 2001-08-03  Jim Meyering  <meyering@lucent.com>
92690
92691         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92692         as it was in the original.  Reported by Paul Eggert.
92693
92694 2001-07-16  Jim Meyering  <meyering@lucent.com>
92695
92696         * m4/gettimeofday.m4: New file.
92697         Prompted by a report from Bernhard Baehr.
92698
92699 2001-07-15  Jim Meyering  <meyering@lucent.com>
92700
92701         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92702         stuff. Now it's in ../Makefile.cfg.
92703
92704 2001-07-15  Jim Meyering  <meyering@lucent.com>
92705
92706         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92707         (BUILT_SOURCES): Add unlocked-io.h.
92708         (io_functions): Define.
92709         (unlocked-io.h): New rule.
92710         (DISTCLEANFILES): Add unlocked-io.h.
92711         (all-local): Depend on unlocked-io.h, to ensure it is created.
92712
92713         * lib/unlocked-io.hin: New file
92714
92715         * lib/regex.c: Update from glibc.
92716
92717 2001-07-05  Jim Meyering  <meyering@lucent.com>
92718
92719         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92720         recommendation.
92721         (libfetish_a_SOURCES): Put all .h files here instead.
92722         Remove a thus-exposed (better checks in automake) duplicate and
92723         two unnecessary .h files.
92724
92725 2001-07-04  Jim Meyering  <meyering@lucent.com>
92726
92727         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92728         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92729         distcheck failure.
92730
92731 2001-07-02  Jim Meyering  <meyering@lucent.com>
92732
92733         The following changes were prompted by suggestions from Bruno Haible.
92734
92735         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92736         is now generated.
92737         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92738         definition of EXTRA_DIST.
92739         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92740         ensure that the generated file is created/updated whenever the list
92741         of $(unlocked_functions) is changed.
92742         (jm-glibc-io.m4): New rule.
92743         (unlocked-io.h): New rule -- currently unused.
92744
92745 2001-06-24  Jim Meyering  <meyering@lucent.com>
92746
92747         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92748         unmatched right bracket, rather than kludging it with an extra,
92749         falsely-matching quote in a comment.  Patch by Akim Demaille.
92750
92751 2001-06-11  Jim Meyering  <meyering@lucent.com>
92752
92753         * lib/regex.c: Update from GNU libc.
92754
92755 2001-05-27  Jim Meyering  <meyering@lucent.com>
92756
92757         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92758         Check for ut_type in struct utmp.
92759
92760 2001-05-27  Jim Meyering  <meyering@lucent.com>
92761
92762         * lib/readutmp.h (UT_TYPE): Define.
92763
92764 2001-05-24  Jim Meyering  <meyering@lucent.com>
92765
92766         * lib/argmatch.c: Include "quote.h".
92767         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92768         quote function.  Reported by Göran Uddeborg.
92769
92770 2001-05-22  Jim Meyering  <meyering@lucent.com>
92771
92772         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92773         now that we use the package-supplied version unconditionally.
92774         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92775
92776 2001-05-21  Jim Meyering  <meyering@lucent.com>
92777
92778         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92779         shell syntax errors.
92780
92781 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92782
92783         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92784
92785 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92786
92787         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92788         Don't bother to check library strftime, since
92789         we'll be using our own my_strftime function anyway.
92790         Define my_strftime instead of strftime.
92791
92792 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92793
92794         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92795         which is not yet declared.
92796
92797 2001-05-15  Jim Meyering  <meyering@lucent.com>
92798
92799         * m4/regex.m4: Use proper quoting so brackets appear in the test
92800         program.
92801         Reported by, and with help from, Bruno Haible.
92802
92803 2001-05-13  Jim Meyering  <meyering@lucent.com>
92804
92805         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92806         undefined.
92807
92808 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92809
92810         dirname code cleanup.  base_name now behaves more compatibly
92811         with POSIX basename when given file names that have trailing
92812         slashes, and similarly for dir_name.  Add new primitives
92813         base_len and dir_len.  Put the directory-name-related decls
92814         into dirname.h.
92815
92816         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92817         * lib/backupfile.c (base_name): Likewise.
92818         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92819         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92820         * lib/makepath.c (strip_trailing_slashes): Likewise.
92821         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92822         ISSLASH): Likewise.
92823         * lib/rename.c (strip_trailing_slashes): Likewise.
92824         * lib/same.c (base_name): Likewise.
92825         * lib/stripslash.c (ISSLASH): Likewise.
92826
92827         * lib/addext.c: Include <dirname.h> after size_t is defined.
92828         * lib/backupfile.c: Likewise.
92829
92830         * lib/addext.c (addext): Use base_len to trim redundant
92831         trailing slashes instead of doing it ourselves.
92832         But do not trim the last slash if it is not redundant.
92833
92834         * lib/backupfile.c (find_backup_file_name,
92835         max_backup_version): Use base_len instead of rolling it ourselves.
92836         Handle the case of "" and (on DOS) "C:" correctly.
92837
92838         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92839         needed. Include <string.h>, <dirname.h>.
92840         (base_name): Allow file names ending in slashes, other than names
92841         that are all slashes.  In this case, return the basename followed
92842         by the slashes.  This is more general, and can be used in places
92843         where the original base_name purposely had an assertion failure.
92844         (base_len): New function.
92845
92846         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92847         Do not include <assert.h>; no longer needed.
92848         Include xalloc.h.
92849         (memrchr): Remove decl.
92850         (dir_name_r): Remove.
92851         (dir_len): Renamed from dirlen.  All callers changed.
92852         Rewrite in terms of base_name, for simplicity and consistency.
92853         (dir_name): Never return NULL.  All callers changed.
92854         Do not include <stdlib.h> in test program; no longer needed.
92855         return 0; is fine for test program.
92856
92857         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92858         New macros.
92859         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92860
92861         * lib/path-concat.c (path_concat): Use base_len to compute
92862         base length, not strlen; this means we cannot rely on memcpy
92863         to null-terminate.
92864
92865         * lib/same.c (STREQ): Remove.
92866         (same_name): Handle the case where the basename ends in trailing '/'.
92867
92868         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92869         a slash was stripped.  Do not strip the last slash after a
92870         file system prefix.
92871
92872 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92873
92874         * lib/Makefile.am (libfetish_a_SOURCES):
92875         Add strftime.c, since we now compile it on all hosts.
92876
92877         * lib/strftime.c (my_strftime):
92878         Define to nstrftime if emacs, but only if my_strftime is not defined.
92879         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92880         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92881         Add one more extra argument: a nanoseconds value.
92882         All uses changed.
92883         (ns): New macro.
92884         (my_strftime function): Add %N format.
92885         (emacs_strftimeu): Renamed from emacs_strftime,
92886         with extra ut argument.
92887
92888 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92889
92890         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92891
92892 2001-04-21  Jim Meyering  <meyering@lucent.com>
92893
92894         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92895         doesn't interfere.
92896
92897 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92898
92899         * m4/ftruncate.m4: Check for chsize.
92900         Link with ftruncate.o unconditionally if ftruncate is missing.
92901         This was required when cross-compiling to i586-mingw32msvc.
92902
92903 2001-04-08  Jim Meyering  <meyering@lucent.com>
92904
92905         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92906         recomputed; that's necessary when the offset spans a DST transition.
92907         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92908
92909 2001-04-02  Jim Meyering  <meyering@lucent.com>
92910
92911         * lib/regex.h, regex.c: Update from GNU libc.
92912
92913 2001-03-24  Jim Meyering  <meyering@lucent.com>
92914
92915         * m4/jm-macros.m4: Require autoconf-2.49d.
92916
92917 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92918
92919         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92920
92921 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92922
92923         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92924
92925 2001-03-17  Jim Meyering  <meyering@lucent.com>
92926
92927         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92928         now that the version in autoconf is equivalent.
92929         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92930
92931         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92932         Suggestion from Akim Demaille.
92933
92934         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92935         (jm_PREREQ_TEMPNAME): New function.
92936
92937 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92938
92939         * lib/tempname.c (uint64_t): Define to uintmax_t if
92940         not defined, and if UINT64_MAX is not defined.
92941         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92942         Reported by John David Anglin.
92943
92944 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92945
92946         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92947         resolve alias if codeset is empty.
92948         * lib/config.charset (BeOS): Use wildcard syntax.
92949
92950 2001-03-13  Jim Meyering  <meyering@lucent.com>
92951
92952         * lib/path-concat.c (path_concat)
92953         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92954         concatenating e.g., `C:' and `foo'.
92955         From Bruno Haible.
92956
92957 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92958
92959         * lib/localcharset.c (locale_charset): Don't use
92960         setlocale(LC_CTYPE,NULL). Don't return NULL.
92961         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92962
92963 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92964
92965         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92966         support for DOS/DJGPP.
92967
92968 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92969
92970         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92971         lacks mkstemp.  Compile our own tempname.c if we compile our own
92972         mkstemp.c, as mkstemp relies on tempname.
92973
92974 2001-03-01  Jim Meyering  <meyering@lucent.com>
92975
92976         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92977         AH_VERBATIM really does output its argument verbatim.
92978
92979 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92980
92981         * lib/Makefile.am (libfetish_a_SOURCES):
92982         Add dup-safer.c, fopen-safer.c.
92983         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92984
92985         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92986         * lib/unistd-safer.h: New files.
92987
92988 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92989
92990         The mkstemp replacement is taken from glibc 2.2.2, with some
92991         portability fixes for use outside glibc, as follows:
92992
92993         * lib/tempname.c (struct_stat64): New macro.
92994         (direxists, __gen_tempname): Use it.
92995         This avoids a portability problem with Solaris 8.
92996
92997         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92998         (<stddef.h>, <stdint.h>, <string.h>):
92999         Include only if STDC_HEADERS || _LIBC.
93000         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93001         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93002         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93003         (__set_errno): Define this macro if <errno.h> doesn't.
93004         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93005         Define these macros if <stdio.h> doesn't.
93006         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93007         Define these macros if <sys/stat.h>
93008         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93009         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93010         __xstat64): Define if not _LIBC.
93011         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93012         (__gen_tempname): Invoke gettimeofday only if
93013         HAVE_GETTIMEOFDAY || _LIBC;
93014         otherwise, fall back on plain "time".
93015         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93016
93017         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93018
93019         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93020
93021 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93022
93023         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93024
93025 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93026
93027         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93028         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93029         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93030         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93031
93032 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93033
93034         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93035         Remove workaround macros for hosts that have mbrtowc but not
93036         mbstate_t, as we now insist on proper declarations for both
93037         before using mbrtowc.
93038
93039 2001-02-17  Jim Meyering  <meyering@lucent.com>
93040
93041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93042         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93043         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93044         UnixWare 7.1.1.
93045
93046         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93047         rather than AC_CACHE_VAL.
93048
93049 2001-02-17  Jim Meyering  <meyering@lucent.com>
93050
93051         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93052         around included file name.
93053
93054         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93055
93056         * lib/strftime.c: Update from GNU libc (the only changes were to
93057         comments).
93058
93059 2001-02-17  Jim Meyering  <meyering@lucent.com>
93060
93061         * lib/regex.c: Update from libc.
93062
93063 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93064
93065         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93066         clash.
93067
93068 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93069
93070         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93071         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93072         Reported by Mark Hounschell via Paul Eggert.
93073
93074 2001-02-07  Jim Meyering  <meyering@lucent.com>
93075
93076         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93077
93078 2001-02-05  Jim Meyering  <meyering@lucent.com>
93079
93080         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93081         it includes the patch required for `large file' support with at least
93082         HP-UX's 10.20 /bin/cc.
93083
93084 2001-02-03  Jim Meyering  <meyering@lucent.com>
93085
93086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93087         AS_IF, now that it works once again (mysteriously).
93088         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93089
93090 2001-01-30  Jim Meyering  <meyering@lucent.com>
93091
93092         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93093         * m4/chown.m4: Rename conftestchown to conftest.chown.
93094         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93095         s/conftestdir2/conftest.d2/.
93096         * m4/utimes.m4: s/conftestdata/conftest.data/
93097         Inspired by Pavel Roskin's change in autoconf.
93098
93099 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93100
93101         * lib/config.charset: Update for FreeBSD 4.2.
93102
93103 2001-01-27  Jim Meyering  <meyering@lucent.com>
93104
93105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93106         a use of AS_IF.
93107         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93108
93109 2001-01-26  Jim Meyering  <meyering@lucent.com>
93110
93111         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93112         quotearg.c includes it.
93113
93114 2001-01-26  Jim Meyering  <meyering@lucent.com>
93115
93116         * lib/quotearg.c: Include stddef.h.
93117         * lib/quote.c: Include stddef.h.
93118         Reported by Axel Kittenberger.
93119
93120         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93121         line in double quotes so that it evokes a better diagnostic.
93122         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93123         Reported by Axel Kittenberger.
93124
93125 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93126
93127         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93128         as if it was a `charset'.
93129
93130 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93131
93132         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93133         has const.
93134
93135 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93136
93137         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93138         to avoid a warning.  Add back 'const' to inptr.
93139
93140 2001-01-20  Jim Meyering  <meyering@lucent.com>
93141
93142         Be sure that headers are checked before used in code compiled
93143         for the type checks.
93144         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93145         In place of that, invoke jm_CHECK_ALL_TYPES.
93146         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93147         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93148         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93149         The check for ssize_t was mistakenly run before the test for unistd.h.
93150
93151         The configure-time check for stdbool.h was missing.
93152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93153         (jm_PREREQ_HASH): New function.
93154
93155 2001-01-17  Jim Meyering  <meyering@lucent.com>
93156
93157         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93158         for autoconf-2.49c.
93159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93160
93161 2001-01-16  Jim Meyering  <meyering@lucent.com>
93162
93163         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93164         From Bruno Haible.
93165
93166 2001-01-14  Jim Meyering  <meyering@lucent.com>
93167
93168         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93169         foo and bar.  Create conftestdir/ in the script, not in the C code.
93170         Remove directories in the script, not in the C code.
93171         Remove conftestdir{,2} before trying to create the directory.
93172         Make the entire configure script fail if the mkdir fails.
93173
93174 2001-01-14  Jim Meyering  <meyering@lucent.com>
93175
93176         * lib/rename.c: New file.  From Volker Borchert.
93177         Include stdlib.h, string.h or strings.h, and xalloc.h.
93178         Use strip_trailing_slashes rather than open-coding it.
93179
93180 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93181
93182         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93183
93184 2001-01-03  Jim Meyering  <meyering@lucent.com>
93185
93186         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93187         of local `inptr' to avoid warning with some system declarations of
93188         iconv.
93189
93190 2001-01-02  Volker Borchert  <bt@teknon.de>
93191
93192         * m4/rename.m4: New file.
93193         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93194
93195 2001-01-01  Jim Meyering  <meyering@lucent.com>
93196
93197         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93198         even on systems with utmpx.h.  It's necessary for the declaration of
93199         utmp's ut_user member.  Reported by Andreas Jaeger.
93200
93201         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93202         available. They are required for the declarations of getgrgid and
93203         getpwuid resp.
93204         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93205         Reported by Andreas Jaeger.
93206
93207 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93208
93209         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93210         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93211         so `make install' also works in VPATH builds.
93212
93213 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93214
93215         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93216         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93217         can be used in subdirectories.
93218
93219 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93220
93221         * lib/modechange.c: Do not assume that mode_t uses the
93222         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93223         the other-execute bit of FOO even if S_IXOTH != 1.
93224
93225         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93226         WOTH, XOTH, ALLM): New macros.
93227         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93228          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93229         Use them.
93230         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93231         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93232         (mode_compile):
93233         No need to use uintmax_t; unsigned long is long enough.
93234         Don't bother to get suffix since we don't use it.
93235
93236 2000-12-26  Jim Meyering  <meyering@lucent.com>
93237
93238         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93239         better with autoheader.
93240
93241 2000-12-24  Jim Meyering  <meyering@lucent.com>
93242
93243         * lib/hash.c (is_prime): Return explicit boolean values.
93244         (hash_get_first): Return NULL to appease Irix5.6's 89.
93245         Reported by Nelson Beebe.
93246
93247 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93248
93249         * lib/localcharset.c (locale_charset): Add support for Win32.
93250
93251 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93252
93253         * lib/physmem.h, lib/physmem.c: New files.
93254
93255         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93256         (noinst_HEADERS): Add physmem.h.
93257
93258         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93259         't' for compatibility with Solaris 8 sort.
93260
93261 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93262
93263         * lib/config.charset: Add support for BeOS.
93264
93265 2000-12-17  Jim Meyering  <meyering@lucent.com>
93266
93267         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93268         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93269
93270 2000-12-16  Jim Meyering  <meyering@lucent.com>
93271
93272         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93273         N and M) would have treated it like `chown N:N FILE'.
93274
93275         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93276
93277 2000-12-16  Jim Meyering  <meyering@lucent.com>
93278
93279         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93280         SHELLS_FILE to a file name that's useful on djgpp systems.
93281         Include stdlib.h.
93282         (ADDITIONAL_DEFAULT_SHELLS): Define.
93283         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93284         Based mostly on a patch from Prashant TR.
93285
93286 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93287
93288         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93289         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93290         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93291
93292 2000-12-08  Andreas Schwab  <schwab@suse.de>
93293
93294         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93295         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93296
93297 2000-12-07  Jim Meyering  <meyering@lucent.com>
93298
93299         * lib/stripslash.c (ISSLASH): Define.
93300         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93301         `/'.
93302         From Prashant TR.
93303
93304         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93305         (dir_name_r): Declare this function as static.
93306         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93307         manifest itself on a name containing a mix of slashes and
93308         backslashes.
93309         Make this function work with names starting with a DOS-style
93310         drive letter and colon prefix.
93311         (dir_name): Append `.' if necessary.
93312         Based mostly on patches from Prashant TR and Eli Zaretskii.
93313
93314         * lib/dirname.h (dir_name_r): Remove prototype.
93315
93316 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93317
93318         * m4/off_t-format.m4: Remove this file.
93319         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93320
93321 2000-12-06  Jim Meyering  <meyering@lucent.com>
93322
93323         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93324         replacement strtoull, we may well need the replacement strtoul, too.
93325         Check for declarations of strtoul and strtoull.
93326         Check for strtol.  Mainly as a cue to cause automake to include
93327         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93328         Check for limits.h -- strtol.c needs it.
93329
93330 2000-12-05  Jim Meyering  <meyering@lucent.com>
93331
93332         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93333
93334 2000-12-04  Jim Meyering  <meyering@lucent.com>
93335
93336         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93337         Also include memory.h, stdlib.h, unistd.h if appropriate.
93338         Reported by Andreas Jaeger (conflicting declaration of malloc).
93339
93340 2000-12-02  Jim Meyering  <meyering@lucent.com>
93341
93342         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93343         * m4/jm-macros.m4 (jm_MACROS): require it.
93344
93345 2000-12-02  Jim Meyering  <meyering@lucent.com>
93346
93347         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93348
93349 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93350
93351         * lib/memrchr.c: Include <config.h> before any system include file.
93352
93353 2000-11-30  Jim Meyering  <meyering@lucent.com>
93354
93355         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93356
93357 2000-11-30  Jim Meyering  <meyering@lucent.com>
93358
93359         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93360
93361 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93362
93363         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93364
93365 2000-11-26  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93368
93369 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93370
93371         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93372         size of (size_t) -1; it's not portable.
93373
93374 2000-11-17  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/strstr.c: Update from GNU libc.
93377
93378 2000-11-17  Akim Demaille  <akim@epita.fr>
93379
93380         * lib/obstack.h: Formatting changes.
93381         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93382         prevent type checking.
93383         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93384         cast the value to (void *): assigning a `foo *' to a `void *'
93385         variable is valid.
93386         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93387
93388 2000-11-16  Jim Meyering  <meyering@lucent.com>
93389
93390         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93391
93392 2000-11-11  Jim Meyering  <meyering@lucent.com>
93393
93394         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93395
93396 2000-11-10  Jim Meyering  <meyering@lucent.com>
93397
93398         * lib/obstack.h: Update from GNU libc.
93399         * lib/obstack.c: Likewise.
93400
93401 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93402
93403         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93404
93405 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93406
93407         * lib/getusershell.c (setusershell): Use rewind rather than
93408         fseek/fseeko, to avoid configuration hassles with fseeko.
93409         Don't bother opening SHELLS_FILE if shellstream is NULL;
93410         it's not necessary.
93411
93412 2000-11-05  Jim Meyering  <meyering@lucent.com>
93413
93414         * lib/makepath.h (make_dir): Declare.
93415         * lib/makepath.c (make_dir): Remove `static' attribute.
93416         Tweak a comment.
93417
93418 2000-11-04  Jim Meyering  <meyering@lucent.com>
93419
93420         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93421
93422 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93423
93424         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93425         last one in a bucket, advance to the next bucket.
93426
93427 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93428
93429         * lib/fnmatch.c: Do not comment out all the code if we are using
93430         the GNU C library, because in some cases we are replacing buggy
93431         code in the GNU C library itself.
93432
93433 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93434
93435         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93436         (regex_compile): Catch bogus \(\1\).
93437
93438 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93439
93440         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93441         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93442         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93443
93444 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93445
93446         * lib/error.h, getline.h, modechange.h:
93447         Remove "2000" from Copyright line, as the file hasn't been
93448         changed this year other than in the copyright notice.
93449
93450         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93451         was changed this year.
93452
93453 2000-10-29  Jim Meyering  <meyering@lucent.com>
93454
93455         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93456         renaming.
93457         * m4/ls-mntd-fs.m4: Likewise
93458
93459 2000-10-29  Jim Meyering  <meyering@lucent.com>
93460
93461         * lib/xstat.in: Fix grammar in comment.
93462
93463 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93464
93465         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93466         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93467         doesn't define __restrict_arr.
93468
93469 2000-10-28  Jim Meyering  <meyering@lucent.com>
93470
93471         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93472         (jm_PREREQ_MEMCHR): New function.
93473
93474 2000-10-28  Jim Meyering  <meyering@lucent.com>
93475
93476         * lib/memchr.c: Update from libc.
93477         Adjust for portability:
93478         [HAVE_STDLIB_H]: Include stdlib.h.
93479         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93480         Undef __memchr, too.
93481         [!weak_alias]: Define __memchr to memchr.
93482
93483         * lib/regex.c: Update from libc.
93484         * lib/regex.h: Likewise.
93485         * lib/getopt1.c: Likewise.
93486         * lib/memcmp.c: Likewise.
93487
93488         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93489         Avoid using fseek, when possible -- it's broken by design.
93490         Patch by Ulrich Drepper.
93491
93492 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93493
93494         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93495         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93496         Giving in to popular pressure to shut up the compiler with casts.
93497
93498 2000-10-26  Jim Meyering  <meyering@lucent.com>
93499
93500         * lib/strftime.c: Update from libc.
93501
93502 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93503
93504         * regex.c: More `unsigned char' -> `re_char' changes.
93505         Also change several `int' into `re_wchar_t'.
93506         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93507         (PUSH_FAILURE_POINTER): Don't cast any more.
93508         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93509         We want GCC to complain, since this piece of code makes
93510         re_match non-reentrant, which *should* be fixed.
93511         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93512         (EXTEND_BUFFER): Use RETALLOC.
93513         (SET_LIST_BIT): Don't cast.
93514         (re_wchar_t): New type.
93515         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93516         that those two functions will always properly return.
93517         (IMMEDIATE_QUIT_CHECK): Cast to void.
93518         (analyse_first): Use recursion rather than an explicit stack.
93519         (re_compile_fastmap): Can't fail anymore.
93520         (re_search_2): Don't check re_compile_fastmap for failure.
93521         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93522         Now also sets the new value (passed in a new argument).
93523         (re_match_2_internal): Use it.
93524         Also, use a new var `reg' of type size_t when looping through regs
93525         rather than reuse the inappropriate `mcnt'.
93526
93527 2000-10-25  Jim Meyering  <meyering@lucent.com>
93528
93529         * lib/obstack.c: Update from libc.
93530
93531 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93532
93533         * regex.c (regex_compile): Change the way of handling a range from
93534         a char less than 256 to a char not less than 256.
93535
93536 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93537
93538         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93539         NT-Emacs only.
93540         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93541         so that re_search functions only quit when callers expect them to.
93542
93543 2000-10-23  Jim Meyering  <meyering@lucent.com>
93544
93545         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93546         wrong.  That set_locale call must not have any side effects.
93547         From Paul Eggert.
93548
93549 2000-10-22  Jim Meyering  <meyering@lucent.com>
93550
93551         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93552         [CYCLIC]: Remove now-unused definition.
93553
93554         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93555         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93556         Suggestion from Ulrich Drepper.
93557
93558 2000-10-21  Jim Meyering  <meyering@lucent.com>
93559
93560         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93561         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93563
93564 2000-10-21  Jim Meyering  <meyering@lucent.com>
93565
93566         * lib/dirname.c (memrchr): Declare if necessary.
93567         (dir_name): Remove the restriction that there be no
93568         trailing slashes.  Now, this code skips past them, effectively
93569         ignoring them.
93570         [TEST_DIRNAME] (main): New unit tests.
93571
93572         * lib/memrchr.c: New file from GNU libc.
93573         Undef __memrchr, too.
93574         [!weak_alias]: Define __memrchr to memrchr.
93575         Guard weak_alias use with `#ifdef weak_alias'.
93576
93577 2000-10-21  Jim Meyering  <meyering@lucent.com>
93578
93579         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93580         (dir_name): Use dir_name_r.
93581         * lib/dirname.h (dir_name_r): Declare it.
93582
93583 2000-10-17  Jim Meyering  <meyering@lucent.com>
93584
93585         * lib/quote.h (PARAMS): Define and use.
93586         Reported by Akim Demaille.
93587
93588         * lib/getopt.c: Update from libc.
93589
93590 2000-10-16  Jim Meyering  <meyering@lucent.com>
93591
93592         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93593         setlocale.
93594         From Jan Fedak.
93595
93596 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93597
93598         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93599
93600 2000-09-25  Jim Meyering  <meyering@lucent.com>
93601
93602         * lib/md5.h (rol): Define (from GnuPG).
93603
93604         * lib/sha.c: Give credit (GnuPG) where due.
93605         (M): Use rol rather than open-coding it.
93606         Add a FIXME comment.
93607
93608 2000-09-21  Jim Meyering  <meyering@lucent.com>
93609
93610         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93611         Reported by Michael Stone.
93612
93613 2000-09-20  Jim Meyering  <meyering@lucent.com>
93614
93615         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93616         (noinst_HEADERS): Add sha.h.
93617         Based on code from Scott G. Miller and from GnuPG.
93618
93619 2000-09-18  Jim Meyering  <meyering@lucent.com>
93620
93621         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93622         LIBS. Otherwise, everyone ends up linking with -lelf for some
93623         configurations.
93624         Reported by Mike Stone.
93625
93626 2000-09-15  Jim Meyering  <meyering@lucent.com>
93627
93628         * lib/regex.c: Update from libc.
93629
93630 2000-09-10  Jim Meyering  <meyering@lucent.com>
93631
93632         * lib/getopt.c (_getopt_internal): Update from glibc.
93633
93634 2000-09-09  Jim Meyering  <meyering@lucent.com>
93635
93636         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93637         think it should be used as a general replacement for isascii.
93638         * lib/fnmatch.c: Likewise.
93639         * lib/mbswidth.c: Likewise
93640         * lib/regex.c: Likewise.
93641
93642         Don't use atoi.
93643         * lib/userspec.c: Include sys/param.h and limits.h.
93644         Include xstrtol.h.
93645         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93646         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93647         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93648         UID, GID.  Check range.
93649
93650 2000-09-06  Jim Meyering  <meyering@lucent.com>
93651
93652         * lib/getopt.c (_getopt_internal): Update from glibc.
93653
93654 2000-08-30  Jim Meyering  <meyering@lucent.com>
93655
93656         * lib/strftime.c: Merge in changes from GNU libc.
93657
93658 2000-08-26  Jim Meyering  <meyering@lucent.com>
93659
93660         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93661         * m4/fpending.m4: New file.
93662
93663 2000-08-26  Jim Meyering  <meyering@lucent.com>
93664
93665         * lib/closeout.c: Include "__fpending.h".
93666         (close_stdout_status): Return right away if there's nothing to flush.
93667
93668         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93669         * lib/__fpending.c: New file.
93670         * lib/__fpending.h: New file.
93671
93672 2000-08-20  Jim Meyering  <meyering@lucent.com>
93673
93674         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93675         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93676         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93677
93678 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93679
93680         Improve fileutils installation on systems where running
93681         programs (like install) can't be unlinked.
93682         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93683         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93684
93685 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93686
93687         Standardize on "memory exhausted" instead of "Memory exhausted"
93688         or "virtual memory exhausted".
93689         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93690         "virtual memory exhausted".
93691         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93692         our own message.
93693         * lib/userspec.c (parse_user_spec): Likewise.
93694         * lib/bumpalloc.h: comment fix
93695         * lib/same.c, userspec.c: Include xalloc.h.
93696
93697         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93698         not char *const and pointing to a constant array.
93699         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93700         (xrealloc): Comment fix.
93701
93702         * lib/userspec.c (parse_user_spec):
93703         Don't translate a message until just before returning,
93704         to avoid unnecessary translation.
93705
93706 2000-08-07  Jim Meyering  <meyering@lucent.com>
93707
93708         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93709         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93710         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93711         getgroups.c, gethostname.c, getopt.h, group-member.c,
93712         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93713         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93714         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93715         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93716         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93717         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93718         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93719         yesno.c: Back out Copyright date changes for each file with no change
93720         this year.  This eases coordination with other programs using the same
93721         source code modules.  From Paul Eggert.
93722
93723 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93724
93725         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93726         not char, for compatibility with glibc 2.1.3 strftime.c.
93727
93728 2000-08-03  Greg McGary  <greg@mcgary.org>
93729
93730         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93731         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93732         (EXTEND_BUFFER): Use them.
93733
93734 2000-08-01  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/dirname.c (ISSLASH): Define.
93737         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93738         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93739         both `\' and `/' may be use as path separators.
93740         Based on a patch from Prashant TR.
93741
93742 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93743
93744         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93745         slot vector a constant, since it might get modified.
93746
93747 2000-07-31  Jim Meyering  <meyering@lucent.com>
93748
93749         * lib/xmalloc.c: Use `virtual memory exhausted', not
93750         `Memory exhausted'.
93751         * lib/obstack.c (print_and_abort): Likewise.
93752
93753 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93754
93755         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93756         buffer, so that the caller can always quote one small
93757         component of a "memory exhausted" message in slot 0.
93758         From a suggestion by Jim Meyering.
93759
93760 2000-07-30  Jim Meyering  <meyering@lucent.com>
93761
93762         * lib/makepath.c (make_path): Quote the other instance, too.
93763
93764         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93765         (STATIC_BUF_SIZE): Define.
93766         (quotearg_n_options): Use only statically allocated storage when
93767         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93768         than STATIC_BUF_SIZE.
93769
93770 2000-07-29  Jim Meyering  <meyering@lucent.com>
93771
93772         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93773         * lib/dirname.c (dir_name): Likewise.
93774
93775         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93776         `/'.
93777
93778         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93779         (dir_name): Assert that there are no trailing slashes.
93780
93781 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93782
93783         * lib/mbswidth.h (mbswidth): Add a flags argument.
93784         (mbswidth): New declaration.
93785         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93786         * lib/mbswidth.c (mbswidth): Add a flags argument.
93787         (mbsnwidth): New function.
93788
93789 2000-07-24  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93792
93793 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93794
93795         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93796
93797 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93798
93799         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93800         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93801         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93802         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93803         invoke multibyte primitives.
93804
93805 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93806
93807         * lib/quotearg.c:
93808         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93809         so that mbstate_t is always defined.
93810
93811         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93812         be 1 in at least one GCC installation, and this configuration
93813         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93814         performance on hosts that have mbrtowc but have only unibyte
93815         locales, but I assume these hosts are rare.
93816
93817 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93818
93819         * lib/mbswidth.c (_XOPEN_SOURCE):
93820         Don't define; this causes problems on Solaris 7.
93821         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93822
93823 2000-07-23  Jim Meyering  <meyering@lucent.com>
93824
93825         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93826         too: getgrgid, getpwuid, getuid.
93827
93828 2000-07-23  Jim Meyering  <meyering@lucent.com>
93829
93830         * lib/basename.c (base_name): Add an assertion.
93831
93832 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93833
93834         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93835         shadow its mbsinit function.
93836
93837 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93838
93839         * lib/mbswidth.h: New file.
93840         * lib/mbswidth.c: New file.
93841         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93842         (noinst_HEADERS): Add mbswidth.h.
93843
93844 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93845
93846         * lib/config.charset: Add support for FreeBSD. Improve support for
93847         HP-UX and IRIX 6.
93848
93849 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93850
93851         * m4/mbswidth.m4: New file.
93852         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93853
93854 2000-07-15  Jim Meyering  <meyering@lucent.com>
93855
93856         * lib/makepath.c: Include quote.h.
93857         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93858         corresponding argument in a `quote (...)' call.
93859         Give better diagnostics.
93860
93861         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93862         (noinst_HEADERS): Add quote.h.
93863
93864         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93865         from tar's src/misc.c.
93866         * lib/quote.h: New file.  Prototypes for same.
93867
93868 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93869
93870         From a suggestion by Bruno Haible.
93871         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93872         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93873         to decide whether to define the BeOS workaround macro;
93874         this adjusts to the change to AC_MBSTATE_T.
93875
93876 2000-07-14  Jim Meyering  <meyering@lucent.com>
93877
93878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93879         jm_AC_TYPE_UINTMAX_T.
93880
93881 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93882
93883         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93884
93885         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93886         quotearg_buffer_restyled): Add support for
93887         clocale_quoting_style.  Undo previous change to
93888         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93889         and "{RIGHT QUOTATION MARK}" msgids.
93890
93891 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93892
93893         From a suggestion by Bruno Haible.
93894         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93895         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93896         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93897         and mbstate_t, to a single-part test that simply defines mbstate_t.
93898         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93899         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93900
93901 2000-07-10  Jim Meyering  <meyering@lucent.com>
93902
93903         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93904
93905         * m4/gnu-source.m4: Output to confdefs.h directly.
93906         Suggestion from Akim Demaille.
93907
93908 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93909
93910         The old behavior of quoting `like this' doesn't look good with
93911         newer, ISO-style fonts.  See:
93912         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93913
93914         Instead, quote "like this" by default.  Let the translator
93915         tailor the locale-specific quoting behavior by providing
93916         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93917
93918         * lib/quotearg.c (N_): New macro.
93919         (gettext_default): New function.
93920         (quotearg_buffer_restyled): Use
93921         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93922         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93923
93924 2000-07-09  Jim Meyering  <meyering@lucent.com>
93925
93926         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93927         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93928
93929         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93931
93932 2000-07-09  Jim Meyering  <meyering@lucent.com>
93933
93934         * lib/Most files: Update copyright dates to include 2000.
93935
93936 2000-07-08  Jim Meyering  <meyering@lucent.com>
93937
93938         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93939         if not defined.
93940         (xgethostname): Remove now-unnecessary #ifdef.
93941         Move declaration of `err' into loop where it's used.
93942
93943 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93944         and Bruno Haible  <haible@clisp.cons.org>
93945
93946         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93947         only if the test for an object-type mbstate_t fails.  This
93948         prevents us from mistakenly reporting that mbstate_t is a
93949         system object type after we "#define mbstate_t int" to work
93950         around its lack.
93951
93952 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93953         and Bruno Haible  <haible@clisp.cons.org>
93954
93955         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93956
93957 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93958
93959         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93960         to strerror_r.
93961         Include <ctype.h> for use of isalpha.
93962
93963 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93964
93965         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93966         by allocating a larger buffer. Test the gethostname return value for
93967         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93968         returns an error and ENAMETOOLONG isn't defined.
93969
93970 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93971
93972         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93973         dimension.
93974
93975 2000-07-04  Jim Meyering  <meyering@lucent.com>
93976
93977         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93978         of the deprecated AC_CHECKING.
93979
93980 2000-07-04  Jim Meyering  <meyering@lucent.com>
93981
93982         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93983         Reported by Bruno Haible.
93984
93985 2000-07-04  Jim Meyering  <meyering@lucent.com>
93986
93987         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93988         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93989         lacks mbrtowc.
93990
93991 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93992
93993         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93994         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93995
93996 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93997         and Bruno Haible  <haible@clisp.cons.org>
93998
93999         * lib/quotearg.c (mbrtowc):
94000         Assign to *pwc, and return 1 only if result is nonzero.
94001         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94002
94003 2000-07-03  Jim Meyering  <meyering@lucent.com>
94004
94005         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94006
94007 2000-07-03  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94010         This is necessary to get a definition of e.g., UTMP_FILE on
94011         HP-UX 10.20.
94012         From Bob Proulx.
94013
94014 2000-07-02  Jim Meyering  <meyering@lucent.com>
94015
94016         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94017
94018         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94019         AC_LIBOBJ(function_name).
94020         * m4/chown.m4: Likewise.
94021         * m4/fnmatch.m4: Likewise.
94022         * m4/ftruncate.m4: Likewise.
94023         * m4/getgroups.m4: Likewise.
94024         * m4/getline.m4: Likewise.
94025         * m4/group-member.m4: Likewise.
94026         * m4/jm-macros.m4: Likewise.
94027         * m4/lstat.m4: Likewise.
94028         * m4/malloc.m4: Likewise.
94029         * m4/memcmp.m4: Likewise.
94030         * m4/nanosleep.m4: Likewise.
94031         * m4/putenv.m4: Likewise.
94032         * m4/realloc.m4: Likewise.
94033         * m4/regex.m4: Likewise.
94034         * m4/stat.m4: Likewise.
94035         * m4/strftime.m4: Likewise.
94036
94037 2000-07-02  Jim Meyering  <meyering@lucent.com>
94038
94039         * lib/quotearg.c (mbstate_t): Don't define here.
94040
94041 2000-07-02  Jim Meyering  <meyering@lucent.com>
94042
94043         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94044
94045 2000-07-01  Jim Meyering  <meyering@lucent.com>
94046
94047         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94048
94049 2000-07-01  Jim Meyering  <meyering@lucent.com>
94050
94051         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94052         problem.
94053
94054 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94055
94056         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94057         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94058
94059 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94060
94061         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94062         per change in ../m4/ls-mntd-fs.m4.
94063         (read_filesystem_list): Ignore symbolic links.
94064
94065 2000-06-29  Jim Meyering  <meyering@lucent.com>
94066
94067         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94068         for declaration of strcmp.
94069
94070         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94071
94072         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94073         Avoid warning by casting result to `char *' to remove `const'.
94074
94075 2000-06-28  Jim Meyering  <meyering@lucent.com>
94076
94077         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94078         included by quotearg.c, for which we perform this test.  From
94079         Bruno Haible.
94080
94081 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94082
94083         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94084         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94085         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94086
94087 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94088
94089         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94090
94091 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94092
94093         savedir now sets errno on failure and invokes xmalloc to get memory.
94094         Fix a couple of other minor bugs while we're at it.
94095
94096         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94097         (NAMLEN): Remove macro.
94098         (malloc, realloc): Remove decls.
94099         (stpcpy): Likewise.
94100         ("xalloc.h"): Include.
94101         (NAME_SIZE_DEFAULT): New macro.
94102         (savedir): Use xmalloc / xrealloc to allocate memory.
94103         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94104         Skip "" directory entries.
94105         Use strlen to calculate directory entry length, since the old method
94106         is rarely used these days and isn't worth supporting.
94107         Don't use a pointer after freeing it.
94108         Check for integer overflow when calculating allocation size.
94109         Use memcpy to copy entries, instead of stpcpy.
94110         Set errno properly when returning NULL.
94111         Check for readdir error.
94112
94113 2000-06-26  Jim Meyering  <meyering@lucent.com>
94114
94115         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94116
94117 2000-06-25  Jim Meyering  <meyering@lucent.com>
94118
94119         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94120         Linux header bug when _XOPEN_SOURCE is defined to 500.
94121
94122 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94123
94124         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94125         deficiency.
94126
94127 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94128
94129         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94130         Include xalloc.h.
94131         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94132
94133 2000-06-24  Jim Meyering  <meyering@lucent.com>
94134
94135         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94136         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94137         for which strerror does return char*, but which lacks a conveniently
94138         accessible declaration of the function.  If the compile-test says
94139         strerror_r doesn't work, then resort to a `run'-test that works on
94140         BeOS and segfaults on DEC Unix.
94141
94142 2000-06-24  Jim Meyering  <meyering@lucent.com>
94143
94144         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94145
94146 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94147
94148         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94149         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94150
94151 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94152
94153         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94154         (mbrtowc, mbstate_t): Define substitutes if
94155         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94156         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94157         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94158
94159 2000-06-23  Jim Meyering  <meyering@lucent.com>
94160
94161         * m4/afs.m4: Add missing AC_MSG_RESULT.
94162         Reported by Bruno Haible.
94163
94164         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94165         Suggestion from Bruno Haible.
94166
94167 2000-06-23  Jim Meyering  <meyering@lucent.com>
94168
94169         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94170
94171 2000-06-21  Jim Meyering  <meyering@lucent.com>
94172
94173         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94174
94175 2000-06-21  Jim Meyering  <meyering@lucent.com>
94176
94177         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94178         (noinst_HEADERS): Add getstr.h.
94179
94180         * lib/getline.c (getstr): Move into a separate file.
94181         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94182         the following changes: new parameter, delim2; both delim[12]
94183         parameters have type `int', not `char'.  The latter would lose
94184         with 8-bit delimiters.
94185         * lib/getstr.h: New file.
94186
94187 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94188
94189         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94190         than 1024, return a memory chunk of least possible size, instead
94191         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94192         Use free/xmalloc instead of xrealloc to avoid copying for very long
94193         paths.
94194
94195 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94196
94197         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94198         the empty string.
94199
94200 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94201
94202         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94203         address, not strdup.  Include <stdlib.h> and don't declare free().
94204
94205 2000-06-19  Jim Meyering  <meyering@lucent.com>
94206
94207         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94208
94209 2000-06-18  Jim Meyering  <meyering@lucent.com>
94210
94211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94212
94213         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94214         `checking whether...' message to be consistent with that of the
94215         lstat test.
94216
94217 2000-06-18  Jim Meyering  <meyering@lucent.com>
94218
94219         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94220         Besides, these days every porting target provides a mkdir function.
94221
94222         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94223         needed. (this snippet comes from src/system.h).
94224
94225 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94226
94227         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94228
94229 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94230
94231         * lib/human.c (adjust_value): New function.
94232         (human_readable_inexact): Apply rounding style even when
94233         printing approximate values.
94234
94235 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94236
94237         * lib/human.c (human_readable_inexact): Allow an input block
94238         size that is not a multiple of the output block size, and vice versa.
94239         Reported by Piergiorgio Sartor.
94240
94241 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94242
94243         * lib/getdate.y (get_date): Apply relative times after time
94244         zone indicator, not before.  Reported by Todd A. Jacobs.
94245
94246 2000-06-13  Jim Meyering  <meyering@lucent.com>
94247
94248         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94249
94250         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94251
94252 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94253
94254         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94255
94256 2000-06-12  Jim Meyering  <meyering@lucent.com>
94257
94258         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94259         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94260         optional argument.
94261         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94262         the optional argument, `lib'.
94263
94264 2000-06-08  Jim Meyering  <meyering@lucent.com>
94265
94266         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94267
94268 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94269
94270         Rewrite largefile configuration so that we don't need to run
94271         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94272         AC_CANONICAL_HOST in configure.in -- jmm]
94273
94274         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94275         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94276         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94277         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94278         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94279         All uses changed.
94280         Instead of inspecting the output of getconf, try to compile the
94281         test program without and with the macro definition.
94282         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94283         for getconf.  Instead, check for the needed flags by compiling
94284         test programs.
94285
94286 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94287
94288         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94289
94290 2000-06-04  Jim Meyering  <meyering@lucent.com>
94291
94292         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94293         SunOS 4.1.4 for which gid_t is an unsigned type.
94294
94295 2000-06-03  Jim Meyering  <meyering@lucent.com>
94296
94297         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94298         now that autoconf requires that.
94299
94300         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94301         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94302         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94303
94304 2000-06-03  Jim Meyering  <meyering@lucent.com>
94305
94306         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94307
94308 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94309
94310         * m4/glibc21.m4: New file.
94311         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94312
94313 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94314
94315         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94316         newer, don't install charset.alias.
94317         * lib/config.charset: Change the Linux/glibc rules so they become empty
94318         on glibc-2.1 or newer.
94319
94320 2000-06-02  Jim Meyering  <meyering@lucent.com>
94321
94322         * lib/mountlist.c: Back out last change.  Instead, do this...
94323         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94324         me_dummy member using the same `ignore'-testing code.
94325         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94326         fs_type strings.
94327         From Mark D. Roth.
94328
94329 2000-05-29  Jim Meyering  <meyering@lucent.com>
94330
94331         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94332         mounts with the `ignore' attribute.  Based on a patch from
94333         Mark D. Roth.
94334
94335 2000-05-28  Jim Meyering  <meyering@lucent.com>
94336
94337         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94338         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94339         * m4/stat.m4: Likewise.
94340         * m4/lstat.m4: Likewise.
94341         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94342
94343         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94344         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94345
94346 2000-05-26  Jim Meyering  <meyering@lucent.com>
94347
94348         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94349
94350 2000-05-24  Jim Meyering  <meyering@lucent.com>
94351
94352         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94353         autoconf requires that.
94354         * m4/lib-check.m4: Likewise.
94355         * m4/jm-macros.m4: Likewise.
94356         * m4/strftime.m4: Likewise.
94357
94358         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94359         AC_CHECK_DECLS, now that autoconf requires that.
94360
94361 2000-05-22  Jim Meyering  <meyering@lucent.com>
94362
94363         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94364         * m4/lstat.m4: Likewise.
94365
94366 2000-05-22  Jim Meyering  <meyering@lucent.com>
94367
94368         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94369
94370 2000-05-20  Jim Meyering  <meyering@lucent.com>
94371
94372         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94373         (jm_PREREQ): Use it.
94374
94375 2000-05-18  Jim Meyering  <meyering@lucent.com>
94376
94377         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94378         back, too, since it may have been modified by allocate_entry.
94379         (hash_delete): Rewrite to use neither the assignment operator
94380         nor the comma operator in an if-expression.
94381
94382 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94383
94384         * lib/closeout.c:
94385         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94386         Remove; no longer needed.
94387         "quotearg.h": Add include.
94388         (file_name): Do not bother to explicitly initialize to NULL; it's less
94389         efficient on some hosts.
94390         (close_stdout_status): Remove test as to whether stdout was already
94391         closed; it breaks for the case "echo x | sort >&-".
94392         Quote file name colons.
94393         Do not assume that _("write error") lacks format strings.
94394
94395 2000-05-15  Jim Meyering  <meyering@lucent.com>
94396
94397         * lib/version-etc.c (version_etc_copyright): Update the copyright
94398         string used in all --version output.
94399
94400 2000-05-14  Jim Meyering  <meyering@lucent.com>
94401
94402         * lib/closeout.c (close_stdout_set_file_name): New function.
94403         (close_stdout_status): Use new file-scoped global.
94404         Return right away if fstat says the stdout file descriptor is invalid.
94405         * lib/closeout.h (close_stdout_set_file_name): Declare.
94406
94407 2000-05-10  Jim Meyering  <meyering@lucent.com>
94408
94409         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94410         (close_stdout_set_status): New function.
94411         * lib/closeout.h (close_stdout_set_status): Declare.
94412
94413 2000-05-09  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/gettext.m4: Rename this...
94416         * m4/libintl.m4: ...to this.
94417
94418 2000-05-08  Jim Meyering  <meyering@lucent.com>
94419
94420         * lib/long-options.c: Don't include closeout.h.
94421         (parse_long_options): Don't call close_stdout for --version.
94422
94423 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94424
94425         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94426         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94427         2.1.3 bug.  This avoids a clash when files like regex.c define
94428         _GNU_SOURCE.
94429
94430 2000-05-06  Jim Meyering  <meyering@lucent.com>
94431
94432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94433         (AC_REPLACE_FUNCS): Add strnlen.
94434
94435         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94436         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94437
94438         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94439         AC_SEARCH_LIBS call for nanosleep.
94440         (LIB_NANOSLEEP): Set and AC_SUBST.
94441
94442 2000-05-06  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/strnlen.c: Undefine __strnlen and strnlen.
94445         [!weak_alias]: Define __strnlen to strnlen.
94446
94447         * lib/atexit.c: New file, from libiberty.
94448
94449 2000-05-06  Jim Meyering  <meyering@lucent.com>
94450
94451         * lib/closeout.c (close_stdout_status): Also check for errors on the
94452         stderr stream.
94453
94454 2000-05-05  Jim Meyering  <meyering@lucent.com>
94455
94456         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94457         AC_SEARCH_LIBS call for clock_gettime.
94458         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94459
94460         * m4/search-libs.m4: Update from autoconf.
94461
94462         su doesn't work on Solaris 2.6.
94463         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94464         <shadow.h>.  Reported by Dragos Harabor.
94465
94466 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94467
94468         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94469         memcpy instead of xmalloc, xrealloc, path_concat.
94470         (locale_charset): Treat empty environment variables as absent.
94471         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94472
94473 2000-05-04  Jim Meyering  <meyering@lucent.com>
94474
94475         * lib/getopt.c: Update from glibc.
94476         * lib/obstack.c: Likewise.
94477         * lib/obstack.h: Likewise.
94478         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94479         file
94480
94481         * lib/regex.h: Likewise.
94482         * lib/strndup.c: Likewise.
94483         * lib/strnlen.c: New file, from glibc.
94484
94485 2000-05-03  Jim Meyering  <meyering@lucent.com>
94486
94487         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94488
94489 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94490
94491         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94492         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94493         compile-time test, rather than inspecting host and OS, to
94494         decide whether to define _LARGEFILE_SOURCE.
94495
94496 2000-05-01  Jim Meyering  <meyering@lucent.com>
94497
94498         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94499
94500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94501         Based on a patch from Bruno Haible.
94502
94503 2000-05-01  Jim Meyering  <meyering@lucent.com>
94504
94505         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94506
94507 2000-04-29  Jim Meyering  <meyering@lucent.com>
94508
94509         * lib/path-concat.c: Declare strdup only if it's not defined.
94510         * lib/canon-host.c: Likewise.
94511
94512 2000-04-28  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94515         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94516         is included first, then limits.h is included by locale.h by libintl.h.
94517         From John David Anglin.
94518
94519 2000-04-25  Jim Meyering  <meyering@lucent.com>
94520
94521         * lib/makepath.c (S_IRWXUGO): Define.
94522         (make_path): Always perform explicit chmod if MODE specifies any
94523         of the `special' permission bits.  Prompted by a bug report against
94524         install from Mate Wierdl and Joost van Baal.
94525
94526 2000-04-18  Jim Meyering  <meyering@lucent.com>
94527
94528         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94529         (jm_PREREQ): Use it.
94530
94531 2000-04-18  Jim Meyering  <meyering@lucent.com>
94532
94533         * lib/README: New file.
94534
94535         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94536         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94537
94538 2000-04-17  Jim Meyering  <meyering@lucent.com>
94539
94540         Get it right :-)
94541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94542         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94543         Suggestion from Akim Demaille.
94544
94545 2000-04-17  Jim Meyering  <meyering@lucent.com>
94546
94547         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94548         the definition of it to rpl_strftime also defined-away the system's
94549         declaration.
94550
94551 2000-04-15  Jim Meyering  <meyering@lucent.com>
94552
94553         Use `C' to denote so-called `contiguous' files, the same way
94554         that tar does.
94555         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94556         (ftypelet): Use S_ISCTG.
94557         From Michael Deutschmann.
94558
94559 2000-04-14  Jim Meyering  <meyering@lucent.com>
94560
94561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94562         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94563         clobbered.
94564
94565 2000-04-14  Jim Meyering  <meyering@lucent.com>
94566
94567         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94568
94569 2000-04-13  Jim Meyering  <meyering@lucent.com>
94570
94571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94572         AH_VERBATIM to insert required #ifndef into config.h.in.
94573         Suggestion from Akim Demaille.
94574
94575 2000-04-12  Jim Meyering  <meyering@lucent.com>
94576
94577         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94578         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94579         Christian Krackowizer.
94580
94581         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94582         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94583         (AC_SYS_LARGEFILE): Require.
94584         (AM_C_PROTOTYPES): Require.
94585
94586 2000-04-08  Jim Meyering  <meyering@lucent.com>
94587
94588         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94589         names don't conflict.  Reported by Eli Zaretskii.
94590
94591 2000-04-07  Jim Meyering  <meyering@lucent.com>
94592
94593         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94594         sys/types.h, to work around system header problems on AIX 3.2.5.
94595         From Bruno Haible.
94596
94597 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94598
94599         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94600         bug.  Deal with the different error behavior of Irix iconv.
94601
94602 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94603
94604         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94605         IRIX if the installer said otherwise.
94606
94607 2000-04-05  Jim Meyering  <meyering@lucent.com>
94608
94609         Portability tweaks required for ultrix4.3.
94610         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94611         (jm_CHECK_DECLS): Add getutent to the list of functions.
94612         (_jm_DECL_HEADERS): Add utmpx.h.
94613         From John David Anglin.
94614
94615         * m4/strftime.m4: Back out the 2000-04-02 change.
94616         Instead of that change, simply undefine putenv in the test program.
94617
94618 2000-04-05  Jim Meyering  <meyering@lucent.com>
94619
94620         Portability tweaks required for ultrix4.3.
94621         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94622         getutent.
94623         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94624         * lib/canon-host.c: Declare strdup.
94625         * lib/path-concat.c: Likewise.
94626         From John David Anglin.
94627
94628 2000-04-04  Jim Meyering  <meyering@lucent.com>
94629
94630         Be more DOS 8.3-friendly.
94631         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94632         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94633         * lib/Makefile.am: Reflect renaming.
94634         Reported by Eli Zaretskii.
94635
94636         Use a temporary file name that won't clash with `charset.alias'
94637         in the DOS 8.3 name space.
94638         * lib/Makefile.am (charset_tmp): Define.
94639         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94640         (uninstall-local): Likewise.
94641         Reported by Eli Zaretskii.
94642
94643 2000-04-03  Jim Meyering  <meyering@lucent.com>
94644
94645         * m4/gettext.m4: Fix typo in comment.
94646
94647         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94648         textutils/configure.in).  Suggestion from Paul Eggert.
94649         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94650
94651 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94652
94653         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94654         variable in the shell rather than using putenv, which isn't
94655         portable.  This avoids the configure-time inter-test dependency
94656         on the potentially-renamed putenv function.
94657
94658 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94659
94660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94661         before checking struct stat.st_blksize, so that
94662         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94663
94664 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94665
94666         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94667         since strftime.c uses HAVE_STRFTIME to decide whether to use
94668         the underlying strftime.
94669
94670 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94671
94672         * lib/time/strftime.c (my_strftime): Make sure we call the system
94673         strftime, not ourselves, when invoking the underlying strftime.
94674
94675 2000-03-24  Jim Meyering  <meyering@lucent.com>
94676
94677         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94678         (charset_alias): Define.
94679         (install-exec-local): Factor out common code.
94680         (uninstall-local): Split lines longer than 80.
94681         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94682         (SUFFIXES): Define.
94683         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94684         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94685
94686 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94687
94688         * lib/config.charset: Output a line containing "Packages using this
94689         file".
94690         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94691         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94692         ref-del.sed): New rules.
94693
94694 2000-03-17  Jim Meyering  <meyering@lucent.com>
94695
94696         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94697         Otherwise, include <strings.h>
94698
94699 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94700
94701         * lib/unicodeio.c (utf8_wctomb): New function.
94702         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94703         format instead of in UCS-4 with platform dependent endianness.
94704
94705 2000-03-10  Jim Meyering  <meyering@lucent.com>
94706
94707         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94708         From Marco Franzen.
94709
94710 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94711
94712         * lib/savedir.c (savedir): Work even if directory size is
94713         negative; this can happen with some screwy NFS configurations.
94714
94715 2000-03-06  Jim Meyering  <meyering@lucent.com>
94716
94717         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94718         if it's NULL (because we ran out of memory).  From Bruno Haible.
94719
94720 2000-03-05  Jim Meyering  <meyering@lucent.com>
94721
94722         * lib/localcharset.c ("path-concat.h"): Include.
94723         (get_charset_aliases): Use path_concat instead of ANSI string
94724         concatenation.
94725
94726         * lib/unicodeio.h (PARAMS): Define.
94727         Use it to guard prototype.
94728
94729 2000-03-04  Jim Meyering  <meyering@lucent.com>
94730
94731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94732         for lib/localcharset.c.
94733
94734 2000-03-04  Jim Meyering  <meyering@lucent.com>
94735
94736         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94737         installing into it.
94738         (uninstall-local): Uncomment this rule so `make distcheck' works
94739         once again.
94740
94741         * lib/unicodeio.c (<errno.h>): Include it.
94742         (errno): Declare if not defined.
94743
94744         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94745
94746         * lib/config.charset: New version, incorporating remarks from a linux
94747         i18n mailing list.  From Bruno Haible.
94748
94749 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94750
94751         * m4/codeset.m4: New file.
94752         * m4/iconv.m4: New file.
94753         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94754
94755 2000-03-03  Jim Meyering  <meyering@lucent.com>
94756
94757         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94758
94759 2000-03-02  Jim Meyering  <meyering@lucent.com>
94760
94761         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94762         the messages come out on separate lines.
94763
94764         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94765         rather than jm_CHECK_DECLARATIONS.
94766         * m4/decl.m4: Remove now-unused file.
94767
94768         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94769         geteuid.
94770
94771 2000-03-02  Jim Meyering  <meyering@lucent.com>
94772
94773         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94774
94775 2000-03-01  Jim Meyering  <meyering@lucent.com>
94776
94777         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94778         * lib/unicodeio.c: Likewise.
94779
94780 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94781
94782         * lib/config.charset: New file.
94783         * lib/localcharset.c: New file.
94784         * lib/unicodeio.h, lib/unicodeio.c: New files.
94785         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94786         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94787         (noinst_HEADERS): Add unicodeio.h.
94788         (all-local, install-exec-local, charset.alias): New targets.
94789
94790 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94791
94792         * lib/quotearg.c (ALERT_CHAR): New macro.
94793         (quotearg_buffer_restyled): Use it.
94794
94795 2000-02-27  Jim Meyering  <meyering@lucent.com>
94796
94797         * m4/check-decl.m4: Add getenv to the list.
94798
94799 2000-02-27  Jim Meyering  <meyering@lucent.com>
94800
94801         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94802         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94803
94804         * lib/backupfile.c: Guard inclusion of stdlib.h with
94805         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94806         Declare malloc if needed.
94807
94808         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94809         `#ifndef HAVE_DECL..'
94810         now that autoconf always defines the HAVE_DECL_ symbols.
94811         * lib/human.c: Likewise.
94812         * lib/same.c: Likewise.
94813         * lib/strtoumax.c: Likewise.
94814
94815         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94816         declaration check was not run.
94817         * lib/hash.c: Likewise.
94818         * lib/human.c: Likewise.
94819         * lib/same.c: Likewise.
94820         * lib/strtoumax.c: Likewise.
94821
94822         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94823         `.', then first look up the entire `.'-containing string as a login
94824         name.
94825
94826 2000-02-23  Jim Meyering  <meyering@lucent.com>
94827
94828         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94829         in place of my hack.
94830
94831 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94832
94833         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94834         (textint): New typedef.
94835         (parser_control): Member year changed from int to textint.
94836         All uses changed.
94837         (YYSTYPE): Removed; replaced by %union with int and textint members.
94838         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94839         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94840         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94841         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94842         (date, number, to_year): Use width of number in digits, not its value,
94843         to determine whether it's a 2-digit year, or a 2-digit time.
94844         (yylex): Store number of digits of numeric tokens.
94845         Reported by John Kendall.
94846
94847         (parser_control): Changed from struct parser_control to typedef (for
94848         consistency).  All uses changed.
94849
94850         (tID): Removed; not used.
94851         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94852
94853 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94854
94855         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94856         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94857
94858 2000-02-12  Jim Meyering  <meyering@lucent.com>
94859
94860         * lib/userspec.c (ISDIGIT): Define it.
94861         (isdigit): Remove definition.
94862         (is_number): Use ISDIGIT, not isdigit.
94863         <libintl.h>: Include.
94864         (_ and N_): Define.
94865         (parse_user_spec): Mark translatable strings.
94866
94867 2000-02-10  Jim Meyering  <meyering@lucent.com>
94868
94869         With these changes, nanosleep.[ch] are finally enough like the other
94870         lib/* replacement files to compile on a few more losing systems.
94871
94872         * lib/nanosleep.h: Don't include config.h.
94873         Remove prototype from declaration of nanosleep.
94874         (PARAMS): Remove now-unneeded definition.
94875         * lib/nanosleep.c: #undef nanosleep.
94876         (rpl_nanosleep): Rename from nanosleep.
94877
94878 2000-02-10  Jim Meyering  <meyering@lucent.com>
94879
94880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94881         gnu_nanosleep to rpl_nanosleep.
94882
94883 2000-02-09  Jim Meyering  <meyering@lucent.com>
94884
94885         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94886         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94887
94888 2000-02-08  Akim Demaille  <akim@epita.fr>
94889
94890         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94891         `[' and `]' and remove uses of `changequote'.
94892         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94893         (AC_SYS_LARGEFILE): Likewise.
94894         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94895         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94896         of changequote.
94897         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94898         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94899         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94900         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94901
94902 2000-02-05  Jim Meyering  <meyering@lucent.com>
94903
94904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94905         Remove explicit use of AC_HEADER_TIME.  It is required by
94906         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94907         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94908         in autoconf whereby the expansion of the latter ended up preceding
94909         the expansion of its prerequisite, AC_HEADER_TIME.
94910         Reported by Volker Borchert.
94911
94912 2000-02-03  Jim Meyering  <meyering@lucent.com>
94913
94914         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94915
94916 2000-02-03  Jim Meyering  <meyering@lucent.com>
94917
94918         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94919         rather than with `#if HAVE_UTMPNAME'.
94920
94921 2000-02-02  Jim Meyering  <meyering@lucent.com>
94922
94923         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94924         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94925         Reported by Eli Zaretskii.
94926
94927 2000-02-01  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94930
94931 2000-01-31  Jim Meyering  <meyering@lucent.com>
94932
94933         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94934         functions.  Add the time.h and sys/time.h headers along with the
94935         AC_REQUIRE'ment of AC_HEADER_TIME.
94936
94937 2000-01-31  Jim Meyering  <meyering@lucent.com>
94938
94939         * lib/nanosleep.h (nanosleep): Guard declaration with
94940         `#if ! HAVE_DECL_NANOSLEEP'.
94941         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94942         the declaration in that vendor's sys/timers.h.
94943         Reported by Christian Krackowizer.
94944
94945         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94946         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94947         (ISPRINT): Likewise.
94948         Reported by Tom Tromey.
94949
94950 2000-01-30  Jim Meyering  <meyering@lucent.com>
94951
94952         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94953
94954         * m4/prereq.m4 (utmp_includes): Define.
94955         Check for ut_user and ut_name members in both struct utmpx
94956         and struct utmp.
94957
94958 2000-01-30  Jim Meyering  <meyering@lucent.com>
94959
94960         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94961         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94962         header files where only utmpx.ut_user is declared.
94963
94964         * lib/readutmp.h (UT_USER): Define.
94965
94966 2000-01-29  Jim Meyering  <meyering@lucent.com>
94967
94968         * m4/lib-check.m4: New file containing library-related checks from
94969         fileutils and sh-utils (textutils had none).
94970
94971 2000-01-28  Jim Meyering  <meyering@lucent.com>
94972
94973         * m4/perl.m4: Change format of warning message to look more like that
94974         from the missing script.  Suggestion from François Pinard.
94975
94976 2000-01-25  Jim Meyering  <meyering@lucent.com>
94977
94978         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94979         well as time.h in the compile check.
94980         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94981         Fix typo in cross-compiling case: s/yes/no/.
94982
94983 2000-01-23  Jim Meyering  <meyering@lucent.com>
94984
94985         * m4/jm-macros.m4: Move df-related tests here from
94986         fileutils/configure.in
94987
94988         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94989         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94990
94991         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94992         s/space/ac_fsusage_space/.
94993         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94994
94995         * m4/ftruncate.m4: New file (derived from part of
94996         fileutils/configure.in).
94997         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94998         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94999
95000         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95001         AC_SUBST these here, rather than just in sh-util/configure.in, so
95002         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95003         all the same.
95004         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95005         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95006         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95007         (AC_SUBST(POW_LIBM)): Likewise.
95008         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95009
95010 2000-01-23  Jim Meyering  <meyering@lucent.com>
95011
95012         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95013         obstack.c.
95014
95015 2000-01-22  Jim Meyering  <meyering@lucent.com>
95016
95017         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95018
95019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95020
95021         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95022         configure.in
95023         (AC_CHECK_HEADERS): Likewise for sh-utils.
95024         (AC_CHECK_HEADERS): Likewise for textutils.
95025         Merge the three lists of headers.
95026
95027         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95028         from fileutils' configure.in.
95029
95030         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95031         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95032         check-decl.m4.
95033
95034         * m4/check-decl.m4: Use #if rather than #ifdef.
95035         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95036         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95037         (_jm_DECL_HEADERS): Define new function.
95038         (jm_CHECK_DECLARATIONS): Require it.
95039
95040 2000-01-22  Jim Meyering  <meyering@lucent.com>
95041
95042         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95043         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95044         Required for some AIX systems.  Reported by Christian Krackowizer.
95045         [TESTING] (main): New function.
95046
95047         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95048         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95049         letters.
95050
95051         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95052         iswprint.
95053
95054         * lib/strverscmp.c (ISDIGIT): Define.
95055         (strverscmp): Use ISDIGIT, not isdigit.
95056
95057 2000-01-19  Jim Meyering  <meyering@lucent.com>
95058
95059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95060         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95061         defines `struct timespec' in <sys/time.h>
95062
95063         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95064         Thanks to Akim for explaining.
95065
95066 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95067
95068         * lib/nanosleep.c (nanosleep):
95069         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95070         POSIX.1 doesn't require SA_INTERRUPT and some systems
95071         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95072         it's been part of POSIX.1 since day 1 (in 1988).
95073
95074 2000-01-17  Jim Meyering  <meyering@lucent.com>
95075
95076         * lib/interlock: Remove unused file.  Reported by François Pinard.
95077
95078 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95079
95080         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95081         alert, backslash, formfeed, and vertical tab unnecessarily in
95082         shell quoting style.
95083
95084 2000-01-16  Jim Meyering  <meyering@lucent.com>
95085
95086         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95087         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95088         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95089         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95090
95091 2000-01-16  Jim Meyering  <meyering@lucent.com>
95092
95093         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95094         because the latter didn't work.
95095
95096 2000-01-15  Jim Meyering  <meyering@lucent.com>
95097
95098         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95099         (AC_REPLACE_FUNCS): Add memcpy and memset.
95100         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95101         Add strpbrk.
95102         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95103
95104 2000-01-12  Jim Meyering  <meyering@lucent.com>
95105
95106         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95107         (jm_PREREQ): Use it.
95108         (jm_PREREQ_READUTMP): New macro.
95109         (jm_PREREQ): Use it.
95110
95111 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95112
95113         Quote multibyte characters correctly.
95114         * m4/c-bs-a.m4: New file.
95115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95116         (jm_PREREQ): Use it.
95117
95118 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95119
95120         * m4/uintmax_t.m4: Port to autoconf 2.13.
95121
95122 2000-01-08  Jim Meyering  <meyering@ascend.com>
95123
95124         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95125         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95126
95127 2000-01-04  Jim Meyering  <meyering@ascend.com>
95128
95129         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95130         jm_STRUCT_DIRENT_D_TYPE.
95131         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95132         jm_STRUCT_DIRENT_D_INO.
95133         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95134         jm_STRUCT_UTIMBUF.
95135         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95136         renamings.
95137         * m4/utime.m4: Likewise.
95138
95139         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95140         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95141
95142 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95143
95144         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95145         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95146
95147 2000-01-02  Jim Meyering  <meyering@ascend.com>
95148
95149         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95150         remember if this is necessary.
95151
95152 1999-12-26  Jim Meyering  <meyering@ascend.com>
95153
95154         * m4/jm-macros.m4: Use it here.
95155         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95156
95157 1999-12-23  Jim Meyering  <meyering@ascend.com>
95158
95159         * m4/jm-macros.m4: Check for clock_gettime (moved from
95160         fileutils/configure.in)
95161         Check for gettimeofday.
95162
95163 1999-12-20  Jim Meyering  <meyering@ascend.com>
95164
95165         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95166         autoconf-2.14a-1999-12-20.
95167
95168 1999-12-19  Jim Meyering  <meyering@ascend.com>
95169
95170         * m4/lstat-slash.m4: New file.
95171         * m4/jm-macros.m4: Use the new macro:
95172         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95173
95174 1999-12-07  Jim Meyering  <meyering@ascend.com>
95175
95176         * m4/perl.m4: Require that File::Compare be available, too.
95177         Too many systems seem to lack it.
95178
95179         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95180         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95181
95182 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95183
95184         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95185         problem with the QNX 4.25 shell, which doesn't propagate exit
95186         status of failed commands inside shell assignments.
95187
95188 1999-11-17  Jim Meyering  <meyering@ascend.com>
95189
95190         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95191
95192 1999-11-07  Jim Meyering  <meyering@ascend.com>
95193
95194         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95195
95196 1999-11-06  Jim Meyering  <meyering@ascend.com>
95197
95198         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95199         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95200
95201 1999-11-05  Jim Meyering  <meyering@ascend.com>
95202
95203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95204         configure.in of textutils, fileutils, and sh-utils into this one
95205         (shared between those packages) file.
95206         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95207         AC_STRUCT_ST_BLKSIZE.
95208
95209 1999-11-03  Jim Meyering  <meyering@ascend.com>
95210
95211         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95212         of AC_CHECK_TYPE checks includes unistd.h.
95213         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95214         Suggestion from Akim Demaille.
95215
95216 1999-10-30  Jim Meyering  <meyering@ascend.com>
95217
95218         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95219         m4-quoted string.
95220         * m4/ls-mntd-fs.m4: Likewise.
95221         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95222         * m4/jm-winsz1.m4: Likewise.
95223
95224         * m4/const.m4: Remove file, since the fix made it into the experimental
95225         version of autoconf.
95226         * m4/mktime.m4: Likewise.
95227
95228         * m4/check-type.m4: Remove file, now that the latest version of
95229         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95230
95231         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95232         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95233         AC_CHECK_TYPE.
95234
95235 1999-10-04  Jim Meyering  <meyering@ascend.com>
95236
95237         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95238
95239 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95240
95241         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95242         2.95.1 bug with HP-UX 10.20.
95243
95244 1999-09-17  Jim Meyering  <meyering@ascend.com>
95245
95246         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95247         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95248         due to missing strdup (against sh-utils-2.0).
95249
95250 1999-08-29  Jim Meyering  <meyering@ascend.com>
95251
95252         * m4/jm-macros.m4: Require jm_BISON.
95253         * m4/bison.m4: New file.
95254
95255 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95256
95257         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95258         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95259
95260 1999-08-05  Jim Meyering  <meyering@ascend.com>
95261
95262         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95263         to avoid conflicts with `conftest' on 8+3 filesystems.
95264         Suggestion from Eli Zaretskii.
95265
95266 1999-08-04  Jim Meyering  <meyering@ascend.com>
95267
95268         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95269         fileutils and sh-utils (textutils's getline test was inadequate).
95270         (AM_FUNC_GETLINE): Run this test.
95271         (AC_CHECK_FUNCS): Check for getdelim.
95272         Reported by Bob Proulx.
95273
95274 1999-08-02  Jim Meyering  <meyering@ascend.com>
95275
95276         * m4/jm-macros.m4: Add a comment.
95277
95278 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95279
95280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95281         <inttypes.h> defines strtoumax as a macro (and not as a
95282         function).
95283
95284 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95285
95286         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95287         that we can shift, multiply and divide unsigned long long
95288         values; Ultrix cc can't do it.
95289
95290 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95291
95292         * m4/mktime.m4: New file, which is a preview of what should appear
95293         in the next public autoconf release.
95294
95295 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95296
95297         * m4/lfs.m4: Remove this file.
95298         * m4/largefile.m4: New file.  It contains the old contents of
95299         lfs.m4, except that all names with prefix AC_LFS have been
95300         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95301         compatible with future autoconf versions.  Also, some minor m4
95302         quoting problems have been fixed.
95303
95304 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95305
95306         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95307         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95308         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95309         and simplify the shell code.
95310
95311 1999-08-01  Jim Meyering  <meyering@ascend.com>
95312
95313         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95314         m4.
95315
95316 1999-07-20  Jim Meyering  <meyering@ascend.com>
95317
95318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95319
95320 1999-07-15  Jim Meyering  <meyering@ascend.com>
95321
95322         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95323
95324 1999-05-22  Jim Meyering  <meyering@ascend.com>
95325
95326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95327
95328 1999-05-20  Jim Meyering  <meyering@ascend.com>
95329
95330         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95331         Add a colon after each `then' in case $4 is empty.
95332
95333 1999-05-16  Jim Meyering  <meyering@ascend.com>
95334
95335         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95336
95337 1999-05-10  Jim Meyering  <meyering@ascend.com>
95338
95339         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95340
95341         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95342         AC_FUNC_MKTIME.
95343
95344 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95345
95346         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95347
95348 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95349
95350         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95351         not CPPFLAGS, so that linking works correctly in IRIX.
95352
95353 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95354
95355         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95356
95357 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95358
95359         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95360         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95362         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95363         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95364
95365         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95366
95367 1999-04-20  Jim Meyering  <meyering@ascend.com>
95368
95369         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95370         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95371         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95372
95373 1999-04-18  Jim Meyering  <meyering@ascend.com>
95374
95375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95376         * m4/jm-macros.m4: Use it.
95377
95378 1999-04-06  Jim Meyering  <meyering@ascend.com>
95379
95380         * m4/strftime.m4: Remove test for %f.
95381
95382 1999-03-29  Jim Meyering  <meyering@ascend.com>
95383
95384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95385         superset of the AC_TYPE_* checks in the textutils, fileutils,
95386         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95387         AC_TYPE_PID_T.
95388
95389 1999-03-28  Jim Meyering  <meyering@ascend.com>
95390
95391         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95392         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95393         replaced e.g., in the *.sh files of the sh-utils.
95394
95395 1999-03-20  Jim Meyering  <meyering@ascend.com>
95396
95397         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95398         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95399         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95400
95401 1999-03-19  Jim Meyering  <meyering@ascend.com>
95402
95403         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95404
95405 1999-03-12  Jim Meyering  <meyering@ascend.com>
95406
95407         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95408
95409 1999-03-07  Jim Meyering  <meyering@ascend.com>
95410
95411         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95412         declared.
95413
95414 1999-02-17  Jim Meyering  <meyering@ascend.com>
95415
95416         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95417         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95418
95419 1999-02-07  Jim Meyering  <meyering@ascend.com>
95420
95421         * m4/group-member.m4: New file -- extracted from sh-utils'
95422         configure.in.
95423
95424         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95425         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95426
95427 1999-02-06  Jim Meyering  <meyering@ascend.com>
95428
95429         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95430         * m4/fnmatch.m4: Likewise.
95431         * m4/getgroups.m4: Likewise.
95432         * m4/lstat.m4: Likewise.
95433         * m4/malloc.m4: Likewise.
95434         * m4/putenv.m4: Likewise.
95435         * m4/realloc.m4: Likewise.
95436         * m4/regex.m4: Likewise.
95437         * m4/stat.m4: Likewise.
95438         * m4/strftime.m4: Likewise.
95439         Suggestion from Alain Magloire.
95440
95441         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95442         * m4/fnmatch.m4: Likewise.
95443         * m4/getgroups.m4: Likewise.
95444         * m4/getline.m4: Likewise.
95445         * m4/lstat.m4: Likewise.
95446         * m4/malloc.m4: Likewise.
95447         * m4/memcmp.m4: Likewise.
95448         * m4/putenv.m4: Likewise.
95449         * m4/realloc.m4: Likewise.
95450         * m4/regex.m4: Likewise.
95451         * m4/stat.m4: Likewise.
95452         * m4/strftime.m4: Likewise.
95453         Suggestion from Alain Magloire.
95454
95455         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95456         an argument.
95457
95458         * m4/regex.m4: Add a run-time Test for proper operation of
95459         re_compile_pattern.
95460
95461 1999-01-31  Jim Meyering  <meyering@ascend.com>
95462
95463         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95464
95465 1999-01-30  Jim Meyering  <meyering@ascend.com>
95466
95467         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95468
95469         * m4/jm-mktime.m4: Make this a wrapper around the official
95470         AM_FUNC_MKTIME rather than my private copy, now that the official one
95471         is up to date.
95472         * m4/mktime.m4: Remove file.
95473
95474         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95475         * m4/uptime.m4: Likewise.
95476         * m4/uintmax_t.m4: Likewise.
95477
95478 1999-01-28  Jim Meyering  <meyering@ascend.com>
95479
95480         * m4/jm-macros.m4: Use jm_AFS.
95481         * m4/afs.m4: New file (from fileutils' configure.in).
95482
95483         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95484         * m4/chown.m4: Likewise.
95485         * m4/d-ino.m4: Likewise.
95486         * m4/d-type.m4: Likewise.
95487         * m4/fnmatch.m4: Likewise.
95488         * m4/getgroups.m4: Likewise.
95489         * m4/gettext.m4: Likewise.
95490         * m4/jm-mktime.m4: Likewise.
95491         * m4/jm-winsz2.m4: Likewise.
95492         * m4/lcmessage.m4: Likewise.
95493         * m4/ls-mntd-fs.m4: Likewise.
95494         * m4/malloc.m4: Likewise.
95495         * m4/memcmp.m4: Likewise.
95496         * m4/putenv.m4: Likewise.
95497         * m4/realloc.m4: Likewise.
95498         * m4/st_mtim.m4: Likewise.
95499         * m4/strftime.m4: Likewise.
95500
95501 1999-01-16  Jim Meyering  <meyering@ascend.com>
95502
95503         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95504         (ARGMATCH_DIE_DECL): Define.
95505
95506 1999-01-12  Jim Meyering  <meyering@ascend.com>
95507
95508         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95509         Reported by Lars Hecking.
95510
95511 1999-01-10  Jim Meyering  <meyering@ascend.com>
95512
95513         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95514         gross kludge.
95515         * m4/inttypes_h.m4: Likewise.
95516         * m4/lstat.m4: Likewise.
95517         * m4/malloc.m4: Likewise.
95518         * m4/readdir.m4: Likewise.
95519         * m4/realloc.m4: Likewise.
95520         * m4/st_dm_mode.m4: Likewise.
95521         * m4/stat.m4: Likewise.
95522         * m4/utimbuf.m4: Likewise.
95523         * m4/utimes.m4: Likewise.
95524
95525         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95526         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95527         comments in config.h.in are meaningful.
95528
95529         * m4/jm-macros.m4: Require autoconf-2.13 here.
95530
95531         * m4/regex.m4: By default, don't use the included regex.c on systems
95532         with glibc 2.  Suggestion from Uli Drepper.
95533
95534 1999-01-02  Jim Meyering  <meyering@ascend.com>
95535
95536         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95537
95538 1998-12-18  Jim Meyering  <meyering@ascend.com>
95539
95540         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95541         Based on a suggestion from Lars Hecking.
95542
95543 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95544
95545         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95546
95547 1998-11-16  Jim Meyering  <meyering@ascend.com>
95548
95549         * m4/lfs.m4: Double-quote the `uname...` expression.
95550
95551 1998-11-14  Jim Meyering  <meyering@ascend.com>
95552
95553         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95554         * m4/stat.m4: Likewise.
95555
95556 1998-11-03  Jim Meyering  <meyering@ascend.com>
95557
95558         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95559         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95560
95561 1998-10-18  Jim Meyering  <meyering@ascend.com>
95562
95563         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95564
95565 1998-10-17  Jim Meyering  <meyering@ascend.com>
95566
95567         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95568         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95569         calls for those previously hard-coded headers.  Instead, take a new
95570         parameter.
95571         (jm_CHECK_DECLARATIONS): Reflect interface change.
95572         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95573         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95574
95575         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95576
95577 1998-10-14  Jim Meyering  <meyering@ascend.com>
95578
95579         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95580         instead of "TZ=America/Vancouver".  From Paul Eggert.
95581
95582 1998-10-11  Jim Meyering  <meyering@ascend.com>
95583
95584         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95585         This adds a test for a recently added compatibility fix for mktime.c.
95586         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95587
95588 1998-09-27  Jim Meyering  <meyering@ascend.com>
95589
95590         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95591
95592         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95593         ../configure.in, including a change from Gordon Matzigkeit to allow
95594         cross-compiling for the Hurd.
95595
95596         * m4/glibc.m4: New file/macro to test for the GNU C Library
95597         versions 1 and 2.  From Gordon Matzigkeit.
95598         Indent.
95599
95600 1998-09-21  Jim Meyering  <meyering@ascend.com>
95601
95602         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95603
95604 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95605
95606         Port nanosecond-resolution times to UnixWare 2.1.2 and
95607         pedantic Solaris 2.6.
95608
95609         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95610         AC_STRUCT_ST_MTIM.
95611         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95612         Generate name of ns member, instead of just 1 or undef.
95613         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95614
95615 1998-08-15  Jim Meyering  <meyering@ascend.com>
95616
95617         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95618         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95619         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95620         instead of jm_TYPE_SSIZE_T.
95621
95622 1998-08-12  Jim Meyering  <meyering@ascend.com>
95623
95624         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95625
95626 1998-08-02  Jim Meyering  <meyering@ascend.com>
95627
95628         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95629         in acconfig.h manually.
95630
95631 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95632
95633         * m4/st_mtim.m4: New file.
95634
95635 1998-07-28  Jim Meyering  <meyering@ascend.com>
95636
95637         * m4/utimes.m4: Undef stat.
95638
95639 1998-07-25  Jim Meyering  <meyering@ascend.com>
95640
95641         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95642         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95643
95644 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95645
95646         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95647         uid and gid actually remain unchanged.
95648
95649 1998-07-07  Jim Meyering  <meyering@ascend.com>
95650
95651         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95652
95653 1998-07-04  Jim Meyering  <meyering@ascend.com>
95654
95655         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95656         to prove that this macro can be used in packages without regex.c.
95657
95658 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95659
95660         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95661         is to be used.
95662
95663 1998-07-03  Jim Meyering  <meyering@ascend.com>
95664
95665         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95666
95667         * m4/gettext.m4: New file -- from gettext-0.10.35.
95668         * m4/lcmessage.m4: Likewise.
95669         * m4/progtest.m4: Likewise.
95670
95671         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95672         * m4/jm-macros.m4: Require the new macro.
95673
95674 1998-06-29  Jim Meyering  <meyering@ascend.com>
95675
95676         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95677         for the definition of NGROUPS (used in a system header included
95678         by sys/mount.h).
95679
95680 1998-06-28  Jim Meyering  <meyering@ascend.com>
95681
95682         * m4/ls-mntd-fs.m4: New file.
95683         * m4/fstypename.m4: New file.
95684
95685         * m4/jm-macros.m4: Require the new macro.
95686         * m4/jm-glibc-io.m4: New file.
95687
95688 1998-05-19  Jim Meyering  <meyering@ascend.com>
95689
95690         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95691         * m4/lchown.m4: New file.
95692
95693         * m4/Makefile.am.in: New file.
95694         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95695
95696 1998-05-14  Jim Meyering  <meyering@ascend.com>
95697
95698         * m4/Makefile.am (EXTRA_DIST): Add them.
95699         * m4/jm-macros.m4: New file.
95700         * m4/utimbuf.m4: New file.
95701
95702 1998-05-12  Jim Meyering  <meyering@ascend.com>
95703
95704         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95705
95706 1998-05-11  Jim Meyering  <meyering@ascend.com>
95707
95708         * m4/isc-posix.m4: New file.
95709
95710 1998-05-10  Jim Meyering  <meyering@ascend.com>
95711
95712         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95713
95714 1998-05-09  Jim Meyering  <meyering@ascend.com>
95715
95716         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95717         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95718         with automake.
95719
95720         * m4/ssize_t.m4: New file.
95721         * m4/mktime.m4: Remove file -- the new automake has this now.
95722
95723 1998-04-26  Jim Meyering  <meyering@ascend.com>
95724
95725         * m4/assert.m4: New file.
95726         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95727
95728 1998-04-05  Jim Meyering  <meyering@ascend.com>
95729
95730         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95731         (jm_PREREQ): Use it here.
95732
95733 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95734
95735         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95736         in acconfig.h.
95737
95738 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95739
95740         * m4/prereq.m4: New file.
95741         * m4/error.m4: New file.
95742         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95743
95744 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95745
95746         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95747         cache-check for the same variable -- that defeated the purpose of
95748         the test; the test program was never run.  This was a problem only
95749         on systems with losing getline functions -- HP-UX 10.20 is one.
95750         Reported by Bjorn Helgaas.
95751
95752 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95753
95754         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95755
95756 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95757
95758         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95759
95760         * m4/const.m4: New file.  Use an initializer in this declaration
95761         typedef int charset[2]; const charset x;
95762         Reported by Bob Glickstein.
95763
95764 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95765
95766         * m4/chown.m4: Fix reversed types on -1 args to chown.
95767         From Kaveh Ghazi.
95768
95769 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95770
95771         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95772         Add lseek and memchr.
95773
95774         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95775         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95776         have a 20-character limit on names.
95777
95778 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95779
95780         * m4/inttypes_h.m4: New file.
95781         * m4/uintmax_t.m4: New file.
95782         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95783
95784
95785         -----
95786
95787         Local Variables:
95788         coding: utf-8
95789         End:
95790
95791         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95792
95793         Copying and distribution of this file, with or without
95794         modification, are permitted provided the copyright notice
95795         and this notice are preserved.